Click to See Complete Forum and Search --> : Changing Hard Disks
lazyboy
08-19-2001, 05:44 AM
Dear LNO people,
I have a hard disk (/dev/hdc) dedicated to Red hat 7.1. I plan to transfer the hhard disk to /dev/hdb. How do I change the /etc/fstab setting? Do i use a bootdisk or let Red Hat boot for itself?
bdg1983
08-19-2001, 02:21 PM
Your going to physically move the drive from secondary/master to primary/slave?
Edit /etc/fstab and /etc/lilo.conf and change all the instances of hdc to hdb making sure that if you had a device already on hdb to remove those entries or change them to wherever the device is now going to be.
Shutdown, poweroff and swap the drive.
I believe that's all that is required. Anyone else?
Linuxcool
08-19-2001, 11:38 PM
How are you booting into linux? If you're using lilo, it won't be able to find its files to boot. You'll have to tell it at the lilo boot prompt where your root partition is. I believe root=/dev/hdb?. Substitute your root partition number for the ' ? '. The entire command I think will be this:linux root=/dev/hdb?. Also, after you boot up, as root run /sbin/lilo to update lilo.
[ 19 August 2001: Message edited by: Linuxcool ]
lazyboy
08-20-2001, 06:11 PM
By the way, I use lilo to boot. My LILO is installed in the MBR. I am going to physically transfer the drive. I am using Red Hat 7.1. How about this...
I'll transfer the drive to primary slave then I will boot into linux by typing linux root=/dev/hdb11 at the lilo prompt. After that, how can linux mount the filesystems on startup?
bdg1983
08-20-2001, 06:25 PM
As we already suggested, modify /etc/fstab to reflect the changes to all the filesystems that were mounting to the original to what it will be now and also modify /etc/lilo.conf and make whatever changes are required.
i.e. if the original was hdc then change them all to hdb.
Rerun lilo to write the changes.