View previous topic :: View next topic |
Author |
Message |
DeFuser n00b
Joined: 27 Feb 2003 Posts: 15
|
Posted: Mon Sep 29, 2003 11:24 pm Post subject: USB Flash Disk won't mount |
|
|
I recently got one of those sweet 256mb USB disks. It works perfectly under windows but won't mount under gentoo.
I think I got everything set up correctly.
dmesg says:
Code: |
usb.c: registered new driver usbdevfs
usb.c: registered new driver hub
Initializing USB Mass Storage driver...
usb.c: registered new driver usb-storage
USB Mass Storage support registered.
usb-ohci.c: USB OHCI at membase 0xd08c0000, IRQ 11
usb-ohci.c: usb-00:01.2, Silicon Integrated Systems [SiS] 7001
usb.c: new USB bus registered, assigned bus number 1
hub.c: USB hub found
hub.c: 3 ports detected
usb-ohci.c: USB OHCI at membase 0xd08c2000, IRQ 11
usb-ohci.c: usb-00:01.3, Silicon Integrated Systems [SiS] 7001 (#2)
usb.c: new USB bus registered, assigned bus number 2
hub.c: USB hub found
hub.c: 3 ports detected
eth0: Media Link On 10mbps half-duplex
uhci.c: USB Universal Host Controller Interface driver v1.1
usb-uhci.c: $Revision: 1.275 $ time 22:05:34 Sep 28 2003
usb-uhci.c: High bandwidth mode enabled
usb-uhci.c: v1.275:USB Universal Host Controller Interface driver
hub.c: new USB device 00:01.2-1, assigned address 2
hub.c: USB hub found
hub.c: 1 port detected
hub.c: new USB device 00:01.2-1.1, assigned address 3
scsi0 : SCSI emulation for USB Mass Storage devices
Vendor: Luwen Model: USB Flash Disk Rev: P1.0
Type: Direct-Access ANSI SCSI revision: 02
Attached scsi removable disk sda at scsi0, channel 0, id 0, lun 0
SCSI device sda: 512000 512-byte hdwr sectors (262 MB)
sda: Write Protect is off
/dev/scsi/host0/bus0/target0/lun0: p1 p2 p3 p4
WARNING: USB Mass Storage data integrity not assured
USB Mass Storage device found at 3
|
I don't know why usb-uhci and usb-ohci. I've deleted usb-uhci form modules.autoload since I figured out that my motherboard need ohci. Everything else seems to be fine though.
When I try to mount it with
Code: |
mount -t vfat /dev/sda /mnt/usb
|
I get this:
Code: |
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems
|
btw. /dev/sda points to /dev/scsi/host0/bus0/target0/lun0/part1
And I've already tried to modprobe vfat (module loads without problems) but no luck either. |
|
Back to top |
|
|
lghman Guru
Joined: 29 Nov 2002 Posts: 548 Location: Florida
|
Posted: Tue Sep 30, 2003 1:32 am Post subject: |
|
|
I know on my system I have to do Code: | mount -t vfat /dev/sda1 /mnt/sda | You need to point to the partation you want to mount, not the device itself.
--sonik _________________ "What a distressing contrast there is between the radiant intelligence of a child and the feeble mentality of the average adult" --Freud |
|
Back to top |
|
|
abt72 n00b
Joined: 04 Apr 2003 Posts: 44
|
Posted: Tue Sep 30, 2003 9:04 am Post subject: fdisk, mkdosfs |
|
|
hi,
use fdisk or cfdisk
to create partition(s) on your usb-stick, then use mkdosfs -F 32
to create a vfat-filesystem.
greetings,
abt |
|
Back to top |
|
|
DeFuser n00b
Joined: 27 Feb 2003 Posts: 15
|
Posted: Tue Sep 30, 2003 12:58 pm Post subject: |
|
|
I've already tired to mount sda1, sda2, sda3. I get the same error with those.
I tried
Code: |
fdisk /dev/sda
fdisk /dev/sda1
cfdisk /dev/sda
cfdisk /dev/sda1
|
I only get an "unable to read /dev/sda" error. btw. I'm not sure if I really have to reformat the usb-stick and create a partition on it because it's already FAT formated. It works under windows. And there is data on it.
After I did those fdisk commands I got some new errors in dmesg:
Code: |
Device 08:01 not ready.
I/O error: dev 08:01, sector 0
FAT: unable to read boot sector
Device 08:00 not ready.
I/O error: dev 08:00, sector 0
Device 08:01 not ready.
I/O error: dev 08:01, sector 0
Device 08:00 not ready.
I/O error: dev 08:00, sector 0
Device 08:01 not ready.
I/O error: dev 08:01, sector 0
|
Any other ideas??? Pls! |
|
Back to top |
|
|
djf_jeff Apprentice
Joined: 17 Feb 2003 Posts: 174 Location: Quebec
|
Posted: Tue Sep 30, 2003 1:10 pm Post subject: |
|
|
Try
Code: | mount /dev/sda /mnt/usbkey |
Notice that it's sda and not sda1.
It's because your usb key dont have any partition. It work for me... |
|
Back to top |
|
|
DeFuser n00b
Joined: 27 Feb 2003 Posts: 15
|
Posted: Tue Sep 30, 2003 1:16 pm Post subject: |
|
|
djf_jeff wrote: | Try
Code: | mount /dev/sda /mnt/usbkey |
Notice that it's sda and not sda1.
It's because your usb key dont have any partition. It work for me... |
I've already did that about 10 million times.
I get:
Code: |
/dev/sda: Input/output error
mount: you must specify the filesystem type
|
So I tried:
Code: |
mount -t vfat /dev /sda /mnt/usb
|
And I get:
Code: |
mount: wrong fs type, bad option, bad superblock on /dev/sda,
or too many mounted file systems
|
again, the same problem.
I read in another thread that this could have to do something with a kernel bug. Here's a link. But I couldn't understand how this should help me... Maybe somone else does. |
|
Back to top |
|
|
djf_jeff Apprentice
Joined: 17 Feb 2003 Posts: 174 Location: Quebec
|
Posted: Tue Sep 30, 2003 2:18 pm Post subject: |
|
|
Ok... Excuse me, I didn't notice that you already try that.
I have read the link you provide and dont think it help that much...
It's maybe a missing module in your kernel... If you have a spare box, try your key in RedHat. Their kernel have everything compiled in, so if it work it's a good sign.
Other than that, I dont know, maybe this thread can help you
https://forums.gentoo.org/viewtopic.php?t=83192&highlight= |
|
Back to top |
|
|
Baldzius Apprentice
Joined: 17 Mar 2003 Posts: 154 Location: Lithuania
|
Posted: Wed Oct 01, 2003 4:45 am Post subject: |
|
|
Which kernel version are you using? {i would recommend 2.4.22, with all necessary options included of course}
Are you sure your pen formated under fat32?
Try deleting partition. |
|
Back to top |
|
|
|