PDA

View Full Version : [ubuntu] formatting flash drive



num
August 20th, 2009, 02:38 AM
Hello,

I got Ubuntu 8.04 LTS and I wiped a 2.0 GB Flash Drive using KillDisk (using the Guttman algorithm) on a Windows XP computer, I formatted it FAT16 and FAT32 (tried both) but it won't mount on Ubuntu. I tried erasing and reformatting with FAT but it won't mount that. What is going on?

SoftwareExplorer
August 20th, 2009, 05:09 AM
What if you do Applications->Add/Remove and search for Gparted. Put a check my gnome partition editor and apply chenges. Then go to System->Administration->Partition editor. What if you format it with that program? Then does it mount?

riazrahaman
August 20th, 2009, 07:46 AM
assuming that you have sudo access on your machine.

Before inserting the flash drive do

$> sudo dmesg -c

Then insert the flash drive and do dmesg.

Copy paste the output here.

If you see something like /dev/sdd, then do the below

1. mkdir sd any where, for example /home/abc/sd
2. sudo mount /dev/sdd /home/abc/sd _OR_ sudo mount /dev/sdd1 /home/abc/sd

Bucky Ball
August 20th, 2009, 08:00 AM
assuming that you have sudo access on your machine.

Before inserting the flash drive do

$> sudo dmesg -c

Then insert the flash drive and do dmesg.

Copy paste the output here.

If you see something like /dev/sdd, then do the below

1. mkdir sd any where, for example /home/abc/sd
2. sudo mount /dev/sdd /home/abc/sd _OR_ sudo mount /dev/sdd1 /home/abc/sd

All good advice but rather than anywhere, I would put it where it is supposed to be:


sudo mkdir /media/name_of_your_sd_mountpoint_hereThen type:


sudo mount -a

I would definitely attempt to format the drive with Partition Editor (Gparted) first and see if that works.

num
August 20th, 2009, 08:41 PM
I can format it ext3 and it will mount but FAT it will not mount :(

num
August 21st, 2009, 11:03 PM
anyone?

SoftwareExplorer
August 22nd, 2009, 02:38 AM
What if you use ntfs? windows can read it and so can Linux.

Bucky Ball
August 22nd, 2009, 03:11 AM
If you have it formatted in FAT (not sure why you're keen on this as it is not the best), make sure it appears in:


sudo blkid If it is not there, skip to the end of this post. If it is, take note of its 'sd*' and UUID number. Then:


sudo mkdir /media/name_of_your_sd_mountpoint_here... This can be any name. Open your fstab file:


sudo nano /etc/fstabYou should have the correct UUID number for the device from the results of 'sudo blkid' so; add something like this line at the bottom with the correct details:


# /dev/sd** (this line only to identify drive, commented out with a # so not read by machine)
UUID=4893-E3A6 /media/mount_point_you_just_made vfat defaults,umask=0002,gid=46 0 0
In bold are the bits you need to change. Finally;


sudo mount -aIf the device is showing up in 'sudo blkid', then it is mountable. As mentioned in a previous post, NTFS might be a better choice. If you go that way, ntfs-3g mounts and adds things to fstab very easily. System->Admin->Synaptic, search for and install 'ntfs-3g'. It will then be in your drop down menu. Run it and it will identify and present NTFS devices and ask what you want to do with them.

Hope this is of some help. :)