Hi! I installed Debian in a pendrive and I used extlinux. I need a boot for multiples machines. When I use the config file below, my pendrive works fine: DEFAULT linux LABEL linux KERNEL ../vmlinuz APPEND ro root=/dev/sda1 initrd=../initrd But I need a boot for any machine. Then, I tried it: APPEND ro initrd=../initrd but the boot stops after discover the correct location of the root filesystem (/dev/sdc1 etc...). What is the solution? Thanks in advance. Regards, Eriberto - Brazil
On Wed, Dec 10, 2008 at 06:04:28PM -0200, Eriberto wrote:> Hi! > > I installed Debian in a pendrive and I used extlinux. I need a boot > for multiples machines. When I use the config file below, my pendrive > works fine: > > DEFAULT linux > LABEL linux > KERNEL ../vmlinuz > APPEND ro root=/dev/sda1 initrd=../initrd > > But I need a boot for any machine. Then, I tried it: > > APPEND ro initrd=../initrdChange it to: APPEND ro root=LABEL=myudisk initrd=../initrd And then do this to the partition: e2label /dev/sda1 myudisk -- lfr 0/0
Eriberto wrote:> Hi! > > I installed Debian in a pendrive and I used extlinux. I need a boot > for multiples machines. When I use the config file below, my pendrive > works fine: > > DEFAULT linux > LABEL linux > KERNEL ../vmlinuz > APPEND ro root=/dev/sda1 initrd=../initrd > > But I need a boot for any machine. Then, I tried it: > > APPEND ro initrd=../initrd > > but the boot stops after discover the correct location of the root > filesystem (/dev/sdc1 etc...). > > What is the solution? >The solution is to mount the filesystem by UUID or LABEL instead of by device name. Most (although not all) distribution initrds support this out of the box. The initrd can also do custom searching, but that depends on the initrd. -hpa