On 9/21/06, Rick Bilonick <rab@xxxxxxxxxxxx> wrote:
On Fri, 2006-09-22 at 00:35 -0400, Dave Jones wrote: > On Fri, Sep 22, 2006 at 12:27:20AM -0400, Rick Bilonick wrote: > > > Unable to find swap-space signature > > Unable to find swap-space signature > > Unable to find swap-space signature > > Unable to find swap-space signature > > Unable to find swap-space signature > > Unable to find swap-space signature > > > > A few days ago (right before this problem started), I installed acpitool > > and I tried to do a suspend (which didn't work). I think that screwed > > something up! > > mkswap /dev/hda6, and then it should work. > > Dave > OK, I rebooted but still get: > dmesg | grep swap Kernel command line: ro root=/dev/VolGroup00/LogVol00 rhgb quiet resume2=swap:/dev/hda6 audit(1158902797.697:4): avc: denied { unlink } for pid=1852 comm="swapon" name="blkid.tab.old" dev=dm-0 ino=1736154 scontext=system_u:system_r:fsadm_t tcontext=root:object_r:etc_t tclass=file audit(1158902797.809:5): avc: denied { unlink } for pid=1852 comm="swapon" name="blkid.tab.old" dev=dm-0 ino=1736154 scontext=system_u:system_r:fsadm_t tcontext=root:object_r:etc_t tclass=file This gets swap going: root@ophth-bilora chippy]# /sbin/swapon /dev/hda6 But how do I get this to work automatically like it used to? Rick B. -- fedora-list mailing list fedora-list@xxxxxxxxxx To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Hi Rick Bilonick! I believe the "avc: denied" messages you are seeing indicate that SELinux is not allowing the swap to be mounted. It might be nice to find out where the command that mounts swap is and exactly what it says. I believe you can do this by: # add "cd /etc/init.d" to the following -- --------------------------------------------- tod@tod-desktop:/etc/init.d$ grep "swapon" * checkroot.sh: SWAPON_MESSAGES="$(swapon -a 2>/dev/null)" checkroot.sh: swapon -a 2>/dev/null mountall.sh: # Execute swapon command again, in case we want to swap to mountall.sh: swapon -a -e -------------------------------------------- # So we from the above see the swap command - it referenced fstab (-a) so: -------------------------------------------- tod@tod-desktop:/etc/init.d$ cd .. tod@tod-desktop:/etc$ cat fstab # /etc/fstab: static file system information. # # <file system> <mount point> <type> <options> <dump> <pass> proc /proc proc defaults 0 0 /dev/hda1 / ext3 defaults,errors=remount-ro 0 1 /dev/hda2 none swap sw 0 0 /dev/hdc /media/cdrom0 udf,iso9660 user,noauto 0 0 tod@tod-desktop:/etc$ ------------------------------------------------ In your case (I am running Dapper right now) you will probably find the swapon command in /etc/rc.sysinit. My Fedora partition is hda5: ------------------------------------------------ tod@tod-desktop:/media/hda5/etc$ grep "swapon" rc.sysinit action $"Enabling swap space: " swapon -a -e tod@tod-desktop:/media/hda5/etc$ -------------------------------------------------- And the results seen in dmesg: -------------------------------------------------- tod@tod-desktop:~$ dmesg | grep swap [17179635.188000] Adding 1318456k swap on /dev/hda2. Priority:-1 extents:1 across:1318456k -------------------------------------------------- The command says use the defaults written in fstab and skip devices that do not exist. Then, when we know what is trying to be mounted we need to find out why SELinux is not permitting the operation?! I notice that the messages reference "blkid.tab.old". You would probably do well to find that file and check it's permissions and context. Good Hunting! Tod