LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora
User Name
Password
Fedora This forum is for the discussion of the Fedora Project.

Notices


Reply
  Search this Thread
Old 01-06-2019, 10:54 PM   #1
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Rep: Reputation: 156Reputation: 156
latest dead computer


Hi All,

I seem to be breaking computers for fun these days. I'll point out that I am referring to a different computer to my last thread

https://www.linuxquestions.org/quest...or-4175644198/

this time I was testing out hard drives by plugging them into my fedora 28 box. I have to admit I was being a bit cavalier, simply connecting the SATA and power cables to the back of the drive and booting without actually placing the drive in a bay. I was powering down before connecting/disconnecting drives.

Anyway the first worked fine. I modified fstab to recognise the UUID, mounted, all good. After I removed this drive and connected another, the PC did not boot. After power up I did not even get the boot screen. I figured I must have broken fstab while changing it.

I booted from a Linux Mint USB and checked the partitions were still in place and fstab looked okay. There was no issue I could see but I restored my backup copy of fstab all the same just to be sure.

I booted again and things looked better. I got the grub menu (I only have fedora installed, no dual boots. 2 fixes drives and one USB drive plugged in permanently), selected the latest kernel and away it went.

However, the boot goes through to the blue fedora icon and that is it. I don't get any further. A trawl around the net suggested I try to ssh in from another PC. Bingo, that worked but I couldn't ssh to my user as there is no /home/tim

Okay, ssh to root works fine. The /home directory is empty but I can mount that partition seperately and all the files are there. I partition my hard drive as an LVM and fstab looks like this:
Quote:
/dev/mapper/fedora-root / ext4 defaults 1 1
UUID=a2c504fd-a605-4b6f-8266-87d86cebb49b /boot ext4 defaults 1 2
/dev/mapper/fedora-home /home ext4 defaults 1 2
/dev/mapper/fedora-swap swap swap defaults 0 0
UUID=f49c4a9c-bd5e-4ddc-9e7f-8c381b1a68ae /mnt/backup ext4 defaults 0 0
root mounts fine but home doesn't mount at boot. But I can mount home after booting. Any ideas where to go from here?

Cheers
 
Old 01-06-2019, 11:07 PM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,140

Rep: Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123Reputation: 4123
When in doubt read the messages. From your ssh session "journalctl -b 0" should suffice for the current boot. To see (only) the previous boot use "journalctl -b -1".

Last edited by syg00; 01-06-2019 at 11:23 PM. Reason: -b 0, and explanded comment.
 
1 members found this post helpful.
Old 01-06-2019, 11:13 PM   #3
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,838
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
I connect disks temporarily in same manner as you describe rather frequently. Usually I sit the disk down on a piece of cardboard or DVD sleeve or wood or anti-static sleeve to reduce potential for damage by a bump while in use.

Try to find clues to the /home problem in the journal. If you can't manage this via ssh, try to boot to multi-user: at the Grub menu, strike the e key, cursor down to the kernel line, append a 3, then F10 to boot.
 
1 members found this post helpful.
Old 01-07-2019, 01:24 AM   #4
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
thanks for the useful instructions. I thought I had it sussed but maybe not so. I kept seeing a message where permission was denied when attempting to open /etc/fstab. When I checked the permissions I then saw that fstab was owned by myself and was in my group. This is consistent with the steps I outlined above.

