Quote:
Originally Posted by newtovanilla
"& 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.
|
It depends on the file system you wish to use. Normally as long as you have everything built into the kernel that you need ( most distros do ) you will get a new device aka /dev/sda unless of course you are using a serial ata drive then /dev/sda would be the internal drive.
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.