LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 04-21-2011, 06:25 AM   #1
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Rep: Reputation: 73
fsck not checking non-root file system at boot time...


Hello, got a small issue. Fsck is not check any file system which are not root file system at boot time.

Normally it run: /sbin/fsck -A -R -C -a
but this command doesn't do anything.

I've tried to strace it, and looks like this:

Code:
execve("/sbin/fsck", ["fsck", "-A", "-R", "-C", "-a"], [/* 38 vars */]) = 0
brk(0)                                  = 0x80b7000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7726000
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY)      = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=147584, ...}) = 0
mmap2(NULL, 147584, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7701000
close(3)                                = 0
open("/lib/libblkid.so.1", O_RDONLY)    = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0P9\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=122096, ...}) = 0
mmap2(NULL, 120812, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xba1000
mmap2(0xbbd000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1c) = 0xbbd000
close(3)                                = 0
open("/lib/libuuid.so.1", O_RDONLY)     = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\0\r\0\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=11408, ...}) = 0
mmap2(NULL, 14168, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x352000
mmap2(0x355000, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2) = 0x355000
close(3)                                = 0
open("/lib/libc.so.6", O_RDONLY)        = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\20o\1\0004\0\0\0"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1651695, ...}) = 0
mmap2(NULL, 1452456, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x144000
mprotect(0x2a0000, 4096, PROT_NONE)     = 0
mmap2(0x2a1000, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x15c) = 0x2a1000
mmap2(0x2a4000, 10664, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x2a4000
close(3)                                = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7700000
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb76ff000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb76ff700, limit:1048575, seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1, seg_not_present:0, useable:1}) = 0
mprotect(0x2a1000, 8192, PROT_READ)     = 0
mprotect(0xb2a000, 4096, PROT_READ)     = 0
munmap(0xb7701000, 147584)              = 0
open("/usr/lib/locale/locale-archive", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No such file or directory)
brk(0)                                  = 0x80b7000
brk(0x80d8000)                          = 0x80d8000
open("/usr/share/locale/locale.alias", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=2570, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7725000
read(3, "# Locale name alias data base.\n#"..., 4096) = 2570
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7725000, 4096)                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFDIR|0755, st_size=4096, ...}) = 0
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_MESSAGES/SYS_LC_MESSAGES", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=62, ...}) = 0
mmap2(NULL, 62, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7725000
close(3)                                = 0
open("/usr/lib/locale/en_US/LC_CTYPE", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=221612, ...}) = 0
mmap2(NULL, 221612, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb76c8000
close(3)                                = 0
rt_sigaction(SIGINT, {0x8049590, [], 0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {0x8049590, [], 0}, NULL, 8) = 0
open("/usr/share/locale/en_US/LC_MESSAGES/util-linux-ng.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
open("/usr/share/locale/en/LC_MESSAGES/util-linux-ng.mo", O_RDONLY) = -1 ENOENT (No such file or directory)
write(1, "fsck from util-linux-ng 2.18\n", 29fsck from util-linux-ng 2.18
) = 29
open("/etc/fstab", O_RDONLY|O_LARGEFILE) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=257, ...}) = 0
mmap2(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0xb7724000
read(3, "devpts /dev/pts devpts gid=5,mod"..., 4096) = 257
getcwd("/root", 4095)                   = 6
readlink("/root/devpts", 0xbff852df, 4096) = -1 ENOENT (No such file or directory)
getcwd("/root", 4095)                   = 6
readlink("/root/proc", 0xbff852df, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev", 0xbff852df, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sda1", 0xbff852df, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev", 0xbff852df, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sda5", 0xbff852df, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev", 0xbff852df, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sdb1", 0xbff852df, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev", 0xbff852df, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sdc1", 0xbff852df, 4096) = -1 EINVAL (Invalid argument)
readlink("/dev", 0xbff852df, 4096)      = -1 EINVAL (Invalid argument)
readlink("/dev/sdd1", 0xbff852df, 4096) = -1 EINVAL (Invalid argument)
read(3, "", 4096)                       = 0
close(3)                                = 0
munmap(0xb7724000, 4096)                = 0
exit_group(0)                           = ?
Does anybody know whats the issue? and yes it's Slackware (current).
 
Old 04-21-2011, 10:01 AM   #2
GazL
LQ Veteran
 
Registered: May 2008
Posts: 6,897

Rep: Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018Reputation: 5018
Is the 6th field of your /etc/fstab entry set to an appropriate non-zero value ("2" is the common choice) for all your additional filesystems?
 
Old 04-21-2011, 03:28 PM   #3
robertjinx
Member
 
Registered: Oct 2007
Location: Prague, CZ
Distribution: RedHat / CentOS / Ubuntu / SUSE / Debian
Posts: 749

Original Poster
Rep: Reputation: 73
Hi, thanks, that worked, my other file systems had also 0 0
 
  


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
fsck and root file system xj25vm Slackware 4 10-20-2011 01:11 PM
Linux Red Hat 7.0 Fails at Checking Root File System vdixit Linux - Newbie 11 01-20-2010 12:14 PM
is fsck checking file system on bootup necessary samwise17 Slackware 3 12-08-2007 11:20 PM
Hang at Checking root file system ajay_sharma Mandriva 2 07-27-2007 09:50 AM
Running fsck (or e2fsck) on root file system... xbill311x Linux - Newbie 2 01-02-2006 10:54 PM

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

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