Re: move / to a new hard-drive
- From: "Yerfdoggy" <yerfdog_a@xxxxxxxxxxxx>
- Date: 27 Mar 2006 14:54:31 -0800
SOLUTION: I finally figured it out myself. I'm posting this in case it
helps someone else. Before trying this, make sure you have a boot-disk
and test you can get into rescue mode in case it all goes pear-shaped.
I tar-ed up the entire file structure of my existing / directory
(except for /boot, which is to remail unaltered, since it mounts on
/dev/hda1 already). Then:
#cd /
#mkdir new_root
#mount /dev/hda3 new_root
#mv *.tar new_root
#cd new_root
Untar all the tarballs here using tar xf <name of tarball>
Now I have a complete copy of my root directory structure on the new
partition.
#rm -f *.tar (tarballs are no longer needed)
#cd /
#umount new_root (directory no longer needed)
Now I can try to point the grub loader to the new location. RedHat 9
supports LABELS to refer to file-systems. File /etc/grub/grub.conf
refers to the location of the root directory by the Label "/". I used
the e2label command as follows:
#e2label /dev/hdc1 old_root (re-labels file-system of existing "/"
label to free the label)
#e2label /dev/hda3 / (gives the new pertition the "/" label)
reboot the system. It worked for me.
.
- Follow-Ups:
- Re: move / to a new hard-drive
- From: Kringe
- Re: move / to a new hard-drive
- References:
- move / to a new hard-drive
- From: Yerfdoggy
- move / to a new hard-drive
- Prev by Date: Re: RAID easy?
- Next by Date: Re: move / to a new hard-drive
- Previous by thread: move / to a new hard-drive
- Next by thread: Re: move / to a new hard-drive
- Index(es):
Relevant Pages
|