View Single Post

  #6 (permalink)  
Old 08-14-2007
ToddAndMargo
 
Posts: n/a
Default Re: how do I remove extra annoying partition from USB stick

Marc wrote:
> ToddAndMargo wrote:
>
>> Gregory Shearman wrote:
>>> ToddAndMargo wrote:
>>>
>>>> HI All,
>>>>
>>>> I have a PQI U339Pro USB thumb drive. It comes
>>>> with an extra 10 Meg partition with usb utilities
>>>> targeted at M$Windows users.
>>>>
>>>> How do I get rig of this turkey!
>>>>
>>>> Many thanks,
>>>> -T
>>> man fdisk
>>>

>> fdisk says it can not write to the drive.
>> Any other ideas?

>
> Did you try sudo gparted ?
> I had a'secured' USB stick from work, and it only worked with windows.
> With gparted, I threw out all partitions.
> Once the stick was completely empty, I created a new fat32 partition.
> Now I can use the stick in both windows and linux environments
>


YIPEE!!! THANK YOU!

-T

Warning: if you follow my example below, make sure you substitute
the proper dev device for your thumb drive (mine was /dev/sdc).
DO NOT USE /dev/sdc UNLESS IT REALLY IS YOUR THUMB DRIVE!!!


#su

#parted /dev/sdc rm
Partition number? 1
Information: Don't forget to update /etc/fstab, if necessary.



# fdisk /dev/sdc

Command (m for help): p

Disk /dev/sdc: 4194 MB, 4194303488 bytes
130 heads, 62 sectors/track, 1016 cylinders
Units = cylinders of 8060 * 512 = 4126720 bytes

Device Boot Start End Blocks Id System

Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-1016, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-1016, default 1016):
Using default value 1016

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): e
Changed system type of partition 1 to e (W95 FAT16 (LBA))

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: If you have created or modified any DOS 6.x
partitions, please see the fdisk manual page for additional
information.
Syncing disks.



# mkfs.vfat -v -c -n MyCDs /dev/sdc1
mkfs.vfat 2.11 (12 Mar 2005)
Auto-selecting FAT32 for large filesystem
/dev/sdc1 has 130 heads and 62 sectors per track,
logical sector size is 512,
using 0xf8 media descriptor, with 8188898 sectors;
file system has 2 32-bit FATs and 8 sectors per cluster.
FAT size is 7982 sectors, and provides 1021612 clusters.
Volume ID is 46c1ea87, volume label MyCDs .
Searching for bad blocks 124496... 247904... 372192... 495840...
619744... 744272... 868704... 992608... 1116768... 1240672... 1364960...
1488992... 1613280... 1737952... 1862752... 1987040... 2111328...
2236000... 2360800... 2485200... 2609376... 2734048... 2858720...
2982736... 3106784... 3230560... 3355232... 3478880... 3602528...
3727072... 3851744... 3975904...
Reply With Quote