Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Kernel Panic - nVidia MCP61 - VFS Unknown block(8,4
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
jecepede
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 180

PostPosted: Wed Dec 17, 2014 6:42 pm    Post subject: [SOLVED] Kernel Panic - nVidia MCP61 - VFS Unknown block(8,4 Reply with quote

Aloha !


And here is yet another kernel panic while booting my freshly installed system.


I have an old AMD-Sempron PC that I wanted to Use as a small server (it was free of charge so why not) :
---
AMD Sempron(tm) Processor 3000+ (1,8 Ghz)
2 Gb Internal memory
The mainboard is a ASRock K8NF6G-VSTA (It has an nVidia MCP61 IDE controller)
DVD-PLayer (ATA133 Master)
Two harddrives.
1 - WDC 40 Gb (ATA133 Slave)
2 - Samsung 40 Gb (SATA2)



What did I do ?
---
- Start from the Live-Install-Minimal-CD (install-amd64-minimal-20141204.iso )
- Erase EVERYTHING on my two HD's
- Install using the handbook (with the exeption of LILO)
- Reboot en voila, kernel panic :

VFS: Cannot open root device "sda4" or unknown-block(8,4): error -6 (See: )

---

I did see some more strange behaviour.
When I boot from the Live-Install-Minimal-CD I see this :

Code:
sda (WDC, ATA133 Slave)     
|-sda1
|-sda2  /boot
|-sda3  [SWAP]
`-sda4  /
sdb (Samsung, SATA2)       
`-sdab  /home


But after I install and reboot, I suddenly see that my sda becomes sdb
and vice versa. Thus the root partition can't be found hence the kernel panic.

It gets even weirder.
When I disable the Samsung SATA2 drive in the BIOS of the computer.....
....my server starts without any (unexaplainable) errors and I can do basically
anything. The only thing I miss is my /home directory. It resides on the Samsung.

---

I useed sys-kernel/hardened-sources 3.15.10-r1
and LILO. (Don't really like GRUB)
The rest is standard textbook install as one can find on the Gentoo website.

---

So After many many many tries I desided to erase EVERYTHING
and start from scratch. So now I have a fresh install and still the weird kernel panic.


I know I am doing something wrong but I can't seem to find out what,
Hope someone can help me here. If I need to post some configs, please let
me know and I'll post them here or in pastebin.



Cheeeeeeeeeeeeeeeeeeeeers


Jecepede





=========================================================


/etc/fstab
Code:
# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>

# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/sda2               /boot           ext2            defaults,noatime        0 2
/dev/sda4               /               ext4            noatime                 0 1
/dev/sdb1               /home           ext4            noatime                 0 1
/dev/sda3               none            swap            sw                      0 0

# /dev/cdrom            /mnt/cdrom      auto            noauto,ro               0 0
# /dev/fd0              /mnt/floppy     auto            noauto                  0 0


/etc/lilo.conf
Code:
boot=/dev/sda
prompt
timeout=50
default="Gentoo.Normal"
lba32

image=/boot/vmlinuz-3.15.10-hardened-r1
        label="Gentoo.Normal"
        read-only
        root=/dev/sda4


lspci
Code:
00:00.0 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a1)
00:01.0 ISA bridge: NVIDIA Corporation MCP61 LPC Bridge (rev a2)
00:01.1 SMBus: NVIDIA Corporation MCP61 SMBus (rev a2)
00:01.2 RAM memory: NVIDIA Corporation MCP61 Memory Controller (rev a2)
00:02.0 USB controller: NVIDIA Corporation MCP61 USB 1.1 Controller (rev a2)
00:02.1 USB controller: NVIDIA Corporation MCP61 USB 2.0 Controller (rev a2)
00:04.0 PCI bridge: NVIDIA Corporation MCP61 PCI bridge (rev a1)
00:06.0 IDE interface: NVIDIA Corporation MCP61 IDE (rev a2)
00:07.0 Bridge: NVIDIA Corporation MCP61 Ethernet (rev a2)
00:09.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0b.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0c.0 PCI bridge: NVIDIA Corporation MCP61 PCI Express bridge (rev a2)
00:0d.0 VGA compatible controller: NVIDIA Corporation C61 [GeForce 6100 nForce 405] (rev a2)
00:18.0 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices, Inc. [AMD] K8 [Athlon64/Opteron] Miscellaneous Control


.config
Code:
Didn't change ANYTHING yet

_________________
With all this technology they can't even make a computer that bounces....
http://garfield.wabbit-wion.nl


Last edited by jecepede on Wed Dec 17, 2014 8:37 pm; edited 1 time in total
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Wed Dec 17, 2014 8:08 pm    Post subject: Reply with quote

jecepede,

Code:
VFS Unknown block(8,4)
translates to the kernel cannot read /dev/sda4, which is where it has been told the root filesysem is.
Its either looking at the wrong disk, or the filesystem driver is not available in your kernel.

Since booting works, grub is happy. Set your root= to root=/dev/sdb4, that will keep the kernel happy.
Edit /etc/fstab to swap sda and sdb everywhere.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jecepede
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 180

PostPosted: Wed Dec 17, 2014 8:37 pm    Post subject: Yay ! Reply with quote

Aloha NeddySeagoon !


Just after I posted this I read the Gento manual again.
If I understood the manual correctly, it seemded I needed the optional initramfs.

Also I changed from LILO to GRUB for the GPT-disklabel compatibility
and more support on this and other forums.

Then I followed your instructions of swapping the sda with sdb (and vice versa)
in /etc/fstab and that TOTALLY did the trick !




Thank you soooooooooo much for your help :)


Cheeeeeeeeeeeeers from a happy Gentoo-er....


Jecepede



NB: Still strikes me as odd that the Live-CD hooks :

WDC 40 Gb -> /dev/sda
Samsung 40 Gb -> /dev/sdb

and after reboot.... it is exactly the opposit ?

WDC 40 Gb -> /dev/sdB
Samsung 40 Gb -> /dev/sdA

_________________
With all this technology they can't even make a computer that bounces....
http://garfield.wabbit-wion.nl
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 43198
Location: 56N 3W

PostPosted: Wed Dec 17, 2014 9:06 pm    Post subject: Reply with quote

jecepede,

The liveCD uses a fully modular kernel. Kernel drive detection order depends on module load order.

Your kernel will have the drivers built in, so the kernel will scan the PCI bus in PCI device order.
That may not be the same as the module load order on the liveCD.

For completness, grub uses the BIOS detection order, which you may be able to influence in the BIOS settings.
This can be different to both of the above, if you have more that two drives.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
jecepede
Apprentice
Apprentice


Joined: 19 Nov 2002
Posts: 180

PostPosted: Wed Dec 17, 2014 10:07 pm    Post subject: Reply with quote

Ola !

NeddySeagoon wrote:
For completness, grub uses the BIOS detection order, which you may be able to influence in the BIOS settings.
This can be different to both of the above, if you have more that two drives.



Ohhhhhh that made me see the light. I was unaware of that :oops:


Cheeeeeeeers !


Jecepede
_________________
With all this technology they can't even make a computer that bounces....
http://garfield.wabbit-wion.nl
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