How to fix boot into initramfs prompt and “mount: can't read '/etc/fstab': No such file or directory” and...
Where to find every-day healthy food near Heathrow Airport?
How can I answer high-school writing prompts without sounding weird and fake?
Automatically anti-predictably assemble an alliterative aria
What are the components of a legend (in the sense of a tale, not a figure legend)?
Smallest Guaranteed hash collision cycle length
Loading Latex packages into Mathematica
Is 12 minutes connection in Bristol Temple Meads long enough?
Why do I get two different answers when solving for arclength?
Why are solar panels kept tilted?
Conditional probability - sum of dice is even given that at least one is a five
Jumping frame contents with beamer and pgfplots
How do I tell my supervisor that he is choosing poor replacements for me while I am on maternity leave?
German characters on US-International keyboard layout
Ito`s Lemma problem
Are there any established rules for splitting books into parts, chapters, sections etc?
What information do scammers need to withdraw money from an account?
What kind of SATA connector is this?
Wireless headphones interfere with Wi-Fi signal on laptop
What to do if SUS scores contradict qualitative feedback?
Why is it harder to turn a motor/generator with shorted terminals?
Anatomically Correct Carnivorous Tree
return tuple of uncopyable objects
Does Lawful Interception of 4G / the proposed 5G provide a back door for hackers as well?
Do Life Drain attacks from wights stack?
How to fix boot into initramfs prompt and “mount: can't read '/etc/fstab': No such file or directory” and “No init found”?
Does initramfs use /etc/fstab?Why do I need to specify two init images - initrd and boot - inside KVM to boot to bash?Disk appears OK, will read/write in LiveCD, will not boot, stops at initramfs/busyboxPXE boot with NFS: /sbin/init: No such file or directoryWhy do I need to specify two init images - initrd and boot - inside KVM to boot to bash?Fedora 20 boots in emergency modekernel compilation in ubuntu, reboot msg “gave up waiting for root device”Debian jessie volume group not found and can't bootDracut failure when trying to boot Fedora with Qubes kernelWhy don't we include File System drivers in the kernel itself instead of using Initrd/InitramfsHow to boot into root btrfs file system with minimal initramfs without udev hook?How to fix boot into initramfs with root not found?kernel sysfs doesn't recognize storage kobjects
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
Installing a new system using a GPT partitioned disk dedicated to a single partition, ext4 formatted, extlinux (version 4.05) as bootloader, Ubuntu Core version 13.10 amd64 as rootfs, and Ubuntu linux-image-3.11.0-18-generic as kernel, and extlinux-update to generate bootloader configuration.
The result after reboot (still inside a KVM based virtual machine) is an (initramfs) prompt and these messages:
mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
The filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.
BusyBox is v1.20.2.
Regression:
- the file system has been checked with
fsck.ext4
Check for root existence
(initramfs) ls -l /dev/[hs]da*
ls: /dev/[hs]da*: No such file or directory
Root boot argument
(initramfs) cat /proc/cmdline
initrd=/boot/initrd.img-3.11.0-18-generic ro quiet BOOT_IMAGE=/boot/vmlinuz-3.11.0-18-generic
Check loaded modules
(initramfs) cat /proc/modules
e1000 145368 0 - Live 0xffffffffa0000000
/boot folder content
$ sudo ls -l boot
-rw------- 1 root root 3296162 Feb 18 22:37 System.map-3.11.0-18-generic
-rw-r--r-- 1 root root 1007681 Feb 18 22:37 abi-3.11.0-18-generic
-rw-r--r-- 1 root root 163258 Feb 18 22:37 config-3.11.0-18-generic
drwxr-xr-x 2 root root 4096 Mar 17 20:13 extlinux
-rw-r--r-- 1 root root 4995000 Mar 16 23:35 initrd.img-3.11.0-18-generic
-rw------- 1 root root 5634192 Feb 18 22:37 vmlinuz-3.11.0-18-generic
How to make this system boot to the expected default bash prompt?
ubuntu boot system-installation init initramfs
add a comment |
Installing a new system using a GPT partitioned disk dedicated to a single partition, ext4 formatted, extlinux (version 4.05) as bootloader, Ubuntu Core version 13.10 amd64 as rootfs, and Ubuntu linux-image-3.11.0-18-generic as kernel, and extlinux-update to generate bootloader configuration.
The result after reboot (still inside a KVM based virtual machine) is an (initramfs) prompt and these messages:
mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
The filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.
BusyBox is v1.20.2.
Regression:
- the file system has been checked with
fsck.ext4
Check for root existence
(initramfs) ls -l /dev/[hs]da*
ls: /dev/[hs]da*: No such file or directory
Root boot argument
(initramfs) cat /proc/cmdline
initrd=/boot/initrd.img-3.11.0-18-generic ro quiet BOOT_IMAGE=/boot/vmlinuz-3.11.0-18-generic
Check loaded modules
(initramfs) cat /proc/modules
e1000 145368 0 - Live 0xffffffffa0000000
/boot folder content
$ sudo ls -l boot
-rw------- 1 root root 3296162 Feb 18 22:37 System.map-3.11.0-18-generic
-rw-r--r-- 1 root root 1007681 Feb 18 22:37 abi-3.11.0-18-generic
-rw-r--r-- 1 root root 163258 Feb 18 22:37 config-3.11.0-18-generic
drwxr-xr-x 2 root root 4096 Mar 17 20:13 extlinux
-rw-r--r-- 1 root root 4995000 Mar 16 23:35 initrd.img-3.11.0-18-generic
-rw------- 1 root root 5634192 Feb 18 22:37 vmlinuz-3.11.0-18-generic
How to make this system boot to the expected default bash prompt?
ubuntu boot system-installation init initramfs
Why two init images? Can you please put this on an actual disk and try to boot it? Qemu and EFI have issues - for instance, if you do not use an EFI boot firmware image, you won't get very far at all.
– mikeserv
Mar 22 '14 at 5:41
And if all you want is a bash prompt you could always include bash in your initramfs...
– mikeserv
Mar 22 '14 at 5:42
In fact, I'm remembering looking at LARGE GPT partitions in Ubuntu and them registering as completely empty. After I held shift at reboot to get grub's selection for their live disk I was able to select the Efi option, after which I had a disk.
– mikeserv
Mar 22 '14 at 5:56
add a comment |
Installing a new system using a GPT partitioned disk dedicated to a single partition, ext4 formatted, extlinux (version 4.05) as bootloader, Ubuntu Core version 13.10 amd64 as rootfs, and Ubuntu linux-image-3.11.0-18-generic as kernel, and extlinux-update to generate bootloader configuration.
The result after reboot (still inside a KVM based virtual machine) is an (initramfs) prompt and these messages:
mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
The filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.
BusyBox is v1.20.2.
Regression:
- the file system has been checked with
fsck.ext4
Check for root existence
(initramfs) ls -l /dev/[hs]da*
ls: /dev/[hs]da*: No such file or directory
Root boot argument
(initramfs) cat /proc/cmdline
initrd=/boot/initrd.img-3.11.0-18-generic ro quiet BOOT_IMAGE=/boot/vmlinuz-3.11.0-18-generic
Check loaded modules
(initramfs) cat /proc/modules
e1000 145368 0 - Live 0xffffffffa0000000
/boot folder content
$ sudo ls -l boot
-rw------- 1 root root 3296162 Feb 18 22:37 System.map-3.11.0-18-generic
-rw-r--r-- 1 root root 1007681 Feb 18 22:37 abi-3.11.0-18-generic
-rw-r--r-- 1 root root 163258 Feb 18 22:37 config-3.11.0-18-generic
drwxr-xr-x 2 root root 4096 Mar 17 20:13 extlinux
-rw-r--r-- 1 root root 4995000 Mar 16 23:35 initrd.img-3.11.0-18-generic
-rw------- 1 root root 5634192 Feb 18 22:37 vmlinuz-3.11.0-18-generic
How to make this system boot to the expected default bash prompt?
ubuntu boot system-installation init initramfs
Installing a new system using a GPT partitioned disk dedicated to a single partition, ext4 formatted, extlinux (version 4.05) as bootloader, Ubuntu Core version 13.10 amd64 as rootfs, and Ubuntu linux-image-3.11.0-18-generic as kernel, and extlinux-update to generate bootloader configuration.
The result after reboot (still inside a KVM based virtual machine) is an (initramfs) prompt and these messages:
mount: can't read '/etc/fstab': No such file or directory
mount: mounting /dev on /root/dev failed: No such file or directory
mount: mounting /sys on /root/sys failed: No such file or directory
mount: mounting /proc on /root/proc failed: No such file or directory
The filesystem doesn't have requested /sbin/init.
No init found. Try passing init= bootarg.
BusyBox is v1.20.2.
Regression:
- the file system has been checked with
fsck.ext4
Check for root existence
(initramfs) ls -l /dev/[hs]da*
ls: /dev/[hs]da*: No such file or directory
Root boot argument
(initramfs) cat /proc/cmdline
initrd=/boot/initrd.img-3.11.0-18-generic ro quiet BOOT_IMAGE=/boot/vmlinuz-3.11.0-18-generic
Check loaded modules
(initramfs) cat /proc/modules
e1000 145368 0 - Live 0xffffffffa0000000
/boot folder content
$ sudo ls -l boot
-rw------- 1 root root 3296162 Feb 18 22:37 System.map-3.11.0-18-generic
-rw-r--r-- 1 root root 1007681 Feb 18 22:37 abi-3.11.0-18-generic
-rw-r--r-- 1 root root 163258 Feb 18 22:37 config-3.11.0-18-generic
drwxr-xr-x 2 root root 4096 Mar 17 20:13 extlinux
-rw-r--r-- 1 root root 4995000 Mar 16 23:35 initrd.img-3.11.0-18-generic
-rw------- 1 root root 5634192 Feb 18 22:37 vmlinuz-3.11.0-18-generic
How to make this system boot to the expected default bash prompt?
ubuntu boot system-installation init initramfs
ubuntu boot system-installation init initramfs
edited Aug 24 '14 at 19:17
Pro Backup
asked Mar 18 '14 at 11:53
Pro BackupPro Backup
2,20083359
2,20083359
Why two init images? Can you please put this on an actual disk and try to boot it? Qemu and EFI have issues - for instance, if you do not use an EFI boot firmware image, you won't get very far at all.
– mikeserv
Mar 22 '14 at 5:41
And if all you want is a bash prompt you could always include bash in your initramfs...
– mikeserv
Mar 22 '14 at 5:42
In fact, I'm remembering looking at LARGE GPT partitions in Ubuntu and them registering as completely empty. After I held shift at reboot to get grub's selection for their live disk I was able to select the Efi option, after which I had a disk.
– mikeserv
Mar 22 '14 at 5:56
add a comment |
Why two init images? Can you please put this on an actual disk and try to boot it? Qemu and EFI have issues - for instance, if you do not use an EFI boot firmware image, you won't get very far at all.
– mikeserv
Mar 22 '14 at 5:41
And if all you want is a bash prompt you could always include bash in your initramfs...
– mikeserv
Mar 22 '14 at 5:42
In fact, I'm remembering looking at LARGE GPT partitions in Ubuntu and them registering as completely empty. After I held shift at reboot to get grub's selection for their live disk I was able to select the Efi option, after which I had a disk.
– mikeserv
Mar 22 '14 at 5:56
Why two init images? Can you please put this on an actual disk and try to boot it? Qemu and EFI have issues - for instance, if you do not use an EFI boot firmware image, you won't get very far at all.
– mikeserv
Mar 22 '14 at 5:41
Why two init images? Can you please put this on an actual disk and try to boot it? Qemu and EFI have issues - for instance, if you do not use an EFI boot firmware image, you won't get very far at all.
– mikeserv
Mar 22 '14 at 5:41
And if all you want is a bash prompt you could always include bash in your initramfs...
– mikeserv
Mar 22 '14 at 5:42
And if all you want is a bash prompt you could always include bash in your initramfs...
– mikeserv
Mar 22 '14 at 5:42
In fact, I'm remembering looking at LARGE GPT partitions in Ubuntu and them registering as completely empty. After I held shift at reboot to get grub's selection for their live disk I was able to select the Efi option, after which I had a disk.
– mikeserv
Mar 22 '14 at 5:56
In fact, I'm remembering looking at LARGE GPT partitions in Ubuntu and them registering as completely empty. After I held shift at reboot to get grub's selection for their live disk I was able to select the Efi option, after which I had a disk.
– mikeserv
Mar 22 '14 at 5:56
add a comment |
3 Answers
3
active
oldest
votes
Modify your kernel boot parameter by setting the root=/dev/sdaX
option. sdaX
would be your /
or root
partition. Upon booting the next time, you will see that your initramfs
tries to mount the partition before trying to access /etc/fstab
and mounting the file systems.
See question "Does initramfs use /etc/fstab?" for more details.
Addingroot=/dev/sdaX
improves the situation, there is no longer an(initramfs)
but abash
login prompt instead.
– Pro Backup
Mar 22 '14 at 9:28
1
Beside manually addingroot=/dev/sdaX
to kernel boot, I need to update/mnt/etc/default/extlinux
and changeEXTLINUX_ROOT=""
to the suggestedEXTLINUX_ROOT="/dev/sdaX"
and runextlinux-update
again.
– Pro Backup
Mar 22 '14 at 10:17
add a comment |
What you need to understand about initramfs
is that it is a filesystem. Since kernel 2.6 it is, basically, the only kernel-imposed filesystem ( leaving aside VFS, which is arguably also a filesystem ) on your machine. Your initramfs image
is a disk image.
Within your initramfs image
will be whatever files your distribution decided were crucial enough to require before your root disk is found. Usually that's Busybox and whatever kernel modules you need to find and mount your root device. This is isn't working for you.
There's no real mystery here though, all things considered. If you can find your way around a terminal prompt you can navigate the initramfs.
But first you've gotta demystify it.
First and foremost and once again - this is just /.
It's Linux root doing Linux root type things. In fact, if it is in a separate file from your kernel, it's actually already your second root device. Every Linux kernel contains a basically empty /
all its own which it first mounts before pulling in your initramfs.
What's more initramfs
is the real root. It is where the Linux kernel initializes userspace by execing init
and subsequently renouncing all responsibility for any problem you might encounter thereafter. Your init
seems to be Busybox, as are many, which means controlling its actions should be as simple as editing its accompanying shell scripts.
Then why the error about not finding init?
Almost definitely this is referring to a program named init
which your actual init
has been instructed via shell script to exec itself into.
Most striking to me is that the kernel pseudo file systems - dev sys proc
- do not mount. This is either very troubling or a very good clue. You mention KVM which leads me to question kernel capabilities, but before we go down that dark and rutted road, can we first try something else?
cd /root || mkdir /root
It strikes me that the error message is repeatedly:
No such file or directory
Failing that you need to rebuild your initramfs
image. Boot to a live disc to do so and run whatever tool your distribution provides to accomplish that end. Oh, and please ensure that this live disk is loaded in EFI mode.
So here's the only truly out-of-the-ordinary thing about initramfs - switchroot.
The Linux kernel provides a very special syscall intended for early userspace and handling the move from initramfs
to your root disk device. It works by first mounting your root disk into a mountpoint in initramfs
and then pivoting the root filesystem into it. I assume your initramfs's
target mount point is root
based on the way it keeps moaning about it. Why not make sure it's there?
For further investigation you're going to need to get a little gritty. Adjust your bootloader to pass ...
init=/bin/sh
... as a kernel parameter.
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of runningefibootmgr
at your prompt in your virtual machine.
– mikeserv
Mar 22 '14 at 21:35
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
|
show 1 more comment
I had the same problem. What Alex said is correct.
First i adjusted my fstab but that didn't help.
So, i checked my grub. If you have the possibility to access grub menu.
- Select the Linux, what you want to start and which makes trouble.
- Press 'e' and look for 'boot_image' or 'boot...root'.
- Check the 'uuid'.
- In my case, it was wrong. I make a picture in initramfs by typing 'blkid' and take the uuid on which partition my linux is installed.
- Past the correct uuid from blkid to grub -> boot_image.
That solved my problem. After reboot my linux needed longer time to start to check the disk. But now it works again.
I hope i could help you.
Regards
add a comment |
Your Answer
StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "106"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});
function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f120198%2fhow-to-fix-boot-into-initramfs-prompt-and-mount-cant-read-etc-fstab-no-su%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
3 Answers
3
active
oldest
votes
3 Answers
3
active
oldest
votes
active
oldest
votes
active
oldest
votes
Modify your kernel boot parameter by setting the root=/dev/sdaX
option. sdaX
would be your /
or root
partition. Upon booting the next time, you will see that your initramfs
tries to mount the partition before trying to access /etc/fstab
and mounting the file systems.
See question "Does initramfs use /etc/fstab?" for more details.
Addingroot=/dev/sdaX
improves the situation, there is no longer an(initramfs)
but abash
login prompt instead.
– Pro Backup
Mar 22 '14 at 9:28
1
Beside manually addingroot=/dev/sdaX
to kernel boot, I need to update/mnt/etc/default/extlinux
and changeEXTLINUX_ROOT=""
to the suggestedEXTLINUX_ROOT="/dev/sdaX"
and runextlinux-update
again.
– Pro Backup
Mar 22 '14 at 10:17
add a comment |
Modify your kernel boot parameter by setting the root=/dev/sdaX
option. sdaX
would be your /
or root
partition. Upon booting the next time, you will see that your initramfs
tries to mount the partition before trying to access /etc/fstab
and mounting the file systems.
See question "Does initramfs use /etc/fstab?" for more details.
Addingroot=/dev/sdaX
improves the situation, there is no longer an(initramfs)
but abash
login prompt instead.
– Pro Backup
Mar 22 '14 at 9:28
1
Beside manually addingroot=/dev/sdaX
to kernel boot, I need to update/mnt/etc/default/extlinux
and changeEXTLINUX_ROOT=""
to the suggestedEXTLINUX_ROOT="/dev/sdaX"
and runextlinux-update
again.
– Pro Backup
Mar 22 '14 at 10:17
add a comment |
Modify your kernel boot parameter by setting the root=/dev/sdaX
option. sdaX
would be your /
or root
partition. Upon booting the next time, you will see that your initramfs
tries to mount the partition before trying to access /etc/fstab
and mounting the file systems.
See question "Does initramfs use /etc/fstab?" for more details.
Modify your kernel boot parameter by setting the root=/dev/sdaX
option. sdaX
would be your /
or root
partition. Upon booting the next time, you will see that your initramfs
tries to mount the partition before trying to access /etc/fstab
and mounting the file systems.
See question "Does initramfs use /etc/fstab?" for more details.
edited Apr 13 '17 at 12:36
Community♦
1
1
answered Mar 21 '14 at 21:21
AlexAlex
26426
26426
Addingroot=/dev/sdaX
improves the situation, there is no longer an(initramfs)
but abash
login prompt instead.
– Pro Backup
Mar 22 '14 at 9:28
1
Beside manually addingroot=/dev/sdaX
to kernel boot, I need to update/mnt/etc/default/extlinux
and changeEXTLINUX_ROOT=""
to the suggestedEXTLINUX_ROOT="/dev/sdaX"
and runextlinux-update
again.
– Pro Backup
Mar 22 '14 at 10:17
add a comment |
Addingroot=/dev/sdaX
improves the situation, there is no longer an(initramfs)
but abash
login prompt instead.
– Pro Backup
Mar 22 '14 at 9:28
1
Beside manually addingroot=/dev/sdaX
to kernel boot, I need to update/mnt/etc/default/extlinux
and changeEXTLINUX_ROOT=""
to the suggestedEXTLINUX_ROOT="/dev/sdaX"
and runextlinux-update
again.
– Pro Backup
Mar 22 '14 at 10:17
Adding
root=/dev/sdaX
improves the situation, there is no longer an (initramfs)
but a bash
login prompt instead.– Pro Backup
Mar 22 '14 at 9:28
Adding
root=/dev/sdaX
improves the situation, there is no longer an (initramfs)
but a bash
login prompt instead.– Pro Backup
Mar 22 '14 at 9:28
1
1
Beside manually adding
root=/dev/sdaX
to kernel boot, I need to update /mnt/etc/default/extlinux
and change EXTLINUX_ROOT=""
to the suggested EXTLINUX_ROOT="/dev/sdaX"
and run extlinux-update
again.– Pro Backup
Mar 22 '14 at 10:17
Beside manually adding
root=/dev/sdaX
to kernel boot, I need to update /mnt/etc/default/extlinux
and change EXTLINUX_ROOT=""
to the suggested EXTLINUX_ROOT="/dev/sdaX"
and run extlinux-update
again.– Pro Backup
Mar 22 '14 at 10:17
add a comment |
What you need to understand about initramfs
is that it is a filesystem. Since kernel 2.6 it is, basically, the only kernel-imposed filesystem ( leaving aside VFS, which is arguably also a filesystem ) on your machine. Your initramfs image
is a disk image.
Within your initramfs image
will be whatever files your distribution decided were crucial enough to require before your root disk is found. Usually that's Busybox and whatever kernel modules you need to find and mount your root device. This is isn't working for you.
There's no real mystery here though, all things considered. If you can find your way around a terminal prompt you can navigate the initramfs.
But first you've gotta demystify it.
First and foremost and once again - this is just /.
It's Linux root doing Linux root type things. In fact, if it is in a separate file from your kernel, it's actually already your second root device. Every Linux kernel contains a basically empty /
all its own which it first mounts before pulling in your initramfs.
What's more initramfs
is the real root. It is where the Linux kernel initializes userspace by execing init
and subsequently renouncing all responsibility for any problem you might encounter thereafter. Your init
seems to be Busybox, as are many, which means controlling its actions should be as simple as editing its accompanying shell scripts.
Then why the error about not finding init?
Almost definitely this is referring to a program named init
which your actual init
has been instructed via shell script to exec itself into.
Most striking to me is that the kernel pseudo file systems - dev sys proc
- do not mount. This is either very troubling or a very good clue. You mention KVM which leads me to question kernel capabilities, but before we go down that dark and rutted road, can we first try something else?
cd /root || mkdir /root
It strikes me that the error message is repeatedly:
No such file or directory
Failing that you need to rebuild your initramfs
image. Boot to a live disc to do so and run whatever tool your distribution provides to accomplish that end. Oh, and please ensure that this live disk is loaded in EFI mode.
So here's the only truly out-of-the-ordinary thing about initramfs - switchroot.
The Linux kernel provides a very special syscall intended for early userspace and handling the move from initramfs
to your root disk device. It works by first mounting your root disk into a mountpoint in initramfs
and then pivoting the root filesystem into it. I assume your initramfs's
target mount point is root
based on the way it keeps moaning about it. Why not make sure it's there?
For further investigation you're going to need to get a little gritty. Adjust your bootloader to pass ...
init=/bin/sh
... as a kernel parameter.
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of runningefibootmgr
at your prompt in your virtual machine.
– mikeserv
Mar 22 '14 at 21:35
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
|
show 1 more comment
What you need to understand about initramfs
is that it is a filesystem. Since kernel 2.6 it is, basically, the only kernel-imposed filesystem ( leaving aside VFS, which is arguably also a filesystem ) on your machine. Your initramfs image
is a disk image.
Within your initramfs image
will be whatever files your distribution decided were crucial enough to require before your root disk is found. Usually that's Busybox and whatever kernel modules you need to find and mount your root device. This is isn't working for you.
There's no real mystery here though, all things considered. If you can find your way around a terminal prompt you can navigate the initramfs.
But first you've gotta demystify it.
First and foremost and once again - this is just /.
It's Linux root doing Linux root type things. In fact, if it is in a separate file from your kernel, it's actually already your second root device. Every Linux kernel contains a basically empty /
all its own which it first mounts before pulling in your initramfs.
What's more initramfs
is the real root. It is where the Linux kernel initializes userspace by execing init
and subsequently renouncing all responsibility for any problem you might encounter thereafter. Your init
seems to be Busybox, as are many, which means controlling its actions should be as simple as editing its accompanying shell scripts.
Then why the error about not finding init?
Almost definitely this is referring to a program named init
which your actual init
has been instructed via shell script to exec itself into.
Most striking to me is that the kernel pseudo file systems - dev sys proc
- do not mount. This is either very troubling or a very good clue. You mention KVM which leads me to question kernel capabilities, but before we go down that dark and rutted road, can we first try something else?
cd /root || mkdir /root
It strikes me that the error message is repeatedly:
No such file or directory
Failing that you need to rebuild your initramfs
image. Boot to a live disc to do so and run whatever tool your distribution provides to accomplish that end. Oh, and please ensure that this live disk is loaded in EFI mode.
So here's the only truly out-of-the-ordinary thing about initramfs - switchroot.
The Linux kernel provides a very special syscall intended for early userspace and handling the move from initramfs
to your root disk device. It works by first mounting your root disk into a mountpoint in initramfs
and then pivoting the root filesystem into it. I assume your initramfs's
target mount point is root
based on the way it keeps moaning about it. Why not make sure it's there?
For further investigation you're going to need to get a little gritty. Adjust your bootloader to pass ...
init=/bin/sh
... as a kernel parameter.
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of runningefibootmgr
at your prompt in your virtual machine.
– mikeserv
Mar 22 '14 at 21:35
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
|
show 1 more comment
What you need to understand about initramfs
is that it is a filesystem. Since kernel 2.6 it is, basically, the only kernel-imposed filesystem ( leaving aside VFS, which is arguably also a filesystem ) on your machine. Your initramfs image
is a disk image.
Within your initramfs image
will be whatever files your distribution decided were crucial enough to require before your root disk is found. Usually that's Busybox and whatever kernel modules you need to find and mount your root device. This is isn't working for you.
There's no real mystery here though, all things considered. If you can find your way around a terminal prompt you can navigate the initramfs.
But first you've gotta demystify it.
First and foremost and once again - this is just /.
It's Linux root doing Linux root type things. In fact, if it is in a separate file from your kernel, it's actually already your second root device. Every Linux kernel contains a basically empty /
all its own which it first mounts before pulling in your initramfs.
What's more initramfs
is the real root. It is where the Linux kernel initializes userspace by execing init
and subsequently renouncing all responsibility for any problem you might encounter thereafter. Your init
seems to be Busybox, as are many, which means controlling its actions should be as simple as editing its accompanying shell scripts.
Then why the error about not finding init?
Almost definitely this is referring to a program named init
which your actual init
has been instructed via shell script to exec itself into.
Most striking to me is that the kernel pseudo file systems - dev sys proc
- do not mount. This is either very troubling or a very good clue. You mention KVM which leads me to question kernel capabilities, but before we go down that dark and rutted road, can we first try something else?
cd /root || mkdir /root
It strikes me that the error message is repeatedly:
No such file or directory
Failing that you need to rebuild your initramfs
image. Boot to a live disc to do so and run whatever tool your distribution provides to accomplish that end. Oh, and please ensure that this live disk is loaded in EFI mode.
So here's the only truly out-of-the-ordinary thing about initramfs - switchroot.
The Linux kernel provides a very special syscall intended for early userspace and handling the move from initramfs
to your root disk device. It works by first mounting your root disk into a mountpoint in initramfs
and then pivoting the root filesystem into it. I assume your initramfs's
target mount point is root
based on the way it keeps moaning about it. Why not make sure it's there?
For further investigation you're going to need to get a little gritty. Adjust your bootloader to pass ...
init=/bin/sh
... as a kernel parameter.
What you need to understand about initramfs
is that it is a filesystem. Since kernel 2.6 it is, basically, the only kernel-imposed filesystem ( leaving aside VFS, which is arguably also a filesystem ) on your machine. Your initramfs image
is a disk image.
Within your initramfs image
will be whatever files your distribution decided were crucial enough to require before your root disk is found. Usually that's Busybox and whatever kernel modules you need to find and mount your root device. This is isn't working for you.
There's no real mystery here though, all things considered. If you can find your way around a terminal prompt you can navigate the initramfs.
But first you've gotta demystify it.
First and foremost and once again - this is just /.
It's Linux root doing Linux root type things. In fact, if it is in a separate file from your kernel, it's actually already your second root device. Every Linux kernel contains a basically empty /
all its own which it first mounts before pulling in your initramfs.
What's more initramfs
is the real root. It is where the Linux kernel initializes userspace by execing init
and subsequently renouncing all responsibility for any problem you might encounter thereafter. Your init
seems to be Busybox, as are many, which means controlling its actions should be as simple as editing its accompanying shell scripts.
Then why the error about not finding init?
Almost definitely this is referring to a program named init
which your actual init
has been instructed via shell script to exec itself into.
Most striking to me is that the kernel pseudo file systems - dev sys proc
- do not mount. This is either very troubling or a very good clue. You mention KVM which leads me to question kernel capabilities, but before we go down that dark and rutted road, can we first try something else?
cd /root || mkdir /root
It strikes me that the error message is repeatedly:
No such file or directory
Failing that you need to rebuild your initramfs
image. Boot to a live disc to do so and run whatever tool your distribution provides to accomplish that end. Oh, and please ensure that this live disk is loaded in EFI mode.
So here's the only truly out-of-the-ordinary thing about initramfs - switchroot.
The Linux kernel provides a very special syscall intended for early userspace and handling the move from initramfs
to your root disk device. It works by first mounting your root disk into a mountpoint in initramfs
and then pivoting the root filesystem into it. I assume your initramfs's
target mount point is root
based on the way it keeps moaning about it. Why not make sure it's there?
For further investigation you're going to need to get a little gritty. Adjust your bootloader to pass ...
init=/bin/sh
... as a kernel parameter.
edited Aug 11 '16 at 20:09
kevlarjacket
1941212
1941212
answered Mar 22 '14 at 3:51
mikeservmikeserv
46.3k669164
46.3k669164
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of runningefibootmgr
at your prompt in your virtual machine.
– mikeserv
Mar 22 '14 at 21:35
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
|
show 1 more comment
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of runningefibootmgr
at your prompt in your virtual machine.
– mikeserv
Mar 22 '14 at 21:35
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
...target mount point is root... Why not make sure it's there? I haven't got to foggiest idea how to verify this.
– Pro Backup
Mar 22 '14 at 9:18
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
You dont need to anymore. Youve got bash which means youre past initramfs. But are you still in kvm?
– mikeserv
Mar 22 '14 at 17:53
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
Yes, I am still in kvm.
– Pro Backup
Mar 22 '14 at 20:41
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of running
efibootmgr
at your prompt in your virtual machine.– mikeserv
Mar 22 '14 at 21:35
@ProBackup If you made it there you need to give the other guy your bounty - thats what you stated was your goal, anyway. Nevermind - youve apparently already done so. Im curious to know why you need to specify two init images - why initrd and boot? What is that? I should also like to know what, if anything, you can get out of running
efibootmgr
at your prompt in your virtual machine.– mikeserv
Mar 22 '14 at 21:35
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
I have made a new SE question for the why: unix.stackexchange.com/questions/120999/… Note: I do think that this KVM (Parallels Desktop v8) only has a BIOS (not UEFI) due to the BIOS boot message.
– Pro Backup
Mar 23 '14 at 10:04
|
show 1 more comment
I had the same problem. What Alex said is correct.
First i adjusted my fstab but that didn't help.
So, i checked my grub. If you have the possibility to access grub menu.
- Select the Linux, what you want to start and which makes trouble.
- Press 'e' and look for 'boot_image' or 'boot...root'.
- Check the 'uuid'.
- In my case, it was wrong. I make a picture in initramfs by typing 'blkid' and take the uuid on which partition my linux is installed.
- Past the correct uuid from blkid to grub -> boot_image.
That solved my problem. After reboot my linux needed longer time to start to check the disk. But now it works again.
I hope i could help you.
Regards
add a comment |
I had the same problem. What Alex said is correct.
First i adjusted my fstab but that didn't help.
So, i checked my grub. If you have the possibility to access grub menu.
- Select the Linux, what you want to start and which makes trouble.
- Press 'e' and look for 'boot_image' or 'boot...root'.
- Check the 'uuid'.
- In my case, it was wrong. I make a picture in initramfs by typing 'blkid' and take the uuid on which partition my linux is installed.
- Past the correct uuid from blkid to grub -> boot_image.
That solved my problem. After reboot my linux needed longer time to start to check the disk. But now it works again.
I hope i could help you.
Regards
add a comment |
I had the same problem. What Alex said is correct.
First i adjusted my fstab but that didn't help.
So, i checked my grub. If you have the possibility to access grub menu.
- Select the Linux, what you want to start and which makes trouble.
- Press 'e' and look for 'boot_image' or 'boot...root'.
- Check the 'uuid'.
- In my case, it was wrong. I make a picture in initramfs by typing 'blkid' and take the uuid on which partition my linux is installed.
- Past the correct uuid from blkid to grub -> boot_image.
That solved my problem. After reboot my linux needed longer time to start to check the disk. But now it works again.
I hope i could help you.
Regards
I had the same problem. What Alex said is correct.
First i adjusted my fstab but that didn't help.
So, i checked my grub. If you have the possibility to access grub menu.
- Select the Linux, what you want to start and which makes trouble.
- Press 'e' and look for 'boot_image' or 'boot...root'.
- Check the 'uuid'.
- In my case, it was wrong. I make a picture in initramfs by typing 'blkid' and take the uuid on which partition my linux is installed.
- Past the correct uuid from blkid to grub -> boot_image.
That solved my problem. After reboot my linux needed longer time to start to check the disk. But now it works again.
I hope i could help you.
Regards
answered Mar 8 '18 at 22:10
Abe NudelAbe Nudel
1
1
add a comment |
add a comment |
Thanks for contributing an answer to Unix & Linux Stack Exchange!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f120198%2fhow-to-fix-boot-into-initramfs-prompt-and-mount-cant-read-etc-fstab-no-su%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Why two init images? Can you please put this on an actual disk and try to boot it? Qemu and EFI have issues - for instance, if you do not use an EFI boot firmware image, you won't get very far at all.
– mikeserv
Mar 22 '14 at 5:41
And if all you want is a bash prompt you could always include bash in your initramfs...
– mikeserv
Mar 22 '14 at 5:42
In fact, I'm remembering looking at LARGE GPT partitions in Ubuntu and them registering as completely empty. After I held shift at reboot to get grub's selection for their live disk I was able to select the Efi option, after which I had a disk.
– mikeserv
Mar 22 '14 at 5:56