partiton a USB pendrive..
Can you partiton a USB pendrive from linux or windows..? & what is the syntax to do it..??
Tanks, :)Dandy1 |
i use cfdisk to partition usb memory sticks, NEVER use a disk tool to partition or format anything that is mounted always umount it first!, if you want to share the data with windows PCs then FAT32 (vfat) (0B in cfdisk) will be necessary, but if you intend to only use it with linux then ext2 will do fine (journaling not necessary)...
|
Well, for a USB pendrive, a standard FAT format is perfect for those sizes of drives. The only time that would change is if your drive is larger than 4GB.
|
You can do this in Linux just fine and mount the partition like normal but in windows it will only ever see the first partition on the drive. The windows partition software will also not let you create multiple ones.
The reason is windows classifies it as a removable device or flash media. |
"& what is the syntax to do it..??"
I would like to know how to do this too. Does someone know the command syntax to format with Linux native for a 1GB and 4GB USB pen drive? I an new to Linux and I have messed up so much already trying to get things to work. |
I found this on the web:
http://sathyasays.com/2007/06/13/for...sing-terminal/ Quote:
|
Quote:
lets break down that shal we. /dev ( this is where all our devices should live ) sda ( hmmm ok s in there stands for serial and d stands for drive ) ( the last letter indicates the number of the disks in the system) so /dev/sdc would indicate this is the 3rd serial device in the system. now we cannot mount a whole disk but rather need to mount a partition well thats easy because we just add the number of the partition we want to mount on the disk thus /dev/sda1 is the first partition on the first serial device on the system. if you create two partitions on a thumb drive the commands would be easy enough. say the pen drive is /dev/sda use cfdisk to create the 2 partitions ( if you dont know how google it ) so we should have /dev/sda1 and /dev/sda2 format using mkfs.vfat like this mkfs.vfat /dev/sda1 mkfs.vfat /dev/sda2 after that you can mount them mount /dev/sda1 /media/usbdrive1 mount /dev/sda2 /media/usbdrive2 of course if you want to mount it somewhere other then /media/usbdrive then you can i just used that as an example. I hope this answers any questions you have. |
All times are GMT -5. The time now is 10:33 PM. |