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!
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.
Once you plugged your pen drive, make sure it is mounted or not.
use "fdisk -l" which will show the list of disk in your linux box.
Your USB may be there as a " sda/sdb/sdc/sdd" (either one). You can verify yourself with the size in MB .
The you need to mount it to a directory.
mount /dev/sda1 /ZAMO (am considering my USB as sda)
.....Verify your data is here. If ok continue
mkdosfs /dev/sda1 (if you want a dos FS)
mke2fs -j /dev/sda1 (if you want ext3 FS)
mkfs is used to build a Linux file system on a device, usually a hard
disk partition. filesys is either the device name (e.g. /dev/hda1,
/dev/sdb2) or the mount point (e.g. /, /usr, /home) for the file sys-
tem. blocks is the number of blocks to be used for the file system.
The exit code returned by mkfs is 0 on success and 1 on failure.
In actuality, mkfs is simply a front-end for the various file system
builders (mkfs.fstype) available under Linux. The file system-specific
builder is searched for in a number of directories like perhaps /sbin,
/sbin/fs, /sbin/fs.d, /etc/fs, /etc (the precise list is defined at
compile time but at least contains /sbin and /sbin/fs), and finally in
the directories listed in the PATH enviroment variable. Please see the
file system-specific builder manual pages for further details.
You should 'man commands' when in question.
Last edited by onebuck; 02-08-2008 at 07:36 AM.