Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
USB Flash Disk won't mount
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
DeFuser
n00b
n00b


Joined: 27 Feb 2003
Posts: 15

PostPosted: Mon Sep 29, 2003 11:24 pm    Post subject: USB Flash Disk won't mount Reply with quote

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
View user's profile Send private message
lghman
Guru
Guru


Joined: 29 Nov 2002
Posts: 548
Location: Florida

PostPosted: Tue Sep 30, 2003 1:32 am    Post subject: Reply with quote

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
View user's profile Send private message
abt72
n00b
n00b


Joined: 04 Apr 2003
Posts: 44

PostPosted: Tue Sep 30, 2003 9:04 am    Post subject: fdisk, mkdosfs Reply with quote

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
View user's profile Send private message
DeFuser
n00b
n00b


Joined: 27 Feb 2003
Posts: 15

PostPosted: Tue Sep 30, 2003 12:58 pm    Post subject: Reply with quote

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
View user's profile Send private message
djf_jeff
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 174
Location: Quebec

PostPosted: Tue Sep 30, 2003 1:10 pm    Post subject: Reply with quote

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
View user's profile Send private message
DeFuser
n00b
n00b


Joined: 27 Feb 2003
Posts: 15

PostPosted: Tue Sep 30, 2003 1:16 pm    Post subject: Reply with quote

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
View user's profile Send private message
djf_jeff
Apprentice
Apprentice


Joined: 17 Feb 2003
Posts: 174
Location: Quebec

PostPosted: Tue Sep 30, 2003 2:18 pm    Post subject: Reply with quote

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
View user's profile Send private message
Baldzius
Apprentice
Apprentice


Joined: 17 Mar 2003
Posts: 154
Location: Lithuania

PostPosted: Wed Oct 01, 2003 4:45 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum