Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In the beginning I had Debian 6 running on one hard drive (/dev/sda1). Then I decided to keep all my stuff(pics, videos, etc..) in another slave hard drive (/dev/sdb1).

So sda1 has Debian OS sdb1 doesn't contain any OS files

I have made it to mount automatically by adding a row in /etc/fstab (UUID and directory to mount to)

Time have passed and when I tried to change that secondary hard drive with another hard drive with bigger capacity, for some reason Debian won't boot (just itself sda1) after removing secondary hard drive (sdb1)

But if I plug sdb1 back, it boots just fine.

I tried to comment line out from /etc/fstab, so it doesn't mount And also did update-grub after umount /dev/sdb1

What's the right way to remove hard drive secondary hard drive?

share|improve this question
What do you mean by "don't boot" ? Do you see grub at startup ? If not, this means that grub was installed on sdb. You have to install grub on sda. –  Olivier S Nov 27 '11 at 8:04
It doesn't show anything.. Seems like Debian fails to load, then BIOS of my computer tries to boot from CD, Network, etc.. after failing to boot from hard drive.. –  Daveel Nov 27 '11 at 8:12
Ok, so you do not have grub installed on your first drive. Boot again with both drives and run grub-install /dev/sda –  Olivier S Nov 27 '11 at 8:14
Nope, it didn't help.. –  Daveel Nov 27 '11 at 8:27
Is the parttion to boot from (where boot files reside) marked as bootable? –  Martin Vejmelka Nov 27 '11 at 8:45
show 3 more comments

migrated from serverfault.com Nov 27 '11 at 19:43

This question came from our site for professional system and network administrators.

closed as too localized by Mat, Michael Mrozek Feb 25 '12 at 17:41

This question is unlikely to help any future visitors; it is only relevant to a small geographic area, a specific moment in time, or an extraordinarily narrow situation that is not generally applicable to the worldwide audience of the internet. For help making this question more broadly applicable, visit the help center.If this question can be reworded to fit the rules in the help center, please edit the question.