View previous topic :: View next topic |
Author |
Message |
quasar n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 11 Mar 2006 Posts: 31
|
Posted: Sat Jun 06, 2009 5:22 pm Post subject: booting from usb harddrive |
|
|
Hello all,
I am trying to create a normal gentoo installation on an 8 gig usb flash drive to make a silent computer. I configured everything relating to usb storage as builtin:
Code: |
CONFIG_SCSI=y
CONFIG_BLK_DEV_SD=y
CONFIG_USB_SUPPORT=y
CONFIG_USB_STORAGE=y
etc....
|
and assumed that i could just boot linux with boot=/dev/sda1 and everything would work out.
However, when i boot, it claims that there is no sda partition. I threw an sata harddrive with a gentoo root partition into this machine, but used the same boot partition and kernel from the usb drive to see if i had properly configured the kernel. When it booted up, as expected, the sata harddrive was sda and the usb flash drive was sdb. I checked dmegs and this is what i found:
Code: |
usbcore: registered new interface driver usbfs
usbcore: registered new interface driver hub
usbcore: registered new device driver usb
...
usb usb1: default language 0x0409
usb usb1: New USB device found, idVendor=1d6b, idProduct=0002
usb usb1: New USB device strings: Mfr=3, Product=2, SerialNumber=1
usb usb1: Product: EHCI Host Controller
usb usb1: Manufacturer: Linux 2.6.29-gentoo-r1 ehci_hcd
usb usb1: SerialNumber: 0000:00:02.1
usb usb1: uevent
usb usb1: usb_probe_device
usb usb1: configuration #1 chosen from 1 choice
usb usb1: adding 1-0:1.0 (config #1, interface 0)
usb 1-0:1.0: uevent
...
EXT3-fs: mounted filesystem with ordered data mode.
VFS: Mounted root (ext3 filesystem) readonly on device 8:7.
Freeing unused kernel memory: 300k freed
....
usb 2-1: New USB device found, idVendor=13fe, idProduct=1f00
usb 2-1: New USB device strings: Mfr=1, Product=2, SerialNumber=3
usb 2-1: Product: DIESEL
usb 2-1: Manufacturer: OCZ
usb 2-1: SerialNumber: 50E695080003DE
usb 2-1: uevent
usb 2-1: usb_probe_device
usb 2-1: configuration #1 chosen from 1 choice
usb 2-1: adding 2-1:1.0 (config #1, interface 0)
usb 2-1:1.0: uevent
usb-storage 2-1:1.0: usb_probe_interface
usb-storage 2-1:1.0: usb_probe_interface - got id
scsi8 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
drivers/usb/core/inode.c: creating file '002'
|
So it seams that the kernel loads the usb drivers, then mounts the root partition and then loads the usb-storage. Does anyone know a way to fix this and load the usb-storage before mounting the root partition? I tried googling an answer, but my query got swamped by information on booting from premade liveusb images. I suppose a work around would be to use initrd, but it seams wrong to use an initrd to load a module that i am building into the kernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
drescherjm Advocate
![Advocate Advocate](/images/ranks/rank-G-1-advocate.gif)
Joined: 05 Jun 2004 Posts: 2790 Location: Pittsburgh, PA, USA
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|