Re: resize the partition with /

2007-10-04 Thread Manu Hack
On 10/1/07, Raj Kiran Grandhi [EMAIL PROTECTED] wrote:

  So I'd like to resize hda2 but I can't as it said I need to unmount
  hda2 before resizing.  People suggest using a live CD but it's not
  possible with my old laptop (I didn't even install etch using CD, I
  can only install etch via goodbyemicrosoft.com).  USB boot is also not
  available.
 

 If a couple of reboots is ok for you, the following method might work.

Yes, and thanks a lot for the instruction.


 You can use 'dd' to clone hda2 to hda1. Boot your system with
 init=/bin/bash. When you get to the bash prompt, do

 bash# dd if=/dev/hda2 of=/dev/hda1

 When that completes, you would have your installation available on both
 the partitions. The 5GB hda1 would contain a filesystem that is only 1GB
 large. Restart your system. You would boot normally with a 1GB root.

 Edit /boot/grub/menu.lst and add an entry for the linux on hda1.
 set root to (hd0,0) and append root=/dev/hda1 for the kernel line of the
 new entry.

 mkdir /tmp/newroot; mount /dev/hda1 /tmp/newroot

 Edit the file /tmp/newroot/boot/grub/menu.lst and replace (hd0,1) with
 (hda0,0) and root=/dev/hda2 with root=/dev/hda1. Similarly fix the root
 filesystem entry in /tmp/newroot/etc/fstab by changing /dev/hda2 to
 /dev/hda1.

 Now you should be able to boot into either of your two partitions.

So I got two grub/menu.lst, but how grub knows which one to read (one
is hda1 and one is hda2)?


 Once you have satisfied yourself that both are working, boot into your
 1GB partition, and resize hda1. The command resize2fs /dev/hda1 should
 be sufficient.

 Restart into the 5GB parition and now you would have a 5GB root with
 over 4GB free space.

 Run grub-install /dev/hda so that grub can load itself from the new
 location.

 You can now copy over your home directory from the 1GB partition and
 continue using hda1. If you wish you format hda2 and mount it as /home.

 Feel free to post any problems you may have and make sure you take a
 backup of important files before proceeding.


Finally I followed your instruction and now I got what I wanted.
Really thanks a lot and hopefully this can help others too.  (not to
mention I learned a lot!) :)

Manu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-10-04 Thread Raj Kiran Grandhi

Manu Hack wrote:



If a couple of reboots is ok for you, the following method might work.


Yes, and thanks a lot for the instruction.


You can use 'dd' to clone hda2 to hda1. Boot your system with
init=/bin/bash. When you get to the bash prompt, do

bash# dd if=/dev/hda2 of=/dev/hda1

When that completes, you would have your installation available on both
the partitions. The 5GB hda1 would contain a filesystem that is only 1GB
large. Restart your system. You would boot normally with a 1GB root.

Edit /boot/grub/menu.lst and add an entry for the linux on hda1.
set root to (hd0,0) and append root=/dev/hda1 for the kernel line of the
new entry.

mkdir /tmp/newroot; mount /dev/hda1 /tmp/newroot

Edit the file /tmp/newroot/boot/grub/menu.lst and replace (hd0,1) with
(hda0,0) and root=/dev/hda2 with root=/dev/hda1. Similarly fix the root
filesystem entry in /tmp/newroot/etc/fstab by changing /dev/hda2 to
/dev/hda1.

Now you should be able to boot into either of your two partitions.


So I got two grub/menu.lst, but how grub knows which one to read (one
is hda1 and one is hda2)?


Grub will read the menu.lst from the partition that contained 
/boot/grub/menu.lst when grub-install was run.



Feel free to post any problems you may have and make sure you take a
backup of important files before proceeding.



Finally I followed your instruction and now I got what I wanted.
Really thanks a lot and hopefully this can help others too.  (not to
mention I learned a lot!) :)


This is one important reason why I am in love with linux. :) A little 
curiosity and it lets you learn everything you care about hardware/software.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: resize the partition with /