I could not change ownership/group in the current session as the file system is mounted read-only
Quote:
[root@eraserhead ~]# chown root /etc/fstab
chown: changing ownership of '/etc/fstab': Read-only file system
I booted again into the Mint USB, mounted the root filesystem and changed group/ownership. But, still no good
Quote:
Jan 07 18:07:08 eraserhead kernel: audit: type=1400 audit(1546844825.189:46): avc: denied { read } for pid=508 comm="systemd-fstab-g" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_ubject_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:08 eraserhead kernel: audit: type=1300 audit(1546844825.189:46): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=5635b6bc95fd a2=80000 a3=0 items=0 ppid=498 pid=508 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-fstab-g" exe="/usr/lib/systemd/system-generators/systemd-fstab-generator" subj=system_u:system_r:init_t:s0 key=(null)
Jan 07 18:07:08 eraserhead systemd-fstab-generator[508]: Failed to open /etc/fstab: Permission denied
Jan 07 18:07:08 eraserhead systemd[498]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
Jan 07 18:07:05 eraserhead audit[508]: AVC avc: denied { read } for pid=508 comm="systemd-fstab-g" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_ubject_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:05 eraserhead audit[508]: SYSCALL arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=5635b6bc95fd a2=80000 a3=0 items=0 ppid=498 pid=508 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-fstab-g" exe="/usr/lib/systemd/system-generators/systemd-fstab-generator" subj=system_u:system_r:init_t:s0 key=(null)
Jan 07 18:07:08 eraserhead audit[526]: AVC avc: denied { read } for pid=526 comm="systemd-remount" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_ubject_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:08 eraserhead systemd-remount-fs[526]: Failed to open /etc/fstab: Permission denied
Jan 07 18:07:11 eraserhead audit[609]: AVC avc: denied { read } for pid=609 comm="systemd-remount" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_ubject_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:11 eraserhead systemd-remount-fs[609]: Failed to open /etc/fstab: Permission denied
Jan 07 18:07:11 eraserhead kernel: audit: type=1400 audit(1546844831.137:70): avc: denied { read } for pid=609 comm="systemd-remount" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_ubject_r:user_home_t:s0 tclass=file permissive=0
But I can't see anything wrong with fstab now!
Quote:
-rw-rw-r--. 1 root root 1844 Jan 7 18:06 /etc/fstab
Is there any way to, as it were, recreate fstab?
 
