ceb0
![]() |
|
|
|
|
|||||||
| Howtos & FAQs (Moderated) Would you like to share some of your solutions for certain problems? Tips or tricks? Post here. All new topics are automatically moderated. |
![]() |
|
|
Thread Tools | Display Modes |
|
#1
|
||||
|
||||
|
The partition and formatting on a USB flash memory drive is sometimes a bit faulty.
Symptoms include (but are not limited to) FreeBSD complaining about the start and/or end of the partiton not being on a track boundary, the total number of sectors not being a multiple of the number of tracks, the drive not being recognised especially in MS Vista and errors when saving files in Windows. If you have a malfunctioning USB stick try this: Copy off any files you want to keep. (important) Plug in the stick and check what device it is recognised as. It's usually da0 if you don't have any SCSI drives. But CHECK. Now remove the existing partiton information: # dd if=/dev/zero of=/dev/da0 bs=2m count=1Create a new slice/partiton # fdisk -i /dev/da0In the interactive section accept the defaults except for sysid, which is 165 for FreeBSD but for FAT32 is 12. Ignore the 'fdisk: Class not found' error. Create a new file system ('format') # newfs_msdos -F32 /dev/da0s1Enjoy working USB drive. Last edited by DutchDaemon; February 12th, 2010 at 21:12. Reason: added [cmd] tags |
|
#2
|
||||
|
||||
|
Why would one want to partition usb flash?
Simply run newfs_msdos /dev/da0, and it works well
|
|
#3
|
||||
|
||||
|
Hmmm, now I'm going to have to find another USB drive with a wonky filesystem to try that on.
|
|
#4
|
||||
|
||||
|
I've seen a flash drive get a corrupted partition table before. No idea how it got that way, but the above is exactly how I was able to make it usable again. (After playing with it to recover the data off of it of course, but that's another discussion.)
|
|
#5
|
||||
|
||||
|
Quote:
*okay, I didn't need an 8G flash drive at all, but the dang thing was on sale for less than a 4G drive
__________________
Quid habemus reliquum? Nutrimentum anatum! Внимание: лифт вниз не поднимает |
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| [Solved] USB flash drive woes | Eponasoft | Peripheral Hardware | 22 | January 22nd, 2010 01:30 |
| Installing on a USB Flash drive? | diskman | Installing & Upgrading | 4 | January 4th, 2010 17:18 |
| Installing from USB flash drive. | Barnon | Installing & Upgrading | 7 | August 19th, 2009 16:09 |
| Can't mount usb flash drive | pigritia | Multimedia | 17 | July 28th, 2009 00:18 |
| usb flash drive and gam_server - can't umount | arachnid | Multimedia | 2 | November 16th, 2008 21:55 |