View previous topic :: View next topic |
Author |
Message |
YKLA n00b
Joined: 15 Jun 2015 Posts: 8 Location: China
|
Posted: Mon Jun 15, 2015 2:05 pm Post subject: Help! Mounting /dev/sda3 on /newroot failed: Invalid argume |
|
|
IN gentoo . I installed gentoo,but when I boot my new system :
showed me :
mount : Mounting /dev/sda3 on /newroot failed: Invalid argument
Could not mount specifited ROOT, try again
Root block device uncpecifited or not detected.
Please specify a device to boot, or "shell" for a shell.
:
So,I can not boot my system
Here are my etcs:
livecd gentoo # parted -a optimal /dev/sda
GNU Parted 3.1
Using /dev/sda
Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
Model: ATA ST500LT012-1DG14 (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:
Number Start End Size File system Name Flags
1 1049kB 300MB 299MB fat32 boot
2 300MB 5100MB 4800MB ext4 boot
3 5100MB 305GB 300GB rootfs
4 305GB 492GB 187GB home
5 492GB 500GB 8009MB linux-swap(v1) swap
and then, my /etc/fstab:
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda1 /boot/efi fat32 fat32 noauto,noatime 0 0
/dev/sda2 /boot ext4 defaults 0 2
/dev/sda3 / btrfs defaults 0 1
/dev/sda4 /home btrfs defaults 0 0
/dev/sda5 swap swap sw 0 0
/dev/cdrom /mnt/cdroSYSTEMD"m auto noauto,ro,user 0 0
The gentoo built in "UEFI+systemd+btrfs(/ and /home)"
I can fing this in wiki!
Help and thanks .
Last edited by YKLA on Thu Jun 18, 2015 5:02 am; edited 1 time in total |
|
Back to top |
|
|
eccerr0r Watchman
Joined: 01 Jul 2004 Posts: 9695 Location: almost Mile High in the USA
|
Posted: Mon Jun 15, 2015 2:45 pm Post subject: |
|
|
It looks like you're using an initramfs. Somehow you got the older /dev/hdXX options in there
Quote: | mount : Mounting /dev/hda3 on /newroot failed: Invalid argument
|
You should be using libata drivers and /dev/sda3 if your partition table is as it looks. So,
- what are you using for root= on your bootloader kernel command line? _________________ Intel Core i7 2700K/Radeon R7 250/24GB DDR3/256GB SSD
What am I supposed watching? |
|
Back to top |
|
|
YKLA n00b
Joined: 15 Jun 2015 Posts: 8 Location: China
|
Posted: Tue Jun 16, 2015 4:24 am Post subject: |
|
|
eccerr0r wrote: | It looks like you're using an initramfs. Somehow you got the older /dev/hdXX options in there
Quote: | mount : Mounting /dev/hda3 on /newroot failed: Invalid argument
|
You should be using libata drivers and /dev/sda3 if your partition table is as it looks. So,
- what are you using for root= on your bootloader kernel command line? |
Optional: Building an initramfs
In certain cases it is necessary to build an initramfs - an initial ram-based file system. The most common reason is when important file system locations (like /usr/ or /var/) are on separate partitions. With an initramfs, these partitions can be mounted using the tools available inside the initramfs.
Without an initramfs, there is a huge risk that the system will not boot up properly as the tools that are responsible for mounting the file systems need information that resides on those file systems. An initramfs will pull in the necessary files into an archive which is used right after the kernel boots, but before the control is handed over to the init tool. Scripts on the initramfs will then make sure that the partitions are properly mounted before the system continues booting.
To install an initramfs, install sys-kernel/genkernel first, then have it generate an initramfs:
root #emerge genkernel
root #genkernel --install initramfs
In order to enable specific support in the initramfs, such as lvm or raid, add in the appropriate options to genkernel. See genkernel --help for more information. In the next example we enables support for LVM and software raid (mdadm):
root #genkernel --lvm --mdadm --install initramfs
The initramfs will be stored in /boot/. The resulting file can be found by simply listing the files starting with initramfs:
root #ls /boot/initramfs*
You know,I use this,but what should I do? thanks a lot . |
|
Back to top |
|
|
genoobish n00b
Joined: 18 Feb 2015 Posts: 73
|
Posted: Fri Jun 26, 2015 2:52 am Post subject: Re: Help! Mounting /dev/sda3 on /newroot failed: Invalid arg |
|
|
YKLA wrote: | IN gentoo . I installed gentoo,but when I boot my new system :
/dev/sda3 / btrfs defaults 0 1
|
Hi, YKLAi.
Since you're using a btrfs root partition, you should have your fstab read:
Code: | /dev/sda3 / btrfs defaults 0 0
| edit: there's good documentation on btrfs here https://wiki.archlinux.org/index.php/Btrfs
And to create the initramfs you should pass ` --btrfs` parameter too. |
|
Back to top |
|
|
YKLA n00b
Joined: 15 Jun 2015 Posts: 8 Location: China
|
Posted: Fri Jun 26, 2015 4:34 am Post subject: Re: Help! Mounting /dev/sda3 on /newroot failed: Invalid arg |
|
|
genoobish wrote: | YKLA wrote: | IN gentoo . I installed gentoo,but when I boot my new system :
/dev/sda3 / btrfs defaults 0 1
|
Hi, YKLAi.
Since you're using a btrfs root partition, you should have your fstab read:
Code: | /dev/sda3 / btrfs defaults 0 0
| edit: there's good documentation on btrfs here https://wiki.archlinux.org/index.php/Btrfs
And to create the initramfs you should pass ` --btrfs` parameter too. |
thanks.I had reinstall 。。。 |
|
Back to top |
|
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|