You are not logged in.

#1 2012-12-10 13:51:05

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

[Solved] Unable to boot USB after latest mkinitcpio upgrade

I upgraded mkinitcpio today and removed all my block devices for the block hook and regenerated. I boot with syslinux via UUID. It boots fine in Virtualbox when it thinks it's SATA, but when I try to boot off the thumb drive itself it cannot find the root partition anymore, and drops to recovery shell after syslinux. Oddly, adding usb back to the hooks and regenerating doesn't fix the problem either. It worked up until today without a hitch.

Thought I'd troubleshoot on the forums before entering a bug report. Anyone else using a USB stick and not able to boot with the block hook?

SOLVED:
Moved block hook directly after udev hook and it appears to boot from USB again.

Last edited by jskier (2012-12-13 01:47:25)


--
JSkier

Offline

#2 2012-12-10 14:06:40

falconindy
Developer
From: New York, USA
Registered: 2009-10-22
Posts: 4,111
Website

Re: [Solved] Unable to boot USB after latest mkinitcpio upgrade

The block hook provides the exact same logic for adding modules that the old usb hook does. Of course adding the "usb" hook doesn't work, because it no longer exists.

You'll need to compare the contents of an initramfs created by 0.11.x to one created by 0.12.0 to figure out what's causing this.

Offline

#3 2012-12-11 13:25:16

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: [Solved] Unable to boot USB after latest mkinitcpio upgrade

Heh, yes that makes sense the old hook won't work with the new version. Haven't had to look at an image in a long time, I'll try and get around to it.

I also tried booting by block device, (eg. /dev/sdx#) to rule out uuid being the problem, which this successfully accomplished.


--
JSkier

Offline

#4 2012-12-12 14:49:55

jskier
Member
From: Minnesota, USA
Registered: 2003-07-30
Posts: 383
Website

Re: [Solved] Unable to boot USB after latest mkinitcpio upgrade

I tried going back to 11, however it still won't boot from USB. I also added rootdelay 30 just in case it needed extra time.

Here is the output from the version 11 generated image (with USB hook).

==> Image: /boot/initramfs-linux.img 
==> Created with mkinitcpio 0.11.2
==> Kernel: 3.6.9-1-ARCH
==> Size: 2.77 MiB
==> Compressed with: gzip
  -> Uncompressed size: 7.76 MiB (.357 ratio)
  -> Estimated extraction time: 0.069s

==> Included modules:
  ahci			  hid-holtek-kbd	  hid-roccat-common	  hv_vmbus
  btrfs			  hid-holtekff		  hid-roccat-isku	  lcd
  cdrom			  hid-hyperv		  hid-roccat-kone	  libahci
  crc32c		  hid-kensington	  hid-roccat-koneplus	  libata
  crc32c-intel		  hid-keytouch		  hid-roccat-kovaplus	  libcrc32c
  fb_sys_fops		  hid-kye		  hid-roccat-pyra	  ohci-hcd
  ff-memless		  hid-lcpower		  hid-roccat-savu	  scsi_mod
  hid			  hid-lenovo-tpkbd	  hid-saitek		  sd_mod
  hid-a4tech		  hid-logitech		  hid-samsung		  snd
  hid-apple		  hid-logitech-dj	  hid-sjoy		  snd-rawmidi
  hid-aureal		  hid-magicmouse	  hid-sony		  snd-seq-device
  hid-axff		  hid-microsoft		  hid-speedlink		  soundcore
  hid-belkin		  hid-monterey		  hid-sunplus		  sr_mod
  hid-cherry		  hid-multitouch	  hid-tivo		  syscopyarea
  hid-chicony		  hid-ntrig		  hid-tmff		  sysfillrect
  hid-cypress		  hid-ortek		  hid-topseed		  sysimgblt
  hid-dr		  hid-petalynx		  hid-twinhan		  usb-common
  hid-elecom		  hid-picolcd		  hid-uclogic		  usb-storage
  hid-emsff		  hid-pl		  hid-wacom		  usbcore
  hid-ezkey		  hid-primax		  hid-waltop		  usbhid
  hid-gaff		  hid-prodikeys		  hid-wiimote		  zlib_deflate
  hid-generic		  hid-roccat		  hid-zpff
  hid-gyration		  hid-roccat-arvo	  hid-zydacron

==> Included binaries:
  blkid		  kmod		  switch_root	  udevd
  busybox	  mount		  udevadm

==> Early hook run order:
  udev

==> Hook run order:
  udev

==> Cleanup hook run order:
  udev

Won't boot when regenerating with 11.

Version 12:

==> Image: /boot/initramfs-linux.img 
==> Created with mkinitcpio 0.12.0
==> Kernel: 3.6.9-1-ARCH
==> Size: 2.52 MiB
==> Compressed with: gzip
  -> Uncompressed size: 6.69 MiB (.376 ratio)
  -> Estimated extraction time: 0.062s

==> Included modules:
  ahci		  crc32c-intel	  libata	  sd_mod	  usbcore
  btrfs		  hid		  libcrc32c	  sr_mod	  usbhid
  cdrom		  hid-generic	  ohci-hcd	  usb-common	  zlib_deflate
  crc32c	  libahci	  scsi_mod	  usb-storage

==> Included binaries:
  blkid		  kmod		  switch_root	  udevd
  busybox	  mount		  udevadm

==> Early hook run order:
  udev

==> Hook run order:
  udev

==> Cleanup hook run order:
  udev

Last edited by jskier (2012-12-12 14:57:30)


--
JSkier

Offline

Board footer

Powered by FluxBB