Default partitioning not include separate /home?

General support questions including new installations

Default partitioning not include separate /home?

Postby Trio3b » 2011/06/26 20:16:45

Centos noob with fresh install of Centos 5 DVD on AMD w ATI Radeon 9250 /1 gb RAM/320gb HDD. Don't see an "installation" forum so posting here.

Read here -> http://www.centos.org/docs/5/html/Insta ... o-x86.html and following page which seems to indicate the default option on a new unformatted 320gb HD is suitable for most users, so selected it just to see. Install went fine. Using KDE as default desktop.

cat /etc/fstab shows:
Code: Select all
[root@centosdesktop user]# cat /etc/fstab
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
/dev/VolGroup00/LogVol01 swap


I am used to other setups which include a separate /home partition by default. Went to >system>disk management and apparently to not have permissions "there are no filesystems which you are allowed to mount or unmount-contact administrator". There is no option to enter with root privileges.

fdisk -l shows:
Code: Select all
Disk /dev/hda: 320.0 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1          13      104391   83  Linux
/dev/hda2              14       38913   312464250   8e  Linux LVM


Am I able to access via GUI/ admin password the disk partitioning? Can't seem to find it in menus. I found LVM but completely unfamiliar with it. Might it be best to reinstall and choose a custom partitioning scheme as below rather than try to resize and adjust from current install?

/boot <- also not used to seeing this in other systems (probably a good idea but new to me)
/
swap
/home
/var
/tmp ?

Any help appreciated
Thanks
[Moderator edit: Added code tags to preserve formatting.]
Trio3b
 
Posts: 4
Joined: 2011/06/26 04:39:46

Default partitioning not include separate /home?

Postby pschaff » 2011/06/26 22:44:44

Trio3b wrote:
Centos noob with fresh install of Centos 5 DVD on AMD w ATI Radeon 9250 /1 gb RAM/320gb HDD. Don't see an "installation" forum so posting here.

Good choice. :-)

Read here -> http://www.centos.org/docs/5/html/Insta ... o-x86.html and following page which seems to indicate the default option on a new unformatted 320gb HD is suitable for most users, so selected it just to see. Install went fine. Using KDE as default desktop.

Good choice. :-) ;-)

...
Might it be best to reinstall and choose a custom partitioning scheme as below rather than try to resize and adjust from current install?

Unless you want to learn a lot messing around with the physical and logical volumes, and perhaps still have to reinstall, it would be easier to just reinstall and custom partition. OTOH you have nothing to lose by experimenting with the current system, and can always fall back on a fresh install.

The /boot is required as GRUB does not understand LVM. LVM is generally a good idea as it allows flexibility to add physical volumes and expand/change volume groups and logical volumes later, but does add additional complexity. For instance, if you did want to add a /home logical volume you could shrink the / filesystem and make space for it, or add another disk as an additional physical volume to the volume group and then create a new logical volume for /home.

man lvm
man pvcreate
man vgextend
man lvcreate
etc.

The GUI administration tools should prompt for the root password as required, but do not handle all administrative tasks. To work at the command line learn how to become root as required.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America

Re: Default partitioning not include separate /home?

Postby Trio3b » 2011/06/27 01:12:34

Wow, you weren't kidding. Read here ->. http://www.centos.org/docs/5/html/Deplo ... g-lvm.html , but way over my head.

Reinstalled, I think I created a boot partition and now there are two, so that tells me CentOS creates its own at install. However, in addition to / I did add:

/home
/var
/tmp

And these show up in the LVM but show as uninitialized AND unmounted and yet when I mount /home it shows as already mounted. Am assuming it is referring to the /home directory on the root partition that CentOS creates by default at installation. I guess what I'm saying is I am used to the /home directory being created and mounted on a separate partition. If I bork the system, this current setup is going to take my data with it.


In LVM, initializing these volumes produces:
"pvcreate command failed. Command attempted: "/usr/sbin/pvcreate -M 2 /dev/hda5" - System Error Message: Can't open /dev/hda5 exclusively. Mounted filesystem?"

and yet LVM shows these as unmounted. Hmmm.. guess I'll have to read up on the installer some more.
Trio3b
 
Posts: 4
Joined: 2011/06/26 04:39:46

Re: Default partitioning not include separate /home?

Postby markkuk » 2011/06/27 08:15:38

If you created /home, /tmp and /var as partitions during installation then they aren't managed by LVM. You can use gparted for GUI management of traditional partitions.
markkuk
 
Posts: 697
Joined: 2007/09/07 10:56:28
Location: Finland

Re: Default partitioning not include separate /home?

Postby jlehtone » 2011/06/27 11:18:54

Trio3b wrote:
Reinstalled, I think I created a boot partition and now there are two, ...

And these show up in the LVM but show as uninitialized AND unmounted and yet when I mount /home it shows as already mounted.

Could you use the getinfo?
User avatar
jlehtone
 
Posts: 1478
Joined: 2007/12/11 08:17:33
Location: Finland

Re: Default partitioning not include separate /home?

Postby Damian_S » 2011/06/28 15:11:48

Can someone please confirm that /var mounted on its own partition is ok?
I thought I read in the RHEL install docs, not only is /var mounted outside of / not supported, it will not work.
Damian_S
 
Posts: 1
Joined: 2011/06/28 14:54:17

Re: Default partitioning not include separate /home?

Postby pschaff » 2011/06/28 16:00:45

Damian_S wrote:
Can someone please confirm that /var mounted on its own partition is ok?
I thought I read in the RHEL install docs, not only is /var mounted outside of / not supported, it will not work.

Please review the recommended reading and do not hijack threads. Start a new topic for your question.
pschaff
Retired Moderator
 
Posts: 18277
Joined: 2006/12/13 20:15:34
Location: Tidewater, Virginia, North America


Return to CentOS 5 - General Support

Who is online

Users browsing this forum: Bing [Bot], Exabot [Bot], Google [Bot] and 6 guests