View previous topic :: View next topic |
Author |
Message |
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Tue Apr 09, 2013 5:19 am Post subject: Gentoo Install Problem |
|
|
Need help to fix error:
Code: |
>> Determining root device...
>> Mounting root...
mount: mounting /dev/sda3 on /newroot failed. Invalid argument
!! Could not mount specified ROOT, try again
!! Could not find the root block device in .
|
Kernel 3.7.10 genkernel
Code: |
(chroot) livecd / # df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
udev devtmpfs 10240 4 10236 1% /dev
tmpfs tmpfs 56249692 2913204 50479172 6% /
tmpfs tmpfs 56249692 2913204 50479172 6% /run
shm tmpfs 446616 0 446616 0% /dev/shm
/dev/sda3 ext4 56249692 2913204 50479172 6% /
/dev/sda1 ext4 516040 25308 464520 6% /boot
udev devtmpfs 10240 4 10236 1% /dev
shm tmpfs 446616 0 446616 0% /dev/shm
|
Fstab
Code: |
/dev/sda1 /boot ext4 noauto,noatime 1 2
/dev/sda3 / ext4 noatime 0 1
/dev/sda2 none swap sw 0 0
/dev/cdrom /mnt/cdrom auto noauto,ro 0 0
/dev/fd0 /mnt/floppy auto noauto 0 0 |
Last edited by next40 on Tue Apr 09, 2013 7:54 am; edited 1 time in total |
|
Back to top |
|
|
LoTeK Apprentice
Joined: 26 Jul 2012 Posts: 270
|
Posted: Tue Apr 09, 2013 7:24 am Post subject: |
|
|
hi,
can you post you grub.conf?
make sure that ext4 support is compiled in the kernel and that the initramfs is created.
try real_root=/dev/sda3 rootfstype=ext4 as parameters. _________________ "I want to see gamma rays! I want to hear X-rays! Do you see the absurdity of what I am? I can't even express these things properly because I have to conceptualize complex ideas in this stupid limiting spoken language!" |
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Tue Apr 09, 2013 7:53 am Post subject: |
|
|
Code: |
default 0
timeout 20
splashimage=(hd0,0)/boot/grub/splash.xpm.gz
title=Gentoo Linux (3.7.10-gentoo)
root (hd0,0)
kernel /boot/kernel-genkernel-x86-3.7.10-gentoo root=/dev/ram0 init=/linuxrc doscsi ramdisk=8192 rootfstype=ext4 real_root=/dev/sda3 vga=0x318 video=vesafb:mtrr:3,ywrap
initrd /boot/initramfs-genkernel-x86-3.7.10-gentoo
|
ext4
Code: |
(chroot) livecd / # grep EXT4 /usr/src/linux/full.config
CONFIG_EXT4_FS=y
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
|
|
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Tue Apr 09, 2013 10:03 am Post subject: |
|
|
Do you have only 1 disk ? |
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Tue Apr 09, 2013 10:45 am Post subject: |
|
|
yes 1 disk, this is virtual machine |
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Wed Apr 10, 2013 6:23 am Post subject: |
|
|
after reboot
i use command : shell
and ls /dev
i dont see my sda (((
Please help fix this problem..... |
|
Back to top |
|
|
krinn Watchman
Joined: 02 May 2003 Posts: 7470
|
Posted: Wed Apr 10, 2013 9:07 am Post subject: |
|
|
I would say, if you can't get sda, you are lacking your controller drivers or udev is at pain.
For udev, classic mistake is missing devtmps, but i suppose it's something ther genkernel should have select already for you.
And for your controller driver, this time, i'm not sure how genkernel handle that, just guessing it's not able to detect them. So upto you to enable that. To find what controller you need, the "lspci -k" will gave you the needed name.
You may get few answer because you're using genkernel, something most users that grant help here, are not familiar with. |
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Wed Apr 10, 2013 10:18 am Post subject: |
|
|
Code: | 00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (AGP disabled) (rev 03)
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 01)
Subsystem: Microsoft Corporation Device 0000
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
Kernel driver in use: ata_piix
Kernel modules: ata_piix
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 02)
00:08.0 VGA compatible controller: Microsoft Corporation Hyper-V virtual VGA
|
|
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Wed Apr 10, 2013 11:33 am Post subject: |
|
|
I recompile the kernel and now see my sda and first error ((( |
|
Back to top |
|
|
LoTeK Apprentice
Joined: 26 Jul 2012 Posts: 270
|
Posted: Wed Apr 10, 2013 2:56 pm Post subject: |
|
|
I don't know how to help you, but I had a similar problem, so have a look at https://forums.gentoo.org/viewtopic-t-934684-start-0.html.
I also used genkernel then and I can confirm Quote: | You may get few answer because you're using genkernel, something most users that grant help here, are not familiar with. | _________________ "I want to see gamma rays! I want to hear X-rays! Do you see the absurdity of what I am? I can't even express these things properly because I have to conceptualize complex ideas in this stupid limiting spoken language!" |
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Wed Apr 10, 2013 4:07 pm Post subject: |
|
|
Set these options:
CONFIG_TMPFS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y |
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
Posted: Thu Apr 11, 2013 4:50 am Post subject: |
|
|
Code: | (chroot) livecd / # grep -i tmpfs /usr/src/linux/.config
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
CONFIG_TMPFS=y
CONFIG_TMPFS_POSIX_ACL=y
CONFIG_TMPFS_XATTR=y
|
|
|
Back to top |
|
|
solamour l33t
Joined: 21 Dec 2004 Posts: 698 Location: San Diego, CA
|
Posted: Thu Apr 11, 2013 6:40 am Post subject: |
|
|
What happens when you boot with the installation disk or SystemRescueCD and run "lsmod"?
__
sol |
|
Back to top |
|
|
next40 n00b
Joined: 25 Jan 2013 Posts: 21
|
|
Back to top |
|
|
TomWij Retired Dev
Joined: 04 Jul 2012 Posts: 1553
|
Posted: Thu Apr 11, 2013 8:45 am Post subject: |
|
|
EXT4-fs (sda3): bad geometry: block count 19529472 exceeds size of device (19529152 blocks)
There's your problem, you'll want to correct it in fdisk; there may be a chance you need to start over. |
|
Back to top |
|
|
ronstudio n00b
Joined: 14 Aug 2011 Posts: 28
|
Posted: Thu Apr 18, 2013 2:58 pm Post subject: Try tne gentoo-sources 3.8.8 |
|
|
Hi next40,
Maybe you could try compile your kernel again with the latest 3.8.8 gentoo-sources?
The reason that I suggest this because I had encountered the same Kernel panic problem yesterday with the stable 3.7.10-r1. I believe myself has installed Gentoo numerous times and fairly familiar with my hardware configuration to boot successfully. But I can't believe myself still fail to boot successfully.
I remembered myself having similar experience before, (after pretty certain that i have got my those SATA drivers correctly), then I got the 3.8.7 kernel yesterday, but still fail to boot.
Today I decided to have a fresh install of the Gentoo again. But I have kept the copy of my .config as I want to figure out what's the difference between a successful boot and a failure boot in case I can get it work later.
I basically go through the same settings, it just boot successfully. The only changes is the latest gentoo-sources is 3.8.8 today, while yesterday was 3.8.7. I even try to get back yesterday .config to compile with 3.8.8 again, it also boot successfully. Then I download the 3.7.10-r1 kernel and compiling with yesterday .config, bingo!
I have got the kernel panic which is saying
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,3)
So I suggest you may want to try
echo "sys-kernel/gentoo-sources" >> /etc/portage/package.accept_keywords
then copy your .config into the latest kernel folder and compile it again.
That's how I resolve the same issue exactly today. |
|
Back to top |
|
|
ronstudio n00b
Joined: 14 Aug 2011 Posts: 28
|
Posted: Sun Apr 21, 2013 12:19 pm Post subject: |
|
|
Sorry that I have to correct myself, as the issue should be irrelevant to the kernel version.
Because due to some harddisk failure, I have to install the gentoo again. I found that even with the same config and kernel version, this time I cannot boot successfully. I suspect I just miss out some steps during the process.
But myself, I afraid I could only try it once again and try to figure out if I have missed any steps |
|
Back to top |
|
|
Realnot Tux's lil' helper
Joined: 28 May 2007 Posts: 120 Location: Ferrara
|
Posted: Wed Aug 07, 2013 2:10 pm Post subject: Solved |
|
|
TomWij wrote: |
EXT4-fs (sda3): bad geometry: block count 19529472 exceeds size of device (19529152 blocks)
There's your problem, you'll want to correct it in fdisk; there may be a chance you need to start over. |
Hi, i have the same error, the problem is that i can't do the chroot to emerge a different kernel, i should reinstall gentoo? thanks in advance.
edit 1: solved
I made a stupid error. The file system is bigger than its volume. _________________ I'm not stupid, only mentally free... |
|
Back to top |
|
|
|