Ubuntu 9.04 Server - Help me find other partition and format it

Soldato
Joined
1 Dec 2004
Posts
23,076
Location
S.Wales
Hi,

When I installed ubuntu, I have 1 single HDD in there (80GB) of which i believe is in 2 partions, one is 30GB which is the filesystem currently in use for the ubuntu installation, this is showing up in "my computer" in ubuntu servers. However there is another 50GB somewhere that I believe is not in use and I cannot find it, how do I find this in ubuntu and format the partition so I can begin using it for an addional drive to store stuff on?

Thanks very much for your help in advance :)
 
Last edited:
ok, i done the above, and its showing as;

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xe2e8cc58

Device Boot Start End Blocks Id System
/dev/sda1 * 1 9698 77899153+ 8e Linux LVM
/dev/sda2 9699 9729 249007+ 5 Extended
/dev/sda5 9699 9729 248976 83 Linux

however i can only see one filesystem in 'my computer' which totals to 26gb.

there is a 2nd parition there which is not formatted, i cant seem to reveal or format this
 
srv1:~$ sudo pvscan
[sudo] password for darren:
File descriptor 5 left open
PV /dev/sda1 VG lvm2 [74.29 GB / 46.35 GB free]
Total: 1 [74.29 GB] / in use: 1 [74.29 GB] / in no VG: 0 [0 ]
:~$

46GB free space :)

What filesystem are you using? Can do you: mount |
 
OK. <insert disclaimer about backing up any important data>

Lets resize as root (or using sudo):

lvextend -L+46G /dev/mapper/srv-1root

It should hopefully say something about it being now ~70gb.

Now (again as root/sudo):

resize2fs /dev/mapper/morandasrv-1root

You should be able to do this on the fly, but again insert disclaimer here.
 
ok, done that, now I have a total filesystem capacity of 71.6GB :)

Thanks.

This seems to be in one filesystem (if you think about how windows works, you have a C: Partion, then more often or not, most people have a seperate D: partition for data). This is what I am trying to achieve.

Thanks
 
Last edited:
Oh, right. I guess you could do that aswell, although you will need to resize the lvm again and then create another volume group. There isnt much advantage to having it on an alternative partition unless you plan to reinstall allot and therefor keep your data seperate
 
Back
Top Bottom