PDA

View Full Version : [all variants] Remove HDD breaks headless server



mikulator
February 20th, 2012, 09:50 AM
I have a headless machine (running myhtbuntu) with several HDD installed.

Physically removing a non OS drive breaks the server so much that I cannot connect to it via VNC.

The issue concerns me because I suspect a defect HDD would also prevent me from connecting.

I could of course use RAID, for various reasons I choose not to.


This leeds to the following questions


1) what is the be way to remove the drive and not breaking the system?
2) what preventive actions (other than RAID) can I implement?

Cheers

MartyBuntu
February 20th, 2012, 12:15 PM
I wonder if logging in to your machine, deleting the fstab file and then sending the shutdown command, followed by removing the drive would work. Logically, a new fstab file should be rebuilt when you boot up again.

mikulator
February 20th, 2012, 12:34 PM
I suspect you are right, but I don't know if I have the nerves to do that.

I also agree that it is most likely that it is fstab that gives the error preventing the proper boot.

Cheers

MartyBuntu
February 20th, 2012, 12:57 PM
I've done this before to cure fussy GRUB issues.

Of course, you could always backup your fstab file and restore it later, if you need.

mikulator
February 20th, 2012, 02:37 PM
well the problem is if I break the server the I see nothing and will have the task of booting form CD/USB and restoring fstab.