LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 09-01-2006, 12:12 AM   #1
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100
Blog Entries: 1

Rep: Reputation: 15
Problem while mounting the USB flash drive


Dear All,

I have just do the necessary changes in the /mnt folder and my /etc/fstab file for detecting the USB flash drive into my PC and my PC is also detecting the flash drive at /mnt/usbstick and shows the contents there also, but when i try to mount it through the command, it shows me that
"mount: fs type 0 not supported by kernel"
what kind of problem is that and what could be the solution for that?

Thanks in Advance,
Nishant
 
Old 09-01-2006, 09:56 AM   #2
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
It sounds as if you have the fields incorrect in /etc/fstab.

You can read "man fstab" and it tells you what goes in each field.

This example is from my workstation, where regular users can mount
them read/write (rw).
Code:
/dev/sdb1        /usb1            vfat        noauto,users,rw,umask=1000  0  0
/dev/sdc1        /usb2            vfat        noauto,users,rw,umask=1000  0  0
If you will post your /etc/fstab we will look at it and advise you.
 
Old 09-01-2006, 11:13 AM   #3
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by Bruce Hill
It sounds as if you have the fields incorrect in /etc/fstab.

You can read "man fstab" and it tells you what goes in each field.

This example is from my workstation, where regular users can mount
them read/write (rw).
Code:
/dev/sdb1        /usb1            vfat        noauto,users,rw,umask=1000  0  0
/dev/sdc1        /usb2            vfat        noauto,users,rw,umask=1000  0  0
If you will post your /etc/fstab we will look at it and advise you.
Dear Bruce,

Let me show you code frm my fstab file:

"/dev/sda1 /usb1 vfat noauto,users,rw,umask=0,0,0", this is the way code is in my fstab file and me myself has add this code, there are two differences one is i ve taken sda1 and another one is that i gave the umask=0,0,0 insead of umask=1000 0 0 in ur file.

Last time wen i had done this, it has mounted simply without any problem, idn know what is the problem this time occurs

Thanks,
Nishant
 
Old 09-01-2006, 04:26 PM   #4
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
bad option in /etc/fstab

Nishant Desai,

I tried changing my /etc/fstab to the exact line of your /etc/fstab
and this is what happened.

First:
Code:
mingdao@silas:~$ cat /etc/fstab | grep -i vfat
/dev/sda2        /Shared          vfat        users,umask=1000,rw,auto  1   0
#/dev/sdb1        /usb1            vfat        noauto,users,rw,umask=1000  0  0  <-- this is my line
/dev/sdb1         /usb1           vfat        noauto,users,rw,umask=0,0,0  <-- this is your line
/dev/sdc1        /usb2            vfat        noauto,users,rw,umask=1000  0  0
Then I plugged in my Lexar USB 2.0 flash disk and issued:
Code:
mingdao@silas:~$ dmesg | tail
usb 1-6: reset high speed USB device using ehci_hcd and address 6
usb 1-6: reset high speed USB device using ehci_hcd and address 6
usb 1-6: reset high speed USB device using ehci_hcd and address 6
sdb: Write Protect is off
sdb: Mode Sense: 02 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
which outputs the last 10 lines of dmesg. We can see that the
device is scanned, module is loaded, and it is /dev/sdb1 here.

Next I issued and received this output:
Code:
mingdao@silas:~$ mount /usb1
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
       missing codepage or other error
       In some cases useful info is found in syslog - try
       dmesg | tail  or so
So I did what it asked. I issued "dmesg | tail" again:
Code:
mingdao@silas:~$ dmesg | tail
usb 1-6: reset high speed USB device using ehci_hcd and address 6
usb 1-6: reset high speed USB device using ehci_hcd and address 6
sdb: Write Protect is off
sdb: Mode Sense: 02 00 00 00
sdb: assuming drive cache: write through
 sdb: sdb1
sd 2:0:0:0: Attached scsi removable disk sdb
sd 2:0:0:0: Attached scsi generic sg1 type 0
usb-storage: device scan complete
FAT: Unrecognized mount option "0" or missing value  <-- this is the problem
So we see that I have duplicated your problem. My Linux distribution
and kernel handled the output differently, but the problem is the same.

Quote:
Originally posted by Nishant Desai
"/dev/sda1 /usb1 vfat noauto,users,rw,umask=0,0,0", this is the way code is in my fstab file and me myself has add this code, there are two differences one is i ve taken sda1 and another one is that i gave the umask=0,0,0 insead of umask=1000 0 0 in ur file.
We can understand that the code you added is incorrect. As I told
you in my first post:

Quote:
Originally posted by Bruce Hill
It sounds as if you have the fields incorrect in /etc/fstab.
Now we can see that this is indeed the problem.

You should change your umask value so that it will mount.

Last edited by Bruce Hill; 09-01-2006 at 05:01 PM.
 
Old 09-01-2006, 05:01 PM   #5
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
It sounds as if you have the fields incorrect in /etc/fstab.

You can read "man fstab" and it tells you what goes in each field.

This example is from my workstation, where regular users can mount
them read/write (rw).
Code:
/dev/sdb1        /usb1            vfat        noauto,users,rw,umask=1000  0  0
/dev/sdc1        /usb2            vfat        noauto,users,rw,umask=1000  0  0
If you will post your /etc/fstab we will look at it and advise you.
 
Old 09-03-2006, 11:42 PM   #6
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by Bruce Hill
It sounds as if you have the fields incorrect in /etc/fstab.

You can read "man fstab" and it tells you what goes in each field.

This example is from my workstation, where regular users can mount
them read/write (rw).
Code:
/dev/sdb1        /usb1            vfat        noauto,users,rw,umask=1000  0  0
/dev/sdc1        /usb2            vfat        noauto,users,rw,umask=1000  0  0
If you will post your /etc/fstab we will look at it and advise you.
Dear Bruce,

Thanks for the information and yes i think you are right from your side, that it will be a problem in the fstab file, but now i have change my fstab file's value same as you told and it is still giving me the same problem, i have change my fstab file codes to

/dev/sdb1 /usb1 vfat noauto,users,rw,umask=1000,0,0

and it is still giving me the same error, so i didnt came up to any results.

Thanks,
Nishant
 
Old 09-04-2006, 03:59 AM   #7
Bruce Hill
HCL Maintainer
 
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,940

Rep: Reputation: 129Reputation: 129
You must remove those commas and use spaces where you now have commas in the umask area:
Code:
/dev/sdb1 /usb1 vfat noauto,users,rw,umask=1000 0 0
 
Old 09-04-2006, 11:31 PM   #8
Nishant Desai
Member
 
Registered: Jul 2006
Posts: 100

Original Poster
Blog Entries: 1

Rep: Reputation: 15
Quote:
Originally Posted by Bruce Hill
You must remove those commas and use spaces where you now have commas in the umask area:
Code:
/dev/sdb1 /usb1 vfat noauto,users,rw,umask=1000 0 0
Ok,
Let me try out that and i will reply u soon with the result.

Thanks,
Nishant
 
  


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
Mounting a USB Flash Drive hm3buzz Linux - Hardware 4 08-25-2006 10:05 AM
USB flash drive mounting android6011 Linux - Hardware 5 01-03-2006 07:45 PM
Problem mounting usb flash drive with 2.6.12.2 kernel dcdbutler Slackware 16 09-12-2005 07:48 PM
USB flash drive mounting problem guillaume31 Linux - Hardware 4 05-23-2005 11:47 AM
USB Flash Drive not Mounting Kentara Linux - Hardware 1 03-12-2005 08:59 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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