LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 03-10-2012, 07:14 AM   #1
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: OpenBSD, RedHat, Arch, ..
Posts: 90

Rep: Reputation: Disabled
Linux USB Low Level Format Tools ??


Hi,
i have a usb pendrive that contain virus and when i attached to my pc it mounted as read-only device !!
How i can low level format it in my fedora linux (or any other linux distros)?
 
Old 03-10-2012, 08:20 AM   #2
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member response

Hi,

Look at: Restore Your USB Key to it's original state | USB Pen Drive Linux

Good instructive howto for both Windows & Linux!
 
Old 03-10-2012, 11:07 AM   #3
DavidMcCann
LQ Veteran
 
Registered: Jul 2006
Location: London
Distribution: PCLinuxOS, Debian
Posts: 6,137

Rep: Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314Reputation: 2314
Alternatively, just use gparted.
 
1 members found this post helpful.
Old 03-10-2012, 03:01 PM   #4
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: OpenBSD, RedHat, Arch, ..
Posts: 90

Original Poster
Rep: Reputation: Disabled
Exclamation

Quote:
Originally Posted by onebuck View Post
Hi,

Look at: Restore Your USB Key to it's original state | USB Pen Drive Linux

Good instructive howto for both Windows & Linux!
I don't access to any windowz OS !

Quote:
Originally Posted by DavidMcCann View Post
Alternatively, just use gparted.
@ first i tested with GPARTED and when i did not success with gparted tell this forum .
 
Old 03-10-2012, 04:31 PM   #5
jefro
Moderator
 
Registered: Mar 2008
Posts: 21,974

Rep: Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623Reputation: 3623
Companies that make flash drives know about this condition. Some offer a program to fix it.
 
Old 03-11-2012, 01:31 PM   #6
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: OpenBSD, RedHat, Arch, ..
Posts: 90

Original Poster
Rep: Reputation: Disabled
I did not find any tools to repair my HP USB PEN in Linux !!
All of tools that founded are in M$ Windowz !!
isn't any way in linux ??!
 
Old 03-11-2012, 08:03 PM   #7
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,923
Blog Entries: 44

Rep: Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158Reputation: 3158
Member response

Hi,

Quote:
Originally Posted by mbzadegan View Post
I did not find any tools to repair my HP USB PEN in Linux !!
All of tools that founded are in M$ Windowz !!
isn't any way in linux ??!
Quote:
from Restore Your USB Key to it's original state | USB Pen Drive Linux;
Restoring your USB key to it's original state using Linux:
A. First we need to delete the old partitions that remain on the USB key.
  1. Open a terminal and type sudo su
  2. Type fdisk -l and note your USB drive letter.
  3. Type fdisk /dev/sdx (replacing x with your drive letter)
  4. Type d to proceed to delete a partition
  5. Type 1 to select the 1st partition and press enter
  6. Type d to proceed to delete another partition (fdisk should automatically select the second partition)
B. Next we need to create the new partition.
  1. Type n to make a new partition
  2. Type p to make this partition primary and press enter
  3. Type 1 to make this the first partition and then press enter
  4. Press enter to accept the default first cylinder
  5. Press enter again to accept the default last cylinder
  6. Type w to write the new partition information to the USB key
  7. Type umount /dev/sdx1 (replacing x with your drive letter)
C. The last step is to create the fat filesystem.
  1. Type mkfs.vfat -F 32 /dev/sdx1 (replacing x with your USB key drive letter)
That's it, you should now have a restored USB key with a single fat 32 partition that can be read from any computer.
Seems you failed to read further down on the page.
 
Old 03-12-2012, 03:47 AM   #8
mbzadegan
Member
 
Registered: Jul 2011
Location: Beside of Andromeda !
Distribution: OpenBSD, RedHat, Arch, ..
Posts: 90

Original Poster
Rep: Reputation: Disabled
I have been tried with fdisk , but when i want to write ( With w key ) Error me to unable write anything on it !!!
 
  


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
tools to low level format and otehr tests on usb harddisk khaleel5000 Linux - Newbie 3 10-10-2009 07:45 AM
low level format juanb Linux - General 1 02-08-2006 03:16 AM
low-level format DanTaylor Linux - Newbie 7 01-22-2006 03:52 PM
Low-level format under Linux with an AHA-1522 rcase5 Linux - Hardware 2 04-12-2005 02:33 PM
How do I low-level format a SCSI drive on Aurora Sparc Linux v1.0? JustinCase Linux - Hardware 3 03-02-2004 11:22 PM

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

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