LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 04-22-2004, 10:29 AM   #1
Jelle
Member
 
Registered: Feb 2004
Location: Utrecht, The Netherlands
Distribution: Debian
Posts: 79

Rep: Reputation: 15
mounting /home on boot


hello All,

I am in a state of switching from redhat 9 to debian, and still have some problems doing so.
My /home directories are held on a LVM disk. On redhat (for want of beter) i just edited rc.sysinit to activate and mount that partition (maybe should have gone in rc.local?) I expected to have to do the same with Debian. The LVM script in init.d was very welcome indeed. I have added a line in /etc/fstab to mount my lvm partition on /home. But it still does not mount at boot.. Anything I missed?

Last edited by Jelle; 05-09-2004 at 02:15 AM.
 
Old 04-22-2004, 01:10 PM   #2
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
I'm not sure this is the reason, but here is an idea: at boot time, files (usually links) in /etc/rcS.d/ are executed alphabetically. Make sure the one concerning LVM is executed before mountall.
Actually there is a strong chance that LVM itself won't run until you mounted at least /usr, so you'd better have links to mountall both in the place where it is now AND after LVM is loaded; not sure this in rcS.d, it maybe in rc1.d or even rc2.d, to find it use
Code:
find /etc/rc?.d/ |grep -i lvm
 
Old 05-09-2004, 02:34 AM   #3
Jelle
Member
 
Registered: Feb 2004
Location: Utrecht, The Netherlands
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
thanx, I'll have a look. I beleive to remember that mountall was executed after LVM, but it skips/ignores /home. (...)
cannot find it in any other runlevels than S and 1, but I cannout find mountall in any runlevel.

I don't understand, I thought S & 1 were both the single user mode runlevel...

maybe I'll just plonk it into rc.local.
 
Old 05-09-2004, 09:35 AM   #4
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Quote:
I cannout find mountall in any runlevel.
Under my Debian I have /etc/rcS.d/S35mountall.sh -> ../init.d/mountall.sh

Quote:
I don't understand, I thought S & 1 were both the single user mode runlevel...
Actually AFAIK there is no 'S' runlevel, files in rcS.d are executed at boot time, regardless to what runtime level you are booting into. Instead rc1.d is executed when you go to single user mode, so it contains for example commands to explicitly kill unwanted services, just in case they where running.
This is how it works on my system, still I fear the init script is one of the most distro-dependant part of the OS.
Good luck.
 
Old 05-10-2004, 05:39 AM   #5
Jelle
Member
 
Registered: Feb 2004
Location: Utrecht, The Netherlands
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
Oh ok, so rcS.d contains the 'core' of the startup scripts? I obviously didn't know that.. I just met the file /etc/init.d/README and got a smile on my face. why put a file there that says nothing usefull if you don't have this policy document installed. Package management can install and keep files up to date anywhere in the filesystem AFAIK.

Anyways: There was no link to mountall.sh in rcS.d. (lvm is at S25)
I made a symbolic link to it with the name you mentioned, but I was wondering if there was a better way than doing this manually?

I 'll let you guys know if this worked, as I obviously have to reboot to try this out.
 
Old 05-10-2004, 12:29 PM   #6
ac1980
Member
 
Registered: Aug 2003
Location: Trento, Italy
Distribution: Debian testing
Posts: 394

Rep: Reputation: 30
Actually mountall.sh is a script that does some checks, executes a mount -a, then activates any newly mounted swap file (swap partitions are already active) and cleans /tmp and some /var subdirs. Maybe yours has a different name. You can try locating it by
Code:
grep 'mount -a' /etc/init.d/*
PS: What distro are you working on? You're on debian forum, but your profile says RH...
if you're using debian you can search for the package containing a file via apt-file or this page http://www.debian.org/distrib/packages#search_contents
 
Old 05-12-2004, 04:36 AM   #7
Jelle
Member
 
Registered: Feb 2004
Location: Utrecht, The Netherlands
Distribution: Debian
Posts: 79

Original Poster
Rep: Reputation: 15
I cme from redhat, but the uncertanties with fedora led me to debian. (actually I installed knoppix)

mountall.sh was not in my rcS.d so I made said link. It now mounts my LVM disks at boottime. I figured It wouldn't be too bad to issue a mount -a two times when booting, so I didn't bother to find where the other mount -a is.

Thanx for the explanation.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting home folder BruceC Other *NIX 2 09-30-2005 04:12 PM
Mounting /home in different Distros jme Linux - General 3 06-29-2005 06:45 AM
Mounting /home on it's own partition delamatrix Linux - Newbie 10 02-08-2005 01:39 AM
mounting filesystem to home? pablowablo Linux - Newbie 2 01-27-2005 07:43 AM
mounting other partitions to /home mcd Linux - Newbie 4 08-28-2003 06:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 10:53 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration