Grub and Removable Hard Drive

Hello all,

I’m installing openSuse to run a file server and kerberos/ldap server for my home network. This server also does backups. To that end, I have a swappable hard drive bay in the server. It’s connected to SATA, but the data does not seem to support hot swap, even in AHCI mode. But my problem right now is that when I removed the backup hard drive, GRUB gave me error 21 and now can’t find the root partition. At this point, I think I need to do a new install. That’s ok, there was no data on the computer and I should probably upgrade to 12.1 anyway.

My main question is, how do I stop this from happening again? Is there some different way I can setup my GRUB configuration? Some different partition configuration? One of the main reasons for this file server is to have reliable backups. The system is hosed, so I can’t access my boot configuration file. But here is my current partition configuration:

Internal Hard Drive (Sata):
sda/1: Primary partition. Mounted as /export

Swappable Drive Bay (Sata, no hot swap):
sdb/1: Primary partition. Mounted as /backup

USB Drive (Permanently plugged in. Never removed.):
sdc/1: Primary partition. Mounted as SWAP
sdc/2: Primary partition. Mounted as /

On 01/04/2012 09:26 PM, nickninevah wrote:
>
> Hello all,
>
> I’m installing openSuse to run a file server and kerberos/ldap server
> for my home network. This server also does backups. To that end, I
> have a swappable hard drive bay in the server. It’s connected to SATA,
> but the data does not seem to support hot swap, even in AHCI mode. But
> my problem right now is that when I removed the backup hard drive, GRUB
> gave me error 21 and now can’t find the root partition. At this point,
> I think I need to do a new install. That’s ok, there was no data on the
> computer and I should probably upgrade to 12.1 anyway.
>
> My main question is, how do I stop this from happening again? Is there
> some different way I can setup my GRUB configuration? Some different
> partition configuration? One of the main reasons for this file server
> is to have reliable backups. The system is hosed, so I can’t access my
> boot configuration file. But here is my current partition
> configuration:
>
> Internal Hard Drive (Sata):
> sda/1: Primary partition. Mounted as /export
>
> Swappable Drive Bay (Sata, no hot swap):
> sdb/1: Primary partition. Mounted as /backup
>
> USB Drive (Permanently plugged in. Never removed.):
> sdc/1: Primary partition. Mounted as SWAP
> sdc/2: Primary partition. Mounted as /

If you look at what happens when you remove the swappable drive, you then have
sda as now, but the USB drive moves to sdb but the system is still trying to
boot from sdc.

If your BIOS allows, change the order of the drives so that the USB drive is
second, and the swappable drive bay is third.