View previous topic :: View next topic |
Author |
Message |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Wed Sep 19, 2012 10:45 am Post subject: |
|
|
Alright, I think you understand the issue, your kernel is using IDE drivers to access PATA devices, resulting nodes were /dev/hd*. It worked this way until newer udev version stopped supporting hd* nodes. Your Gentoo still boots but cannot see /boot and swap. To verify this theory you should hit e at Grub boot menu and review the kernel command line or simply do cat /proc/cmdline.
If my theory is correct then to fix it you should get access to /boot to install a new properly configured kernel. Maybe it is as easy as changing kernel command line from Grub screen. If it does not work you should either:
1. boot this VM from a Linux CD and chroot
2. or you should create missing hda* nodes by hand. Maybe downgrading udev will work, too.
But first things first, what is your kernel command line? _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Wed Sep 19, 2012 10:53 am Post subject: |
|
|
Jaglover wrote: | To verify this theory you should hit e at Grub boot menu and review the kernel command line or simply do cat /proc/cmdline. |
Code: | ~ # cat /proc/cmdline
root=/dev/ram0 init=/linuxrc real_root=/dev/sda3 vga=791 elevator=deadline |
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Wed Sep 19, 2012 12:26 pm Post subject: |
|
|
Jaglover wrote: | Can you use wgetpaste and put your entire dmesg into pastebin, the dmesg you posted earlier wasn't complete.
Output of lspci -k would be helpful, too. |
hi jaglover, here you go, thx:
dmesg | wgetpaste
http://pastebin.com/04hcRCcp
Code: |
~ # lspci -k
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
Kernel modules: shpchp
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
Subsystem: VMware Virtual Machine Chipset
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: PIIX_IDE
Kernel modules: ata_piix
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
Subsystem: VMware Virtual Machine Chipset
Kernel modules: i2c-piix4
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
Subsystem: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
Kernel driver in use: mptspi
Kernel modules: mptspi
00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
Kernel driver in use: pcnet32
Kernel modules: pcnet32, vmxnet
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Wed Sep 19, 2012 12:58 pm Post subject: |
|
|
Jaglover wrote: | Well, all drivers seem correct, for some reason dmesg is not what it should be ... is udev in sysinit runlevel? |
Code: | ~ # /etc/init.d/udev
udev udev-mount udev-postmount
~ # /etc/init.d/udev restart
* WARNING: you are stopping a sysinit service
* Stopping udev ... [ ok ]
* Starting udev ... [ ok ]
* Populating /dev with existing devices through uevents ... [ ok ]
* Waiting for uevents to be processed ... [ ok ]
* Device initiated services: net.eth0
|
could it be a reason where i had manually added eth0 in the past as net.lo failed to get the static IP assigned? since then on reboot i get a warning saying, this array feature will be deprecated in future?
Just trying to join sides together. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Wed Sep 19, 2012 1:16 pm Post subject: |
|
|
Jaglover wrote: | After udev restart, do you have /dev/sda* nodes now? |
No
Code: |
~ # ls /dev/s
sg0 shm/ snapshot stderr stdin stdout
|
Edit: /var/log/genkernel.log
http://pastebin.com/1ntwnmXR
Last edited by midway on Wed Sep 19, 2012 2:46 pm; edited 3 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Fri Sep 21, 2012 8:51 am Post subject: |
|
|
Hi Jaglover and John,
sorry I was away so couldn't reply. I have rechecked my other gentoo VM and there seems to be a difference in kernel driver (ata vs. piix).
Affected VM for which this thread is opened:
Code: |
~ # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.28-hardened-r7
[2] linux-2.6.28-hardened-r9 *
~ # uname -a
Linux 2.6.28-hardened-r9 #1 SMP Mon Apr 12 17:02:47 BST 2010 i686 Intel(R) Xeon(R) CPU X5450 @ 3.00GHz GenuineIntel GNU/Linux
~ # lspci -k
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
Kernel modules: shpchp
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
Subsystem: VMware Virtual Machine Chipset
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: PIIX_IDE
Kernel modules: ata_piix
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
Subsystem: VMware Virtual Machine Chipset
Kernel modules: i2c-piix4
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
Subsystem: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
Kernel driver in use: mptspi
Kernel modules: mptspi
00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
Kernel driver in use: pcnet32
Kernel modules: pcnet32, vmxnet
|
another gentoo vm where the kernel has been upgraded with no problem:
Code: |
~ # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.36-hardened-r9
[2] linux-3.3.8-gentoo *
~ # uname -a
Linux 3.3.8-gentoo #1 SMP Wed Sep 12 16:05:51 BST 2012 i686 Intel(R) Xeon(R) CPU X5450 @ 3.00GHz GenuineIntel GNU/Linux
~ # lspci -k
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
Kernel modules: shpchp
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
Subsystem: VMware Virtual Machine Chipset
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: ata_piix
Kernel modules: ata_piix
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
Subsystem: VMware Virtual Machine Chipset
Kernel modules: i2c-piix4
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
Subsystem: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
Kernel driver in use: mptspi
Kernel modules: mptspi
00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
Kernel driver in use: pcnet32
Kernel modules: pcnet32
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Thu Sep 27, 2012 1:44 pm Post subject: |
|
|
Jaglover wrote: | So it is the IDE driver as I suspected. You could create hda1 device node by hand (major 3 minor 0 methinks), mount /boot and upgrade your kernel. |
i have never played around with kernels (mknod etc) as genkernel has been working fine so far (until i hit this kernel driver piix issue).
pls could you detail your process, and ya thanks again for your time.
this is what i have tried :
Code: |
~ # mknod /dev/hda1 b 3 0
~ # mount /boot
mount: special device /dev/sda1 does not exist
~ # mount /dev/hda1 /boot
mount: no medium found on /dev/hda1
~ # ls -al /dev/h
hda1 hpet
~ # ls -al /dev/s
sg0 shm/ snapshot stderr stdin stdout
~ # genkernel all
* Gentoo Linux Genkernel; Version 3.4.24_p2
* Running with options: all
* Linux Kernel 3.3.8-gentoo for x86...
mount: no medium found on /dev/hda1
* WARNING: Failed to mount /boot!
* kernel: Using config from /usr/share/genkernel/arch/x86/kernel-config
* Previous config backed up to .config--2012-09-27--15-55-29.bak
* kernel: >> Running mrproper...
|
Last edited by midway on Thu Sep 27, 2012 2:57 pm; edited 2 times in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Thu Sep 27, 2012 2:07 pm Post subject: |
|
|
more info:
Code: |
~ # lspci -k
00:00.0 Host bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX Host bridge (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: agpgart-intel
Kernel modules: intel-agp
00:01.0 PCI bridge: Intel Corporation 440BX/ZX/DX - 82443BX/ZX/DX AGP bridge (rev 01)
Kernel modules: shpchp
00:07.0 ISA bridge: Intel Corporation 82371AB/EB/MB PIIX4 ISA (rev 08)
Subsystem: VMware Virtual Machine Chipset
00:07.1 IDE interface: Intel Corporation 82371AB/EB/MB PIIX4 IDE (rev 01)
Subsystem: VMware Virtual Machine Chipset
Kernel driver in use: PIIX_IDE
Kernel modules: ata_piix
00:07.3 Bridge: Intel Corporation 82371AB/EB/MB PIIX4 ACPI (rev 08)
Subsystem: VMware Virtual Machine Chipset
Kernel modules: i2c-piix4
00:0f.0 VGA compatible controller: VMware SVGA II Adapter
Subsystem: VMware SVGA II Adapter
00:10.0 SCSI storage controller: LSI Logic / Symbios Logic 53c1030 PCI-X Fusion-MPT Dual Ultra320 SCSI (rev 01)
Kernel driver in use: mptspi
Kernel modules: mptspi
00:11.0 Ethernet controller: Advanced Micro Devices [AMD] 79c970 [PCnet32 LANCE] (rev 10)
Subsystem: Advanced Micro Devices [AMD] PCnet - Fast 79C971
Kernel driver in use: pcnet32
Kernel modules: pcnet32, vmxnet
~ # eselect kernel list
Available kernel symlink targets:
[1] linux-2.6.28-hardened-r7
[2] linux-2.6.28-hardened-r9
[3] linux-3.3.8-gentoo *
~ # uname -a
Linux 2.6.28-hardened-r9 #1 SMP Mon Apr 12 17:02:47 BST 2010 i686 Intel(R) Xeon(R) CPU X5450 @ 3.00GHz GenuineIntel GNU/Linux
~ # ls -al /usr/src/
total 12
drwxr-xr-x 5 root root 117 Sep 27 14:36 .
drwxr-xr-x 13 root root 4096 Nov 1 2005 ..
-rw-r--r-- 1 root root 0 Aug 31 2005 .keep
lrwxrwxrwx 1 root root 18 Sep 27 14:36 linux -> linux-3.3.8-gentoo
drwxr-xr-x 4 root root 84 Apr 12 2010 linux-2.6.28-hardened-r7
drwxr-xr-x 22 root root 4096 Jul 28 18:21 linux-2.6.28-hardened-r9
drwxr-xr-x 23 root root 4096 Sep 27 14:40 linux-3.3.8-gentoo
~ # cat /etc/fstab
/dev/sda1 /boot xfs defaults,noatime 1 2
/dev/sda2 swap swap sw 0 0
/dev/sda3 / xfs noatime 0 1
/dev/cdrom /mnt/cdrom auto defaults,noauto 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec,rw 0 0
|
as you can tell from above I am waiting for my boot to get mounted so that I can genkernel. |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Thu Sep 27, 2012 3:57 pm Post subject: |
|
|
okay, after all the tries, i have tried downgrading the udev but still no joy:
Code: |
* Messages for package sys-fs/udev-164-r2:
*
* udev-164 does not support Linux kernel before version 2.6.25!
* For a reliable udev, use at least kernel 2.6.27
*
* Updating persistent-net rules file
*
* persistent-net does assigning fixed names to network devices.
* If you have problems with the persistent-net rules,
* just delete the rules file
* rm /etc/udev/rules.d/70-persistent-net.rules
* and then reboot.
*
* This may however number your devices in a different way than they are now.
*
* If you build an initramfs including udev, then please
* make sure that the /sbin/udevadm binary gets included,
* and your scripts changed to use it,as it replaces the
* old helper apps udevinfo, udevtrigger, ...
*
* mount options for directory /dev are no longer
* set in /etc/udev/udev.conf, but in /etc/fstab
* as for other directories.
*
* If you use /dev/md/*, /dev/loop/* or /dev/rd/*,
* then please migrate over to using the device names
* /dev/md*, /dev/loop* and /dev/ram*.
* The devfs-compat rules have been removed.
* For reference see Bug #269359.
*
* Rules for /dev/hd* devices have been removed
* Please migrate to libata.
|
Last edited by midway on Fri Sep 28, 2012 8:30 am; edited 1 time in total |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
midway Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 01 Jun 2012 Posts: 181 Location: somewhr in the blighty
|
Posted: Fri Sep 28, 2012 8:21 am Post subject: |
|
|
Jaglover wrote: |
So it is not 3,0 ... let me Google ... here it is ...
mknod hda b 3 0
mknod hda1 b 3 1
|
sorry to be a pain jaglover. after I created the nod on 3 1 then it says the same as sda1
Code: |
~ # mknod hda b 3 0
~ # mknod hda1 b 3 1
~ # mount /dev/hda1 /boot
mount: special device /dev/hda1 does not exist
|
|
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
Jaglover Watchman
![Watchman Watchman](/images/ranks/rank-G-2-watchman.gif)
![](images/avatars/179708169458f2999e44e26.gif)
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Sat Sep 29, 2012 12:40 am Post subject: |
|
|
Alright this approach seems not to be working.
As I stated before I've no clue how vmware works.
A simple way to fix it with regular Gentoo install is to boot from a Linux liveCD and chroot. There has to be a way to boot this VM from a CD or CD image. I just do not know how. _________________ My Gentoo installation notes.
Please learn how to denote units correctly! |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|