mount doesn't mount on boot-up

David G. Miller dave at davenjudy.org
Thu Nov 2 05:32:52 UTC 2006


Claude Jones <claude_jones at levitjames.com> wrote:

> Well, I've got a stuff-up - but where's the stomach?
>
> my fstab:
>
> LABEL=/                 /                       ext3    
> defaults        1 1
> LABEL=/boot1            /boot                   ext2    
> defaults        1 2
> devpts                  /dev/pts                devpts  
> gid=5,mode=620  0 0
> tmpfs                   /dev/shm                tmpfs   
> defaults        0 0
> LABEL=/home             /home                   ext3    
> defaults        1 2
> proc                    /proc                   proc    
> defaults        0 0
> sysfs                   /sys                    sysfs   
> defaults        0 0
> LABEL=SWAP-sda2         swap                    swap    
> defaults        0 0
> /dev/sdc1        /home/cj/archive    ext3    defaults    1 2
>
>
> message I got when booting up just now:
>
> Nov  1 20:25:48 localhost kernel: audit(1162430744.537:6): avc:  
> denied  { mounton } for  pid=2341 comm="mount" name="archive" dev=sdb1 
> ino=65175554 scontext=system_u:system_r:mount_t:s0 
> tcontext=user_u:object_r:user_home_t:s0 tclass=dir
> Nov  1 20:25:48 localhost kernel: audit(1162430744.537:7): avc:  
> denied  { mounton } for  pid=2341 comm="mount" name="archive" dev=sdb1 
> ino=65175554 scontext=system_u:system_r:mount_t:s0 
> tcontext=user_u:object_r:user_home_t:s0 tclass=dir
>
> That last entry is my latest try for this drive in fstab - it's clear. 
> The label for that drive had been /home/cj/archive - I changed it to 
> "bigstore"  -
> I tried using the LABEL=/bigstore method, as well. The problem is that 
> on boot-up, my system is trying to mount sdb1 instead of sdc1 - sdb1
> has already been mounted in a previous step as /: any other ideas, 
> anyone?
> -- Claude Jones Brunswick, MD, USA
OK.  If things aren't behaving the way we all think they should, we're 
not seeing something.  How about providing some additional information?  
What I'm thinking is:

1) The output of mount immediately after booting.
2) The output of mount *after* mounting the partition that's causing the 
problem.
3) The contents of /proc/scsi/scsi.

BTW, a work around that should work is to put the mount command you're 
doing from the command line in /etc.rc.d/rc.local.  This shell script 
gets executed after all other initialization tasks.  This doesn't 
explain why you're running into this problem but it at least means you 
won't have to type the mount command each time you boot.

Cheers,
Dave

-- 
Politics, n. Strife of interests masquerading as a contest of principles.
-- Ambrose Bierce




More information about the users mailing list