TechTalkz.com Logo Ask the Experts!

Go Back   TechTalkz.com Technology & Computer Troubleshooting Forums > Operating Systems > Open Source & Linux

How to format a USB drive in Linux?

Open Source & Linux

 
Reply
Thread Tools Display Modes
Unread 21-03-2013, 03:27 AM   #1
Regular Member (100+)
Thread Starter
 
Join Date: Mar 2013
Posts: 150
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 techguru is an unknown quantity at this point

Intel Nvidia

Windows XP


How to format a USB drive in Linux?

Hey does any one know hoe to format a USB drive in Linux. Was trying to format a USB drive on y office PC but could not find a option.

The options are totally different. Even to remove the drive you need to unmount the drive or mount vice-verse.

Sponsored Links
techguru is offline   Reply With Quote
Unread 21-03-2013, 09:46 AM   #2
Advanced Member (250+)
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 67 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


Re: How to format a USB drive in Linux?

Install gparted application and format your usb using that.

sudo apt-get install gparted

Please use above command for install.
shan123 is offline   Reply With Quote
Unread 22-03-2013, 03:16 AM   #3
Regular Member (100+)
Thread Starter
 
Join Date: Mar 2013
Posts: 150
Thanks: 2
Thanked 0 Times in 0 Posts
Rep Power: 0 techguru is an unknown quantity at this point

Intel Nvidia

Windows XP


Re: How to format a USB drive in Linux?

Thanks Shan123. Rep +++

BTW is the application freely available for download over the internet? Need to check it out instantly.

Quote:
sudo apt-get install gparted

Please use above command for install.
Where do I run this command? I hardly use Linux or know anything about it. Only need it cos its on my system in office.
techguru is offline   Reply With Quote
Unread 25-03-2013, 06:52 AM   #4
Advanced Member (250+)
 
Join Date: Mar 2013
Posts: 442
Thanks: 5
Thanked 10 Times in 9 Posts
Mood: Amazed
Rep Power: 67 shan123 is on a distinguished road

Intel Nvidia

Windows Server Windows 7 Linux Mac OS


Re: How to format a USB drive in Linux?

Yes it is freely available. Go to terminal (Press Alt+F2 type there gnome-terminal) in linux box and run the command.
shan123 is offline   Reply With Quote
Unread 25-03-2013, 10:57 PM   #5
Tachikoma
 
habibjp's Avatar
 
Join Date: Dec 2009
Location: Leeds
Age: 23
Posts: 2,910
Thanks: 94
Thanked 431 Times in 375 Posts
Mood: Innocent
Blog Entries: 9
Rep Power: 2486 habibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Greathabibjp is just Great

AMD ATi

Windows 10 Linux


Re: How to format a USB drive in Linux?

That command doesn't work on all distros of Linux, but most. For example on Arch I think it would be
Code:
sudo pacman install gparted
__________________
FX 4170 @4.8 w/H110
Sabertooth 990FX
XMS3 8GB
840 EVO 250GB
XFX 7870
Corsair GS500
X-Fi
Logitech Z506
---------------------------------------------
I aim to misbehave.
habibjp is offline   Reply With Quote
Unread 01-04-2013, 08:54 PM   #6
Senior Member (500+)
 
davnel's Avatar
 
Join Date: Dec 2009
Location: Montana
Age: 74
Posts: 553
Thanks: 24
Thanked 84 Times in 70 Posts
Mood: Relaxed
Rep Power: 185 davnel will become famous soon enough

Intel Nvidia

Windows 98 / Windows ME Windows NT / Windows 2000 Windows XP Windows 7 Windows 8 Linux


Re: How to format a USB drive in Linux?

A much better idea would be to make a bootable DVD from http://partedmagic.com/doku.php?id=downloads, either directly from the ISO or via UNetbootin - Homepage and Downloads. Once booted, all kinds of stuff becomes available, including partitioning, formatting, and testing. It's also a minimalist distro of Linux, running in RAM, and handy in it's own right.
__________________
The preceeding is uncalled for, unnecessary, probably illegal, and certainly inexcusable, but it's my story and I'm sticking to it!
.

Last edited by davnel; 01-04-2013 at 08:59 PM..
davnel is offline   Reply With Quote
Unread 26-07-2013, 05:32 AM   #7
Newbie
 
augustusmarvolo's Avatar
 
Join Date: Jul 2013
Age: 25
Posts: 8
Thanks: 0
Thanked 0 Times in 0 Posts
Mood: Cheerful
Rep Power: 0 augustusmarvolo is an unknown quantity at this point

