Re: booting with grub to /dev/sda

From: Ow Mun Heng (Ow.Mun.Heng_at_wdc.com)
Date: 01/05/05

  • Next message: Ow Mun Heng: "Re: Fedora on servers"
    To: For users of Fedora Core releases <fedora-list@redhat.com>
    Date: Wed, 05 Jan 2005 12:25:22 +0800
    
    

    On Tue, 2005-01-04 at 23:45, Jim Cromie wrote:
    > Ow Mun Heng wrote:
    > >
    > >I believe that what's missing is that you don't have USB support
    > >compiled into the kernel and not as modules.
    > >
    > >I've done it before and it's do-able.
    > >
    > >
    > I should clarify. Ive tried 2 different means to my end.
    >
    > 1. booting my laptop, using grub on hda to pull kernel from sda, and
    > mount it as root.
    > Grub is not seeing the drive, whether thats cuz my laptop BIOS wont show
    > it, OR
    > cuz grub is unable to use it. Naturally, the question is which ?

    One MSG shows you to put sda into device.map. Did you try that already?
    Can your laptop boot directly from USB?

    But I believe that Grub should be able to do it, it's just sort of like
    a pointer that "points" where it should boot from.

    > 2. booting my dads computer directly from the usb-drive (the goal).
    > His box has no grub, but does have a BIOS that will try the usb-drive 1st.
    > EXTLINUX (new in syslinux-3.00) finds the kernel and the initrd, and
    > starts the boot.
    > (it has an automatic menu-system too, with appendable boot-lines)

    So it works then. What's the prob? YOu want #1 too?

    > wrt recompiling, thats sufficient, but not necessary.
    > I used mkinitrd --with=usb_storage to make an initrd with the necessary
    > modules,
    > copied that into where extlinux looks.
    > Now the kernel loads them during boot (so that looks ok),
    > but still fails shortly afterwards (so Im still missing something)

    Hmm..
    >
    > heres the boot error, starting from the initrd module load:
    >
    > Loading jbd.ko module
    > " ext3.ko "
    > " scsi_mod.ko "
    > SCSI subsystem initialized
    > Loading usb-storage.ko
    > Initializing USB Mass Storage driver...
    > usbcor: registered new
    > USB Mass Storage support registered.
    > Creating root device
    > Mounting root filesystem
    > mount: error 6 mounting ext3
    > mount: errort 2 mounting none

    Is this a Typo??

    > Switching to new root
    > switchroot: mount failed: 22
    > umount /initrd/dev failed : 2
    > Kernel panic -not syncing: attempted to kill init
    >
    > hangs.. CtlAltDel doesnt clear it. power cycling does.

    Can you try to mount the initrd image via loopback and look at the
    linuxrc file?? I know it can be done simply with mkinitrd, but I've gone
    the manual part and hacked the linuxrc file.

    -- 
    Ow Mun Heng
    Gentoo/Linux on DELL D600 1.4Ghz 
    98% Microsoft(tm) Free!! 
    Neuromancer 12:21:30 up 3:19, 6 users, 
    load average: 0.37, 0.41, 0.38 
    -- 
    fedora-list mailing list
    fedora-list@redhat.com
    To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list
    

  • Next message: Ow Mun Heng: "Re: Fedora on servers"

    Relevant Pages

    • 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: Ubuntu on an external drive---how to?
      ... i can't boot from my external USB device... ... Grub error 17 is "can't mount partition" (please post the error messages, ... You might try installing grub to the USB drive's partition superblock, ...
      (Ubuntu)
    • Re: How Do I Get GRUB to See the External USB Drive?
      ... make sure your usb device is mentioned there for it to work at boot ... redo update-grub and check if the usb drive is ... I found on the Ubuntu forums (went with the Ubuntu disk because that was the ... I tried installing GRUB on the MBR of the SCSI drive and setting root to the ...
      (Debian-User)
    • Another Ubuntu on external drive question
      ... but neither seems able to find the USB drive from ... partition and a swap, and everything ran fine until installing Grub (as ... rebooted (first resetting the USB HD to have a higher boot priority in the ...
      (Ubuntu)
    • Re: GRUB Problem: Cant Boot off my USB Disk
      ... My PC BIOS supports booting from USB devices, so I decided to load FC5 ... I may be experiencing a syntax or GRUB ... I can select to boot off that device when I turn on my PC (by ...
      (comp.os.linux.setup)