Skip to content
View in the app

A better way to browse. Learn more.

Thailand News and Discussion Forum | ASEANNOW

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Linux Format

Featured Replies

In the past whenever I wanted to empty a memory stick of all data, I borrowed a Windows machine and used 'Format'.

Is there an equivalent Linux command??

Colin

  • Author

Thanks Tywais but how on earth do I specify the device I want to format?

Thanks Tywais but how on earth do I specify the device I want to format?

I take it you have not mounted a Flash drive on your linux box? If you have, it will be the same /dev/xxx as that one. As mentioned in the article, need to be sure you select the right device.

Normally the main hard drive will be /dev/hda or /dev/sda followed by a 1, 2, etc for the partition. Example /dev/hda1 (or /dev/sda1 depending on your system) will be the first hard drive first partition.

Normally the Flash drive will be /dev/sdb. Best way to check is try mounting the flash drive to determine which device is correct. You can make a test directory such as "mkdir /test" (without parenthesis) then "mount -t vfat /dev/sdb1 /test" and then do a "ls -la /test" to see if the files show up on it. It may be vfat or vfat32 depending on how it was formatted in windows.

You can use any of the programs that are used to make a partition.  exp gparted a gui program, just start it and select the device like sdb and partition you want to format and click click.  You get the warning format will distroy the data on that partition. etc.  Just like disk managment in windows only ten time as many options in format type from fat16 to ntfs  another is qtparted there are about ten of them out there.  You will see all the partition on the PC with these make sure you don't select the wrong one, but its normally pretty easy if you have ever uses the windows one before. its just about the same thing with differant colour used to show the differant type of formats in use.  no commandline needed for this.  You can even get livecd versions of these programs to clean and build drives before use.

exp gparted a gui program,

I figured there must be a GUI version on the distributions, but not sure which one the OP is using. Since I run only Linux servers, I do nearly everything by command line and should have looked up the GUI versions. That sounds like a simpler method as long as the right device is determined.

Just a small correction in your reply regarding "any of the programs that are used to make a partition." I use cfdisk exclusively, a standard partition app with all distributions. You have to then format with another application such as mkfs after running it.

A word to the wise - most thumbdrives use MS Fat16/32 as the file medium. This is not the same as the GParted/cfdisk/etc utilities we use in Linux. I didnt know this either, but it was discussed extensively on another forum. It has - clearly - to do with MS compatibility, etc.

Dual boot. Find another GF - one with M$. :):D

That also does not guarantee that ya wont format root/C\:/yadda by accident!!!!

BR>Jack

I use gparted (aka partition editor), which came as standard equipment on Ubuntu, to reformat all of my flash drives FAT 32 on a regular basis, and never had a problem with using them on Windows. Actually, they are immediately reformated and sanitized using linux any time they have been used on a public computer, such as a photo shop, before they even get close to my Windows machine.

higgy88 same here, unline windows you don't have to download another format prog to do the job lol

do i miss the viruses

no

PastEgo

Step by step guide to formatting a Flash drive as FAT16/FAT32 or other file system formats using Ubuntu and GParted > Format a USB Flash Drive

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.