Partitioning Question

Tony Arnold tony.arnold at manchester.ac.uk
Tue Oct 17 14:06:17 UTC 2006


Nikolai,

On Tue, 2006-10-17 at 20:46 +1000, Nikolai wrote:

> > If you have some spare space that can be made into a partition, then you
> > can start using LVM.
> 
> After reading this thread, I'm contemplating to try LVM (I've got 60gb
> ntfs space sitting doing nothing, I want to 'free' it and use it under
> Linux). Is there a howto or something explaining how one can implement
> an LVM on already perfectly running Linux system?

I've not seen a howto for this, but the steps are reasonably straight
forward. I've done this myself recently after deciding I didn't need my
Windoze partition any more!

Use cfdisk to change the partition type of your ntfs partition to 8E.
Use pvcreate to create a physical volume out of the partition.
Use vgcreate to create a volume group (calling it VG01, for example;
pick your own name) containing just the physical volume you just
created.
Use lvcreate (called home say, pick your own meaningful name) to create
on or more logical volumes in the volume group just created.
Create a file system in the logical volume with mkfs, e.g.,
	mkfs -t ext3 /dev/VG01/home

If you call the volume group VG1 and the logical volume 'home', then it
can be mounted from /dev/VG1/home onto any suitable mount point.

I would read the man pages carefully!

There is a good general howto on LVM at http://tldp.org/HOWTO/LVM-HOWTO/

Have fun!

Regards,
Tony.
-- 
Tony Arnold, IT Security Coordinator, University of Manchester,
IT Services Division, Kilburn Building, Oxford Road, Manchester M13 9PL.
T: +44 (0)161 275 6093, F: +44 (0)870 136 1004, M: +44 (0)773 330 0039
E: tony.arnold at manchester.ac.uk, H: http://www.man.ac.uk/Tony.Arnold





More information about the ubuntu-users mailing list