LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 11-26-2004, 07:14 PM   #1
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Rep: Reputation: 30
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
 
Old 11-26-2004, 07:52 PM   #2
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 11-27-2004, 12:04 AM   #3
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
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?
 
Old 11-27-2004, 06:47 AM   #4
egag
Senior Member
 
Registered: Jul 2004
Location: Netherlands
Distribution: Slackware
Posts: 2,721

Rep: Reputation: 53
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
 
Old 11-27-2004, 06:47 AM   #5
LasseW
Member
 
Registered: Oct 2004
Distribution: Fedora 7, OpenSuse 10.2
Posts: 108

Rep: Reputation: 15
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.
 
Old 11-27-2004, 09:34 AM   #6
ToothlessRebel
Member
 
Registered: Jun 2004
Location: FL, USA
Distribution: Slackware 9.1
Posts: 190

Original Poster
Rep: Reputation: 30
*nod* That is correct, Many thanks.
 
  


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
Searching multiple directories and sub directories for a file jeep99899 Linux - Newbie 2 10-13-2005 12:23 PM
question about reinstalling without losing data on seperate partitions? Lleb_KCir Linux - General 4 04-18-2005 02:10 AM
Seperate Partitions for /usr & /home? Jukas Debian 6 03-24-2005 10:50 AM
Moving directories to their own partitions bxb32001 Debian 7 12-08-2003 06:40 AM
Seperate program directories in Linux NGraphiX Linux - General 7 09-17-2002 07:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:22 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