Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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 ?
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.
Last edited by bwayson; 05-07-2009 at 02:54 PM.
Reason: Clarification
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.