View previous topic :: View next topic |
Author |
Message |
fires_69 n00b
Joined: 24 Jun 2004 Posts: 29
|
Posted: Wed Aug 04, 2004 8:55 am Post subject: USB stick help |
|
|
I realise that there a alot of threads about this sort of problem, but i am still in trouble. I hope that there are users that have had the same and know where i might be going wrong
First off, i am using gentoo-dev-sources and built the following options
Quote: | 12.2.1. Bus options
Support for hot-pluggable devices (CONFIG_HOTPLUG)
12.2.2. Device drivers
SCSI device support
SCSI device support (CONFIG_SCSI scsi_mod)
legacy /proc/scsi support (CONFIG_SCSI_PROC_FS)
SCSI disk support (CONFIG_BLK_DEV_SD sd_mod)
USB support
Support for USB (CONFIG_USB usbcore)
USB device filesystem (CONFIG_USB_DEVICEFS)
UHCI HCD support (CONFIG_USB_UHCI_HCD uhci_hcd)
USB Mass Storage support (CONFIG_USB_STORAGE usb_storage)
12.2.3. File systems
Second extended (CONFIG_EXT2_FS ext2)
DOS/FAT/NT filesystems
DOS FAT fs support (CONFIG_FAT_FS fat)
MSDOS fs support (CONFIG_MSDOS_FS msdos)
VFAT (Windows 95) fs support (CONFIG_VFAT_FS vfat)
Pseudo filesystems
/proc file system support (CONFIG_PROC_FS) |
http://www.tldp.org/HOWTO/Flash-Memory-HOWTO/linux-2.6.html
the problem is when i boot up and plaug in the drive, i don't see anything in the /dev folder. when i type in
Code: | mount /dev/sda1 /mnt/usb
mount /dev/sda /mnt/usb |
i get told that it cant find any disc.
it is as if hotplugging has not registered anything.
Even if i try this booting up the PC with the USB disc in, i get the same hastles. I know that SCSI has loaded as it is the second entry i see in the boot up code. I also see entries saying USB hotplugging has loaded and so on.
Does anyone have any ideas on what might be the problem. I will reply with configs if you want it but i am not so knowlegeable with code so you will have to tell me what to type.
Oh, and this is
Celeron 400mHz
96MB ram
USB 1.1 |
|
Back to top |
|
|
MaDxRaY Tux's lil' helper
Joined: 14 May 2004 Posts: 106 Location: central europe
|
Posted: Wed Aug 04, 2004 9:17 am Post subject: |
|
|
hi,
have you load all modules you have chosen into your kernel?
what say's lsmod?
especially, i seek a whole afternoon to find the missing sd_mod.
Next time please post the real error message, cause they are semi unique and give so a little hint...beside any one other with the same problem could seek by it and would find this, hopefully solved, thread.
greez _________________ greetz
Ray |
|
Back to top |
|
|
fires_69 n00b
Joined: 24 Jun 2004 Posts: 29
|
Posted: Wed Aug 04, 2004 9:32 am Post subject: |
|
|
what error message? I dont really get any. It just says that
mount: Special device /dev/sda1 does not exist.
Oh, and lsmod turns up with an empty list. I installed all my stuff imbeded into the kernel. Is that bad? Like i say, if there is a specific error message or anything that you would like, just tell me but i cant find where to start |
|
Back to top |
|
|
Corpse2 n00b
Joined: 14 Jan 2004 Posts: 60
|
Posted: Wed Aug 04, 2004 10:03 am Post subject: |
|
|
I had something similar, but I'm not sure what the solution is since I still have problems.
Have you checked the disk in windows. Make sure it automatically fixes all errors. These disks seem to have diskerrors sometimes but windows doesn't care, specifically partitiontable errors.
After I did this, finally the disks appeared in /dev/sda, sda1 and sdb.
I managed to mount them once, but after messing around trying to automount it, it keeps giving me al lot of output while trying to recognize the disk.
In case anyone caring to take a look: this output and my dmesg |
|
Back to top |
|
|
fires_69 n00b
Joined: 24 Jun 2004 Posts: 29
|
Posted: Wed Aug 04, 2004 10:12 am Post subject: |
|
|
Corpse2 wrote: | I had something similar, but I'm not sure what the solution is since I still have problems.
Have you checked the disk in windows. Make sure it automatically fixes all errors. These disks seem to have diskerrors sometimes but windows doesn't care, specifically partitiontable errors.
After I did this, finally the disks appeared in /dev/sda, sda1 and sdb.
I managed to mount them once, but after messing around trying to automount it, it keeps giving me al lot of output while trying to recognize the disk.
In case anyone caring to take a look: this output and my dmesg |
How do you get your "this output" link? I get nothing like that. Does that just appear when you are in console? BTW, my disk has worked fine in windows and prevously on mandrake. I am hoping someone will be able to help |
|
Back to top |
|
|
MaDxRaY Tux's lil' helper
Joined: 14 May 2004 Posts: 106 Location: central europe
|
Posted: Wed Aug 04, 2004 10:13 am Post subject: |
|
|
Oh i think there's a difference between:
Quote: | i get told that it cant find any disc |
and
Quote: | mount: Special device /dev/sda1 does not exist |
, isn't it? Although i knew what you would write, a seek for "/dev/sda1 does not exist" would be successful....you aren't interessted in hard*DISC*s.
In general there is no influcence on function if something is compiled in or is loaded as modul, in general
but this is not the problem...
Have you activated pci hotpluging?
Also try to activate usb_ehci_hcd, i didn't realy know which one is common.
Have you still activated /dev file system? _________________ greetz
Ray |
|
Back to top |
|
|
fires_69 n00b
Joined: 24 Jun 2004 Posts: 29
|
Posted: Wed Aug 04, 2004 10:50 am Post subject: |
|
|
how do you activate hotplugging? Is there a command. I am sure that i have compiled it in my kernel |
|
Back to top |
|
|
Corpse2 n00b
Joined: 14 Jan 2004 Posts: 60
|
Posted: Wed Aug 04, 2004 2:04 pm Post subject: |
|
|
now I remember where my problems started. It started when I did emerge hotplug.
My usb stick worked also in windows, and after correcting the filesystem errors it worked for a while in gentoo. But then it was messed up with hotplug somehow.
The output in my first link appears in the syslog (/var/log/messages or alt+F12) but you need to emerge syslog-ng. Also, I think I compiled USB debug output in the kernel |
|
Back to top |
|
|
mazirian Apprentice
Joined: 26 Jun 2003 Posts: 273 Location: Yarmouth, ME
|
Posted: Wed Aug 04, 2004 2:37 pm Post subject: |
|
|
You've probably seen this already if you've read the other threads, but (just in case) to start up hotplugging...
Code: |
emerge -av hotplug
/etc/init.d/hotplug start
rc-update add hotplug default
|
You definitely won't have any luck with a thumb drive if you don't have hotplugging on. |
|
Back to top |
|
|
|