John Layt wrote: > On Mon, 29 Aug 2005 18:49, Travis Crook wrote: > >>Hi all, >> I have a server running 9.1 that has a second hard drive that is >>not doing anything at the moment. I would like to remove it and use it >>elsewhere but when I take it out I get an error on boot that says it >>must repair the file system on /dev/hdb7 (which is on the second hard >>drive). I tell it to fix the errors (ignoring the "Warning: you may >>damage your files) and then let it reboot. It comes right back to the >>same place and won't do a full boot. > > > Bryan's already given a couple of options, but there is a third if you're > happy editing files from the command line. Once you get to the error > message, it should give you the option of logging in as root in order to fix > the 'error', do so, then use your favourite editor to edit /etc/fstab to > remove all entries for entries for /dev/hdb, e.g.: > vim-enhanced /etc/fstab > > Works for me everytime I have hassles with my external drive. > > Cheers! > > John. > Another interesting way to do it:
grep -v /dev/hdb /etc/fstab > /etc/fstab.tmp mv /etc/fstab /etc/fstab.save mv /etc/fstab.tmp /etc/fstab Mikkel -- Do not meddle in the affairs of dragons, for thou art crunchy and taste good with Ketchup!
____________________________________________________ Want to buy your Pack or Services from Mandriva? Go to http://store.mandriva.com Join the Club : http://www.mandrivaclub.com ____________________________________________________