2007-10-04 Thread Manu Hack
On 10/4/07, Raj Kiran Grandhi [EMAIL PROTECTED] wrote:
 Manu Hack wrote:
 
  If a couple of reboots is ok for you, the following method might work.
 
  Yes, and thanks a lot for the instruction.
 
  You can use 'dd' to clone hda2 to hda1. Boot your system with
  init=/bin/bash. When you get to the bash prompt, do
 
  bash# dd if=/dev/hda2 of=/dev/hda1
 
  When that completes, you would have your installation available on both
  the partitions. The 5GB hda1 would contain a filesystem that is only 1GB
  large. Restart your system. You would boot normally with a 1GB root.
 
  Edit /boot/grub/menu.lst and add an entry for the linux on hda1.
  set root to (hd0,0) and append root=/dev/hda1 for the kernel line of the
  new entry.
 
  mkdir /tmp/newroot; mount /dev/hda1 /tmp/newroot
 
  Edit the file /tmp/newroot/boot/grub/menu.lst and replace (hd0,1) with
  (hda0,0) and root=/dev/hda2 with root=/dev/hda1. Similarly fix the root
  filesystem entry in /tmp/newroot/etc/fstab by changing /dev/hda2 to
  /dev/hda1.
 
  Now you should be able to boot into either of your two partitions.
 
  So I got two grub/menu.lst, but how grub knows which one to read (one
  is hda1 and one is hda2)?

 Grub will read the menu.lst from the partition that contained
 /boot/grub/menu.lst when grub-install was run.

So if I want grub to read the menu.lst from hda1, I should boot in
using hda1 and run grub-install /dev/hda1 and then supposedly I can
use hda2 for other storage?


  Feel free to post any problems you may have and make sure you take a
  backup of important files before proceeding.
 
 
  Finally I followed your instruction and now I got what I wanted.
  Really thanks a lot and hopefully this can help others too.  (not to
  mention I learned a lot!) :)

 This is one important reason why I am in love with linux. :) A little
 curiosity and it lets you learn everything you care about hardware/software.

Yes, Linux is so good.  After dual booting for a while I don't even
want/need to use M$ anymore and that's why I want to kill M$
completely.  (not to mention the label on the laptop!) :)


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-10-04 Thread Raj Kiran Grandhi

Manu Hack wrote:

Edit the file /tmp/newroot/boot/grub/menu.lst and replace (hd0,1) with
(hda0,0) and root=/dev/hda2 with root=/dev/hda1. Similarly fix the root
filesystem entry in /tmp/newroot/etc/fstab by changing /dev/hda2 to
/dev/hda1.

Now you should be able to boot into either of your two partitions.

So I got two grub/menu.lst, but how grub knows which one to read (one
is hda1 and one is hda2)?

Grub will read the menu.lst from the partition that contained
/boot/grub/menu.lst when grub-install was run.


So if I want grub to read the menu.lst from hda1, I should boot in
using hda1 and run grub-install /dev/hda1 and then supposedly I can
use hda2 for other storage?

Yes, except that the command should be grub-install /dev/hda to 
install grub on the master boot record.



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: resize the partition with /

2007-10-01 Thread harland christofferson

Douglas A. Tutty wrote:
 On Sun, Sep 30, 2007 at 09:11:50PM -0400, Manu Hack wrote:
  
   
 That's what I'm doing.  But is it possible to increase the size for
 apt-get upgrade and apt-get install?  Right now I can use that 5G for
 personal use but for the main thing like in /usr what's the best way
 to make use of that 5G?

 Any good website showing how to do add space at multiple points in the
 file system?

 
  

 Put a filesystem on it (e.g. ext3), mount it under /mnt, cp -a or rsync
 (or even use mc) everything under /usr, then unmount it from /mnt and
 mount it as /usr.  If it works, unmount it, change /etc/fstab, remove
 everything under /usr and reboot.

harland christofferson wrote:

why would you need to reboot. wouldn't deleting the mount point from /etc/mtab 
and running mount -a work instead? 


 Your main partition filesystem will now have additional free space
 equivalanet to the size of /usr.
   
To add this space at multiple points in the filesystem:

* Use fdisk (or your favorite partitioner) to remove hda1
* Recreate hda1 as an extended partition
* Create as many logical partitions within the extended partition as you 
need
* Mount these logical partitions wherever you need them in the filesystem

-- 
Marc Shapiro
[EMAIL PROTECTED]








Re: resize the partition with /

2007-10-01 Thread Douglas A. Tutty
On Mon, Oct 01, 2007 at 11:46:32AM -0700, harland christofferson wrote:
 Douglas A. Tutty wrote:
  Put a filesystem on it (e.g. ext3), mount it under /mnt, cp -a or
  rsync (or even use mc) everything under /usr, then unmount it from
  /mnt and mount it as /usr.  If it works, unmount it, change
  /etc/fstab, remove everything under /usr and reboot.
 
 harland christofferson wrote:
 
 why would you need to reboot. wouldn't deleting the mount point from
 /etc/mtab and running mount -a work instead? 

Because you're changing something that has to do with things that
automatically happen on boot.  I'd rather discover a problem now while I
remember what I did, than the next time I boot (a year from now?).

Unless you have production services going on, a quick reboot is a good
idea.  If you do have production services, schedule the reboot for the
next short maintenance window and be doubly sure that you've logged what
you've done.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-10-01 Thread Raj Kiran Grandhi



So I'd like to resize hda2 but I can't as it said I need to unmount
hda2 before resizing.  People suggest using a live CD but it's not
possible with my old laptop (I didn't even install etch using CD, I
can only install etch via goodbyemicrosoft.com).  USB boot is also not
available.



If a couple of reboots is ok for you, the following method might work.

You can use 'dd' to clone hda2 to hda1. Boot your system with 
init=/bin/bash. When you get to the bash prompt, do


bash# dd if=/dev/hda2 of=/dev/hda1

When that completes, you would have your installation available on both 
the partitions. The 5GB hda1 would contain a filesystem that is only 1GB 
large. Restart your system. You would boot normally with a 1GB root.


Edit /boot/grub/menu.lst and add an entry for the linux on hda1.
set root to (hd0,0) and append root=/dev/hda1 for the kernel line of the 
new entry.


mkdir /tmp/newroot; mount /dev/hda1 /tmp/newroot

Edit the file /tmp/newroot/boot/grub/menu.lst and replace (hd0,1) with 
(hda0,0) and root=/dev/hda2 with root=/dev/hda1. Similarly fix the root 
filesystem entry in /tmp/newroot/etc/fstab by changing /dev/hda2 to 
/dev/hda1.


Now you should be able to boot into either of your two partitions.

Once you have satisfied yourself that both are working, boot into your 
1GB partition, and resize hda1. The command resize2fs /dev/hda1 should 
be sufficient.


Restart into the 5GB parition and now you would have a 5GB root with 
over 4GB free space.


Run grub-install /dev/hda so that grub can load itself from the new 
location.


You can now copy over your home directory from the 1GB partition and 
continue using hda1. If you wish you format hda2 and mount it as /home.


Feel free to post any problems you may have and make sure you take a 
backup of important files before proceeding.


Good luck,
rajkiran


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




resize the partition with /

2007-09-30 Thread Manu Hack
Hi all,

I have a problem with an old desktop running etch.  Before it was
running XP + etch dual boot.  But recently I have deleted the whole XP
 partition.  Now the problem is I started running out of space for the
etch.  I want to resize the partition so that I can install more
programs and stuff like that.  The current partition is like

hda1 - 5G  (before running XP)
hda2 - 1G ( etch is living here)

So I'd like to resize hda2 but I can't as it said I need to unmount
hda2 before resizing.  People suggest using a live CD but it's not
possible with my old laptop (I didn't even install etch using CD, I
can only install etch via goodbyemicrosoft.com).  USB boot is also not
available.

Any suggestion would be welcome.  What I want to do is to be able to
apt-get upgrade stuff as right now I have only 5Mb of space in hda2.

Thanks a lot!

Manu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Amit Uttamchandani

