Al_
October 9th, 2010, 02:15 PM
Hi
I try to install linux (ubuntu lucid) on an external usb harddisk. As the laptop can boot from an USB flash stick, but not from a USB harddisk (500 GB Lacie rikiki), I try to install lilo bootloader and kernel on a USB flash stick, but use the USB harddisk as root. I run lilo to install the bootloader on another machine (desktop with Ubuntu lucid) with the USB flash stick and USB harddisk recognized as /dev/sdf (mounted in /media/LILO) and /dev/sdg, respectively.
The laptop shows the lilo boot menu, then boots, but ends with kernel panic:
...
md: autorun DONE.
VFS: Cannot open root device "UUID=7ba4..." or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
0b00 1048575 sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on onknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.32.25-generic #44-Ubuntu
...
The UUID is correct for the first partition of the USB harddisk.
My own thoughts:
- the kernel can not load a usb harddisk?
- the disk inaccessible option in my lilo.conf is wrong (see bold lines in lilo.conf)?
I appreciate any ideas how to solve this, after I have spent already several days on it.
My lilo.conf file:
# see http://tldp.org/HOWTO/LILO-5.html
#
# Install Lilo on the Master Boot Record of a bootable usb flash drive, e.g., violet competact
boot = /dev/sdf
install = menu
# The installer will build the following file. It tells the boot-loader where the blocks of the kernels are.
map = /media/LILO/map
compact
prompt
disk=/dev/sdg
inaccessible
#timeout = 100
# try to use geometric instead of lba32 addressing. Errors should be reported at boot-config time (not at boot time)
# no, geomteric does not work
#geometric
lba32
# The kernel is stored where BIOS can see it.
image = /media/LILO/vmlinuz
append="acpi=off pci=noacpi noapic nolapic pnpbios, pci=usepirqmask, pci=biosirq"
# Lilo tells the kernel to mount the following partition as root. BIOS does not have to be able to see it.
root="UUID=7ba4b03b-6496-4050-8ce8-7855630337d6"
read-onlyHardware info:
laptop = hp / compaq 6910p
USB harddisk: Lacie rikiki 500 GB, ext4 formatted (plus a few GB swap at the upper end)
USB flash: old, noname 256 MB stick, ext2 formatted
I try to install linux (ubuntu lucid) on an external usb harddisk. As the laptop can boot from an USB flash stick, but not from a USB harddisk (500 GB Lacie rikiki), I try to install lilo bootloader and kernel on a USB flash stick, but use the USB harddisk as root. I run lilo to install the bootloader on another machine (desktop with Ubuntu lucid) with the USB flash stick and USB harddisk recognized as /dev/sdf (mounted in /media/LILO) and /dev/sdg, respectively.
The laptop shows the lilo boot menu, then boots, but ends with kernel panic:
...
md: autorun DONE.
VFS: Cannot open root device "UUID=7ba4..." or unknown-block(0,0)
Please append a correct "root=" boot option; here are the available partitions:
0b00 1048575 sr0 driver: sr
Kernel panic - not syncing: VFS: Unable to mount root fs on onknown-block(0,0)
Pid: 1, comm: swapper Not tainted 2.6.32.25-generic #44-Ubuntu
...
The UUID is correct for the first partition of the USB harddisk.
My own thoughts:
- the kernel can not load a usb harddisk?
- the disk inaccessible option in my lilo.conf is wrong (see bold lines in lilo.conf)?
I appreciate any ideas how to solve this, after I have spent already several days on it.
My lilo.conf file:
# see http://tldp.org/HOWTO/LILO-5.html
#
# Install Lilo on the Master Boot Record of a bootable usb flash drive, e.g., violet competact
boot = /dev/sdf
install = menu
# The installer will build the following file. It tells the boot-loader where the blocks of the kernels are.
map = /media/LILO/map
compact
prompt
disk=/dev/sdg
inaccessible
#timeout = 100
# try to use geometric instead of lba32 addressing. Errors should be reported at boot-config time (not at boot time)
# no, geomteric does not work
#geometric
lba32
# The kernel is stored where BIOS can see it.
image = /media/LILO/vmlinuz
append="acpi=off pci=noacpi noapic nolapic pnpbios, pci=usepirqmask, pci=biosirq"
# Lilo tells the kernel to mount the following partition as root. BIOS does not have to be able to see it.
root="UUID=7ba4b03b-6496-4050-8ce8-7855630337d6"
read-onlyHardware info:
laptop = hp / compaq 6910p
USB harddisk: Lacie rikiki 500 GB, ext4 formatted (plus a few GB swap at the upper end)
USB flash: old, noname 256 MB stick, ext2 formatted