Hi Guys,
I'm fairly new to Linux and I'm trying to un install a hard drive from my Centos 5.1 box running KDE. When I built the PC, I installed two 500 gig maxtors in the tower, then I installed Centos. Now I've decided that I want to remove the slave drive and use it as an external backup drive - I am mounting it into one of those external drive cases with a built in fan.
When I physically removed the drive and restarted the PC, centos would not boot up and went into a kernel panic. I'm sure I'm supposed to somehow unmount the thing before I do this, and that's my question - how do I un-install the hard drive - software wise - so that on next boot up, centos don't go crazy looking for it?
____________________________________________________________________________________ Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ
Pam Astor wrote:
Hi Guys,
I'm fairly new to Linux and I'm trying to un install a hard drive from my Centos 5.1 box running KDE. When I built the PC, I installed two 500 gig maxtors in the tower, then I installed Centos. Now I've decided that I want to remove the slave drive and use it as an external backup drive - I am mounting it into one of those external drive cases with a built in fan.
When I physically removed the drive and restarted the PC, centos would not boot up and went into a kernel panic. I'm sure I'm supposed to somehow unmount the thing before I do this, and that's my question - how do I un-install the hard drive - software wise - so that on next boot up, centos don't go crazy looking for it?
run # mount this will show the mounted partitions. find the partitions that are on the second drive and unmount them: # umount /path/to/partition if a service uses them, you'll see an error. you will need to fix the errors until you can unmount them. then comment out these partitions in /etc/fstab.
Pam Astor wrote:
When I physically removed the drive and restarted the PC, centos would not boot up and went into a kernel panic. I'm sure I'm supposed to somehow unmount the thing before I do this, and that's my question - how do I un-install the hard drive - software wise - so that on next boot up, centos don't go crazy looking for it?
If the machine panics at boot time, there is a good chance that you installed with LVM and its got both the drives into one volume. You will need to reinstall that second harddrive, then work out the process of shrinking the filesystem down to only 1 drive, then remove the second drive. The scope of this work might be too much for an email, so I can best point you at the LVM HowTo. There are also some good lvm tips in the CentOS5 docs ( http://www.centos.org/docs/5/ )