Format a New Partition

Asked by Ramy Al-AShram

I have installed Ubuntu Server 8.04 in 60GB, and I left the rest of the partition free without any format, now I need to format and configure the rest partition to use it as Network File Sharing, and I am using only command line on the server.

Does any one know how to know how many partition do I have by the command line? Which are used and which not?
How do I format the rest dedicated partition by the command line without effect the main partition.

Question information

Language:
English Edit question
Status:
Answered
For:
Ubuntu parted Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#1

Install gparted.
sudo apt-get install gparted
Hope that helps
Shane

Revision history for this message
Bulat (bulatkjug) said :
#2

Use fdisk:
sudo fdisk

Or parted:
sudo parted

To get usage manual:
man fdisk
man parted

P.S. Googling in such a case helps much faster than asking here. :)

Revision history for this message
Ramy Al-AShram (ramyashram) said :
#3

thank you all, i 'v created the partition, but i still need to format and mount it, any idea?

Revision history for this message
Shane Fagan (shanepatrickfagan) said :
#4

Fdisk is the command to format partition.
Mount is the command to mount a partition.
Just add the location of the partition to the end of those commands and it should be formated and mounted.

Can you help with this problem?

Provide an answer of your own, or ask Ramy Al-AShram for more information if necessary.

To post a message you must log in.