1

During the installation of my ubuntu server, I had to leave a big space of my hard drive for specific service. Well, I forgot to to partition it up and leave it mounted during installation. Right Now, I realized I won't be able to use it without being partitioned.

(parted) print free
 Model: DELL PERC 6/i (scsi)
 Disk /dev/sda: 292GB
 Sector size (logical/physical): 512B/512B
 Partition Table: msdos

 Number  Start   End     Size    Type      File system     Flags
         32.3kB  1049kB  1016kB            Free Space
  1      1049kB  500MB   499MB   primary   ext2            boot
  2      500MB   26.3GB  25.8GB  primary   ext3
         26.3GB  26.3GB  1048kB            Free Space
  3      26.3GB  32.3GB  5999MB  extended
  5      26.3GB  32.3GB  5999MB  logical   linux-swap(v1)
         32.3GB  292GB   260GB             Free Space

What I'mmona need to do, is partition that indicated "Free Space" as well as mount it on a certain /dev/sd* device in order to use it. Any help with that?

mehdix_
  • 271
  • 1
  • 3
  • 9
  • Do you want to create new partition on the "260Gb Free Space" and have it mounted every time, right? – Ruslan Gerasimov May 26 '14 at 04:30
  • Sorry I first advised you Gparted and the decided to ask it: do you need to partition namely by using parted? – Ruslan Gerasimov May 26 '14 at 04:42
  • @RuslanGerasimov- Yes that's right, I want the 260GB not necessarily be formatted but mounted to a device like /dev/sd* so I'd be able to use it. FYI, I'm not using GUI linux. – mehdix_ May 26 '14 at 18:28

2 Answers2

1

You might want to look into into fdisk instead of parted.

Personally I use fdisk when it comes to raw partitioning without LVM, because I find it slimmer than parted. But that is only personal preference.

Anyways fdisk is pretty straightforward. Just type fdisk an once you have the fdisk promt press m. The rest ist self explanatory I think. If you need guidance see the link to the TLDP, that should guide you through the process.

Thorian93
  • 293
  • 2
  • 8
0

If you just want to create a new partition install and run Gparted,

sudo apt-get install gparted
Ruslan Gerasimov
  • 2,156
  • 1
  • 15
  • 12
  • Oh, Gparted is a GUI tool for GNOME based systems. I'm only using linux server without GUI. That's why I'm looking for appropriate solution. – mehdix_ May 26 '14 at 18:26