All Posts Tagged With: "pendrive"

FAT32 vs. NTFS On USB Stick [How-To]

When formatting a USB stick in Windows (something many of us do from time to time), in XP you usually only have two file system options, FAT or FAT32. "FAT", by the way, means "File Allocation Table".

If you were wondering which to pick, the answer is FAT32 because it overcomes certain limitations of FAT.

However if you have a USB stick that’s over 4GB in size, you may want to consider formatting with NTFS instead.

The reason? FAT32 can only recognize a maximum individual file size of 4GB (or to be exactly specific, 4GiB minus 1 byte). If a single file is any larger than that, FAT32 won’t "understand" it and you’ll get an error on attempt to copy that big file over.

For those wondering "What file could possibly be that large?" Video and ISO disc images (such as some big-big Linux distros) can easily go over 4GB in size – and yes, some people will push these files to USB sticks if they have the space. Why not, right?

In XP (but not Windows 2000), the problem that presents itself is that if you have a USB stick that holds over 4GB of data, how do you format it using NTFS instead of FAT32?

One way to do it is via the Device Manager.

  1. Go to Control Panel.
  2. Double-Click System icon.
  3. From the window that appears, click the Hardware tab.
  4. Click the Device Manager button.

Under "Disk Drives", if the USB stick is plugged into your computer, it will show up under there, like this:

image

What we need to do here is change the policy to "Performance" instead of "Quick Removal".

The way we do this is by right-clicking the USB drive listing, selecting Properties and then from the window that appears select the Policies tab.

It looks like this:

image

Click Optimize for performance and click OK.

Go to format your USB stick (you will have  to format it), and…

image

Success! Now we have the NTFS option!

DRAWBACK:

Yes there is a drawback to this and a rather large one.

When you have your USB stick set up in this mode, you absolutely must use the "Safely Remove Hardware" method before disconnecting the stick from the computer and you absolutely CANNOT forget to do this. If you do, the data is sure to get corrupted in short order.

If you can deal with that "Safely remove" stuff, go ahead with an NTFS file system on a USB stick larger than 4GB so you can write bigger-than-4GB files to it.

And remember, there’s no need to do this unless you specifically intend to push 4GB+ files on a USB stick.

How To Get A Full Install Of Linux On A USB Stick

In previous articles and videos I’ve discussed how to get a "Live" mode (i.e. as if your computer were booting from CD) of Linux on a USB stick. Some people think this is cool but would rather have a full CD-sized distribution installation instead. And when I said "CD-sized" I’m referring to distributions that take up the entire contents of a CD (such as Ubuntu) and not "biz card" distros like Puppy Linux and Damn Small Linux.

To do this it isn’t dependent on the distribution you’re using (you can use any you like) but more so on your USB stick itself.

Consider it this way: You want to use your USB stick as a "hard drive", so to speak. Being that’s the case, you need a stick that exceeds the minimum requirements for the OS to work.

Using Ubuntu as an example, the minimum requirement according to its native installer is a drive that has at least 2048MB free. A 2GB USB stick isn’t enough because it doesn’t have enough minimum space – so you need a 4GB USB stick.

Side note: Think a 4GB USB stick is expensive? It’s isn’t. It’s 8 bucks. And I remember not more than 3 to 4 months ago they were $22. These things are getting so unbelievably cheap it’s ridiculous – and they all work.

My recommended method for installing a full Linux distro on a 4GB USB stick

Before continuing, yes the way I do it is complete overkill – but I like to have absolute 100% confirmation that the Linux install absolutely positively will not touch the internal hard drive of my system. You’ll understand what I mean by that in a moment.

1. Head into the BIOS of your computer and from the boot device order set the first to be CDROM and the second to be USB-FDD, USB-HDD or USB-CDROM.

If USB-FDD doesn’t work for a boot device, try USB-HDD. If USB-HDD doesn’t work, try USB-CDROM. One of them will eventually work. And if not, try plugging the USB stick directly into the back of the computer (as in use the USB ports that are directly off the motherboard and not the ones wired to the front of the case).

2. Power off your computer, open the case and physically disconnect the hard drive from the motherboard.

This is the overkill part. Not entirely necessary, but I don’t want GRUB to even know the internal hard drive exists – because even if you set the hard drive "not to exist" in your BIOS, the Linux installation will still "see" your internal hard drive on most motherboards. I go the extra mile by cracking open the case and unplugging the SATA connector from the motherboard physically.

Before rebooting the computer:

Pop in your Linux distro CD-ROM into the tray because you’ll need to boot from it to install the OS to the USB stick.

Insert the USB stick you want to install the OS to into one of your open USB ports.

3. Reboot and proceed with a normal Linux distro installation.

If all goes well, your computer will boot up, spin up the CD-ROM and launch Linux in a Live mode. From there you proceed with a normal installation. Being your hard drive is physically disconnected the OS will be forced to pick the USB stick as its only means of media to install the OS to.

When done, the OS will prompt you to eject the disc (which you do), then restart the computer.

4. Reboot and test the Linux OS off the USB stick to make sure everything works okay.

On reboot you should have a full Linux OS ready-to-rock. If so, you’re all done with that.

5. Shut down, power off the computer and reconnect the internal hard drive to the motherboard.

Once the USB stick has a full Linux OS on it you’re safe to reconnect your hard drive back to the motherboard.

6. Do a test boot with the USB stick inserted to see if it loads first before the internal hard drive does.

Your boot order should be CDROM, USB-FDD (or HDD or CDROM) then HDD. So what your computer should do is try to boot from the optical drive first, then the USB stick and then the internal hard drive.

If all goes well, whenever the USB stick is plugged into the computer and booted from a "cold start", it will always boot from the USB stick first whenever you want to go into Linux. When done you log out of Linux, shut down, power off, unplug the stick and reboot again to go back to the internal hard drive’s OS.

Final notes

You should bear in mind that by installing a Linux OS on a USB fashion it will not be portable. What this means is that the OS will set itself to use the computer it is first booted from and configure itself as such.

If you take the USB stick after a full install and boot, then bring it to another computer with different hardware and boot from that, chances are high that the internal settings of the OS on that stick will get all messed up because it’s "expecting" a different the computer it was first booted from. Sure, you can simply reconfigure everything and get it working again relatively quickly for anything messed up, but that’s a bit of a hassle.

For each computer you want to boot a full-install-on-USB-stick distro from, it’s recommended you get a separate USB stick dedicated to each computer. The sticks are cheap enough anyway so it’s not a big deal.

Install A Bootable Linux To USB Stick

This is a follow-up article to this one showing how simple it is to use Unetbootin to install a Linux distribution to your USB stick. Bear in mind that Unetbootin has the choice of many different distros to choose from. Even if you have only have an older 128MB stick, you still could use Damn Small Linux on it! See video below for details.

Running Linux With No Optical Drive (Part 2)

Over the weekend I was at the Wal-Mart picking up a few things and noticed over in the electronics dept. they had 2GB Sandisk USB sticks on sale. $12.88 a piece. Cheap enough as far as I’m concerned so I bought one.

I had 2 purposes for buying the stick.

  1. It’s better than the 512MB I have (one can never have too much space).
  2. I wanted to try out a "full" Linux distribution booted off USB installed via UNetbootin.

Last week I tried this out with smaller distros, but now that I had a full 2GB at my disposal I could try the CD-sized distributions. So of course I installed Linux Mint "live" mode on the stick and gave it a go.

Here’s what I have to report:

Now that I’ve experienced what it’s like to run a CD-sized distro off a USB stick, I can honestly say that this beats the ever-lovin’ crap out of using an optical disc. It is faster and smoother all around in operation, and quiet. No annoying spin-up/spin-down noises whatsoever.

If given the option I will always use this method of booting a live Linux distro over using the disc. No question. I highly recommend that if your computer has the ability to boot off USB, are curious about Linux and hate running anything off the optical drive, use this method.

Side note about UNetbootin: If you’re asking "can I make my USB an emergency bootable repair tool?" Absolutely. It supports NTPasswd, FreeDOS, Smart Boot Manager and several others. Like I said, if you can boot off USB, use the stick instead. See the UNetbootin web site for details on that.