Intel

Windows 98 / Windows ME Windows NT / Windows 2000 Windows XP Windows Server Windows Vista Windows 7 Windows 8


Re: How to format a USB drive in Linux?

You can try

Sudo fdisk /dev/sda
mkfs -t vfat /dev/sda1

but to use this you have to login with your root account and this will format Fat 32 m dot sure


Or You can use
su -
fdisk /dev/sda
mkfs -t vfat /dev/sda1


SU for super user

augustusmarvolo is offline   Reply With Quote
Unread 26-07-2013, 06:05 AM   #8
Elite Member (1000+)
 
echo off's Avatar
 
Join Date: Mar 2010
Location: Folkestone, UK
Posts: 2,449
Thanks: 240
Thanked 432 Times in 378 Posts
Mood: Tired
Blog Entries: 10
Rep Power: 6346 echo off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguishedecho off is extemly Distinguished

Intel Nvidia

Windows 98 / Windows ME Windows NT / Windows 2000 Windows XP Windows Vista Windows 7 Linux Mac OS


Re: How to format a USB drive in Linux?

Quote:
Originally Posted by augustusmarvolo View Post
You can try

Sudo fdisk /dev/sda
mkfs -t vfat /dev/sda1

but to use this you have to login with your root account and this will format Fat 32 m dot sure


Or You can use
su -
fdisk /dev/sda
mkfs -t vfat /dev/sda1


SU for super user

No, don't do that, because if /dev/sda is the primary hard drive that Linux is installed on, then something is bound to go wrong.

Do this:

Open terminal, then run the following commands:

apt-get:

Code:
sudo apt-get install gparted
Pacman:

Code:
sudo pacman install gparted
Yum:

Code:
sudo yum install gparted
Then you should be able to use gparted's graphical front end to format the memory stick easily.

Last edited by echo off; 26-07-2013 at 06:09 AM..
echo off is offline   Reply With Quote
Unread 16-12-2013, 02:15 AM   #9
Senior Member (500+)
 
RootbeaR's Avatar
 
Join Date: Sep 2009
Location: Canada
Posts: 837
Thanks: 12
Thanked 96 Times in 84 Posts
Rep Power: 250 RootbeaR will become famous soon enoughRootbeaR will become famous soon enough



Windows XP Windows 7 Windows 8 Linux


Re: How to format a USB drive in Linux?

Quote:
Originally Posted by techguru View Post
Hey does any one know hoe to format a USB drive in Linux. Was trying to format a USB drive on y office PC but could not find a option.

The options are totally different. Even to remove the drive you need to unmount the drive or mount vice-verse.
I plug in drive, tell it to open it with file manager, r-click the drive>Format No unmounting. R-click> safely remove(unmounted). Not sure what all this other stuff is telling you to install this n that.
__________________
"All hear my warning
Never turn your back
Or I'll attack...attack..."
The Ripper
Judas Priest
RootbeaR is offline   Reply With Quote
Unread 03-02-2015, 07:13 PM   #10
Newbie
 
Join Date: Aug 2014
Age: 37
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Mood: Amused
Rep Power: 0 Tomanys is an unknown quantity at this point

Intel Nvidia

Linux


Re: How to format a USB drive in Linux?

Sponsored Links
You can do this using the fdisk command. Just type fdisk, followed by the name of the device you would like to format. You can find out the name of your USB device by looking at the last few lines of the /var/log/messages file after you plug in the USB device.

More info about fdisk:

fdisk | linux-bible.com

Sponsored Links
Tomanys is offline   Reply With Quote
Reply

Thread Tools
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Linux help - How to install Linpus Linux Lite from USB Flash drive? fanglore Open Source & Linux 5 04-01-2011 05:16 PM
Linux without a hard drive thjeyam Open Source & Linux 31 25-02-2010 02:13 PM
Media Format SDK for Linux Rahul D Windows Media 24 01-12-2007 02:25 PM
installing xp and linux on pen drive vishal Windows XP 1 05-09-2007 11:59 PM
C drive in linux nitinjavakid Open Source & Linux 2 01-07-2006 02:34 PM


< Home - Windows Help - MS Office Help - Hardware Support >


New To Site? Need Help?

All times are GMT. The time now is 02:21 PM.


vBulletin, Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © 2005-2016, TechTalkz.com. All Rights Reserved - Privacy Policy
Valid XHTML 1.0 Transitional