Re: Boot Linux from USB

From: Doug H (doug_at_anywhere.invalid)
Date: 02/17/05


Date: Thu, 17 Feb 2005 05:57:00 -0500

Neos wrote:

> Hello everyone!
>
> It is crucial to me that i carry a Linux system on my USB harddrive -for
> pc recovery business-
> so, i set up Suse 9.2 on a 40GB HDD, sitting as secondary IDE Slave.
>
> All is good so far.
> I get the HDD on an external USB case and boot from USB, it seems to boot
> ok **but**
> when it comes to mount the HDD, it doesn't find the root (/) -which is on
> the USB HDD, the same place it loaded GRUB from, the same place it looked
> for to load into the ram-disk etc..
>
> so, it drops me to 'sh' with very few commands to deal with (one in
> paticular: mount)
>
> could someone please tell me how to tell the system where '/' is?
>
> Or does anyone here know how USB devices are named in Linux?
> -for example internal hardDisks are named like 'hda1' or 'hda5' .....
>
> Any opinions would help!
>
> Thanx in advance..

Neos,

I had a similar problem. When booting the SuSE installation on the USB
drive, it could find GRUB on the USB drive and start the kernel and initrd,
but then it couldn't find root. It would hang with an error message of
"cannot open root device "sda1" or unknown-block(0,0), please append a
correct "root=" boot option."

The apparent answer was that the kernel, at that point in the boot cycle,
didn't know how to read files off of a USB drive (which apparently looks to
the kernel like a SCSI drive).

The solution, which I found somewhere with the help of Google, was to edit
/etc/sysconfig/kernel and add the following modules to the initrd_modules
section: sbp2 usb-storage ehci-hcd uhci-hcd sr_mod sd_mod scsi_mod. Then I
ran mkinitrd in a console, and the boot worked after that.

I hope this helps, but I don't have much real understanding about what I
just explained. For example, the modules listed above were enough to get
going. But I don't know what each one does, and I don't know whether they
all were needed. Nor do I know whether there might have been a simpler
way, or whether my understanding of the problem was correct or wildly off.

Doug



Relevant Pages

  • Re: Unattend over network with USB boot device
    ... I have been planning to play with this, too, but my USB ... DOS should only see the drive as C: ... SYSLINUX+memdisk to boot a virtual floppy, ... Linux system and run winnt.exe under dosemu. ...
    (microsoft.public.win2000.setup_deployment)
  • Re: soundcard SoundBlaster PCI128 or SoundBlaster live1024 problem
    ... > What messages are you getting from boot log and dmesg? ... ACPI tables contain no PCI IRQ routing entries ... RAMDISK driver initialized: 16 RAM disks of 64000K size 1024 blocksize ... USB Universal Host Controller Interface driver v2.2 ...
    (comp.os.linux.hardware)
  • Re: Naming harddisks (Linux)
    ... But I also see that for an USB drive it uses /dev/sdas the ... Does GRUB recognize SCSI drives? ... The first step in understanding the boot process is to ... The bootloader's job is to load the OSs kernel. ...
    (comp.os.linux.misc)
  • Re: UPDATE: El Torito Boot CD - USB CD-ROM
    ... There should be nothing preventing you from booting from USB CD-ROM as long ... Basically you have to make sure you included USB 2.0 boot component in your ... I can boot other CDs including Windows PE created CDs from the USB CD ROM ... What is different about running Windows XPE from a USB CDROM as opposed ...
    (microsoft.public.windowsxp.embedded)
  • Re: Brad lies
    ... know much about booting from USB? ... It would be handy if I could have a NTFS boot drive, ... ...or boot into a virus check before Windows starts. ... What I have needed and now have is something that can boot Acronis True ...
    (sci.psychology.psychotherapy)