Old 01-07-2019, 01:52 AM   #5
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,838
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
When you paste in logs and such it needs to be in code tags in order for it to be comprehensible. Use the [#] button above the input box, or type in [c0de] and [/c0de] in manually at start and end of the pasted block (spelled correctly of course). If what you wish to paste is large, upload instead, which when successfully booted normally you can do with the Fedora command pastebinit.

It's not clear what you did. When you paste something in, include the cmdline you used to get or create it. Better excess detail than too little.

Fstab probably does not need to be recreated. Paste it in here so we can look at it.

What we need to find out is why anything is being mounted readonly or not at all.
 
Old 01-07-2019, 02:14 AM   #6
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
sorry, this is an abridged output of
Code:
journalctl -b 0
. I simply grepped all occurrences of fstab
Code:
an 07 18:07:08 eraserhead kernel: audit: type=1400 audit(1546844825.189:46): avc:  denied  { read } for  pid=508 comm="systemd-fstab-g" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:08 eraserhead kernel: audit: type=1300 audit(1546844825.189:46): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=5635b6bc95fd a2=80000 a3=0 items=0 ppid=498 pid=508 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-fstab-g" exe="/usr/lib/systemd/system-generators/systemd-fstab-generator" subj=system_u:system_r:init_t:s0 key=(null)
Jan 07 18:07:08 eraserhead systemd-fstab-generator[508]: Failed to open /etc/fstab: Permission denied
Jan 07 18:07:08 eraserhead systemd[498]: /usr/lib/systemd/system-generators/systemd-fstab-generator failed with exit status 1.
Jan 07 18:07:05 eraserhead audit[508]: AVC avc:  denied  { read } for  pid=508 comm="systemd-fstab-g" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:05 eraserhead audit[508]: SYSCALL arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=5635b6bc95fd a2=80000 a3=0 items=0 ppid=498 pid=508 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-fstab-g" exe="/usr/lib/systemd/system-generators/systemd-fstab-generator" subj=system_u:system_r:init_t:s0 key=(null)
Jan 07 18:07:08 eraserhead audit[526]: AVC avc:  denied  { read } for  pid=526 comm="systemd-remount" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:08 eraserhead systemd-remount-fs[526]: Failed to open /etc/fstab: Permission denied
Jan 07 18:07:11 eraserhead audit[609]: AVC avc:  denied  { read } for  pid=609 comm="systemd-remount" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Jan 07 18:07:11 eraserhead systemd-remount-fs[609]: Failed to open /etc/fstab: Permission denied
Jan 07 18:07:11 eraserhead kernel: audit: type=1400 audit(1546844831.137:70): avc:  denied  { read } for  pid=609 comm="systemd-remount" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Okay, I get where you are coming from. There may not be a problem with fstab permissions more the filesysten it lives in. Here is fstab
Code:
#
# /etc/fstab
# Created by anaconda on Wed Apr 19 11:20:12 2017
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/fedora-root /                       ext4    defaults        1 1
UUID=a2c504fd-a605-4b6f-8266-87d86cebb49b /boot                   ext4    defaults        1 2
/dev/mapper/fedora-home /home                   ext4    defaults        1 2
/dev/mapper/fedora-swap swap                    swap    defaults        0 0
UUID=f49c4a9c-bd5e-4ddc-9e7f-8c381b1a68ae /mnt/backup       ext4    defaults        0 0
#UUID=a0f946d2-5f7c-4670-9546-701d4effbca8	/mnt/test       ext4    defaults        0 0
#UUID=AED05958D059283B /mnt/backup       ntfs    defaults        0 0
UUID=71032fde-1567-4acf-b6e6-a26f53e897db       /data                           ext4    defaults         0 0
#//10.1.1.71/mp3 /mnt/mp3                        cifs    credentials=/home/tim/.docs_cred 0 0
#//10.1.1.62/mp3        /mnt/mp3                       cifs    credentials=/home/tim/.mp3_cred	 0 0
#//10.1.1.62/jerome23        /mnt/nmp3                       cifs    credentials=/home/tim/.j23_cred	 0 0
#//10.1.1.61/gtech       /mnt/gtech                      cifs    credentials=/home/tim/.gtech_cred       0 0
#//10.1.1.62/doco       /mnt/doco                      cifs    credentials=/home/tim/.docs_cred        0 0
#//10.1.1.98/doco       /mnt/ndoco                      cifs    credentials=/home/tim/.docs_cred        0 0
#//10.1.1.61/doco        /mnt/doco                       cifs    credentials=/home/tim/.docs_cred        0 0
#//10.1.1.71/coding      /mnt/coding                     cifs    credentials=/home/tim/.docs_cred      0 0
#//10.1.1.71/doco        /mnt/doco                       cifs    credentials=/home/tim/.docs_cred        0 0
My disks
Code:
[tim@eraserhead /]$ ll /dev/disk/by-uuid/
total 0
lrwxrwxrwx. 1 root root 10 Jan  7 18:07 0f845386-073f-45c8-8972-33969e55bc9e -> ../../dm-0
lrwxrwxrwx. 1 root root 10 Jan  7 18:07 552487f4-7ec5-4ce9-95ee-391276d7fe47 -> ../../dm-2
lrwxrwxrwx. 1 root root 10 Jan  7 18:07 71032fde-1567-4acf-b6e6-a26f53e897db -> ../../sdb1
lrwxrwxrwx. 1 root root 10 Jan  7 18:07 a2c504fd-a605-4b6f-8266-87d86cebb49b -> ../../sda1
lrwxrwxrwx. 1 root root 10 Jan  7 18:07 cf880a6c-65c9-4897-b40d-43b9373957d5 -> ../../dm-1
lrwxrwxrwx. 1 root root 10 Jan  7 18:07 f49c4a9c-bd5e-4ddc-9e7f-8c381b1a68ae -> ../../sdc1
more disk info
Code:
Filesystem               Size  Used Avail Use% Mounted on
sysfs                       0     0     0    - /sys
proc                        0     0     0    - /proc
devtmpfs                 3.9G     0  3.9G   0% /dev
securityfs                  0     0     0    - /sys/kernel/security
tmpfs                    3.9G     0  3.9G   0% /dev/shm
devpts                      0     0     0    - /dev/pts
tmpfs                    3.9G  9.2M  3.9G   1% /run
tmpfs                    3.9G     0  3.9G   0% /sys/fs/cgroup
cgroup2                     0     0     0    - /sys/fs/cgroup/unified
cgroup                      0     0     0    - /sys/fs/cgroup/systemd
pstore                      0     0     0    - /sys/fs/pstore
bpf                         0     0     0    - /sys/fs/bpf
cgroup                      0     0     0    - /sys/fs/cgroup/cpuset
cgroup                      0     0     0    - /sys/fs/cgroup/pids
cgroup                      0     0     0    - /sys/fs/cgroup/blkio
cgroup                      0     0     0    - /sys/fs/cgroup/perf_event
cgroup                      0     0     0    - /sys/fs/cgroup/memory
cgroup                      0     0     0    - /sys/fs/cgroup/net_cls,net_prio
cgroup                      0     0     0    - /sys/fs/cgroup/freezer
cgroup                      0     0     0    - /sys/fs/cgroup/cpu,cpuacct
cgroup                      0     0     0    - /sys/fs/cgroup/hugetlb
cgroup                      0     0     0    - /sys/fs/cgroup/devices
configfs                    0     0     0    - /sys/kernel/config
/dev/mapper/fedora-root   50G   11G   37G  23% /
selinuxfs                   0     0     0    - /sys/fs/selinux
systemd-1                   -     -     -    - /proc/sys/fs/binfmt_misc
debugfs                     0     0     0    - /sys/kernel/debug
hugetlbfs                   0     0     0    - /dev/hugepages
tmpfs                    3.9G  248K  3.9G   1% /tmp
mqueue                      0     0     0    - /dev/mqueue
sunrpc                      0     0     0    - /var/lib/nfs/rpc_pipefs
tmpfs                    787M     0  787M   0% /run/user/0
tmpfs                    787M     0  787M   0% /run/user/1000
binfmt_misc                 0     0     0    - /proc/sys/fs/binfmt_misc
 
Old 01-07-2019, 03:25 AM   #7
mrmazda
LQ Guru
 
Registered: Aug 2016
Location: SE USA
Distribution: openSUSE 24/7; Debian, Knoppix, Mageia, Fedora, others
Posts: 5,838
Blog Entries: 1

Rep: Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071Reputation: 2071
Quote:
Originally Posted by timl View Post
Is there any way to, as it were, recreate fstab?
Given the changes you obviously made, it would be a good idea to try, assuming you can get the filesystem into RW mode. If you can, back up the current version, then strip all lines from the one to try, except for:
Code:
/dev/mapper/fedora-root /                       ext4 defaults 1 1
UUID=a2c504fd-a605-4b6f-8266-87d86cebb49b /boot ext4 defaults 1 2
and see what happens. If it gets you ability to login on a vtty as root, just add back one line at a time until full operation as originally is restored.
 
1 members found this post helpful.
Old 01-07-2019, 04:02 AM   #8
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
no joy yet. I am attaching a chunk of journalctl prior to the first fstab error in case this can help
Code:
k...
Jan 07 20:48:48 eraserhead systemd[1]: Started dracut pre-pivot and cleanup hook.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-pivot comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Starting Cleaning Up and Shutting Down Daemons...
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Timers.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped dracut pre-pivot and cleanup hook.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-pivot comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Remote File Systems.
Jan 07 20:48:48 eraserhead systemd[1]: Starting Plymouth switch root service...
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-initqueue comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-initqueue comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Starting Setup Virtual Console...
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Remote File Systems (Pre).
Jan 07 20:48:48 eraserhead systemd[1]: Stopped dracut initqueue hook.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Initrd Default Target.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Initrd Root Device.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Basic System.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Slices.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Paths.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target System Initialization.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped Create Volatile Files and Directories.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-tmpfiles-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Local File Systems.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped udev Coldplug all Devices.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udev-trigger comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udev-trigger comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped Apply Kernel Variables.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-sysctl comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Swap.
Jan 07 20:48:48 eraserhead systemd[1]: Stopping udev Kernel Device Manager...
Jan 07 20:48:48 eraserhead systemd[1]: Stopped target Sockets.
Jan 07 20:48:48 eraserhead systemd[1]: Stopped udev Kernel Device Manager.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-udevd comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Started Cleaning Up and Shutting Down Daemons.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=initrd-cleanup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=initrd-cleanup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped dracut pre-udev hook.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-udev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-pre-udev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped dracut cmdline hook.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-cmdline comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=dracut-cmdline comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped Create Static Device Nodes in /dev.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-tmpfiles-setup-dev comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Stopped Create list of required static device nodes for the current kernel.
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=kmod-static-nodes comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=kmod-static-nodes comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:48 eraserhead systemd[1]: Closed udev Kernel Socket.
Jan 07 20:48:48 eraserhead systemd[1]: Closed udev Control Socket.
Jan 07 20:48:48 eraserhead systemd[1]: Starting Cleanup udevd DB...
Jan 07 20:48:49 eraserhead systemd[1]: Started Cleanup udevd DB.
Jan 07 20:48:49 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=initrd-udevadm-cleanup-db comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:49 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=initrd-udevadm-cleanup-db comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:49 eraserhead systemd[1]: Started Plymouth switch root service.
Jan 07 20:48:49 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=plymouth-switch-root comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:49 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=plymouth-switch-root comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:49 eraserhead systemd[1]: Started Setup Virtual Console.
Jan 07 20:48:49 eraserhead audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-vconsole-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:49 eraserhead audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 subj=kernel msg='unit=systemd-vconsole-setup comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Jan 07 20:48:49 eraserhead systemd[1]: Reached target Switch Root.
Jan 07 20:48:49 eraserhead systemd[1]: Starting Switch Root...
Jan 07 20:48:49 eraserhead systemd[1]: Switching root.
Jan 07 20:48:49 eraserhead systemd-journald[160]: Journal stopped
Jan 07 20:48:54 eraserhead systemd-journald[160]: Received SIGTERM from PID 1 (systemd).
Jan 07 20:48:54 eraserhead kernel: systemd: 14 output lines suppressed due to ratelimiting
Jan 07 20:48:54 eraserhead kernel: kauditd_printk_skb: 34 callbacks suppressed
Jan 07 20:48:54 eraserhead kernel: audit: type=1404 audit(1546854530.122:45): enforcing=1 old_enforcing=0 auid=4294967295 ses=4294967295 enabled=1 old-enabled=1 lsm=selinux res=1
Jan 07 20:48:54 eraserhead kernel: SELinux:  Class bpf not defined in policy.
Jan 07 20:48:54 eraserhead kernel: SELinux:  Class xdp_socket not defined in policy.
Jan 07 20:48:54 eraserhead kernel: SELinux: the above unknown classes and permissions will be allowed
Jan 07 20:48:54 eraserhead kernel: SELinux:  policy capability network_peer_controls=1
Jan 07 20:48:54 eraserhead kernel: SELinux:  policy capability open_perms=1
Jan 07 20:48:54 eraserhead kernel: SELinux:  policy capability extended_socket_class=1
Jan 07 20:48:54 eraserhead kernel: SELinux:  policy capability always_check_network=0
Jan 07 20:48:54 eraserhead kernel: SELinux:  policy capability cgroup_seclabel=1
Jan 07 20:48:54 eraserhead kernel: SELinux:  policy capability nnp_nosuid_transition=1
Jan 07 20:48:54 eraserhead kernel: audit: type=1403 audit(1546854530.683:46): auid=4294967295 ses=4294967295 lsm=selinux res=1
Jan 07 20:48:54 eraserhead systemd[1]: Successfully loaded SELinux policy in 573.869ms.
Jan 07 20:48:54 eraserhead systemd[1]: Relabelled /dev, /run and /sys/fs/cgroup in 33.294ms.
Jan 07 20:48:54 eraserhead systemd[1]: systemd 238 running in system mode. (+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid)
Jan 07 20:48:54 eraserhead systemd[1]: Detected architecture x86-64.
Jan 07 20:48:54 eraserhead systemd[1]: Set hostname to <eraserhead>.
Jan 07 20:48:54 eraserhead kernel: audit: type=1400 audit(1546854531.205:47): avc:  denied  { read } for  pid=508 comm="systemd-fstab-g" name="fstab" dev="dm-0" ino=1050389 scontext=system_u:system_r:init_t:s0 tcontext=unconfined_u:object_r:user_home_t:s0 tclass=file permissive=0
Jan 07 20:48:54 eraserhead kernel: audit: type=1300 audit(1546854531.205:47): arch=c000003e syscall=257 success=no exit=-13 a0=ffffff9c a1=558d2def55fd a2=80000 a3=0 items=0 ppid=498 pid=508 auid=4294967295 uid=0 gid=0 euid=0 suid=0 fsuid=0 egid=0 sgid=0 fsgid=0 tty=(none) ses=4294967295 comm="systemd-fstab-g" exe="/usr/lib/systemd/system-generators/systemd-fstab-generator" subj=system_u:system_r:init_t:s0 key=(null)
Jan 07 20:48:54 eraserhead kernel: audit: type=1327 audit(1546854531.205:47): proctitle=2F7573722F6C69622F73797374656D642F73797374656D2D67656E657261746F72732F73797374656D642D66737461622D67656E657261746F72002F72756E2F73797374656D642F67656E657261746F72002F72756E2F73797374656D642F67656E657261746F722E6561726C79002F72756E2F73797374656D642F67656E65
Cheers
 
Old 01-07-2019, 12:59 PM   #9
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
last night I backed up fstab then fiddled with the file based on post # 7. No joy. Switched off the computer & went to bed.

This morning I booted from USB, restored the backed up copy and rebooted. All good! Scratching my head. I'll review this when I get back from work.
 
Old 01-09-2019, 02:24 AM   #10
timl
Member
 
Registered: Jan 2009
Location: Sydney, Australia
Distribution: Fedora,CentOS
Posts: 750

Original Poster
Rep: Reputation: 156Reputation: 156
I am marking this as solved. I don't know why the problem occurred and I don't know how it was solved but I have learned a lot. Thanks for all the help.
 
Old 02-05-2020, 12:04 AM   #11
NileTheGreat
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Hello reader,

timl's quest helped me, so I thought I'd add a bit to this post.

Fedora 31 (5.4.13-201.fc31.x86_64), windows 10 dualboot, 2 extra ntfs hdds

While trying to debug an unrelated userland problem, I modified /etc/fstab . Nothing crazy, just changed the mount points of some ntfs data partitions from /home/<me>/disks/<stuff> to /mnt/<disknameshere> .

When rebooting, fedora loading screen ran, than hung. None of my grub options would get past the end of loading.

Rebooted to grub, when boot options displayed press e to edit, added 'single' to the end of the linux line to get into single user mode.

Here, I found that root had mounted ro, however swap, boot, and home were not mounted at all. I was able to mount them manually, and even remount root rw, however none of this persisted on boot.

Upon diggint into journalctl, I found a few interesting lines (paraphrased):
systemd-fstab-generator[###]: Failed to open /etc/fstab: Permission denied
systemd-remount-fs[###]: Failed to open /etc/fstab: Permission denied

My (novice) train of thought here went - for some reason, startup doesn't have permission to access fstab.

Permissions were normal, so I figured it must be something to do with root not being mounted when systemd-remount-fs was trying to access /etc/fstab

A million wrong rabbit holes later, followed mrmazda's advice of 'comment out everything except root and boot, add back one at a time'.

This fixed it. No idea how. I made backups of my fstab at different points along the way and I see absolutely zero difference between the original changes that I tried to make, and the current iteration.

The one theory I have is that, between my initial fstab changes and my first reboot, about 30 min passed and I did NOT run systemctl daemon-reload. I'm wondering if some systemd generated unit file might have been incorrectly configured/generated, some-magik-how this prevented partitions from being mounted?
 
  


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
LXer: SCO is finally “Dead Parrot” dead LXer Syndicated Linux News 0 08-09-2012 02:30 AM
Symptoms of a Dead MOBO vs a Dead Processor..... Delano_Lucas General 7 07-26-2006 04:50 PM
Xinetd dead --xinetd dead but pid file exists hillxy Linux - General 1 04-15-2004 02:10 PM
Dead Display = Dead Machine chris319 Linux - Hardware 1 12-05-2003 06:37 AM
Squid:2nd Browser access Internet SPEED dead becomes dead slow mwj Linux - Software 1 10-04-2003 01:40 PM

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

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