LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Reply
  Search this Thread
Old 12-18-2011, 07:37 AM   #1
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
boot stops after mounting /root, goes emergency mode, no logs written


This is openSuSE 12.1 which comes with systemd.

These are the last messages I get:
Code:
...
fsck succeeded. Mounting root read-write.
Mounting root /dev/sda10
mount -o rw,data=journal,alc,usr_xattr -t ext4 /dev/sda10 /root
[nn] shpchp 000:00:01.0: Cannot reserve MMIO region
[nn] SP5100 TCO timer: mmio address 0xb8fe00 already in use
Welcome to emergency mode. Please login.
root password:
I tried "init 5" and <Ctrl D> with no change.

Only thing I can think of is that I tried starting it with the home partition of my still working 11.4 installation. I took that back of course but the error stays. As far as I can say the home partition is not mounted at this point in the boot procedure anyways...

I had a look at /var/log but the files there are old. So there is no logging done yet.

Anybody with any ideas ?

<edit>
I booted in failsafe mode. More information during boot was
Code:
...
systemd[1]: Job dev-disk-by\x2did-ata....device/start timed out.
Starting /home aborted because a dependency failed.
{some more messages ending with 'dependency'}
failed with result timeout.
I fsck'ed that home partition with option "-f". All is "well". Boot still stops here... .
</edit>

Last edited by JZL240I-U; 12-18-2011 at 01:51 PM. Reason: Information added
 
Old 12-19-2011, 12:22 AM   #2
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hello,

I'm encountering similar problems with my Debian testing in combination with systemd. Normal boot (SysV init) works fine but when trying to boot with systemd enabled it hangs, albeit at another point then your installation. I've found a bypass, starting in single user mode and then running:
Code:
systemctl default
which gets me into the desired runlevel without problems. I don't know openSUSE so maybe a dumb question: does openSUSE come with systemd as the only init manager? Or did you install it alongside sysvinit? If you did install it along sysvinit, you'll need to go through the sysvinit scripts and check the dependencies listed inside those scripts. That's how I'm trying to fix my systemd environment. For example one of my sysvinit scripts listed acct (process and login accounting) as a dependency but I don't have that installed, so when systemd processed my sysvinit scripts it errored out on that one.

Hope my findings help you out in some way.

Kind regards,

Eric
 
