LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Directories on seperate partitions. (https://www.linuxquestions.org/questions/linux-newbie-8/directories-on-seperate-partitions-259667/)

ToothlessRebel 11-26-2004 07:14 PM

Directories on seperate partitions.
 
I want to install and have / on one partition, /etc on another and /home on yet another. But I want to be able to use cd /home/giligun/ to access my home directory. So fstab should be like

/dev/hda1 /home ext3 ......



Using Slackware 9.1

egag 11-26-2004 07:52 PM

when you setup Slack, you are asked for such options, and it will write you a good fstab.
but the entry you gave looks oke.

egag

ToothlessRebel 11-27-2004 12:04 AM

Wouldn't I have to create a /home link to the /dev/hda1 or whatever, and doesn't it have to be a special type of link?

egag 11-27-2004 06:47 AM

the fstab line is the link, it mounts the right part. on mountpoint /home.
if you already have a /home dir on your disk then move the contents to your new part. ,
and put the line in your fstab so it will always mount at boot.

egag

LasseW 11-27-2004 06:47 AM

The 'special link' is the mount command which attaches a partition to the mount point, ie a directory in the root file system (or any file system already mounted). So the installation program will take care of that.

But don't put /etc on a separate partition. Apart from the root fs, all file systems are mounted by the rc.sysinit script which is started from /etc/inittab. The script itself is in /etc/rc.d. So the /etc directory must already be present for this to work. Other directories that should be on the root fs are /bin, /sbin and /dev.

At least that's the way it works on Redhat. I've no experience with Slack, but I assume there's a similar configuration.

ToothlessRebel 11-27-2004 09:34 AM

*nod* That is correct, Many thanks.


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