You are not logged in.

#1 2014-05-03 14:03:39

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

[Solved] root device mounted successfully,but /sbin/init does not exis

I've installed Arch a few times before this time and never had any problems.
This time, though, my system does not boot after installation.
It is an UEFI system (which I am not very familiar with) with a GPT disk.
I have created the following partitions:

Disk /dev/sda: 238.5 GiB, 256060514304 bytes, 500118192 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 60771ED3-4C3F-43AC-8496-AFC490FC2970

Device           Start          End   Size Type
/dev/sda1         2048      1050623   512M BIOS boot partition
/dev/sda2      1050624    500118158   238G Linux filesystem

On the LVM-partition I have / /home /usr etc. And /boot is on /dev/sda1.
The file system on /dev/sda1 is vfat and its type in cgdisk is ef02 (i've also tried ef00).


The grub.cfg contains the following:

	load_video
	set gfxpayload=keep
	insmod gzio
	insmod part_gpt 
	insmod fat
	set root='hd0,gpt1'
	if [ x$feature_platform_search_hint = xy ]; then
	  search --no-floppy --fs-uuid --set=root --hint-bios=hd0,gpt1 --hint-efi=hd0,gpt1 --hint-baremetal=ahci0,gpt1  3660-4750
	else
	  search --no-floppy --fs-uuid --set=root 3660-4750
	fi
	echo	'Loading Linux linux ...'
	linux	/vmlinuz-linux root=UUID=cd869977-b928-4b54-ad23-984521ce4734 rw  quiet
	echo	'Loading initial ramdisk ...'
	initrd	/initramfs-linux.img

When I boot the system I get the following error:

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

I found a thread about adding 'init=/bin/systemd' to kernel line. I did and the error changed to:

ERROR: root device mounted successfully, but /bin/systemd does not exist.

Anyone knows whats wrong?

Any help appreciated.

Last edited by bitbjorn (2014-05-05 20:03:32)

Offline

#2 2014-05-03 14:23:39

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

If I boot with the arch iso and mount my partitions and chroot into the system I can see that the file does exist:

[root@archiso /]# ls -l /sbin/init
lrwxrwxrwx 1 root root 22 Apr 13 09:11 /sbin/init -> ../lib/systemd/systemd
[root@archiso /]# ls -l /lib/systemd/systemd
-rwxr-xr-x 1 root root 1104536 Apr 13 09:11 /lib/systemd/systemd
[root@archiso /]#

After the error in the original post it dropps out to a shell with the root partition (/dev/mapper/lenovo--vg-root) mounted on /new_root. If I look into that I cannot find /new_root/sbin/init.

Offline

#3 2014-05-03 14:25:59

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

Boot from the rescue disk; and check where /dev/disk/by-uuid/d869977-b928-4b54-ad23-984521ce4734 points to. Is it /dev/sda2 ? It seems like it might be the uuid of sda1, which would be incorrect

Last edited by Spider.007 (2014-05-03 14:29:20)

Offline

#4 2014-05-03 15:05:54

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

Spider.007 wrote:

Boot from the rescue disk; and check where /dev/disk/by-uuid/d869977-b928-4b54-ad23-984521ce4734 points to. Is it /dev/sda2 ? It seems like it might be the uuid of sda1, which would be incorrect

It points to ../../dm-1 which /dev/mapper/lenovo--vg-root also points too and thats the lvm root partition. Should it be sda2?

Offline

#5 2014-05-03 15:15:12

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

bitbjorn wrote:

It points to ../../dm-1 which /dev/mapper/lenovo--vg-root also points too and thats the lvm root partition. Should it be sda2?

Ok, now I see the difference compared to my previous installations. I've never had '/' on an LVM-partition before. Is that possible?

Offline

#6 2014-05-03 15:20:07

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

Ah, I missed that you're using LVM. Yes LVM works fine; skim through https://wiki.archlinux.org/index.php/LV … nux_on_LVM for pointers. Did you include the lvm hook in you mkinicpio before creating your initrd? Also; don't you get a rescue-shell when the initrd cannot find init? It would make it easier to debug; by checking if dm-1 exists in the rescue-shell.

Offline

#7 2014-05-03 16:05:32

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

Spider.007 wrote:

Ah, I missed that you're using LVM. Yes LVM works fine; skim through https://wiki.archlinux.org/index.php/LV … nux_on_LVM for pointers. Did you include the lvm hook in you mkinicpio before creating your initrd? Also; don't you get a rescue-shell when the initrd cannot find init? It would make it easier to debug; by checking if dm-1 exists in the rescue-shell.

Yes, I've included the LVM hook, got that from that link. I get a rescue-shell and /dev/dm-1 exist there too.

Offline

#8 2014-05-03 16:11:13

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

That is good; but my rescue-shell knowledge is a bit rusty. Is dm-1 mounted in the rescue-shell? If it's not; mount it somewhere. Have a look at /mnt/sbin/init; is it available? Is is executable, and did you install for the correct architecture?

Offline

#9 2014-05-03 20:23:06

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

Spider.007 wrote:

That is good; but my rescue-shell knowledge is a bit rusty. Is dm-1 mounted in the rescue-shell? If it's not; mount it somewhere. Have a look at /mnt/sbin/init; is it available? Is is executable, and did you install for the correct architecture?

In the rescue shell /dev/mapper/lenovo--vg-root is mounted on /new_root. /new_root/sbin is a symlink to usr/bin but usr/ is empty. In rescue shell /sbin/init is a link to busybox.

Offline

#10 2014-05-04 12:36:28

Spider.007
Member
Registered: 2004-06-20
Posts: 1,175

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

Okay; so you said in your op:

bitbjorn wrote:

[...]
On the LVM-partition I have / /home /usr etc. And /boot is on /dev/sda1.

did you mean that /usr is a separate lvm logical-volume? Because if it's an empty directory in rescue-mode; it probably isn't mounted. Is it in your fstab? If it is, check your dmesg / journal why /usr isn't mounted because that would explain why /sbin/init won't work (as it is a symlink to the not-mounted /usr dir)

Last edited by Spider.007 (2014-05-04 12:37:17)

Offline

#11 2014-05-04 13:19:15

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

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

If you have a separate /usr partiiton, you should read this: https://wiki.archlinux.org/index.php/Mk … _partition


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

#12 2014-05-05 20:02:09

bitbjorn
Member
Registered: 2014-05-03
Posts: 16

Re: [Solved] root device mounted successfully,but /sbin/init does not exis

WorMzy wrote:

If you have a separate /usr partiiton, you should read this: https://wiki.archlinux.org/index.php/Mk … _partition

Ah, that was it! Thanks!
All I did was to add 'shutdown' and 'usr' to HOOKS in /etc/mkinitcpio.conf and also changed passno for /usr to 0 in /etc/fstab.

And thanks Spider.007 for your help!

Last edited by bitbjorn (2014-05-05 20:02:33)

Offline

Board footer

Powered by FluxBB