You are not logged in.

#1 2013-07-08 10:26:41

Goran
Member
Registered: 2012-01-24
Posts: 92

[SOLVED] /sbin/init does not exist.

I followed the instructions on the main page, in order to upgrade.

Removed systemv and initscripts packages; since systemd was installed, I thought they were just redundant, and that removing them would be ok.

I restart, and find grub to be a mess. I manage to fix that (menu.lst.pacsave -> menu.lst), but then I get:

ERROR: Root device mounted successfully, but /sbin/init does not exist.

Any idea how to fix this?

Last edited by Goran (2013-07-08 22:01:11)

Offline

#2 2013-07-08 10:33:42

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: [SOLVED] /sbin/init does not exist.

You need the systemd-sysvcompat package installed, which provides /usr/bin/init (which is symlinked by /sbin/init).  In the meantime, set your init= kernel parameter to /usr/lib/systemd/systemd.

Edit: also, please search the forums before posting a question like this, since it's been covered at least 3492 times before.

Last edited by jakobcreutzfeldt (2013-07-08 10:34:54)

Offline

#3 2013-07-08 10:35:04

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,037
Website

Re: [SOLVED] /sbin/init does not exist.

Tell your bootloader that

init=/usr/lib/systemd/systemd

by appending that after the rest of your kernel arguments.

Once you're booted up, install systemd-sysvcompat, or make that init= addition permanent.


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#4 2013-07-08 10:35:16

lucke
Member
From: Poland
Registered: 2004-11-30
Posts: 4,018

Re: [SOLVED] /sbin/init does not exist.

systemd-sysvcompat provides a /sbin/init to /usr/lib/systemd/systemd symlink, use init=/usr/lib/systemd/systemd in the bootloader's kernel line if you don't have it installed.

Offline

#5 2013-07-08 10:35:37

jakobcreutzfeldt
Member
Registered: 2011-05-12
Posts: 1,041

Re: [SOLVED] /sbin/init does not exist.

I win. smile

Last edited by jakobcreutzfeldt (2013-07-08 10:35:50)

Offline

#6 2013-07-08 10:36:19

WorMzy
Forum Moderator
From: Scotland
Registered: 2010-06-16
Posts: 12,037
Website

Re: [SOLVED] /sbin/init does not exist.

Hah. tongue


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Offline

#7 2013-07-08 22:00:49

Goran
Member
Registered: 2012-01-24
Posts: 92

Re: [SOLVED] /sbin/init does not exist.

Excellent!

I decided to make the init=/usr/lib/systemd/systemd entry permanent.

Thanks guys.

PS:

I did find a thread were kernel parameters were mentioned, but I was modifying the wrong lines, in wrong files ... I should have tried harder before making a new thread (sorry for that).

... And wow, there are so many threads about this latest upgrade - this was like a really big deal for a lot of people.

Offline

#8 2013-07-09 03:13:22

cfr
Member
From: Cymru
Registered: 2011-11-27
Posts: 7,144

Re: [SOLVED] /sbin/init does not exist.

Goran wrote:

I restart, and find grub to be a mess. I manage to fix that (menu.lst.pacsave -> menu.lst)

This is not a good long-term solution. You now have grub (2) installed but grub (legacy installed to disk. See the main upgrade thread for details. Briefly you should either install and configure grub (2) or install grub-legacy from AUR or install and configure an alternative boot loader such as syslinux.


CLI Paste | How To Ask Questions

Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L

Offline

#9 2013-07-09 23:26:08

Goran
Member
Registered: 2012-01-24
Posts: 92

Re: [SOLVED] /sbin/init does not exist.

cfr wrote:

This is not a good long-term solution. You now have grub (2) installed but grub (legacy installed to disk. See the main upgrade thread for details. Briefly you should either install and configure grub (2) or install grub-legacy from AUR or install and configure an alternative boot loader such as syslinux.

Is there a thread search feature that I could use? The main upgrade thread is ~35 pages, and it would take a long time to search manually for information that is relevant to my situation.

Also, any advice on what I should actually choose? I don't care much for the boot loader, as long as it works, but I do want to keep the system as modern as possible.

Offline

#10 2013-07-09 23:41:37

WonderWoofy
Member
From: Los Gatos, CA
Registered: 2012-05-19
Posts: 8,414

Re: [SOLVED] /sbin/init does not exist.

A bootloader (like most software) is a very personal preference.  So it doesn't really matter what you use as long as you like it.  With syslinux though you should be aware that if you have multiple Linux's on one machine, you either have to share a /boot or you will need to install syslinux to the partition and chainload.

As far as that thread... you should just start reading it.  It repeats itself over and over and over again because people kept coming and asking the same exact questions.

Offline

Board footer

Powered by FluxBB