You are not logged in.

#1 2013-11-26 00:29:14

LGG42
Member
Registered: 2013-11-19
Posts: 13

[Solved]Unable to boot /sbin/init does not exist.

When I boot, I get this message: ERROR: Root device mounted successfully, but /shin/init does not exist. This is an installation that was working fine for me before. I went into Windows to free up disk space, and when I booted Arch later, this is what came up. I have already tried using the live disk as a rescue, but I am unable to chroot into it. I have checked my partitions with a live disk and my files are still there. Is there any way that I can fix this without reinstalling Arch? I have a lot of things that I cannot reinstall right now as I don't have access to the internet currently, and I am using my phone to access the forum.

Last edited by LGG42 (2013-11-27 02:43:47)

Offline

#2 2013-11-26 00:42:20

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

Re: [Solved]Unable to boot /sbin/init does not exist.

Please provide at least some information. For example, how does chroot fail? Can you mount the file systems? What does gdisk -l or fdisk -l say? What kind of partition set up? What exactly did you do to free up space in Windows and why did you do it in Windows? (There are good reasons to do things in one OS rather than another in many cases and it would be good to know if this was one of them.) How do you boot? How is your boot loader or manager configured?


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

#3 2013-11-26 01:13:37

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

My bootloader is Syslinux. Yes, I am able to mount the file systems. The partitions are in ext4 format.  I boot from legacy BIOS, as I have had EFI problems in the past.  arch-chroot gives me this: ==> ERROR: failed to setup API filesystems in chroot /mnt. I should have been clear about what I did in Windows. I was running out of space in Windows, and I had some unallocated disk space, and so I extended my Windows partition.
The output of frisk -l is:
Disk /dev/sda: 500.1 GB, 500107862016 sectors
Units = sectors of 1* 512
I/O size (minimum/optimal): 4096 Bytes/4096 bytes
disk label type: got
#1 start: 2048 End 821247 size 400M type windows recovery 2 start 821248 End 1353727 Size 260M type ms basic 3 start 874614784 End 916559871 Size 128M ms reserved 4 start 1615872 End 874614783 Size 416G ms basic. 5 start 874614784 End 91655781 Size 20G ms basic. 6 start 916561920 End 916756479 Size 95M type EFI system. 7 start 916758528 End 928495615 8 start 928495616 end 928499711 Size 2M type ms basic. 9 start 928499712 End 976773119 size 23G type ms basic. Sorry about the mess that is in. As a note, my / partition is #5, and my home is #9. Thank you for helping.

Offline

#4 2013-11-26 01:35:56

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

Re: [Solved]Unable to boot /sbin/init does not exist.

Please edit your posts to use code tags. I'm not even going to try to parse that properly in the format you've posted it.

Did you type that? Because there is no partition type got that I'm aware of. If you are using gpt, gdisk -l may be better. You can use something like wgetpaste to paste is to a pastebin from the command line. (In the live media, you can install it for that session to use since chrooting doesn't work.)

Why have you got an EFI system partition? Why are all of your other partitions type MS/Windows?


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

#5 2013-11-26 01:51:59

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

Sorry, yes, it is gpt. I did type it, because I have no access to the internet, except through my phone, and I have to use it to post.  I have no idea why they are listed that way lsblk -f tells me that /dev/sda5 and /dev/sda9 are in ext4 format. I am sorry, I have to manually type things on my phone. I have no internet access whatsoever currently, as I need to find a new ISP . The reason I have an EFI partition is because it is left from when I once installed Ubuntu. I just haven't removed it. I am sorry that I cannot currently follow posting Etiquette, but I will try to make things as legible as possible. Gdisk -l returns:
Problem opening -l for reading! Error is 2.
The specified file does not exist!

Offline

#6 2013-11-26 02:03:39

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

Re: [Solved]Unable to boot /sbin/init does not exist.

You can edit to use code tags even if you've typed it. And some line breaks would help.

You need to pass e.g. gdisk -l /sdX for whatever the disk is, just as with fdisk. I'd trust gpt output from gdisk before I would from fdisk but if gdisk says the same about the partition types, I'd correct them. fdisk's support for gpt is less mature, though, so I'd prefer gdisk for doing that.


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

#7 2013-11-26 02:23:35

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

The output of Gdisk -l is similar to fdisk, listing /dev/sda5 as a Microsoft basic partition, and /dev/sda9 as well. I understand the partition types can be changed, but I have not seen info on this. Could you please point me to a resource that explains this? I appreciate the help you have given me so far.

Offline

#8 2013-11-26 02:23:36

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

The output of Gdisk -l is similar to fdisk, listing /dev/sda5 as a Microsoft basic partition, and /dev/sda9 as well. I understand the partition types can be changed, but I have not seen info on this. Could you please point me to a resource that explains this? I appreciate the help you have given me so far.

Offline

#9 2013-11-26 02:26:41

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

Re: [Solved]Unable to boot /sbin/init does not exist.

Use the help option in gdisk - it includes documentation.

Also, post the output of mount after you boot into the live environment and before you try to chroot.

Last edited by cfr (2013-11-26 02:27:11)


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

#10 2013-11-26 02:54:48

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

Okay, I typed gdisk /dev/sda5. I then typed w (write table to disk). Now I have rebooted into my main installation and fsck says: fsck.ext2: bad magic number in superblock while trying to open /dev/sda5 /dev/sda5:
The superblock could not be read or does not describe the correct ext2 filesystem. If the device is valid and really contains an ext2 filesystem, then the superblock is corrupt, and you might try running e2fsck with an alternate superblock :
e2fsck -b 8193 (device).

Offline

#11 2013-11-26 03:06:35

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

Re: [Solved]Unable to boot /sbin/init does not exist.

Is that what you really typed? You are meant to run gdisk on a device - just as you would fdisk.


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

#12 2013-11-26 04:04:58

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

It is now in the GPT format, but there is no filesystem assigned. Can you please tell me how to assign a filesystem? I am worried about losing my data, and I have no backups made, as I do not have the space right now.

Offline

#13 2013-11-26 05:49:27

alezost
Member
Registered: 2013-10-17
Posts: 61

Re: [Solved]Unable to boot /sbin/init does not exist.

This thread is also about problems with init.

Offline

#14 2013-11-26 06:05:40

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

Thank you alezost, but right now I need to know how to change the filesystem back to ext4. I messed up when using gdisk and now in fdisk there is no filesystem type specified. Thank you all for giving me your input.

Offline

#15 2013-11-26 19:21:23

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

At this point I would say that a reinstallation is necessary. I have managed to backup my standard users folder. If I reinstall the base system, can I simply copy that folder to the partition? I do not see anything about this in the official wiki.

Offline

#16 2013-11-27 01:10:24

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

Re: [Solved]Unable to boot /sbin/init does not exist.

More-or-less. You need to add users to the new system with a little care so that they get the right id numbers to own their directories. Also, you don't want to create new homes for them since you already have homes.

Since you create users manually in Arch, though, this is pretty straightforward since you don't need to prevent an installer from doing anything or try to undo its automatic set up - just recreate your users rather than creating new ones.

I would have expected trying to run gdisk on a partition to fail with an error and not to destroy anything. I'm not quite sure how you could have managed to 'w' anything given the command you ran. (I'd think gdisk would do some error checking and just bail if it is run on a partition.)


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

#17 2013-11-27 02:42:01

LGG42
Member
Registered: 2013-11-19
Posts: 13

Re: [Solved]Unable to boot /sbin/init does not exist.

Alright that is reassuring. Thanks for the help. I am going to have (quite limited) internet access tonight through mobile tethering and I have backed up the applications and user data that I want to install, and will install the base system. Thanks for the help, will mark closed.

Offline

Board footer

Powered by FluxBB