I have a 4G USB flash drive that I want to divide into two partitions
in order to try to make the USB bootable then. According to Google
researching, USB flash drives cannot be partitioned if the drive is
identified as removable media, which it is. It also says the only
way to partition a USB flash drive is to flip a 'removable bit' so
that the drive is recognized as fixed media instead which then can be
partitioned like any normal hard drive. The suggested Lexar 'bootit'
doesn't do it - for me anyhow. Anyone care to suggest a different
method to try for this?
Thank you
me
Well, I gave it a try.
From Linux, I used fdisk (the partitioning tool).
1) Boot a Linux LiveCD. Use the 10.04LTS one for now,
as Unity (tablet interface) on the newer version is a pain.
http://www.ubuntu.com/download/ubuntu/download
2) Once the desktop is up, open a Terminal.
http://www.serversidemagazine.com/images/php53-vde/ubuntu-open-terminal.jpg
3) Use this command, to list devices. "sudo" is the equivalent of
"Run as Administrator" and allows direct access to hardware devices.
sudo ls /dev
4) I see things like sda, sda1, sda2, sda3, sda4 and that is my first hard drive.
I see sdb, sdb1, sdb2, sdb3, sdb4 and that is my second hard drive with four
primary partitions.
I see sdc, sdc1 and that appears to be my USB flash 8GB.
Now, use "fdisk" to do the re-partitioning of sdc. You can see that, if
you managed to select the wrong drive, you'd make a royal mess. That's why,
if you cannot figure out which drive is which, stop here!
sudo fdisk /dev/sdc
5) The steps would be.
a) Remove all previous partitions, using partition delete.
b) Create one new partition. I made mine 200 cylinders, which
is around 1.5GB or so. A cylinder, with standard default
geometry, is around 8MB each. Times 200 gives you around 1.5GB.
You wouldn't want to go past 2GB if doing FAT16.
c) Change the partition type. I think I set mine to "6" for my
new primary partition #1. "6" is FAT16, with a 2GB upper limit.
d) Verify everything looks good with the "print" command, which
prints the new table.
e) Then use the "write" command, which writes the new partition table,
tells the kernel it's been updated, and then quits the fdisk command.
6) Now, back in the Terminal again, you can format the thing FAT16.
sudo mkfs.vfat -F 16 -l BURP /dev/sdc1
7) Now, go to "Places" menu at the top of the screen, try "Computer" and
all your partitions should be shown, including the new "BURP" partition.
Clicking on "BURP", should show an empty partition. The purpose of
clicking on the partition in this menu, is to get it mounted for free,
without typing a terminal command. It should be mounted under /media.
8) Now, go back to Terminal again, and attempt to make an empty text file.
touch /media/BURP/mytest.txt
If the file exploration window is still open, you might see the new
empty text file appear in there.
9) OK, now you can go to the upper right, and select "reboot" as your
restart option. Ubuntu will unmount "BURP" partition, sync and flush
so it's safe, and then shutdown and reboot.
Now, you're back in Windows, and should have a 1.5GB partition on your
oversized USB flash.
*******
When I worked out the steps, I tried to create two FAT16 partitions.
But Windows doesn't like it. I tried to create BURP and FART, two
FAT16 partitions, each 200 cylinders. I put a test text file in each one.
In Windows Disk Management, this is what Windows can see. It realizes the
second partition exists, but refuses to mount it. So removable media appears
to only support the one working partition. Which is fine for the
odd experiment, but not very practical. This is a screenshot of
Disk Management, showing my flash stick. Notice that although BURP
and FART both worked in Linux, in Windows, only BURP shows up. The
partition table knows there is a FART, but won't allow you to use it.
http://img823.imageshack.us/img823/4461/dm4flash.gif
And this does no good, if a tool wants to "redefine" the entire flash,
as it will erase the flash, run into a device larger than 2GB and
freak out. Doing this to a flash, only helps if the tool will
work within the confines of a single partition (like, work with
the BURP it finds).
HTH,
Paul