[lug] slot independent grub configuration

stimits at comcast.net stimits at comcast.net
Fri Sep 24 16:25:56 MDT 2010


I'm trying to create a chain loading grub config for three disks, such that they will not care which slot they are in. The machine uses hot swap bays, and I am installing three versions of linux on three disks, with no other disk present during the install. Each of the partitions are given disk labels, which can be referred to for boot, root, and swap partitions, and are unique so they do not collide. The labels all follow the pattern of NAME_boot, NAME_root, or NAME_swap. On the "kernel" line of the grub config, it is easy to do "root=LABEL=NAME_root". What has me stumped is the line for finding the bootup device, e.g., "root (hd2,1)". I didn't want to tie the boot entry to a specific hd like (hd2). I would instead like to do something like "root LABEL=NAME_boot", but this is not valid syntax. I could simply make entries to "root (hd0,1)", "root (hd1,1)", and "root (hd2,1)", but then I could not match the title to what is being booted unless the disks are in specific slots...all of the disks would be bootable this way, but the title would either have to be generic or slot dependent. Is there a way to do something like "root LABEL=NAME_boot"?

Thanks,

D. Stimits, stimits AT comcast DOT net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lug.boulder.co.us/pipermail/lug/attachments/20100924/c30ed008/attachment.html>


More information about the LUG mailing list