LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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 07-04-2004, 01:28 AM   #1
suguru
Member
 
Registered: Dec 2003
Location: Voluntarily move into diaster relief areas.
Distribution: Upgraded from Suse 10 to Ubuntu.
Posts: 104

Rep: Reputation: 15
/bin/dmesg > /dmesg-boot not Working in Knoppix 3.4


thegeekster advised for LinuxQuestions.org > Forums > Linux - Distributions > Slackware > Mounting a DVDRW
>>>Quote
/etc/rc.d/rc.local:

code:

# Write the boot info to disk. Make sure it is the last entry in
# the startup sequence.
/bin/dmesg > /dmesg-boot

This will keep an updated dmesg output in the Root Directory (not root's home directory), in a file called "dmesg-boot".............This is handy to have whenever you need to troubleshoot startup problems or need to find the current startup info. Then when someone asks for the output of the command 'dmesg', you can use 'cat /dmesg-boot'
>>>EndQuote

It sounded like a goog idea so I made
/etc/rc.d/rc.local
with
# Write the boot info to disk. Make sure it is the last entry in
# the startup sequence.
/bin/dmesg > /dmesg-boot

Then after I reboot I only get this
root@45a:~# locate dmesg
/bin/dmesg
/usr/share/man/man8/dmesg.8.gz
/var/log/dmesg
root@45a:~# cat /dmesg-boot
cat: /dmesg-boot: No such file or directory
root@45a:~#
root@45a:~# ls -ls /bin/dmesg
4 -rwxr-xr-x 1 root root 4060 Dec 6 2003 /bin/dmesg
root@45a:~# ls -ls /var/log/dmesg
0 -rw-r--r-- 1 root root 0 Nov 28 2001 /var/log/dmesg
root@45a:~# emacs /bin/dmesg Doesn't show anything I can read!
 
Old 07-04-2004, 05:05 PM   #2
qwijibow
Guru
 
Registered: Apr 2003
Location: nottingham england
Distribution: Gentoo
Posts: 2,672

Rep: Reputation: 47
maybe your distro (whatever that is) is not ececuting rc.local.

have a look at /etc/inittab and trace the boot scripts looking for mention of rc.local.
if its there, it will be at the end.

if not, addd it yourself.
 
Old 07-04-2004, 05:21 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,414

Rep: Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966Reputation: 1966
Quote:
root@45a:~# emacs /bin/dmesg Doesn't show anything I can read!
I should chuffing well hope not! that's a binary program! generally i'd say this is a generl waste of time... you have no real need for this but....

1) run /bin/dmesg without the rest of it
2) run /bin/dmesg > /dmesg-boot directly
3) run cat /dmesg-boot to check if it works

if those steps all work, then you're putting it in the wrong startup file or something, maybe a typo... personally i wouldn't bother, you can run dmesg whenver you feel like it...
 
  


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
Kernel Boot Messages - Dmesg Problem LinuxGeek Linux - General 8 08-19-2004 10:35 AM
USB working/not lspci & dmesg civ247 Linux - Hardware 0 07-09-2004 10:23 AM
boot message and dmesg and logs aus9 Slackware 4 01-28-2004 01:27 AM
Boot messages not showing in dmesg... Nu-Bee Linux - General 4 01-25-2004 01:49 PM
dmesg not working correctly?? zLinuxz Linux - General 4 05-05-2002 09:30 PM


All times are GMT -5. The time now is 11:09 AM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration