LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-08-2006, 10:33 AM   #1
temak82
LQ Newbie
 
Registered: Jan 2006
Posts: 22

Rep: Reputation: 15
/home not found in /etc/fstab?


Hello all,

I am setting up a linux server CentOs at home on an old machine. I need to enable quotas and remount /home, however, when I run the mount command, it says that the /home is not found within the file. I checked out fstab and it is not in there. However, I do have /home directory. Any ideas what can be done?

Thank you
 
Old 01-08-2006, 10:38 AM   #2
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Show the output from both...

cat /etc/fstab

fdisk -l

Did you define a /home partition or is it part of the root (/) partition??
 
Old 01-08-2006, 10:50 AM   #3
temak82
LQ Newbie
 
Registered: Jan 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Leonard, thanks for the replies. Will do as you said. Below you'll see the output. The partition I think is under root, not home.

Code:
[root@localhost ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                      28770436   1216504  26092480   5% /
/dev/hda1               101086      9067     86800  10% /boot
none                    159988         0    159988   0% /dev/shm
Code:
fdisk -l

Disk /dev/hda: 30.7 GB, 30758289408 bytes
255 heads, 63 sectors/track, 3739 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        3739    29929095   8e  Linux LVM
Code:
[root@localhost ~]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/hdc                /media/cdrecorder       auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0

Thank you
 
Old 01-08-2006, 12:58 PM   #4
bobbens
Member
 
Registered: Sep 2004
Location: Barcelona
Distribution: Debian, FreeBSD, Gentoo
Posts: 586

Rep: Reputation: 30
Your fstab basically saying you don't have a seperate partition for /home, your /home is just a subdirectory of / (/dev/VolGroup00/LogVol00). Therefore unless you have a seperate partition you want to use for /home, there is no need to mount it, as it is already there (in the form of a directory on the root partition). I don't really understand what you are asking...
 
Old 01-08-2006, 01:18 PM   #5
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
Yep, you did not create a /home partition. You may want to re-install fresh and this time take the option to manually configure your partitions. This FC4 installation guide should help (very close to the CentOS installation process). Pay extra attention to the manually partitioning the drive with disk druid (Section 6 of the guide);

http://fedora.redhat.com/docs/fedora...-guide-en/fc4/

An example of partitioning (from my laptop) using disk druid;
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda5 20G 3.1G 16G 17% /
/dev/hda3 99M 13M 82M 13% /boot
none 470M 0 470M 0% /dev/shm
/dev/hda8 11G 1.8G 8.7G 18% /home
/dev/hda6 12G 5.9G 5.4G 53% /usr
 
Old 01-09-2006, 07:00 AM   #6
temak82
LQ Newbie
 
Registered: Jan 2006
Posts: 22

Original Poster
Rep: Reputation: 15
Alright, thanks for the reply. I did do this automatically, should have done it manually. Was getting some error though so just did it automatically.

As far as this goes, is it possible to not reformat with a fresh install? Will this run and be able to create users under the /home dir?

Thanks
 
Old 01-09-2006, 07:08 AM   #7
Lenard
Senior Member
 
Registered: Dec 2005
Location: Indiana
Distribution: RHEL/CentOS/SL 5 i386 and x86_64 pata for IDE in use
Posts: 4,790

Rep: Reputation: 58
You should not need to re-install, adding users should place them in the /home directory location. It does not matter if /home is a partition or not.

As root from the console or xterm session;

useradd -m -p passwd

See 'man useradd' minus the single quotemarks for the details and options.
 
Old 01-09-2006, 11:09 PM   #8
temak82
LQ Newbie
 
Registered: Jan 2006
Posts: 22

Original Poster
Rep: Reputation: 15
ok, thanks for all your help.
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
found two lines extra in my fstab amer_58 Linux - Newbie 3 08-20-2005 07:56 AM
/home partition will not mount at boot despite fstab settings zach_barrow Slackware 11 03-10-2005 10:24 PM
fstab is not found sunwj82 Linux - Enterprise 5 12-20-2004 06:00 PM
fstab, new /home partition and cd-rom issues YBA^[x] Slackware 15 08-05-2004 11:50 AM
Using fstab to point to home partition justaguynsrq Slackware 10 01-26-2004 01:44 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 10:10 PM.

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
Open Source Consulting | Domain Registration