LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 09-28-2015, 09:14 PM   #1
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Rep: Reputation: 7
Kernel 3.5.4 not playing nice with usb flash drive


I'm running Crux 2.8 on an i686 system. When the install media boots, it sees usb media just fine, but now that I've installed/compiled a booting system, it seems to do things more or less ok except mounting USB drives. When I insert the device, it announces normally, shows itself off as sdb1 and usually from that point I can just do:

mount /dev/sdb1 /usb

and it just picks up and goes - that's how it goes from the installer media.

however, now, I get a ton of errors saying it can't detect an ext4 system, a vfat system, or an NTFS system (these are filesystems I have compiled into my kernel) The drive, is infact typically mounted as vfat and on other linux systems - and windows 7 - it works fine.

I'm sure it's something dumb I did in my kernel config, but I've got the scsi / scsi disk / usb mass storage things all checked and built-in in menuconfig.

I have another system based on Crux 3.1 with a custom kernel as well, and that one mounts usb drives just fine, though that's on the 4.2 kernel.

What did I miss?

Note : getting log output here is going to be a pain because I can't cat /var/log/boot > /usb/file.txt and sneaker-net it over like I usually do.
 
Old 09-29-2015, 10:04 PM   #2
Rinndalir
Member
 
Registered: Sep 2015
Posts: 733

Rep: Reputation: Disabled
What's dmesg say? Or lsusb?
 
Old 10-03-2015, 01:34 PM   #3
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
That'll be exciting to get across here..

I'll have to try again tonight and see what dmesg has to say.

In the interim, I tried building a 4.2 kernel which hangs at "Booting the kernel." But otherwise looks fine

In reference to pre-login errors, and being hung up at something as vague as Booting the kernel, what logs can I check for more verbose output? (I checked /var/log/boot and didn't see much of use in there)
 
Old 10-07-2015, 09:27 PM   #4
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
Welp, I lost my kernels and my filesystem...too many things went wrong and I was spending hours producing unusable kernel after unusable kernel.

I did discover this though:

https://agentoss.wordpress.com/2011/...-installation/

specifically, the make i386_defconfig command, isn't something I've seen before, so I used that as a starting point and am recompiling now.

What's really weird/frustrating is it was nearly split down the middle, nearly half of my kernels either wouldn't boot...or they had file-locking issues and everything came up as read-only. These changes would emerge after I'd made seemingly benign changes to the kernel config...but I'm more or less keeping track of what I do now - at this point I need to get back to a kernel that at least boots and figure out what's so magic about that config.
 
Old 10-10-2015, 06:21 PM   #5
VolumetricSteve
Member
 
Registered: Mar 2011
Posts: 90

Original Poster
Rep: Reputation: 7
Ok, so this is solved and another...two other issues are found.

The answer here was under generic driver options, two options...seems to me like they should be checked by default but neither were.

Maintain a devtmpfs filesystem to mount at /dev

-and-

Automount devtmpfs at /dev, after the kernel mounted the rootfs

Outside of embedded/industrial applications, I have no idea why these aren't on by default..but they fixed -all- of my read-only filesystem issues for all the obvious reasons
 
  


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
encrypted installation with unencrypted kernel and bootloader on USB flash drive bracca Linux - Newbie 20 07-31-2013 08:47 PM
Kernel panic when booting off USB flash drive galapogos Linux - Software 0 02-28-2013 07:44 AM
Problem mounting usb flash drive with 2.6.12.2 kernel dcdbutler Slackware 16 09-12-2005 07:48 PM
Quickcam antics, module not playing nice with usb device OwlManAtt Linux - Software 0 12-18-2004 10:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:08 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