1 members found this post helpful.
Old 12-19-2011, 01:39 AM   #3
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Thanks Eric. Yes, openSuSE comes with an option to once boot with sysvinit (I'll just have to dig up how to initialize it).

What I don't understand is, why booting with systemd was possible until now and all of a sudden it won't work anymore ...

What could possibly force the mount-process for /home to timeout?

Last edited by JZL240I-U; 12-19-2011 at 01:41 AM.
 
Old 12-19-2011, 01:53 AM   #4
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

I've had the same experience. When I first installed systemd I got version 29-1 and was able to boot with systemd without problems. About a week later I got an upgrade to 37-1 for systemd and the trouble started. If I now uninstall the latest version and re-install 29-1 I got everything working and booting again, so I imagine something went wrong between the two versions. Right now I'm sticking with the latest version and trying to troubleshoot/fix everything myself manually. Did you had a 'version change' on your system with regards to systemd?

Kind regards,

Eric
 
Old 12-19-2011, 01:58 AM   #5
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
No, I had lots of trouble due to a faulty USB-stick. openSuSE 12.1 is now freshly installed (about one week). I want to use the /home of my 11.4, but I created an extra /home (sda11) for 12.1 so as to not overwrite anything vital during installation. I had no connection to the net yet, so I am absolutely sure not to have updated anything. It's really baffling.
 
Old 12-20-2011, 01:15 AM   #6
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
One more thing: From the emergency shell I mounted /dev/sda11 into the /home directory -- flawlessly and with absolutely no delay. On issueing an "init 5" KDE started like expected. One more puzzle...

And I currently don't find the command to start with sysvinit . I'll try tonight with "init=/sbin/init" as a kernel parameter and report later.
 
Old 12-20-2011, 01:25 AM   #7
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Looks similar behavior to what I experienced in my opinion. Booting into single user mode with systemd enabled works as expected without errors. Then running as indicated before
Code:
systemctl default
(which is the systemd equivalent to init 5) starts everything as expected. I'm also puzzled by that one. I'm still in the progress of migrating all my sysvinit scripts to systemd to see if that solves my boot problem. I'll keep you up to date too, but it might take some time since I'm swamped in work issues. I'm not sure but I think passing init=/sbin/init is the only way to 'bypass' systemd, providing you still have your sysvinit scripts in place. I haven't found any 'legacy' boot option for systemd.

Kind regards,

Eric
 
Old 12-22-2011, 03:56 AM   #8
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Well, I did try with "init=/sbin/init" as a kernel parameter. /sbin/init is a symbolic link to /usr/bin/systemd. *hrmph* .

In case anybody else is wondering, please use "init=/sbin/sysvinit".

I did that and SuSE booted as expected with the standard init process -- until the moment where /home was to be mounted. There it timed out and opened an emergency login prompting me to repair the file system. I ran "fsck -f /dev/sda11" again (no errors again) and I could mount /dev/sda11 with no problem by hand again. I'm completely stymied. Perhaps a new thread in the hardware forum...

Anybody with the slightest idea what is happening here? Or do I pass by 12.1 and wait for 12.2...

Last edited by JZL240I-U; 12-22-2011 at 03:59 AM.
 
1 members found this post helpful.
Old 12-22-2011, 10:56 AM   #9
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Red face

Erm. Well. Really, this is embarrassing .

You know, when I prepared the switch of the 12.1/home (sda11) to the 11.4/home (sda6) working horse, I used the vi-editor in a hurry to edit /etc/fstab. I or rather openSuSE uses the UUID-scheme to identify partitions. So I changed /dev/disk/by-id/ata-ST31000520AS_5VX0VRDP-part11 /home to /dev/disk/by-id/ata-ST31000520AS_5VX0VRDP-par6 /home.

Little wonder mount didn't find that partition.

Thanks for your help and support, Eric .
 
Old 12-23-2011, 12:55 AM   #10
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Thank you for sharing your findings and it's not that embarrassing. To err is human after all or isn't it? Glad you've got it fixed. I'm enjoying an extended 5-day weekend now and will continue to convert my Debian testing sysvinit scripts to systemd. Let's see if I can find 'my' blocking point. Have fun with Linux.

Kind regards,

Eric
 
Old 12-23-2011, 08:36 AM   #11
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Original Poster
Rep: Reputation: Disabled
Hi Eric.

I hope you'll enjoy your prolonged weekend so I wish you a merry Christmas and a happy new year right here and now. Please let me know later what you found out during conversion of your scripts. systemd is coming to all of us and the more one is prepared the better . Good luck.
 
Old 12-24-2011, 02:54 AM   #12
EricTRA
LQ Guru
 
Registered: May 2009
Location: Gibraltar, Gibraltar
Distribution: Fedora 20 with Awesome WM
Posts: 6,805
Blog Entries: 1

Rep: Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297Reputation: 1297
Hi,

Merry Christmas and a Happy New Year to you and your family too. I'll be sure to post my findings. And you're right, systemd is coming and I believe it has lots of advantages although it means another adaptation from the user/administrator's point of view.

Kind regards,

Eric
 
Old 02-13-2012, 06:36 PM   #13
wogo
LQ Newbie
 
Registered: Feb 2006
Posts: 1

Rep: Reputation: 0
Thumbs down

I had the same problem when the boot process was mounting my raid-1 volumes:
In one of three times (randomly!) not all volumes were mounted and the process stopped with "Welcome to emergency mode".
And a lot more problems occurred:
message flood from dbus daemon makes /var/log/messages unreadable.
dovecot terminated immediately with error and nfs didn't mount all nfs disks (0-4 out of 5 volumes) and terminated with errors:
systemd[1]: dovecot.service: control process exited, code=exited status=7
nfs[1428]: Mounting network file systems ...mount.nfs: Failed to resolve server wogolix: Name or service not known

I had to return to sysvinit again (added "init=/sbin/sysvinit" in grub boot menu) and the problems disappeared.
My system is openSUSE 12.1 64Bit running on Intel motherboard with core-2-duo CPU and 2 disks (2 terabytes each with 5 partitions) in raid-1 mode.
 
  


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
Unable to Access to Single User Mode or Emergency Mode Pinglu Linux - Newbie 3 10-17-2011 01:25 PM
[SOLVED] boot emergency mode trucall Red Hat 1 03-10-2011 04:08 PM
Emergency mode can mount the HDD with FS error but not in rescue or single user-mode kayod_jj Linux - Newbie 3 12-01-2010 07:03 PM
Fedora 8 Boot Stops at 'Mounting Local Filesystems' cdrom600 Fedora 2 06-08-2008 09:38 PM
INIT stops at remount of root in read-write mode cs30109 Linux - Newbie 0 01-29-2005 06:11 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel

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