LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This 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



Reply
 
Search this Thread
Old 10-31-2003, 09:32 AM   #1
Borelian
LQ Newbie
 
Registered: Oct 2003
Location: Paris, France
Distribution: Mandrake 9.2, Fedora Core, Slackware 9.1
Posts: 24

Rep: Reputation: 15
Partitions and LVM in a new computer


Hi everyone..

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?

Thanks for all your answers.
 
Old 10-31-2003, 12:30 PM   #2
crabboy
Moderator
 
Registered: Feb 2001
Location: Atlanta, GA
Distribution: Slackware
Posts: 1,823

Rep: Reputation: 120Reputation: 120
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.

have fun
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Partitions under LVM Volume Group won't mount after install jimisola Mandriva 4 11-16-2005 05:17 PM
mounting red hat partitions with that LVM nonsense? silex_88 Linux - Software 4 09-12-2005 09:06 PM
how to show partitions in gnome's computer AVD_ZM Linux - Software 3 02-10-2005 02:09 PM
Convert LVM volumes to primary partitions? MHouse Linux - Software 0 02-03-2005 11:34 PM
RH9 lvm and fdisk forgetting about hdb partitions davel75 Linux - Software 0 10-27-2003 10:59 AM


All times are GMT -5. The time now is 05:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration