LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-23-2014, 11:25 PM   #1
vmmello
LQ Newbie
 
Registered: Oct 2012
Posts: 3

Rep: Reputation: Disabled
Question Problem with udev and booting from USB SD card on Slackware 14.1 32 bits


I've installed Slackware 14.1 on a USB SD card, as I want to test if I'll get a better performance with a read-only root mounted on the SD Card (and making it RW only when doing package updates).

It successfully installed with full packages on the SD card, and lilo on the MBR. It went well until the first reboot.

I created the initrd with the USB modules to mount the SD card at boot, as it requires the USB subsystem kernel modules loaded:

Quote:
mkinitrd -c -k 3.10.17 -m ehci_hcd:uhci_hcd:usb_storage -f ext4 -r UUID="0240d789-1058-42b1-9c19-c62271e32f5c" -o /boot/initrd.gz
Configured the initrd on lilo.conf and ran lilo to update the MBR. Until here fine.

I start having a problem after initrd gives control to init and udev starts. After /etc/rc.d/rc.udev starts the USB modules are removed and lots of random problems happen because the root disk device is USB, so it can't execute anything after the modules are removed. The system hangs there.

If I remove the executable bit from /etc/rc.d/rc.udev the system boots, but it's very inconvenient because several of the devices on /dev are missing. If I run /etc/rc.d/rc.udev start manually after boot, it does the same thing: unloads the USB modules and reloads it again, then the card gets re-assigned to device /dev/sdc (originally it's sdb) and the system hangs because it can't access the root filesystem anymore.

I reviewed the /lib/udev/rules.d/*usb* rules, but didn't find anything. Most of the rules there are by vendorId and productId, but I didn't find any specific rule for my SD card (vendorId: 058f, productId: 6335).

I've tried to add several different rules for udev to ignore the USB device matching the vendor id and product id, but the very same errors still happen.

Also tried to blacklist USB modules on /etc/modprobe.d/usb-controller.conf by adding: blacklist ehci_hcd, blacklist uhci_hcd, blacklist usb_storage to see if didn't unload the USB modules, but to no avail.

Does anyone have any clue on what I need to do to avoid having the USB modules unloaded by udev after it starts?

Below follows part of the console output meanwhile the system boots:
Quote:
EXT4.FS(sdb1): mounted filesystem with ordered data mode. Opts: (null)
/boot/initrd.gz: exiting
INIT: version 2.88 booting
loop module loaded
Starting udevd: /sbin/udevd --daemon
Triggering udev events: /sbin/udevadm trigger --action=add
udevd[207]: starting version 182
microcode: CPU0 sig=0x162c2, pf=0x4, revision=0x212
ehci-pci: EHCI PCI platform driver
usb 2-1: USB disconnect device number 2
usb 2-1.1: USB disconnect device number 3
usb 2-1.2: USB disconnect device number 4
usb 2-1.3: USB disconnect device number 5
usb 3-1: USB disconnect device number 2
scsi 4:0:0:0 rejecting I/O to offline device
scsi 4:0:0:0 [sdb] killing request
scsi 4:0:0:0 [sdb] unhandled error code

<...lots of random device read, file execution errors msgs because the root filesystem is now gone...>
 
Old 06-25-2014, 08:10 PM   #2
Dr.Thodt
LQ Newbie
 
Registered: Dec 2011
Location: Canada
Distribution: slackware
Posts: 20

Rep: Reputation: Disabled
Does your bios support booting from usb SD card reader, are you sure the driver that loads the card reader supports an ext 4 file system?
can you post your lsusb and lsmod
i don't think you need to edit your rc.udev

and can you run on your system:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r
it should recommend what modules you will need on your system at boot
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Slackware 13.37, udev and USB devices Maestro485 Slackware 5 05-02-2011 06:30 PM
[SOLVED] Problem with VLC 1.1.1 on Slackware 13.1 (with both 32 and 64 bits) Lufbery Slackware 6 08-12-2010 07:49 AM
Button of Xchat on Slackware 13.1 in 64 bits and 32 bits Laodiceans Slackware 1 06-21-2010 05:32 PM
Slackware 11, udev, and card readers marnold Slackware 4 09-27-2006 07:22 PM
KDE & hal/dbus/udev problem with USB card... mlaverdiere Debian 7 02-23-2006 08:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 07:59 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration