Let's get going!
Removing and creating a partition
Having decided your drive's name (let's call it sda) we must now remove the default partition that the manafacturer put there:
Code:
sudo fdisk /dev/sda
Press d
It might ask you for the partition number, press 1 and enter. If there are more then delete them too.
Now to make a new partition.
Press n
This will make a new partition that uses the entire disk. If you want more complex partitioning then read the fdisk manual (man fdisk) or use parted or some other app.
Here's what we did with n, the values will differ from yours:
Code:
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (197-621, default 197):
Using default value 197
Last cylinder or +size or +sizeM or +sizeK (197-621, default 621): +128M
You should be ready to make a filesystem now.
Making a filesystem : "Formatting"
You need to put a system in-place, on the disk, such that it can handle files. This is called (unsurprisingly) a filesystem.
The one we are going to use is called "ext3". On Gnu/Linux we are spoiled for choice and there are loads of filesystems you can use, go do some research if you want to.
So, let's make the filesystem:
Code:
sudo mkfs.ext3 /dev/sda1
Now it will go off and do strange stuff, simply wait for it to finish.
Using the new file system
Well, at this point you should be able to right-click on the icon (on your Desktop) and choose "mount" (I assume that's the verb it will present to you). After that you should be able to open a window and use the drive*
* all this assumes it's an external USB drive.
If you cannot then you will need to mount it yourself, try:
Code:
sudo mkdir /media/sda1
sudo mount /dev/sda1 /media/sda1
And the mounted directory can be anywhere you like, but its common location is /media.
Or Use GUI
Install
Code:
sudo apt-get install gparted
sudo gparted
And Mount your Partition with
Code:
sudo mkdir /media/sda1
sudo mount /dev/sda1 /media/sda1
Thanks : ubuntuforums.org || answers.yahoo.com
ไม่มีความคิดเห็น:
แสดงความคิดเห็น