LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Ubuntu (https://www.linuxquestions.org/questions/ubuntu-63/)
-   -   Trouble mounting USB Flash drive (https://www.linuxquestions.org/questions/ubuntu-63/trouble-mounting-usb-flash-drive-543134/)

vital_101 04-03-2007 08:21 PM

Trouble mounting USB Flash drive
 
Hey everyone,

Up until now, Ubuntu has been mounting my flash drive automatically. However, recently it hasn't been mounting it at all. So I tried:
Code:

sudo mount -t vfat /dev/sda /media/usb
and it doesn't work. It gives me the error:
Quote:

mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
So I do as I'm told and do:
Code:

dmesg | tail
When I do that, I get the following.
Code:

[17179692.936000] cramfs: wrong magic
[17179692.940000] VFS: Can't find ext3 filesystem on dev sda.
[17179692.940000] NTFS-fs warning (device sda): is_boot_sector_ntfs(): Invalid boot sector checksum.
[17179692.940000] NTFS-fs error (device sda): read_ntfs_boot_sector(): Primary boot sector is invalid.
[17179692.940000] NTFS-fs error (device sda): read_ntfs_boot_sector(): Mount option errors=recover not used. Aborting without trying to recover.
[17179692.940000] NTFS-fs error (device sda): ntfs_fill_super(): Not an NTFS volume.
[17179692.944000] FAT: invalid media value (0xb9)
[17179692.944000] VFS: Can't find a valid FAT filesystem on dev sda.
[17179703.072000] FAT: invalid media value (0xb9)
[17179703.072000] VFS: Can't find a valid FAT filesystem on dev sda.

Any help on this would be great. Thanks!

cgjones 04-03-2007 09:32 PM

You could try the following.
Code:

sudo mount -t auto /dev/sda1 /media/usb
You could also try the following to see if there is any useful information when you plug in the drive.
Code:

sudo tail -n 0 -f /var/log/messages

vital_101 04-03-2007 10:45 PM

When I do
Quote:

sudo tail -f /var/log/messages
I get the following
Quote:

Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.028000] Type: Direct-Access ANSI SCSI revision: 00
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.032000] SCSI device sda: 4062208 512-byte hdwr sectors (2080 MB)
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.032000] sda: Write Protect is off
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.036000] SCSI device sda: 4062208 512-byte hdwr sectors (2080 MB)
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.036000] sda: Write Protect is off
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.036000] sda:
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.096000] sd 2:0:0:0: Attached scsi removable disk sda
Apr 3 23:40:06 ubuntu-laptop kernel: [17188935.096000] sd 2:0:0:0: Attached scsi generic sg0 type 0
Apr 3 23:40:26 ubuntu-laptop kernel: [17188954.900000] VFS: Can't find a valid FAT filesystem on dev sda.
Apr 3 23:40:43 ubuntu-laptop kernel: [17188971.840000] VFS: Can't find a valid FAT filesystem on dev sda.
Does this mean that my flash drive's file system is screwed? If so, how can I format it if I can't even get it to mount? Any ideas?

vital_101 04-03-2007 11:30 PM

Just would like to let you know I fixed the problem. Apparently I needed format my USB device (it lost it's file system somewhere along the line) and everything is working well now.


All times are GMT -5. The time now is 01:03 AM.