You might want to try the gparted live CD 
(http://gparted.sourceforge.net/livecd.php). Boot from it and resize partitions 
on the fly.

Good Luck.

-- 
Amit Uttamchandani [EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Douglas A. Tutty
On Sun, Sep 30, 2007 at 04:17:42PM -0400, Manu Hack wrote:
 
 I have a problem with an old desktop running etch.  Before it was
 running XP + etch dual boot.  But recently I have deleted the whole XP
  partition.  Now the problem is I started running out of space for the
 etch.  I want to resize the partition so that I can install more
 programs and stuff like that.  The current partition is like
 
 hda1 - 5G  (before running XP)
 hda2 - 1G ( etch is living here)
 
 So I'd like to resize hda2 but I can't as it said I need to unmount
 hda2 before resizing.  People suggest using a live CD but it's not
 possible with my old laptop (I didn't even install etch using CD, I
 can only install etch via goodbyemicrosoft.com).  USB boot is also not
 available.
 

Have you considered reinstalling onto hda1 without removing hda2?  

Use debootstrap from your existing system.  Make a grub-disk (floppy, so
your laptop can boot it) so that you can set up your boot loader if
something happens.  

See the installation manual for installing from an existing unix system.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Marc Shapiro

Douglas A. Tutty wrote:

On Sun, Sep 30, 2007 at 04:17:42PM -0400, Manu Hack wrote:
  

I have a problem with an old desktop running etch.  Before it was
running XP + etch dual boot.  But recently I have deleted the whole XP
 partition.  Now the problem is I started running out of space for the
etch.  I want to resize the partition so that I can install more
programs and stuff like that.  The current partition is like

hda1 - 5G  (before running XP)
hda2 - 1G ( etch is living here)

So I'd like to resize hda2 but I can't as it said I need to unmount
hda2 before resizing.  People suggest using a live CD but it's not
possible with my old laptop (I didn't even install etch using CD, I
can only install etch via goodbyemicrosoft.com).  USB boot is also not
available.




Have you considered reinstalling onto hda1 without removing hda2?  
  
Or mount hda1 at some point on hda2 where you need the extra space.  
Voila!  5 GB extra space.  You could also remove hda1 and recreate 
several partitions if you want to add space at multiple points in your 
filesystem.


--
Marc Shapiro
[EMAIL PROTECTED]



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: resize the partition with /

2007-09-30 Thread Manu Hack
On 9/30/07, Douglas A. Tutty [EMAIL PROTECTED] wrote:
 On Sun, Sep 30, 2007 at 04:17:42PM -0400, Manu Hack wrote:
 
  I have a problem with an old desktop running etch.  Before it was
  running XP + etch dual boot.  But recently I have deleted the whole XP
   partition.  Now the problem is I started running out of space for the
  etch.  I want to resize the partition so that I can install more
  programs and stuff like that.  The current partition is like
 
  hda1 - 5G  (before running XP)
  hda2 - 1G ( etch is living here)
 
  So I'd like to resize hda2 but I can't as it said I need to unmount
  hda2 before resizing.  People suggest using a live CD but it's not
  possible with my old laptop (I didn't even install etch using CD, I
  can only install etch via goodbyemicrosoft.com).  USB boot is also not
  available.
 

 Have you considered reinstalling onto hda1 without removing hda2?

Not really.  Mainly because that old laptop is really old.  No other
method is available to reboot other than that 6G harddisk.

 Use debootstrap from your existing system.  Make a grub-disk (floppy, so
 your laptop can boot it) so that you can set up your boot loader if
 something happens.

Even floppy boot is not available.


 See the installation manual for installing from an existing unix system.

 Doug.



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Manu Hack
On 9/30/07, Marc Shapiro [EMAIL PROTECTED] wrote:
 Douglas A. Tutty wrote:
  On Sun, Sep 30, 2007 at 04:17:42PM -0400, Manu Hack wrote:
 
  I have a problem with an old desktop running etch.  Before it was
  running XP + etch dual boot.  But recently I have deleted the whole XP
   partition.  Now the problem is I started running out of space for the
  etch.  I want to resize the partition so that I can install more
  programs and stuff like that.  The current partition is like
 
  hda1 - 5G  (before running XP)
  hda2 - 1G ( etch is living here)
 
  So I'd like to resize hda2 but I can't as it said I need to unmount
  hda2 before resizing.  People suggest using a live CD but it's not
  possible with my old laptop (I didn't even install etch using CD, I
  can only install etch via goodbyemicrosoft.com).  USB boot is also not
  available.
 
 
 
  Have you considered reinstalling onto hda1 without removing hda2?
 
 Or mount hda1 at some point on hda2 where you need the extra space.
 Voila!  5 GB extra space.  You could also remove hda1 and recreate
 several partitions if you want to add space at multiple points in your
 filesystem.

That's what I'm doing.  But is it possible to increase the size for
apt-get upgrade and apt-get install?  Right now I can use that 5G for
personal use but for the main thing like in /usr what's the best way
to make use of that 5G?

Any good website showing how to do add space at multiple points in the
file system?

Manu


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Douglas A. Tutty
On Sun, Sep 30, 2007 at 09:08:53PM -0400, Manu Hack wrote:
 
 Even floppy boot is not available.
 
 

My old Thinkpad can do netbooting.  Can your laptop?  

Or are you saying that the _only_ way to boot this thing is with its
internal hard drive?

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Douglas A. Tutty
On Sun, Sep 30, 2007 at 09:11:50PM -0400, Manu Hack wrote:
 
 That's what I'm doing.  But is it possible to increase the size for
 apt-get upgrade and apt-get install?  Right now I can use that 5G for
 personal use but for the main thing like in /usr what's the best way
 to make use of that 5G?
 
 Any good website showing how to do add space at multiple points in the
 file system?
 
 

Put a filesystem on it (e.g. ext3), mount it under /mnt, cp -a or rsync
(or even use mc) everything under /usr, then unmount it from /mnt and
mount it as /usr.  If it works, unmount it, change /etc/fstab, remove
everything under /usr and reboot.

Your main partition filesystem will now have additional free space
equivalanet to the size of /usr.

As for detailed instructions, its in one of the HOWTOs available as
something like doc-linux-howto; I think multi-disk HOWTO.

Doug.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize the partition with /

2007-09-30 Thread Marc Shapiro

Douglas A. Tutty wrote:

On Sun, Sep 30, 2007 at 09:11:50PM -0400, Manu Hack wrote:
 
  

That's what I'm doing.  But is it possible to increase the size for
apt-get upgrade and apt-get install?  Right now I can use that 5G for
personal use but for the main thing like in /usr what's the best way
to make use of that 5G?

Any good website showing how to do add space at multiple points in the
file system?


 


Put a filesystem on it (e.g. ext3), mount it under /mnt, cp -a or rsync
(or even use mc) everything under /usr, then unmount it from /mnt and
mount it as /usr.  If it works, unmount it, change /etc/fstab, remove
everything under /usr and reboot.

Your main partition filesystem will now have additional free space
equivalanet to the size of /usr.
  

To add this space at multiple points in the filesystem:

* Use fdisk (or your favorite partitioner) to remove hda1
* Recreate hda1 as an extended partition
* Create as many logical partitions within the extended partition as you 
need

* Mount these logical partitions wherever you need them in the filesystem

--
Marc Shapiro
[EMAIL PROTECTED]



--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Can I resize my partition after installation ?

2007-06-21 Thread Kevin Mark
On Thu, Jun 21, 2007 at 12:59:25AM -0400, Andrew Barr wrote:
 On Jun 21, 2007, at 12:07 AM, arijit sarkar wrote:
 So, can i resize my /home now to make space for second root.
 or I have to reformat and do it again.
 
 Sure you can.
 
 Boot from a rescue CD, or better yet, a Debian or Ubuntu live CD, and  
 use parted or one of it's GUI frontends to reconfigure your hard disk  
 layout to your liking.
 
 Alternatively, e2resize is available but requires you to manually  
 update your partition table, which can lead to data loss and  
 corruption if you don't do it correctly.
 
 (g)parted on a live CD is your best option.
 
 Regards,
 Andrew Barr
Also, If you can, backup /home, just to make sure.

Alternatively, if you backup the /home data, then you can redo the
partitioning and remove the partition, then add back what you wanted it
to be. Then restore the /home data and proceed with your new install on
the new partitions.
-- 
|  .''`.  == Debian GNU/Linux == |   my web site:   |
| : :' :  The  Universal |mysite.verizon.net/kevin.mark/|
| `. `'  Operating System| go to counter.li.org and |
|   `-http://www.debian.org/ |be counted! #238656   |
|  my keyserver: subkeys.pgp.net | my NPO: cfsg.org |
|join the new debian-community.org to help Debian!  |
|___  Unless I ask to be CCd, assume I am subscribed ___|


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Can I resize my partition after installation ?

2007-06-21 Thread Roberto C . Sánchez
On Thu, Jun 21, 2007 at 09:37:54AM +0530, arijit sarkar wrote:
 I have debian installed on my 160gb hdd.
 
 [NOTE: this is the exact disk structure]
 / - 7gb
 swap - 2.5gb
 /home - rest 144gb
 
 now I feel, I could have used that space to install another linux OS for
 testing/exploring. so i want to know, is it possible to resize /home
 now?

Yes.  However, please look into swithing to LVM.  This will help greatly
with situations such as you are encountering now.

Regards,

-Roberto

-- 
Roberto C. Sánchez
http://people.connexer.com/~roberto
http://www.connexer.com


signature.asc
Description: Digital signature


Re: Can I resize my partition after installation ?

2007-06-21 Thread Hugo Vanwoerkom

Andrew Barr wrote:

On Jun 21, 2007, at 12:07 AM, arijit sarkar wrote:

So, can i resize my /home now to make space for second root.
or I have to reformat and do it again.


Sure you can.

Boot from a rescue CD, or better yet, a Debian or Ubuntu live CD, and 
use parted or one of it's GUI frontends to reconfigure your hard disk 
layout to your liking.


Alternatively, e2resize is available but requires you to manually update 
your partition table, which can lead to data loss and corruption if you 
don't do it correctly.



Did you mean resize2fs? I could not find e2resize anywhere.

Hugo




(g)parted on a live CD is your best option.

Regards,
Andrew Barr





--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Re: Can I resize my partition after installation ?

2007-06-21 Thread arijit sarkar
On Thu, 2007-06-21 at 10:08 -0400, Roberto C. Sánchez wrote:


 Yes.  However, please look into swithing to LVM.  This will help greatly
 with situations such as you are encountering now.
 
 Regards,
 
 -Roberto
 


thanks for all the suggestions. Since I'm switched to linux just
recently (it's been six months), I never had any idea about LVM. I'll do
that soon.

I'm learning new things everyday. 
 
- 
Arijit Sarkar
Kolkata, India
'Debian Testing' GNU/LINUX
-


Re: Can I resize my partition after installation ?

2007-06-21 Thread Andrew J. Barr
Hugo Vanwoerkom [EMAIL PROTECTED] wrote:

 Did you mean resize2fs? I could not find e2resize anywhere.

Yes, sorry.

-- 
Andrew J. Barr

Woke up in my clothes again this morning,
don't know exactly where I am...


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Can I resize my partition after installation ?

2007-06-20 Thread arijit sarkar
I have debian installed on my 160gb hdd.

[NOTE: this is the exact disk structure]
/ - 7gb
swap - 2.5gb
/home - rest 144gb

now I feel, I could have used that space to install another linux OS for
testing/exploring. so i want to know, is it possible to resize /home
now?
i want to make my hdd structure like this,

/ - 7gb (root for current debian OS)
swap - 2.5 gb (swap for both the OS)
/home - 135gb (common for both OS)
second /- 9gb (or whatever the size, for second OS's root)

I have an article, which describes how to install two linux OS with
common swap and home partition. but in that article, partitioning has
done while installing first OS, which I didn't.

So, can i resize my /home now to make space for second root.
or I have to reformat and do it again.

- 
Arijit Sarkar
Kolkata, India
'Debian Testing' GNU/LINUX
-


Re: Can I resize my partition after installation ?

2007-06-20 Thread Andrew Barr

On Jun 21, 2007, at 12:07 AM, arijit sarkar wrote:

So, can i resize my /home now to make space for second root.
or I have to reformat and do it again.


Sure you can.

Boot from a rescue CD, or better yet, a Debian or Ubuntu live CD, and  
use parted or one of it's GUI frontends to reconfigure your hard disk  
layout to your liking.


Alternatively, e2resize is available but requires you to manually  
update your partition table, which can lead to data loss and  
corruption if you don't do it correctly.


(g)parted on a live CD is your best option.

Regards,
Andrew Barr


--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]




Resize jfs partition

2005-12-27 Thread dclemen
Hi, I have / directory on a partition with jfs file system. It has
140Gb size, but I remove another partition with 40Gb that was behind /
partition. So I want to resize my / to get these 40Gb.

I read some sites to resize partitions with:

# mount -o remount,resize /home

But I thing that I can't do it with / partition.

There are any way to get it?. If not, maybe I can get any live-cd distro
and then resize it.

It is safe? (I don't want to loose my data)

Thanks

PD: fdisk /dev/sda
   Device Boot  Start End  Blocks   Id  System
/dev/sda1   *   1586447102548+   7  HPFS/NTFS
/dev/sda258656085 1775182+  82  Linux swap / Solaris
/dev/sda36086   24321   146480670   83  Linux
/dev/sda4   29500   30401 72453155  Extended
/dev/sda5   29500   30401 7245283+   b  W95 FAT32

I want to get blocks from 24321 to 29500 (29499) into dev/sda3


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Resize jfs partition

2005-12-27 Thread Dennis Stosberg
dclemen wrote:

 Hi, I have / directory on a partition with jfs file system. It has
 140Gb size, but I remove another partition with 40Gb that was behind /
 partition. So I want to resize my / to get these 40Gb.
 
 I read some sites to resize partitions with:
 
 # mount -o remount,resize /home

Yes, that syntax works with jfs, as well.  On your Debian system you
can find that information in the mount(8) manual page. Search for
Mount options for jfs.

 But I thing that I can't do it with / partition.

Jfs _is_ able to resize a file system which is in use. 
 
 There are any way to get it?. If not, maybe I can get any live-cd distro
 and then resize it.
 
 It is safe? (I don't want to loose my data)

It is safe in the way that it will work reliably without any known
errors that would lead to data loss. 

However, if a file system contains data that you cannot afford to
lose, it is _always_ a very good idea to have a current backup.  And
of course, the risk of losing data is much higher when you're
modifying file systems.

 Thanks
 
 PD: fdisk /dev/sda
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *   1586447102548+   7  HPFS/NTFS
 /dev/sda258656085 1775182+  82  Linux swap / Solaris
 /dev/sda36086   24321   146480670   83  Linux
 /dev/sda4   29500   30401 72453155  Extended
 /dev/sda5   29500   30401 7245283+   b  W95 FAT32
 
 I want to get blocks from 24321 to 29500 (29499) into dev/sda3

This involves two steps:

  (1) Use fdisk to enlarge your /dev/sda3 partition to the new
  size:  Set the last cylinder of that partition to 29499 (not
  29500 !).  You need to reboot to make the kernel use the new
  partition table.  Now the partition is 40 GB larger, but the
  file system on that partition does not fill the complete
  partition yet.

  (2) Enlarge the file system on /dev/sda3 to completely fill the
  partition with mount -o remount,resize.

Regards,
Dennis

-- 
Send personal mail to [EMAIL PROTECTED] only.  Off-list 
mails to [EMAIL PROTECTED] will not reach me.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Resize jfs partition

2005-12-27 Thread dclemen
Thanks for your reply. This afternoon I will try it.

Thanks again!!

Dennis Stosberg escribió:
 dclemen wrote:
 
 Hi, I have / directory on a partition with jfs file system. It has
 140Gb size, but I remove another partition with 40Gb that was behind /
 partition. So I want to resize my / to get these 40Gb.

 I read some sites to resize partitions with:

 # mount -o remount,resize /home
 
 Yes, that syntax works with jfs, as well.  On your Debian system you
 can find that information in the mount(8) manual page. Search for
 Mount options for jfs.
 
 But I thing that I can't do it with / partition.
 
 Jfs _is_ able to resize a file system which is in use. 
  
 There are any way to get it?. If not, maybe I can get any live-cd distro
 and then resize it.

 It is safe? (I don't want to loose my data)
 
 It is safe in the way that it will work reliably without any known
 errors that would lead to data loss. 
 
 However, if a file system contains data that you cannot afford to
 lose, it is _always_ a very good idea to have a current backup.  And
 of course, the risk of losing data is much higher when you're
 modifying file systems.
 
 Thanks

 PD: fdisk /dev/sda
Device Boot  Start End  Blocks   Id  System
 /dev/sda1   *   1586447102548+   7  HPFS/NTFS
 /dev/sda258656085 1775182+  82  Linux swap / Solaris
 /dev/sda36086   24321   146480670   83  Linux
 /dev/sda4   29500   30401 72453155  Extended
 /dev/sda5   29500   30401 7245283+   b  W95 FAT32

 I want to get blocks from 24321 to 29500 (29499) into dev/sda3
 
 This involves two steps:
 
   (1) Use fdisk to enlarge your /dev/sda3 partition to the new
   size:  Set the last cylinder of that partition to 29499 (not
   29500 !).  You need to reboot to make the kernel use the new
   partition table.  Now the partition is 40 GB larger, but the
   file system on that partition does not fill the complete
   partition yet.
 
   (2) Enlarge the file system on /dev/sda3 to completely fill the
   partition with mount -o remount,resize.
 
 Regards,
 Dennis
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



resize swap partition `in situ`, using parted

2003-10-23 Thread Simon Tod
In an attempt to redistribute disk space I'm trying to
shrink the size of my swap space.

Qtparted refuses to do the job as it's in use and the
version on my Knoppix CD doesn't appear to work. The
parted boot disk is currently unavailable from the GNU
website, so my only option at the moment appears to be
using parted on the fly. *However* parted warns me
that the partition is in use and modification could
cause severe corruption. Can I ignore this warning?
(running version 1.6.6-1 on sid).

As an aside, parted uses MB while fdisk uses
cylinders. How do I convert between the two?

Thanks!

=
---
Simon Tod
[EMAIL PROTECTED]


Want to chat instantly with your online friends?  Get the FREE Yahoo!
Messenger http://mail.messenger.yahoo.co.uk


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize swap partition `in situ`, using parted

2003-10-23 Thread Monique Y. Herman
On Thu, 23 Oct 2003 at 23:16 GMT, Simon Tod penned:
 In an attempt to redistribute disk space I'm trying to shrink the size
 of my swap space.
 
 Qtparted refuses to do the job as it's in use and the version on my
 Knoppix CD doesn't appear to work. The parted boot disk is currently
 unavailable from the GNU website, so my only option at the moment
 appears to be using parted on the fly. *However* parted warns me that
 the partition is in use and modification could cause severe
 corruption. Can I ignore this warning?  (running version 1.6.6-1 on
 sid).

Perhaps you could comment out the swap section of your fstab and reboot,
then try it?  Assuming that the system doesn't have a cow because it
can't find swap (I have no idea if it would), I would think this would
work.


 
 As an aside, parted uses MB while fdisk uses cylinders. How do I
 convert between the two?
 
 Thanks!
 
= --- Simon Tod [EMAIL PROTECTED]
 
 
 Want to chat instantly with your online friends?  Get the FREE Yahoo!
 Messenger http://mail.messenger.yahoo.co.uk
 
 


-- 
monique
Unless you need to share ultra-sensitive super-spy stuff with me, please
don't email me directly.  I will most likely see your post before I read
your mail, anyway.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize swap partition `in situ`, using parted

2003-10-23 Thread ScruLoose
On Thu, Oct 23, 2003 at 05:45:12PM -0600, Monique Y. Herman wrote:
 On Thu, 23 Oct 2003 at 23:16 GMT, Simon Tod penned:
  In an attempt to redistribute disk space I'm trying to shrink the size
  of my swap space.
  
  Qtparted refuses to do the job as it's in use and the version on my
  Knoppix CD doesn't appear to work. The parted boot disk is currently
  unavailable from the GNU website, so my only option at the moment
  appears to be using parted on the fly. *However* parted warns me that
  the partition is in use and modification could cause severe
  corruption. Can I ignore this warning?  (running version 1.6.6-1 on
  sid).
 
 Perhaps you could comment out the swap section of your fstab and reboot,
 then try it?  Assuming that the system doesn't have a cow because it
 can't find swap (I have no idea if it would), I would think this would
 work.

Alternatively, check out the swapoff command.

And I'm given to understand that you DO NOT want to simply ignore
parted's warning about modifying an in-use partition.

Cheers
-- 
,-.
   -ScruLoose-   | If I had a dog as daft as you, I'd shoot him. 
  Please do not  |   - Scottish Proverb  
 reply off-list. |   
`-'


pgp0.pgp
Description: PGP signature


resize riserfs partition

2002-07-14 Thread listadebian
Hola listaaa.

 Me encuentro con un problema, y a ver si alguno me puede ayudar.

 tengo un portatil con un HD de 20

   hda1  IBM Thinkpad hibernation
   hda2  NTFS  2,5Gig
   hda3  linux 17Gig
   hda4  linux swap260Mb

 hda3 realmente es esta en reiserfs.
 Bueno ahora el problema esta en que necesito mas espacio para el
 puñetero windows (ya q no uso solo yo).

 Por lo cual quiero modificar el tamaño del hda3 y crear otra
 particion.

 fdisk no tiene opcion resize
 parted tiene opcion resize pero aun no soporta reiserfs
 he usado el resize_reiserfs y le he quitado 1,5Gigas, pero el
 fdisk sige detectandome los 17Gig pero hago un df y me muestra
 que availables hay 15,5Gigas.

 Total que no se como modificar el tamaño de la particion.

 A ver si alguno de vosotros me puede ayudar o darme alguna idea
  

-- 
Saludos,
 listadebian  mailto:[EMAIL PROTECTED]


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: resize riserfs partition

2002-07-14 Thread Dr. Aldo Medina
listadebian wrote:
 
 Hola listaaa.
 
  Me encuentro con un problema, y a ver si alguno me puede ayudar.
 
  tengo un portatil con un HD de 20
 
hda1  IBM Thinkpad hibernation
hda2  NTFS  2,5Gig
hda3  linux 17Gig
hda4  linux swap260Mb
 
  hda3 realmente es esta en reiserfs.
  Bueno ahora el problema esta en que necesito mas espacio para el
  puñetero windows (ya q no uso solo yo).
 
  Por lo cual quiero modificar el tamaño del hda3 y crear otra
  particion.
 
  fdisk no tiene opcion resize
  parted tiene opcion resize pero aun no soporta reiserfs
  he usado el resize_reiserfs y le he quitado 1,5Gigas, pero el
  fdisk sige detectandome los 17Gig pero hago un df y me muestra
  que availables hay 15,5Gigas.
 
  Total que no se como modificar el tamaño de la particion.
 
  A ver si alguno de vosotros me puede ayudar o darme alguna idea

No lo sé, pero no será que resize_reiserfs modifica sólo el sistema de
archivos y te falta modificar la tabla de particiones?

-- 
Linux User #98419 -o)| Haga trabajar a un diputado... ¡No 
http://counter.li.org  /\| lo reelija!  
ICQ 94335020  _\_v   | 
 | 
 |


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



How to resize root partition?

1999-08-07 Thread a
I have Debian 1.2 on hda3 (350M). Is it possible to resize it to 300M?

If this isn't possible, is it possible to cp hda3 to hda2 and run from hda2?

Please reply to [EMAIL PROTECTED] because I will leave the list in a minute.


Re: How to resize root partition?

1999-08-07 Thread Marcin Owsiany
Hello!

On Sat, Aug 07, 1999 at 09:06:05PM +0800, a wrote:
 I have Debian 1.2 on hda3 (350M). Is it possible to resize it to 300M?

as far as i know - it's not possible..

 If this isn't possible, is it possible to cp hda3 to hda2 and run from hda2?
this is possible (actually i did something similar yesterday :-):

mke2fs /dev/hda2
mount /dev/hda2 /mnt
cd /mnt
cp -axv /* .
edit /mnt/etc/lilo.conf and change hda3-s to hda2-s
insert a floppy into drive0 and:
cp /vmlinuz /dev/fd0
rdev /dev/fd0 /dev/hda2
reboot
lilo

that's it!! :)
 
 Please reply to [EMAIL PROTECTED] because I will leave the list in a minute.
 
 
 -- 
 Unsubscribe?  mail -s unsubscribe [EMAIL PROTECTED]  /dev/null
 
[--- snip ---]

-- 

-
Marcin Owsiany
[EMAIL PROTECTED]
-