LinuxQuestions.org
Help answer threads with 0 replies.
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 01-08-2010, 10:55 AM   #1
idbisoft
LQ Newbie
 
Registered: Jan 2010
Posts: 1

Rep: Reputation: 0
Cannot Format my pendrive..


I cannot format my Transcend 4 Gb Pen Drive.. When i try to format with the following command :

richy@richy-desktop:~$ sudo mkfs.vfat -F 32 -n richy /dev/sdc
[sudo] password for richy:
mkfs.vfat 3.0.1 (23 Nov 2008)
mkfs.vfat: unable to open /dev/sdc
richy@richy-desktop:~$


I'm not able to format it...

dmesg gives:

[ 4745.338019] Initializing USB Mass Storage driver...
[ 4745.338674] scsi6 : SCSI emulation for USB Mass Storage devices
[ 4745.339274] usb-storage: device found at 2
[ 4745.339278] usb-storage: waiting for device to settle before scanning
[ 4745.339325] usbcore: registered new interface driver usb-storage
[ 4745.339336] USB Mass Storage support registered.
[ 4750.336301] usb-storage: device scan complete
[ 4750.337010] scsi 6:0:0:0: Direct-Access JetFlash Transcend 4GB 8.07 PQ: 0 ANSI: 2
[ 4750.339867] sd 6:0:0:0: [sdc] 7843840 512-byte hardware sectors: (4.01 GB/3.74 GiB)
[ 4750.341398] sd 6:0:0:0: [sdc] Write Protect is off
[ 4750.341405] sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 4750.341410] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 4750.359260] sd 6:0:0:0: [sdc] 7843840 512-byte hardware sectors: (4.01 GB/3.74 GiB)
[ 4750.360529] sd 6:0:0:0: [sdc] Write Protect is off
[ 4750.360536] sd 6:0:0:0: [sdc] Mode Sense: 03 00 00 00
[ 4750.360541] sd 6:0:0:0: [sdc] Assuming drive cache: write through
[ 4750.360553] sdc: sdc1
[ 4750.744644] sd 6:0:0:0: [sdc] Attached SCSI removable disk
[ 4750.744800] sd 6:0:0:0: Attached scsi generic sg3 type 0
[ 5068.591301] end_request: I/O error, dev fd0, sector 0
[ 5106.639868] end_request: I/O error, dev fd0, sector 0
[ 5106.639881] Buffer I/O error on device fd0, logical block 0
[ 5144.682939] end_request: I/O error, dev fd0, sector 0
[ 5144.682951] Buffer I/O error on device fd0, logical block 0
[ 5182.719187] end_request: I/O error, dev fd0, sector 0
 
Old 01-08-2010, 11:13 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 17,926

Rep: Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690Reputation: 3690
Quote:
Originally Posted by idbisoft View Post
I cannot format my Transcend 4 Gb Pen Drive.. When i try to format with the following command :

richy@richy-desktop:~$ sudo mkfs.vfat -F 32 -n richy /dev/sdc
[sudo] password for richy:
mkfs.vfat 3.0.1 (23 Nov 2008)
mkfs.vfat: unable to open /dev/sdc
richy@richy-desktop:~$
Right. You're trying to format the entire device, not the partition that's ON the device.

First, make sure the device is not mounted. Then, you have two options: either run
Code:
fdisk /dev/sdc
and blow away the old partition(s), and make new ones. You can even make multiples at this stage, so you'll wind up with /dev/sdc1, /dev/sdc2, etc.

Once you make the partitions, you have to make the file systems. Replace the /dev/sdc in your command above, with the partition name, like /dev/sdc1, etc.
 
Old 01-08-2010, 12:20 PM   #3
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,787

Rep: Reputation: 211Reputation: 211Reputation: 211
U3...

Does it have U3 on it? Formatting will not usually remove U3, it needs a special removal program that runs under windows.

http://www.u3.com/support/default.aspx#CQ1
 
Old 01-08-2010, 12:57 PM   #4
Samotnik
Member
 
Registered: Jun 2006
Location: Belarus
Distribution: Debian GNU/Linux testing/unstable
Posts: 471

Rep: Reputation: 40
Have you tried sudo mkfs.vfat -F 32 -n richy /dev/sdc1?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Unable to Format pendrive, Delete contents teluguswan Linux - Hardware 8 11-19-2009 07:28 AM
Pendrive format command in Fat16 from Redhat linux OS? vikibd007 Red Hat 1 07-29-2009 03:01 PM
How to format pendrive in FAT32 format chrischristian Linux - Newbie 12 01-20-2009 09:01 AM
How to install and configure grub on pendrive while os' are on the same pendrive? CeremCem DamnSmallLinux 0 11-07-2006 12:10 PM
How to format FAT32 on pendrive satimis Linux - Software 8 03-16-2006 09:23 PM


All times are GMT -5. The time now is 04:37 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration