LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 08-29-2012, 02:06 PM   #1
wguayan
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Rep: Reputation: Disabled
Bad Magic Number in Super-Block when formatting a USB Pen Drive


Hi everyone,

New to the forums but I've been using linux for several months...What brings me here today is the need for help formatting a usb pen drive via terminal. I have gparted installed in my machine, and that works just fine, however, I'd like to start leaning more towards using the terminal to get things done. I'm running linux Mint Maya.

So, these are my commands and associated error codes:

Quote:
sudo mkfs.vfat /dev/sdb1
then:

Quote:
sudo e2label /dev/sdb1 usb-8-gig
which gives me the error code:

Quote:
e2label: Bad magic number in super-block while trying to open /dev/sdb1
Couldn't find valid filesystem superblock.
I'm at a loss. I've tried several different drives and they all give me the same error code, so what am I doing wrong?

Thanks in advance!

Last edited by wguayan; 08-29-2012 at 02:31 PM.
 
Old 08-29-2012, 02:31 PM   #2
jefro
Moderator
 
Registered: Mar 2008
Posts: 22,008

Rep: Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629Reputation: 3629
mkdosfs - create an MS-DOS file system under Linux


e2label - Change the label on an ext2 filesystem


My guess that the version can't create a label on a fat format.
 
Old 08-29-2012, 02:35 PM   #3
wguayan
LQ Newbie
 
Registered: Aug 2012
Posts: 6

Original Poster
Rep: Reputation: Disabled
okay, so how can I fix the problem? Sorry if it's not immediately evident to me.

Last edited by wguayan; 08-29-2012 at 02:50 PM.
 
  


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
[SOLVED] Always getting bad magic number in super-block Mountain Linux - Hardware 1 07-01-2010 12:05 PM
bad magic number to open super block Ritho Linux - Newbie 1 03-06-2008 08:02 AM
Bad magic number in super-block Cadmium Linux - Newbie 2 10-03-2007 01:50 AM
e2fsck: Bad magic number in super-block jamesdin Debian 3 04-25-2005 05:14 PM
Bad magic number in super-block kubokubik Linux - Newbie 4 01-26-2005 10:52 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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