Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm installing linux in a new computer... it has a HD of 160MB, and i don't know very how to partitionate the harddisk.
Recently, i readed about LVM, it's look perfect, and i want to try using it. But everybody says about to put the boot parition out of LVM... and here i start to get lost.
Q1) How i mus set the paritions for use LVM? one small boot parition and all the rest?
Q2) if a want to have some space to install Win98 (i want to play some particular old games), this parition must be primary?
Q3) Do you recommend me LVM?
I hope you meant 160GB and not MB. If it is really 160GB then here is what I suggest:
First primay bootable partition for windows.
Second primary bootable is for Linux. Make the parition type linux.
Third parition make the rest of the disk and make it Linux LVM.
I'm not a Mandrake or Redhat user so I don't know if they offer LVM support from the installer.
The way I did my last LVM install was to create a large 5-10G partition (the partition will be later shrunk and added to the lvm) and install the entire distribution on it. Next boot the installed linux and go to single user mode.
Create a physical volume with the third partition; then create a volume group vg1 or whatever on the physical volume. Next start creating the logical volumes for each partition. I just usually call the lv the same as the mount point. /dev/vg1/home, /dev/vg1/var, etc...
I usually create lv for the following:
/usr
/var
/home
/opt
In the event of an lvm failure the system should still boot w/o these partitions, it will not be pretty, but bootable.
Next mount each of the new lvs on a temporary mount point, say /mnt
Copy the data from the old /usr (as an example) to the new partition.
Next unmount the /mnt.
Move the old /usr to /usr2
Create a new /usr mountpoint
mount /dev/vg1/usr /usr
Then add the entry to the /etc/fstab so it will mount on reboot.
Do the same with the other partitions.
When you are done and everything is mounted, delete the old partitions /usr2, /var2, etc... and check your free space on /
In the beginning choose a filesystem that will allow you to shrink the filesystem. I use reiserfs and it allows it. run resize_reiserfs, or equivialant for the fs you choose and make it about 500M+ larger than the total size of the data in /. next run cfdisk and shrink the partiton to the new size of /. Now create a new parition from the free space and add it to the lvm, by adding a new physical volume and add it to the vg.
I like using the LVM. I've used it on every machine I built in the past few years. I have built a machine with the / partition in the LVM and it is just not worth the effort.
Use the howto on the sistina website, it's really good.
This took be less then an hour last time I did it.
remember to read the LVM documentation and the howto. My comments here are only suggestions and not a subsitute to reading the docs.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.