LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 07-25-2012, 03:34 AM   #1
ashangel
LQ Newbie
 
Registered: Jul 2012
Location: Home
Posts: 19

Rep: Reputation: Disabled
Error mounting /dev/sdb2, wrong fs type, bad option, bad superblock on /dev/sdb2


Hi,
I have a 1 GB compact flash drive which is divided in to two partitions.
When I insert CF, partition1 mounts correctly showing the contents.

However, partition2 doesnt mount, gaves following error:

[root@ash ~]# mount /dev/sdb2 /mnt/cf2
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

[root@ash ~]#

I did dmesg, got the following:
[ 8079.980702] sd 7:0:0:0: [sdb] Attached SCSI removable disk
[ 8080.376894] SELinux: initialized (dev sdb1, type vfat), uses genfs_contexts
[ 8080.378993] EXT4-fs (sdb2): mounting ext3 file system using the ext4 subsystem
[ 8080.443187] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null)
[ 8080.443205] SELinux: initialized (dev sdb2, type ext3), uses xattr
[ 8762.791409] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm ls: lblock 0 mapped to illegal pblock (length 1)
[ 8772.921186] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm pool: lblock 0 mapped to illegal pblock (length 1)
[ 8777.913372] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm pool: lblock 0 mapped to illegal pblock (length 1)
[ 8781.056920] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm pool: lblock 0 mapped to illegal pblock (length 1)
[ 8805.949750] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm pool: lblock 0 mapped to illegal pblock (length 1)
[ 8816.091232] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm ls: lblock 0 mapped to illegal pblock (length 1)
[ 8844.117868] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm pool: lblock 0 mapped to illegal pblock (length 1)
[ 8846.833007] EXT4-fs error (device sdb2): ext4_map_blocks:491: inode #2: block 512: comm pool: lblock 0 mapped to illegal pblock (length 1)
[ 9011.048591] sdb: detected capacity change from 1014644736 to 0
[ 9018.128030] usb 2-1.2: USB disconnect, device number 6


Any help please??
 
Old 07-26-2012, 04:04 PM   #2
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,623

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
what operating system is this ??
from the "SELinux" part i am GUESSING
RHEL5
RHEL6
Fedora16
Fedora17
CentOS6.3
SL6.2
any others are unsupported

also WHAT operating system MADE the flash drive?
windows 7?Vista? xp?
or
an Apple Mac ?

off hand i would GUESS that sdb2 is NTFS if windows was used

" mount /dev/sdb2 /mnt/cf2 "
also unless YOU have this IN your fstab file
you NEED to add the type of partition this is

Code:
 mount -t vfat /dev/sdb2 /mnt/cf2
-----
 mount -t ntfs-3g /dev/sdb2 /mnt/cf2
---------------
 mount -t ext3 /dev/sdb2 /mnt/cf2
 
Old 07-28-2012, 08:59 PM   #3
Karl Godt
Member
 
Registered: Mar 2010
Location: Kiel , Germany
Distribution: once:SuSE6.2,Debian3.1, aurox9.2+3,Mandrake?,DSL? then:W7st,WVHB, #!8.10.02,PUPPY4.3.1 now:Macpup
Posts: 314

Rep: Reputation: 45
Code:
fsck -v -f /dev/sdb2
 
Old 08-06-2012, 03:41 AM   #4
ashangel
LQ Newbie
 
Registered: Jul 2012
Location: Home
Posts: 19

Original Poster
Rep: Reputation: Disabled
Smile

Quote:
Originally Posted by John VV View Post
what operating system is this ??
from the "SELinux" part i am GUESSING
RHEL5
RHEL6
Fedora16
Fedora17
CentOS6.3
SL6.2
any others are unsupported

also WHAT operating system MADE the flash drive?
windows 7?Vista? xp?
or
an Apple Mac ?

off hand i would GUESS that sdb2 is NTFS if windows was used

" mount /dev/sdb2 /mnt/cf2 "
also unless YOU have this IN your fstab file
you NEED to add the type of partition this is

Code:
 mount -t vfat /dev/sdb2 /mnt/cf2
-----
 mount -t ntfs-3g /dev/sdb2 /mnt/cf2
---------------
 mount -t ext3 /dev/sdb2 /mnt/cf2
Its fedora 17 and the same OS has built the cf.

I have found the error I made that caused the problem.
I did:
cp mycode /dev/sdb2

instead of:

cp mycode /mnt/cf2

anyhow, I used the cfsk utility and it solved the problem.

Thanks
 
  


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
Problem mounting CD-ROM: wrong fs type, bad option, bad superblock on /dev/cdrom Oooska Linux - Newbie 7 07-10-2013 11:37 AM
ERROR AT MOUNTING USB :mount: wrong fs type, bad option, bad superblock on /dev/sda1, saiket Linux - Hardware 3 04-12-2008 12:07 AM
mount: wrong fs type, bad option, bad superblock on /dev/sda1 yekim Linux - Hardware 10 07-05-2007 11:28 AM
usb drive won't mount - error: wrong fs type, bad option, bad superblock on /dev/sda1 bluecog6 Linux - Hardware 4 01-27-2007 09:07 AM
mount: wrong fs type, bad option, bad superblock on /dev/sdb1 pmoreira Linux - Hardware 5 02-26-2004 10:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

All times are GMT -5. The time now is 08:41 PM.

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