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 - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 03-16-2014, 01:29 AM   #1
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
systemd can't 'find' local drives


So I recently upgraded a CLFS based system to include systemd 211. The previous version of 208 ran just fine but for some reason I am being thrown to the rescue console after 1 minute
and 30 seconds of checking (trying to perform fsck) for 3 partitions (sda5 (/home), sda6 (/var), sdb1 (/usr/src/build)).
Once dropped to the rescue console I can login as root and the manually mount all of the above and after pressing Ctrl-d I am placed at the login prompt and the system behaves as if booted normally.

I have attached a screenshot of just prior to logging into the rescue console.
Also, I have attached output from journalctl -xb and the offending errored lines.
Errors for drives start at 14:09:22

If anyone would advise on what I might check it would be much appreciated
Please let me know if there is any other information you may require to help me?

As will be evident from the screenshot, I am running this on virtualbox (in case that matters)
Attached Thumbnails
Click image for larger version

Name:	systemd_boot_error.jpg
Views:	414
Size:	64.3 KB
ID:	14976  
Attached Files
File Type: log systemd_output.log (54.0 KB, 37 views)
 
Old 03-16-2014, 04:14 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Your systemd_output.log shows it's trying to determine what kind of file system /dev/sda2 contains:
Code:
Mar 16 14:07:52 theGrail kernel: EXT3-fs (sda2): error: couldn't mount because of unsupported optional features (240)
Mar 16 14:07:52 theGrail kernel: EXT2-fs (sda2): error: couldn't mount because of unsupported optional features (240)
Mar 16 14:07:52 theGrail kernel: EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
Mar 16 14:07:52 theGrail kernel: VFS: Mounted root (ext4 filesystem) readonly on device 8:2.
and eventually it settles for Ext4:
Code:
Mar 16 14:07:52 theGrail kernel: EXT4-fs (sda2): re-mounted. Opts: acl,user_xattr
so best check 'blkid' output against your /etc/fstab contents.
 
Old 03-16-2014, 05:30 AM   #3
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Original Poster
Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
fstab:
Code:
UUID=825fe35e-970d-4f9c-85c9-b0cbfefddc27     /               ext4    defaults,acl,user_xattr 1   1
UUID=c9984bd4-3651-4609-a265-6d497b4fbd07     /var            ext4    defaults,acl,user_xattr 0   2
UUID=a9183fae-5911-4bbd-98d4-e045b5dbb13a     /home           ext4    defaults,acl,user_xattr 0   2
UUID=b9891768-1302-4ff5-9f27-92d61615be5c     /usr/src/build  ext4    defaults,acl,user_xattr 0   2

UUID=5fee09f8-5c9c-4e5c-bfee-ee251b3f3e48     swap    swap    sw          0   0
blkid output:
Code:
device                         fs_type     label        mount point                        UUID
-------------------------------------------------------------------------------------------------------------------------------
/dev/sda1                      swap                     <swap>                             5fee09f8-5c9c-4e5c-bfee-ee251b3f3e48
/dev/sda2                      ext4        /            /                                  825fe35e-970d-4f9c-85c9-b0cbfefddc27
/dev/sda5                      ext4        /home        /home                              a9183fae-5911-4bbd-98d4-e045b5dbb13a
/dev/sda6                      ext4        /var         /var                               c9984bd4-3651-4609-a265-6d497b4fbd07
/dev/sdb1                      ext4                     /usr/src/build                     b9891768-1302-4ff5-9f27-92d61615be5c
Data looks ok from what I can see
 
Old 03-16-2014, 03:40 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Try adding "rootfstype=ext4" to your GRUB command line?
 
Old 03-16-2014, 08:14 PM   #5
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Original Poster
Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Yes I did find that option, however the 'error' is more of a warning and does not affect the boot process.

