Hi Fellows! My OS[Linux Mint] is near to crash because of my endless, inappropriate experiments. But what to do, My endless curiosity doesn’t leave My OS alone.
In this post I m going to demonstrate how to partition a Hard Disk/Flash Drive without any extra tools. All you have to do is to enter some commands in CLI. I’m using My 1GB small old pen drive. And please make sure that you have chose the correct device. Else I don’t have to say what would happen!
Open the terminal/konsole, then identify your device by giving,
fdisk -l (I have done this in an early time in detail)
My device is /dev/sda1.
cfdisk /dev/sda1 (cfdisk is the Curses based disk partition table manipulator for Linux)
then you l end with something like this,
In My example I m creating 2 partitions. And one of them is a swap area. Navigate to New using arrow keys. Press enter. you l end up with the following result,
Press Enter. Then give the Partition size you want.
I gave 800MB for My 1st partition. Press Enter.
Select Beginning. It will create the partition at the beginning. Or if you want it at the end select End.As I done the fist partition(sda1p1), I have created another partition named sda1p2.
With the arrow keys navigate to Type. Then press Enter.
Check this out. you get a big list with a variety of file systems. I want mine as Linux Extended. I went step forward by pressing a key. Then gave the corresponding number for Linux Extended.
Following the same steps, I set the other partition’s file system as swap. Finally select Write and press Enter.
Its good to go! We are done with partitioning.