LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Format Pen from ext2 to fat32 (https://www.linuxquestions.org/questions/linux-newbie-8/format-pen-from-ext2-to-fat32-692692/)

drkanna217 12-24-2008 03:52 AM

Format Pen from ext2 to fat32
 
hai

i have 2 GB pen drive recently i put pendrivelinux.img on that like the below command

fdisk -l
dd if=pendrivelinux.img of=/dev/sdX

Optional - Create a second partition for saving changes:

fdisk /dev/sdX
n (makes a new partition)
p (makes the new partition a primary partition)
2 (makes this the 2nd primary partition)
w (writes the new partition information to the USB drive)
umount /dev/sdX1
mkfs.ext2 -b 4096 -L live-rw /dev/sdX2


after that i am trying to formatted my pen drive (in windows) it showing on 400MB how to get my 2GB

when i insert into Linux machine it showing two partition


i want to format my pen drive as single partition how to do this?

please tell me the procedure to do format

linuxlover.chaitanya 12-24-2008 04:25 AM

In linux you can delete the partition and then format it. Before that back up the data if you feel so. Use mke2fs -j /dev/sdb to format it as one single partition.


All times are GMT -5. The time now is 08:43 AM.