The offending lines in the log would be:
Code:
Mar 16 14:09:22 theGrail systemd[1]: Job dev-disk-by\x2duuid-b9891768\x2d1302\x2d4ff5\x2d9f27\x2d92d61615be5c.device/start timed out.
Mar 16 14:09:22 theGrail systemd-journal[948]: Forwarding to syslog missed 1 messages.
Mar 16 14:09:22 theGrail systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-b9891768\x2d1302\x2d4ff5\x2d9f27\x2d92d61615be5c.device.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for /usr/src/build.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for Local File Systems.
Mar 16 14:09:22 theGrail systemd[1]: Triggering OnFailure= dependencies of local-fs.target.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/b9891768-1302-4ff5-9f27-92d61615be5c.
Mar 16 14:09:22 theGrail systemd[1]: Job dev-disk-by\x2duuid-a9183fae\x2d5911\x2d4bbd\x2d98d4\x2de045b5dbb13a.device/start timed out.
Mar 16 14:09:22 theGrail systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-a9183fae\x2d5911\x2d4bbd\x2d98d4\x2de045b5dbb13a.device.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for /home.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/a9183fae-5911-4bbd-98d4-e045b5dbb13a.
Mar 16 14:09:22 theGrail systemd[1]: Job dev-disk-by\x2duuid-c9984bd4\x2d3651\x2d4609\x2da265\x2d6d497b4fbd07.device/start timed out.
Mar 16 14:09:22 theGrail systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-c9984bd4\x2d3651\x2d4609\x2da265\x2d6d497b4fbd07.device.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for /var.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for Load/Save Random Seed.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for Update UTMP about System Boot/Shutdown.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for File System Check on /dev/disk/by-uuid/c9984bd4-3651-4609-a265-6d497b4fbd07.
Mar 16 14:09:22 theGrail systemd[1]: Job dev-disk-by\x2duuid-5fee09f8\x2d5c9c\x2d4e5c\x2dbfee\x2dee251b3f3e48.device/start timed out.
Mar 16 14:09:22 theGrail systemd[1]: Timed out waiting for device dev-disk-by\x2duuid-5fee09f8\x2d5c9c\x2d4e5c\x2dbfee\x2dee251b3f3e48.device.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for /dev/disk/by-uuid/5fee09f8-5c9c-4e5c-bfee-ee251b3f3e48.
Mar 16 14:09:22 theGrail systemd[1]: Dependency failed for Swap.
I believe it is these errors that are halting the boot process and stopping it from mounting the required partitions.
 
Old 03-17-2014, 02:04 AM   #6
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
"Dependency failed for File System Check"? Maybe run a fsck manually, see if that fixes things?
 
Old 03-17-2014, 03:00 AM   #7
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Original Poster
Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
Nope I think the reason for the failures is due to the system not being able to recognise the partitons for some reason.

I have also tried changing all the UUID values to device names (such as /dev/sda2) but this did not seem to change anything except the following:
Code:
systemd[1]: Job dev-disk-by\x2duuid-b9891768\x2d1302\x2d4ff5\x2d9f27\x2d92d61615be5c.device/start timed out.

# became

systemd[1]: Job dev-sdb1.device/start timed out.
 
Old 03-17-2014, 04:57 AM   #8
grail
LQ Guru
 
Registered: Sep 2009
Location: Perth
Distribution: Manjaro
Posts: 10,007

Original Poster
Rep: Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191Reputation: 3191
okee dokee ... turns out it is a missing kernel option.

tested with a number of reboots to confirm, but the following is required to be set in the kernel:
Code:
CONFIG_FHANDLE=y
After that, all is well again

Thanks for your time unSpawn
 
1 members found this post helpful.
Old 03-17-2014, 05:06 PM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Sorry I couldn't be of more help & thanks for posting your solution.
 
Old 02-12-2020, 08:12 AM   #10
faical
LQ Newbie
 
Registered: Feb 2020
Posts: 1

Rep: Reputation: Disabled
Question

Quote:
Originally Posted by grail View Post
okee dokee ... turns out it is a missing kernel option.

tested with a number of reboots to confirm, but the following is required to be set in the kernel:
Code:
CONFIG_FHANDLE=y
After that, all is well again

Thanks for your time unSpawn

Hello,
Please, I had same problem
Can you tell me where did you exactly add the option :

Code:
CONFIG_FHANDLE=y
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
rc.local systemd guna_pmk Linux - Desktop 4 06-15-2012 03:05 AM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM
how to access local drives in vmplayer srini406 Linux - Newbie 1 02-17-2010 08:48 AM
How to open our local drives & its partitions nassha Linux - Distributions 1 06-07-2004 09:12 AM
Accessing Local Fat Drives in Suse 9 Lostman Linux - Newbie 1 01-30-2004 09:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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