WARNING: This server is unstable and will be retired in the next days. If you want to keep this forum available, please request immediately a migration on the Nabble Support forum. Forums that don't receive any migration request will be deleted forever.

net6501 drive detection order

View: New views
3 Messages — Rating Filter:   Alert me  

net6501 drive detection order

by Shane O'Cain :: Rate this Message:

| View Threaded | Show Only this Message

I am setting up a net6501 with the mSSD as primary boot drive with USB as a backup. Boot order is set to 80 81 ,etc as comes default. Both will boot fine but problem is that sometimes SSD is detected as hd0 but then hd1 others, not giving me consistency with which drive is booting per boot drive settings. Is there something that can be done?

Thanks,
Shane

_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: net6501 drive detection order

by Shane O'Cain :: Rate this Message:

| View Threaded | Show Only this Message

Turns out that the random boot was not related to drive detection
order, or comBIOS. Both drives had the same label and grub was
configured to boot with  root=LABEL=ROOT_FS set by Voyage install. I
changed grub title so I always knew which disk bios was booting first,
and it was always detecting the mSATA card first. Since both were
labeled ROOT_FS that was causing the inconsistency. Just to help
others that may encounter this, here's some options:

If you want to continue to boot with labels, which may be preferable
so /dev/sd? doesn't matter, then change the label by running "e2label
/dev/sda1 LABELNAME" (Label can be checked with "e2label -L /dev/sda1"

After labeling both disks that my menu.lst looked like:
title Voyage Linux 0.8 - 1st Disk (CURRENTLY ON SSD)
root (hd0,0)
kernel /vmlinuz root=LABEL=SSD  console=ttyS0,9600n8
initrd /initrd.img

title Voyage Linux 0.8 - 2nd Disk
root (hd1,0)
kernel /vmlinuz root=LABEL=USB  console=ttyS0,9600n8
initrd /initrd.img

To leave labels as-is, and boot with /dev/sda1, /dev/sdb1, etc then
just change menu.lst to "root=/dev/sda1", etc.

title Voyage Linux 0.8 - /dev/sda1
root (hd1,0)
kernel /vmlinuz root=/dev/sda1  console=ttyS0,9600n8
initrd /initrd.img

title Voyage Linux 0.8 - /dev/sdb1
root (hd1,0)
kernel /vmlinuz root=/dev/sdb1  console=ttyS0,9600n8
initrd /initrd.img

Voyage is Debian based, and I know others such as RedHat use different
methods regarding this grub setting, so this may not work in all
distros or scenarios.

On Tue, Mar 6, 2012 at 2:36 PM, Shane O'Cain <socain00@...> wrote:
> I am setting up a net6501 with the mSSD as primary boot drive with USB as a
> backup. Boot order is set to 80 81 ,etc as comes default. Both will boot
> fine but problem is that sometimes SSD is detected as hd0 but then hd1
> others, not giving me consistency with which drive is booting per boot drive
> settings. Is there something that can be done?
>
> Thanks,
> Shane
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech

Re: net6501 drive detection order

by Shane O'Cain :: Rate this Message:

| View Threaded | Show Only this Message

Correction: to list the label it is "e2label /dev/sda1" without the -L

On Tue, Mar 13, 2012 at 3:34 PM, Shane O'Cain <socain00@...> wrote:

> Turns out that the random boot was not related to drive detection
> order, or comBIOS. Both drives had the same label and grub was
> configured to boot with  root=LABEL=ROOT_FS set by Voyage install. I
> changed grub title so I always knew which disk bios was booting first,
> and it was always detecting the mSATA card first. Since both were
> labeled ROOT_FS that was causing the inconsistency. Just to help
> others that may encounter this, here's some options:
>
> If you want to continue to boot with labels, which may be preferable
> so /dev/sd? doesn't matter, then change the label by running "e2label
> /dev/sda1 LABELNAME" (Label can be checked with "e2label -L /dev/sda1"
>
> After labeling both disks that my menu.lst looked like:
> title Voyage Linux 0.8 - 1st Disk (CURRENTLY ON SSD)
> root (hd0,0)
> kernel /vmlinuz root=LABEL=SSD  console=ttyS0,9600n8
> initrd /initrd.img
>
> title Voyage Linux 0.8 - 2nd Disk
> root (hd1,0)
> kernel /vmlinuz root=LABEL=USB  console=ttyS0,9600n8
> initrd /initrd.img
>
> To leave labels as-is, and boot with /dev/sda1, /dev/sdb1, etc then
> just change menu.lst to "root=/dev/sda1", etc.
>
> title Voyage Linux 0.8 - /dev/sda1
> root (hd1,0)
> kernel /vmlinuz root=/dev/sda1  console=ttyS0,9600n8
> initrd /initrd.img
>
> title Voyage Linux 0.8 - /dev/sdb1
> root (hd1,0)
> kernel /vmlinuz root=/dev/sdb1  console=ttyS0,9600n8
> initrd /initrd.img
>
> Voyage is Debian based, and I know others such as RedHat use different
> methods regarding this grub setting, so this may not work in all
> distros or scenarios.
>
> On Tue, Mar 6, 2012 at 2:36 PM, Shane O'Cain <socain00@...> wrote:
>> I am setting up a net6501 with the mSSD as primary boot drive with USB as a
>> backup. Boot order is set to 80 81 ,etc as comes default. Both will boot
>> fine but problem is that sometimes SSD is detected as hd0 but then hd1
>> others, not giving me consistency with which drive is booting per boot drive
>> settings. Is there something that can be done?
>>
>> Thanks,
>> Shane
_______________________________________________
Soekris-tech mailing list
Soekris-tech@...
http://lists.soekris.com/mailman/listinfo/soekris-tech