LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 05-07-2009, 01:54 PM   #1
lse123
Member
 
Registered: Dec 2008
Posts: 130

Rep: Reputation: 15
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 ?
 
Old 05-07-2009, 02:53 PM   #2
bwayson
LQ Newbie
 
Registered: Nov 2006
Location: Ventura California USA
Distribution: openSUSE
Posts: 23

Rep: Reputation: 3
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
 
Old 05-07-2009, 04:11 PM   #3
lse123
Member
 
Registered: Dec 2008
Posts: 130

Original Poster
Rep: Reputation: 15
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 ?
 
Old 05-07-2009, 06:31 PM   #4
thorkelljarl
Senior Member
 
Registered: Jun 2008
Posts: 1,820

Rep: Reputation: 229Reputation: 229Reputation: 229
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
 
Old 05-07-2009, 07:00 PM   #5
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682Reputation: 682
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.
 
Old 05-11-2009, 11:26 PM   #6
lse123
Member
 
Registered: Dec 2008
Posts: 130

Original Poster
Rep: Reputation: 15
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 ?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i make Nautilus not popup when i insert usb stick? kornerr Ubuntu 3 09-08-2007 11:46 AM
How to make USB stick bootable? depam Linux - Software 3 12-31-2006 11:22 AM
make a USB stick bootable lothario Linux - Software 1 07-13-2006 01:02 PM
mount/umount usb stick - PQI Intelligent Stick 2.0 sandbag Linux - Software 5 05-06-2005 11:12 AM
How to make a corrupted USB stick work? sundancebt Linux - Newbie 16 04-02-2004 12:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 12:25 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration