[SLE] HDD Upgrade
I have SUSE 10.1 installed on a machine here with a 40G HDD. I have just received a new 80GB drive. I want to replace the 40G that is partition as follows: Dell partition, /boot partition, swap partition and / (root). I have imaged the machine (used systemrescuecd) and copied everything to the new HDD and resizing the / partition using qtparted to include the free space. I disconnected the old HDD and booted with the new drive and the system is up and running. However, when I do a df -h it still shows the / partition at about 36G. Filesystem Size Used Avail Use% Mounted on /dev/hda4 36G 5.2G 31G 15% / udev 506M 184K 506M 1% /dev /dev/hda3 502M 40M 463M 8% /boot I've never done this before, so am I missing a step here? What do I need to do to get the / partition to recognize it is now larger? Thanks, Brian -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Monday 31 July 2006 23:07, Brian Blater (BBList) wrote: ...
and / (root). I have imaged the machine (used systemrescuecd) and copied everything to the new HDD and resizing the / partition using ... qtparted to include the free space. I disconnected the old HDD and booted with the new drive and the system is up and running. However, when I do a df -h it still shows the / partition at about 36G.
Imaging stores the partition table, which means it also stores the size of your partitions. Somewhere on your drive you have 40GB of unused space. You don't just "get a larger partition" by installing a new drive - you have to partition it to be the size you want it to be. i recommend doing a full (clean) install on your new drive, repartitioning it as you want. However, 30GB+ is overkill for the root partition. In general 10GB is all you'll ever need in a root partition. Put the rest of the space in /home (or, even better, put /home on a second drive - your old 40GB drive). -- ----- stephan@s11n.net http://s11n.net "...pleasure is a grace and is not obedient to the commands of the will." -- Alan W. Watts
On Jul 31, 2006, at 5:51 PM, stephan beal wrote:
On Monday 31 July 2006 23:07, Brian Blater (BBList) wrote: ...
and / (root). I have imaged the machine (used systemrescuecd) and copied everything to the new HDD and resizing the / partition using ... qtparted to include the free space. I disconnected the old HDD and booted with the new drive and the system is up and running. However, when I do a df -h it still shows the / partition at about 36G.
Imaging stores the partition table, which means it also stores the size of your partitions. Somewhere on your drive you have 40GB of unused space. You don't just "get a larger partition" by installing a new drive - you have to partition it to be the size you want it to be. i recommend doing a full (clean) install on your new drive, repartitioning it as you want. However, 30GB+ is overkill for the root partition. In general 10GB is all you'll ever need in a root partition. Put the rest of the space in /home (or, even better, put /home on a second drive - your old 40GB drive).
Or, better yet leave the 40 GB the boot disk and make the 80 GB home. Having the 80 for home will free up space on the 40 for the other partitions, but the home partitions usually take up the most space as that is where all your "stuff" is. Thanks, George -- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
On Mon, Jul 31, 2006 at 7:36 PM, in message <9CABE881-FDF7-4A5B-98D9-EB7BEABC7AB8@mac.com>, <suse_gasjr4wd@mac.com> wrote:
Or, better yet leave the 40 GB the boot disk and make the 80 GB home. Having the 80 for home will free up space on the 40 for the other partitions, but the home partitions usually take up the most space as that is where all your "stuff" is.
I think I will give this a shot and put the 40G back as the main drive and mount /home to the 80G. Since I've never done this before, let me know if these are the correct steps: 1. copy -a or tar /home to /oldhome. 2. partition new drive 3. mkdir /home on new drive 4. mount new drive and move the old /oldhome files to /home 5. modify /etc/fstab to include /dev/hdxx /home reiserfs acl,user_xattr 1 3 I think that about does it. Does this look correct? Thanks, Brian
On Mon, Jul 31, 2006 at 7:36 PM, in message <9CABE881-FDF7-4A5B-98D9-EB7BEABC7AB8@mac.com>, <suse_gasjr4wd@mac.com> wrote:
Or, better yet leave the 40 GB the boot disk and make the 80 GB home. Having the 80 for home will free up space on the 40 for the other partitions, but the home partitions usually take up the most space as that is where all your "stuff" is.
I think I will give this a shot and put the 40G back as the main drive and mount /home to the 80G. Since I've never done this before, let me know if these are the correct steps: 1. copy -a or tar /home to /oldhome. 2. partition new drive 3. mkdir /home on new drive 4. mount new drive and move the old /oldhome files to /home 5. modify /etc/fstab to include /dev/hdxx /home reiserfs acl,user_xattr 1 3
I think that about does it. Does this look correct?
Thanks, Brian Just an observation: If you copy the /home directory to /oldhome(or what ever), the Home
On Tue, 2006-08-01 at 08:46 -0400, Brian Blater (BBList) wrote: directory will still be there when you create the new /home directory on the new drive. I'd be inclined to backup the home dir on to a dvd or cdrom then use move (mv) top change the directory name, then copy in to the new home dir. Richard
On 01/08/06 06:46, Brian Blater (BBList) wrote:
On Mon, Jul 31, 2006 at 7:36 PM, in message
<9CABE881-FDF7-4A5B-98D9-EB7BEABC7AB8@mac.com>, <suse_gasjr4wd@mac.com> wrote:
Or, better yet leave the 40 GB the boot disk and make the 80 GB home. Having the 80 for home will free up space on the 40 for the other partitions, but the home partitions usually take up the most space as that is where all your "stuff" is.
I think I will give this a shot and put the 40G back as the main drive and mount /home to the 80G. Since I've never done this before, let me know if these are the correct steps: 1. copy -a or tar /home to /oldhome. 2. partition new drive 3. mkdir /home on new drive 4. mount new drive and move the old /oldhome files to /home 5. modify /etc/fstab to include /dev/hdxx /home reiserfs acl,user_xattr 1 3 logout all users login as root mv /home /oldhome make /etc/fstab entry for /home mount /home move contents of /oldhome to /home delete /oldhome and contents (rm -R /oldhome, IIRC)
On 01/08/06 09:45, Darryl Gregorash wrote:
On 01/08/06 06:46, Brian Blater (BBList) wrote:
On Mon, Jul 31, 2006 at 7:36 PM, in message
<9CABE881-FDF7-4A5B-98D9-EB7BEABC7AB8@mac.com>, <suse_gasjr4wd@mac.com> wrote:
Or, better yet leave the 40 GB the boot disk and make the 80 GB home. Having the 80 for home will free up space on the 40 for the other partitions, but the home partitions usually take up the most space as that is where all your "stuff" is.
I think I will give this a shot and put the 40G back as the main drive and mount /home to the 80G. Since I've never done this before, let me know if these are the correct steps: 1. copy -a or tar /home to /oldhome. 2. partition new drive 3. mkdir /home on new drive 4. mount new drive and move the old /oldhome files to /home 5. modify /etc/fstab to include /dev/hdxx /home reiserfs acl,user_xattr 1 3
logout all users login as root mv /home /oldhome make /etc/fstab entry for /home mount /home move contents of /oldhome to /home delete /oldhome and contents (rm -R /oldhome, IIRC)
Oops, to preserve permissions, links, etc more easily, "move contents of /oldhome to /home" should be: cp --preserve /oldhome/* /home
On Tue, 2006-08-01 at 09:53 -0600, Darryl Gregorash wrote:
On 01/08/06 09:45, Darryl Gregorash wrote:
logout all users login as root mv /home /oldhome make /etc/fstab entry for /home mount /home move contents of /oldhome to /home delete /oldhome and contents (rm -R /oldhome, IIRC)
Oops, to preserve permissions, links, etc more easily, "move contents of /oldhome to /home" should be:
cp --preserve /oldhome/* /home
rsync -ar works a treat and preserves owner/modes. -- Ken Schneider UNIX since 1989, linux since 1994, SuSE since 1998
On Tue, Aug 1, 2006 at 2:10 PM, in message <1154455841.24041.24.camel@pc5.bout-tyme.net>, suse-list2@bout-tyme.net wrote:
On Tue, 2006- 08- 01 at 09:53 - 0600, Darryl Gregorash wrote:
On 01/08/06 09:45, Darryl Gregorash wrote:
logout all users login as root mv /home /oldhome make /etc/fstab entry for /home mount /home move contents of /oldhome to /home delete /oldhome and contents (rm - R /oldhome, IIRC)
Oops, to preserve permissions, links, etc more easily, "move contents of /oldhome to /home" should be:
cp -- preserve /oldhome/* /home
rsync - ar works a treat and preserves owner/modes.
Thank you everyone for filling in the blanks. I will give this a shot later tonight and see how it goes. Luckily /home does not have a bunch of data. I will try the rsync -ar and if not that the cp --preserve. Thanks, Brian
logout all users login as root mv /home /oldhome make /etc/fstab entry for /home mount /home move contents of /oldhome to /home delete /oldhome and contents (rm - R /oldhome, IIRC)
Oops, to preserve permissions, links, etc more easily, "move contents of /oldhome to /home" should be:
I do not know what happened to your `mv` but mine certainly keeps permissions and stuff. And, I'd say that's default because mv does not have a -p option.
cp -- preserve /oldhome/* /home
rsync - ar works a treat and preserves owner/modes.
You certainly want -HSa. (And note that -r is in -a)
Thank you everyone for filling in the blanks. I will give this a shot later tonight and see how it goes. Luckily /home does not have a bunch of data. I will try the rsync -ar and if not that the cp --preserve.
Thanks, Brian
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Jan Engelhardt --
<snip>
Oops, to preserve permissions, links, etc more easily, "move contents of /oldhome to /home" should be:
I do not know what happened to your `mv` but mine certainly keeps permissions and stuff. And, I'd say that's default because mv does not have a -p option. That's my remark you're referring to. I didn't see explicitly in the manpage that permissions are preserved with 'mv', and didn't recall if
On 03/08/06 02:09, Jan Engelhardt wrote: they are.
On Tuesday 01 August 2006 19:10, Ken Schneider wrote:
On Tue, 2006-08-01 at 09:53 -0600, Darryl Gregorash wrote:
On 01/08/06 09:45, Darryl Gregorash wrote:
logout all users login as root mv /home /oldhome make /etc/fstab entry for /home mount /home move contents of /oldhome to /home delete /oldhome and contents (rm -R /oldhome, IIRC)
Oops, to preserve permissions, links, etc more easily, "move contents of /oldhome to /home" should be:
cp --preserve /oldhome/* /home
rsync -ar works a treat and preserves owner/modes.
Hi Ken Yep, that's what I used frequently when preparing to move from my old 80Gb to the new 250Gb drive. Worked a treat and was intelligent enough not to synch every file every time. Took a bit of time on the initial synch, then I could take my time and, when comfortable with the contents of the new disk, do a final switchover. Pretty painless. Cheers Pete
login as root backup all !!!
2. partition new drive (one primary partition is fine)
logout all users
init 1 will do and enter maintenance mode
mv /home /oldhome (rename, wont use more disk room)
mkdir /home as mounting point
mount /home /your new disk partition (hdb1?)
make /etc/fstab entry for /home (5. modify /etc/fstab to include /dev/hdxx /home reiserfs acl,user_xattr 1 3)
move contents of /oldhome to /home mv wont do across disks AKAIK. cp -a or tar instead
return to init 3 or 5 (your usual one) test and retest the move, where there soft links in /home? wait some time before
delete /oldhome and contents (rm -R /oldhome, IIRC)
double check all!!! jdd -- http://www.dodin.net http://dodin.org/galerie_photo_web/expo/index.html http://lucien.dodin.net http://fr.susewiki.org/index.php?title=Gérer_ses_photos
On 01/08/06 10:53, jdd sur free wrote:
<snip>
mv /home /oldhome (rename, wont use more disk room)
mkdir /home as mounting point Doh!
mount /home /your new disk partition (hdb1?)
make /etc/fstab entry for /home (5. modify /etc/fstab to include /dev/hdxx /home reiserfs acl,user_xattr 1 3) If the fstab entry is made first, then you only need "mount /home", no need to type anything else.
move contents of /oldhome to /home mv wont do across disks AKAIK. cp -a or tar instead
Probably cp -a is best, at least IMO (which also makes a correction to my correction -- I forgot to specify a recursive copy).
return to init 3 or 5 (your usual one)
test and retest the move, where there soft links in /home?
cp --preserve, or perhaps cp --preserve=all, will copy soft links as links.
On Mon, Jul 31, 2006 at 5:51 PM, in message <200607312351.43378.stephan@s11n.net>, stephan beal <stephan@s11n.net> wrote:
Imaging stores the partition table, which means it also stores the size of your partitions. Somewhere on your drive you have 40GB of unused space. You don't just "get a larger partition" by installing a new drive - you have to partition it to be the size you want it to be. i recommend doing a full (clean) install on your new drive, repartitioning it as you want. However, 30GB+ is overkill for the root partition. In general 10GB is all you'll ever need in a root partition. Put the rest of the space in /home (or, even better, put /home on a second drive - your old 40GB drive).
Thanks, I guess the ghosting/imaging method is different on linux. You learn something new every day. Is 10G for root really enough? It seams most apps etc. get placed in /opt or /var/opt. Anyways, as someone else suggested, I may go back to the 40G for my main drive and mount /home on the 80G. Brian
participants (9)
-
Brian Blater (BBList)
-
Darryl Gregorash
-
Jan Engelhardt
-
jdd sur free
-
Ken Schneider
-
Pete Connolly
-
Richard Bown
-
stephan beal
-
suse_gasjr4wd@mac.com