Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Gentoo Install Problem
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Tue Apr 09, 2013 5:19 am    Post subject: Gentoo Install Problem Reply with quote

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
View user's profile Send private message
LoTeK
Apprentice
Apprentice


Joined: 26 Jul 2012
Posts: 270

PostPosted: Tue Apr 09, 2013 7:24 am    Post subject: Reply with quote

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
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Tue Apr 09, 2013 7:53 am    Post subject: Reply with quote

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
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3907

PostPosted: Tue Apr 09, 2013 10:03 am    Post subject: Reply with quote

Do you have only 1 disk ?
Back to top
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Tue Apr 09, 2013 10:45 am    Post subject: Reply with quote

yes 1 disk, this is virtual machine
Back to top
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Wed Apr 10, 2013 6:23 am    Post subject: Reply with quote

after reboot
i use command : shell
and ls /dev

i dont see my sda (((

Please help fix this problem.....
Back to top
View user's profile Send private message
krinn
Advocate
Advocate


Joined: 02 May 2003
Posts: 3907

PostPosted: Wed Apr 10, 2013 9:07 am    Post subject: Reply with quote

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
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Wed Apr 10, 2013 10:18 am    Post subject: Reply with quote

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
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Wed Apr 10, 2013 11:33 am    Post subject: Reply with quote

I recompile the kernel and now see my sda and first error (((
Back to top
View user's profile Send private message
LoTeK
Apprentice
Apprentice


Joined: 26 Jul 2012
Posts: 270

PostPosted: Wed Apr 10, 2013 2:56 pm    Post subject: Reply with quote

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
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1341

PostPosted: Wed Apr 10, 2013 4:07 pm    Post subject: Reply with quote

Set these options:

CONFIG_TMPFS=y
CONFIG_DEVTMPFS=y
CONFIG_DEVTMPFS_MOUNT=y
Back to top
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Thu Apr 11, 2013 4:50 am    Post subject: Reply with quote

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
View user's profile Send private message
solamour
Guru
Guru


Joined: 21 Dec 2004
Posts: 484
Location: San Diego, CA

PostPosted: Thu Apr 11, 2013 6:40 am    Post subject: Reply with quote

What happens when you boot with the installation disk or SystemRescueCD and run "lsmod"?
__
sol
Back to top
View user's profile Send private message
next40
n00b
n00b


Joined: 25 Jan 2013
Posts: 21

PostPosted: Thu Apr 11, 2013 8:36 am    Post subject: Reply with quote

I recompile without genkernel..... and i have new error =(
http://postimg.org/image/4yg2nifpt/
Back to top
View user's profile Send private message
TomWij
Developer
Developer


Joined: 04 Jul 2012
Posts: 1341

PostPosted: Thu Apr 11, 2013 8:45 am    Post subject: Reply with quote

next40 wrote:
I recompile without genkernel..... and i have new error =(
http://postimg.org/image/4yg2nifpt/


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
View user's profile Send private message
ronstudio
n00b
n00b


Joined: 14 Aug 2011
Posts: 28

PostPosted: Thu Apr 18, 2013 2:58 pm    Post subject: Try tne gentoo-sources 3.8.8 Reply with quote

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
View user's profile Send private message
ronstudio
n00b
n00b


Joined: 14 Aug 2011
Posts: 28

PostPosted: Sun Apr 21, 2013 12:19 pm    Post subject: Reply with quote

Sorry that I have to correct myself, as the issue should be irrelevant to the kernel version.

:P 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. :oops:

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
View user's profile Send private message
Realnot
Tux's lil' helper
Tux's lil' helper


Joined: 28 May 2007
Posts: 104
Location: Ferrara

PostPosted: Wed Aug 07, 2013 2:10 pm    Post subject: Solved Reply with quote

TomWij wrote:
next40 wrote:
I recompile without genkernel..... and i have new error =(
http://postimg.org/image/4yg2nifpt/


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
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
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