LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 01-11-2007, 11:42 AM   #1
./w
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
what is the boot sequence (first mount partitions, then start logging) ?


Hi, I have a specific question about slackware boot up sequence. What I want to know is when the logs (in /var/log/) are used for the first time.

The thing is I made a partition which I mount as /dev/md7 in /mnt/md7, and I use this partition to hold /var/log and /var/www. I also made symbolic links from /var/log to /mnt/md7/log and from /var/www to /mnt/md7/www.

I want to make sure this partition is mounted on time to get everything (specially the logs) going without errors. My logs seem to be fine, but I want to make sure about this.

This is my /etc/fstab file:

/dev/md0 swap swap defaults 0 0
/dev/md1 / reiserfs defaults 1 1
/dev/md2 /boot reiserfs defaults 1 2
/dev/md3 /var reiserfs defaults 1 2
/dev/md4 /tmp reiserfs defaults 1 2
/dev/md5 /home reiserfs defaults 1 2
/dev/md6 /usr reiserfs defaults 1 2
/dev/md7 /mnt/md7 reiserfs defaults 1 2
/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0


Thanks in advance!
 
Old 01-11-2007, 12:25 PM   #2
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
You should be fine. If syslog begins with the same output that dmesg outputs at boot, then you know you have captured everything right from the beginning.

If you have
# Save the contents of 'dmesg':
/bin/dmesg -s 65536 > /var/log/dmesg

in /etc/rc.M (It is just after the 'Set the hostname' section on my system), you can compare.

you might also want to take a look at /etc/syslog.conf and figure out what it does.

tobyl
 
Old 01-11-2007, 12:44 PM   #3
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
syslogging starts pretty late in the boot script. But you need /var mounted before then. In fact just after all non-root partitions in fstab are mounted (and swapon is run) in rc.S. The first call to /var is to cleanup temp files and then utmp is also created. This means that var should be mounted early. If var is to be mounted on a partition other than '/' you need to mount that partition first in your fstab, before mounting var on that. This will make sure that everything is straight.
 
Old 01-11-2007, 12:52 PM   #4
tobyl
Member
 
Registered: Apr 2003
Location: uk
Distribution: slackware current
Posts: 768

Rep: Reputation: 64
Oh ok, I thought the logs were initially stored in a ring-buffer so that logging started even if /var was not mounted immediately.

tobyl
 
Old 01-12-2007, 01:44 AM   #5
gnashley
Amigo developer
 
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,928

Rep: Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612Reputation: 612
The messages from the kernel *are* buffered and get written to dmesg. The messages from the init scripts are different. Note that the two kinds of messages are usually mixed in the output to console just after mounting the root partition. Drivers from the kernel may still be registering and reporting while console messages from the init scripts have already started. Starting logging is one of the last things done during bootup.
 
  


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
How to Mount Windows partitions on boot*up rohanahmed Linux - Newbie 2 08-01-2006 02:58 PM
How to mount on boot - Windows drv/partitions? cbjhawks SUSE / openSUSE 5 03-27-2006 08:38 AM
mount fat partitions at start alaios Linux - General 4 01-21-2006 11:54 PM
how to mount ntfs drives in the boot sequence karimd Slackware 6 08-16-2004 10:40 AM
System won't boot, can't mount partitions Ethan Linux - General 22 09-17-2002 03:23 PM

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

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