LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How i make unallocated spaces in the usb stick ? (https://www.linuxquestions.org/questions/linux-newbie-8/how-i-make-unallocated-spaces-in-the-usb-stick-724462/)

lse123 05-07-2009 01:54 PM

How i make unallocated spaces in the usb stick ?
 
For Linux(KUBUNTU) & (XP or VISTA) to be run[BOOT] on/from a usb stick, well to install/make this stick, I must create first the FILE SYSTEM (eg NTFS) and after insert the OS ? HOW I MAKE UNALLOCATED SPACES IN THE STICK ?

bwayson 05-07-2009 02:53 PM

I probably do not understand what you mean by "unallocated", but you can use the command line utility (run it as root) "fdisk" (or Window's Computer Management Control Panel applet) to repartition part of the USB stick and leave other parts unallocated (that is, not in a partition). Insert the stick, unmount it as necessary, and use fdisk on the stick's device file (/dev/sd?) just as if it were a hard drive, which is exactly how the OS treats it. Delete the existing partition, which probably includes the entire capacity of the stick, then create a new partition that is smaller than the capacity. Any parts of the stick that are not in a partition will be unallocated. Once you save your new partition scheme and exit fdisk, you will probably need to format your new partition(s).

Note that this will destroy all the information on the USB stick. Save it first if you want to keep it.

lse123 05-07-2009 04:11 PM

I MEAN RESIZE PARTITIONS AND DO UNFORMATTED SPACE, CAN I ? iS ANY FREE TOOLS FOR THIS ?

by saying "Delete the existing partition, which probably includes the entire capacity of the stick, "

you mean I must delete partition to make empty (unallocated, unformated) space ?

Another question :
To exit vim editor (linux fedora core 4) I, may I in any mode ?

thorkelljarl 05-07-2009 06:31 PM

NTFS or VFAT

If you have not partitioned you USB pendrive it probably has the VFAT file system. This is usable by both Windows and linux. You can use the partitioner in any newer live-cd or download and burn Parted Magic or GPartedLiveCD and use one of them to move the boundaries of the partition on the USB or to repartition it.

I prefer Parted Magic, but the important thing is that these tools will give you an intuitive, graphical view of your partition and what you can do with them.

Good Luck

jschiwal 05-07-2009 07:00 PM

It might be better to copy the image to your hard disk and then resize the image. Using a partition tool to non-destructively resize a partition, may cause too may writes to the pen drive. Flash drives have a limited number of writes. Moving files about on the disk in a partitioning tool might cause too many writes, or be foiled by caching.

You could instead copy the files to your HD, repartition the pendrive, format the partitions and then copy the files back.

lse123 05-11-2009 11:26 PM

I must create first the FILE SYSTEM (eg NTFS) and after insert the OS for any drive
 
I must create first the FILE SYSTEM (eg NTFS) and after insert the OS for any drive I want insert a bootable OS Like XP PROF. OR LINUX KUBUNTU 9.04 ?


All times are GMT -5. The time now is 11:51 PM.