Linux Distros

Monday, October 20, 2008

Format Your Pendrive In Linux


Jai Linux

↑ Grab this Headline Animator


Are you new to Linux and want to know how to use your Pendrive in your Laptop or System where installed the operating system of Linux flavour (Redhat, SUSE, UBUNTU, and etc.,)

First know some baics, have you thought about the partitions in Linux i.e like 'C' drive and 'D' drive of Windows. Where are they and how they look like or differ. How to know where is the partition and what is the size of those partitions.

For all these only answer is

fdisk

Type this in your terminal and you will see

Device, Boot, start, end, blocks, Id, System


The device is usually one of the following
click this link to know more about the Hard-disks arrangement in the form of Master, Slave

Primar Master, Seconder Master, Primary Slave, Secondary Slave
/dev/hda, /dev/hdb, /dev/hdc, /dev/hdd and

/dev/sda...........


after knowing this now you want to know what is the name of those partitions in your file system for that use the command

df

Filesystem 1K-blocks Used Available Use% Mounted on

ok enough now come to our Pendrive format

there are two usefull commands one is

to format and second one is to provide the lable to the pendrive the same you can try for other devices.

1. Open X terminal to type the command and enter

$ sudo mkfs.ext3 /dev/sda1

(/dev/sda1 is your USB Pendrive letus assume know this using fdisk, df commands)

Becarefull while entering the partition name i.e /dev/sda1 wrong number will erase the device data may be i.e hard disk so be caution when you use this command and make sure one more time.

2. Now to label the device use the following
$ sudo e2label /dev/sda1 usb-pen


Very very important for you is below one i.e Create an MS-DOS/Windows XP file system under Linux, by entering /dev/sda1 is your pendrive:

$ sudo mkfs.vfat /dev/sda1

why this is important is when you want to use the pendrive in Windows XP system the file system must be compatible to that also i.e vfat file system is compatible with both linux and Windows right now. So always use this one only.


Alright now you are ready to use the pendrive.


This is also helps when you are unable to format the pendrive in Windows. Here in linux you can wipe out and create the new format drive.



No comments:

Post a Comment

How to download Ubuntu 22.04 LTS (Jammy Jellyfish)?

↑ Grab this Headline Animator     How to download Ubuntu 22.04 LTS (Jammy Jellyfish)?   Ubuntu 22.04 LTS (Jammy Jellyfish) is ready to downl...