Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Resolved: Grub or kernel issue?
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware
View previous topic :: View next topic  
Author Message
beacher
n00b
n00b


Joined: 11 Mar 2003
Posts: 30
Location: Atlanta

PostPosted: Sun Nov 08, 2009 2:09 pm    Post subject: Resolved: Grub or kernel issue? Reply with quote

I've spent more time than I'd like on this but apparently not enough because it's not fixed. So I have this mediatomb server that's been serving up my house just fine for the past 18 months and it's time to upgrade the storage. I bought a cheap sata raid cardand a pair of WD WD10EADS 1TB 32M drives and put them in. I've used softraid on the existing drives, so I know my mdadm softraid+XFS boot works just fine. So, after I put the new drives in, I go to boot and I get past the grub menu and into the boot
Code:

VFS: Insert root floppy and press ENTER
Root-NFS: No NFS server available, giving up.
VFS: Unable to mount root fs via NFS, trying floppy.
VFS: Insert root floppy and press ENTER


Now, if I shut it down and yank the sata connections, it boots fine - I wait until it gets into the initlevels and I can plug the drives into the new controller just fine. When I log in, I can use mke2fs, mdadm on them just fine, and they're formatted ext3 right now because eventually I want to encrypt them. I haven't put any data on them right now because I'm not sure how well it would work with me constantly yanking the cables out to get it to boot.

So here's my lspci -k
Code:

fileserv ~ # lspci -k
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 Controller (rev a3)
        Kernel driver in use: ohci_hcd
00:02.1 USB Controller: nVidia Corporation MCP61 USB Controller (rev a3)
        Kernel driver in use: ehci_hcd
00:04.0 PCI bridge: nVidia Corporation MCP61 PCI bridge (rev a1)
00:05.0 Audio device: nVidia Corporation MCP61 High Definition Audio (rev a2)
00:06.0 IDE interface: nVidia Corporation MCP61 IDE (rev a2)
        Kernel driver in use: AMD_IDE
00:07.0 Bridge: nVidia Corporation MCP61 Ethernet (rev a2)
        Kernel driver in use: forcedeth
00:08.0 IDE interface: nVidia Corporation MCP61 SATA Controller (rev a2)
        Kernel driver in use: sata_nv
00:09.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
        Kernel driver in use: pcieport-driver
00:0b.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
        Kernel driver in use: pcieport-driver
00:0c.0 PCI bridge: nVidia Corporation MCP61 PCI Express bridge (rev a2)
        Kernel driver in use: pcieport-driver
00:0d.0 VGA compatible controller: nVidia Corporation GeForce 6100 nForce 405 (rev a2)
00:18.0 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] HyperTransport Technology Configuration
00:18.1 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Address Map
00:18.2 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] DRAM Controller
00:18.3 Host bridge: Advanced Micro Devices [AMD] K8 [Athlon64/Opteron] Miscellaneous Control
04:00.0 SATA controller: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)
        Kernel driver in use: ahci
04:00.1 IDE interface: JMicron Technologies, Inc. JMicron 20360/20363 AHCI Controller (rev 03)
        Kernel driver in use: JMicron IDE


my /etc/fstab
Code:

# <fs>                  <mountpoint>    <type>          <opts>          <dump/pass>
/dev/sda1               /boot           xfs             noauto,noatime  1 2
/dev/sda3               /               xfs             noatime         0 1
/dev/sda2               none            swap            sw              0 0
/dev/cdrom              /mnt/cdrom      auto            noauto,ro       0 0
/dev/md0                /raid           xfs             noatime         0 1
#/dev/fd0               /mnt/floppy     auto            noauto          0 0
/dev/sdb3               /offline        xfs             noatime         0 1
/dev/md4                /storage/raid300 ext3           noatime         0 1
/dev/md3                /storage/raid700 ext3           noatime         0 1

shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


My /etc/mdadm.conf
Code:

ARRAY /dev/md0 devices=/dev/sda4,/dev/sdb4 level=raid1 num-devices=2 UUID=9eb5fb4d:9cb68b77:012418e9:e11cbd41
ARRAY /dev/md3 devices=/dev/sdc1,/dev/sdd1 level=raid1 num-devices=2 UUID=dc4e84e7:e3017334:adb00620:96f0bb18
ARRAY /dev/md4 devices=/dev/sdc2,/dev/sdd2 level=raid1 num-devices=2 UUID=03be6023:1768b382:2476b45b:36f60a54


My /proc/partitions
Code:

fileserv ~ # cat /proc/partitions
major minor  #blocks  name

   1     0       4096 ram0
   1     1       4096 ram1
   1     2       4096 ram2
   1     3       4096 ram3
   1     4       4096 ram4
   1     5       4096 ram5
   1     6       4096 ram6
   1     7       4096 ram7
   1     8       4096 ram8
   1     9       4096 ram9
   1    10       4096 ram10
   1    11       4096 ram11
   1    12       4096 ram12
   1    13       4096 ram13
   1    14       4096 ram14
   1    15       4096 ram15
   8     0  488386584 sda
   8     1     104391 sda1
   8     2     987997 sda2
   8     3   48837600 sda3
   8     4  438454012 sda4
   8    16  488386584 sdb
   8    17     104391 sdb1
   8    18     987997 sdb2
   8    19   48837600 sdb3
   8    20  438454012 sdb4
   9     0  438453888 md0
   8    32  976762584 sdc
   8    33  683597848 sdc1
   8    34  293162152 sdc2
   8    48  976762584 sdd
   8    49  683597848 sdd1
   8    50  293162152 sdd2


My /boot/grub/grub.conf ( I currently boot into /boot/kernel_raid_jmicron - I'm in the process of emerging -U world and also tried to get this to work with 2.6.30 but couldn't )
Code:

default 0
timeout 15
#splashimage=(hd0,0)/boot/grub/splash.xpm.gz

title Gentoo RAID Linux 2.6.30-r8 JMicron Support
root (hd0,0)
kernel /boot/kernel_raid_2630 root=/dev/sda3

title Gentoo RAID Linux 2.6.24-r5 JMicron Support
root (hd0,0)
kernel /boot/kernel_raid_jmicron root=/dev/sda3

title Gentoo RAID Linux 2.6.24-r5
root (hd0,0)
kernel /boot/kernel_raid root=/dev/sda3

title Gentoo Linux 2.6.24-r5
root (hd0,0)
kernel /boot/kernel root=/dev/sda3



My /usr/src -
Code:

fileserv ~ # cd /usr/src/
fileserv src # ls -la
total 16
drwxr-xr-x  5 root root  117 Nov  7 21:51 .
drwxr-xr-x 15 root root 4096 Aug  9  2008 ..
-rw-r--r--  1 root root    0 Jun 11  2008 .keep
lrwxrwxrwx  1 root root   22 Aug  3  2008 linux -> linux-2.6.25-gentoo-r7
drwxr-xr-x 22 root root 4096 Nov  8 19:57 linux-2.6.25-gentoo-r7
drwxr-xr-x 22 root root 4096 Jan 30  2009 linux-2.6.28-gentoo-r1
drwxr-xr-x 23 root root 4096 Nov  8 20:47 linux-2.6.30-gentoo-r8


Parts of my /usr/src/linux/.config
Code:

CONFIG_IDE=y
CONFIG_BLK_DEV_IDE=y

#
# Please see Documentation/ide/ide.txt for help/info on IDE drives
#
# CONFIG_BLK_DEV_IDE_SATA is not set
# CONFIG_BLK_DEV_HD_IDE is not set
CONFIG_BLK_DEV_IDEDISK=y
CONFIG_IDEDISK_MULTI_MODE=y
CONFIG_BLK_DEV_IDECD=y
CONFIG_BLK_DEV_IDECD_VERBOSE_ERRORS=y
# CONFIG_BLK_DEV_IDETAPE is not set
# CONFIG_BLK_DEV_IDEFLOPPY is not set
# CONFIG_BLK_DEV_IDESCSI is not set
CONFIG_BLK_DEV_IDEACPI=y
# CONFIG_IDE_TASK_IOCTL is not set
CONFIG_IDE_PROC_FS=y

#
# IDE chipset support/bugfixes
#
CONFIG_IDE_GENERIC=y
# CONFIG_BLK_DEV_PLATFORM is not set
# CONFIG_BLK_DEV_CMD640 is not set
# CONFIG_BLK_DEV_IDEPNP is not set
CONFIG_BLK_DEV_IDEDMA_SFF=y

#
# PCI IDE chipsets support
#
CONFIG_BLK_DEV_IDEPCI=y
CONFIG_IDEPCI_PCIBUS_ORDER=y
# CONFIG_BLK_DEV_OFFBOARD is not set
# CONFIG_BLK_DEV_GENERIC is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_GENERIC is not set
# CONFIG_BLK_DEV_OPTI621 is not set
# CONFIG_BLK_DEV_RZ1000 is not set
CONFIG_BLK_DEV_IDEDMA_PCI=y
# CONFIG_BLK_DEV_AEC62XX is not set
# CONFIG_BLK_DEV_ALI15X3 is not set
CONFIG_BLK_DEV_AMD74XX=y
CONFIG_BLK_DEV_ATIIXP=y
# CONFIG_BLK_DEV_CMD64X is not set
# CONFIG_BLK_DEV_TRIFLEX is not set
# CONFIG_BLK_DEV_CY82C693 is not set
# CONFIG_BLK_DEV_CS5520 is not set
# CONFIG_BLK_DEV_CS5530 is not set
# CONFIG_BLK_DEV_CS5535 is not set
# CONFIG_BLK_DEV_HPT34X is not set
# CONFIG_BLK_DEV_HPT366 is not set
CONFIG_BLK_DEV_JMICRON=y
# CONFIG_BLK_DEV_SC1200 is not set
CONFIG_BLK_DEV_PIIX=y
# CONFIG_BLK_DEV_IT8213 is not set
# CONFIG_BLK_DEV_IT821X is not set
# CONFIG_BLK_DEV_NS87415 is not set
# CONFIG_BLK_DEV_PDC202XX_OLD is not set
CONFIG_BLK_DEV_PDC202XX_NEW=y
# CONFIG_BLK_DEV_SVWKS is not set
# CONFIG_BLK_DEV_SIIMAGE is not set
# CONFIG_BLK_DEV_SIS5513 is not set
# CONFIG_BLK_DEV_SLC90E66 is not set
# CONFIG_BLK_DEV_TRM290 is not set
# CONFIG_BLK_DEV_VIA82CXXX is not set
# CONFIG_BLK_DEV_TC86C001 is not set
CONFIG_BLK_DEV_IDEDMA=y
CONFIG_IDE_ARCH_OBSOLETE_INIT=y
# CONFIG_BLK_DEV_HD is not set

#


#
# SCSI device support
#
CONFIG_RAID_ATTRS=y
CONFIG_SCSI=y
CONFIG_SCSI_DMA=y
# CONFIG_SCSI_TGT is not set
CONFIG_SCSI_NETLINK=y
CONFIG_SCSI_PROC_FS=y

#
# SCSI support type (disk, tape, CD-ROM)
#
CONFIG_BLK_DEV_SD=y
# CONFIG_CHR_DEV_ST is not set
# CONFIG_CHR_DEV_OSST is not set
CONFIG_BLK_DEV_SR=y
# CONFIG_BLK_DEV_SR_VENDOR is not set
CONFIG_CHR_DEV_SG=y
# CONFIG_CHR_DEV_SCH is not set

#
# Some SCSI devices (e.g. CD jukebox) support multiple LUNs
#
# CONFIG_SCSI_MULTI_LUN is not set
CONFIG_SCSI_CONSTANTS=y
# CONFIG_SCSI_LOGGING is not set
# CONFIG_SCSI_SCAN_ASYNC is not set
CONFIG_SCSI_WAIT_SCAN=m

#
# SCSI Transports
#
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
CONFIG_SCSI_SPI_ATTRS=y
CONFIG_SCSI_FC_ATTRS=y
# CONFIG_SCSI_ISCSI_ATTRS is not set
# CONFIG_SCSI_SAS_LIBSAS is not set
# CONFIG_SCSI_SRP_ATTRS is not set
CONFIG_SCSI_LOWLEVEL=y
# CONFIG_ISCSI_TCP is not set
# CONFIG_BLK_DEV_3W_XXXX_RAID is not set
# CONFIG_SCSI_3W_9XXX is not set
# CONFIG_SCSI_ACARD is not set
# CONFIG_SCSI_AACRAID is not set
# CONFIG_SCSI_AIC7XXX is not set
# CONFIG_SCSI_AIC7XXX_OLD is not set
CONFIG_SCSI_AIC79XX=y
CONFIG_AIC79XX_CMDS_PER_DEVICE=32
CONFIG_AIC79XX_RESET_DELAY_MS=4000
# CONFIG_AIC79XX_DEBUG_ENABLE is not set
CONFIG_AIC79XX_DEBUG_MASK=0
# CONFIG_AIC79XX_REG_PRETTY_PRINT is not set
# CONFIG_SCSI_AIC94XX is not set
# CONFIG_SCSI_DPT_I2O is not set
# CONFIG_SCSI_ADVANSYS is not set
# CONFIG_SCSI_ARCMSR is not set
# CONFIG_MEGARAID_NEWGEN is not set
# CONFIG_MEGARAID_LEGACY is not set
# CONFIG_MEGARAID_SAS is not set
# CONFIG_SCSI_HPTIOP is not set
# CONFIG_SCSI_BUSLOGIC is not set
# CONFIG_SCSI_DMX3191D is not set
# CONFIG_SCSI_EATA is not set
# CONFIG_SCSI_FUTURE_DOMAIN is not set
# CONFIG_SCSI_GDTH is not set
# CONFIG_SCSI_IPS is not set
# CONFIG_SCSI_INITIO is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_INIA100 is not set
# CONFIG_SCSI_MVSAS is not set
# CONFIG_SCSI_STEX is not set
# CONFIG_SCSI_SYM53C8XX_2 is not set
# CONFIG_SCSI_IPR is not set
# CONFIG_SCSI_QLOGIC_1280 is not set
# CONFIG_SCSI_QLA_FC is not set
# CONFIG_SCSI_QLA_ISCSI is not set
# CONFIG_SCSI_LPFC is not set
# CONFIG_SCSI_DC395x is not set
# CONFIG_SCSI_DC390T is not set
# CONFIG_SCSI_NSP32 is not set
# CONFIG_SCSI_DEBUG is not set
# CONFIG_SCSI_SRP is not set
CONFIG_ATA=y
# CONFIG_ATA_NONSTANDARD is not set
CONFIG_ATA_ACPI=y
CONFIG_SATA_AHCI=y
# CONFIG_SATA_SVW is not set
CONFIG_ATA_PIIX=y
# CONFIG_SATA_MV is not set
CONFIG_SATA_NV=y
# CONFIG_PDC_ADMA is not set
# CONFIG_SATA_QSTOR is not set
# CONFIG_SATA_PROMISE is not set
# CONFIG_SATA_SX4 is not set
# CONFIG_SATA_SIL is not set
# CONFIG_SATA_SIL24 is not set
# CONFIG_SATA_SIS is not set
# CONFIG_SATA_ULI is not set
# CONFIG_SATA_VIA is not set
# CONFIG_SATA_VITESSE is not set
# CONFIG_SATA_INIC162X is not set
CONFIG_PATA_ACPI=y
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ALI is not set
# CONFIG_PATA_AMD is not set
# CONFIG_PATA_ARTOP is not set
CONFIG_PATA_ATIIXP=y
# CONFIG_PATA_CMD640_PCI is not set
# CONFIG_PATA_CMD64X is not set
# CONFIG_PATA_CS5520 is not set
# CONFIG_PATA_CS5530 is not set
# CONFIG_PATA_CS5535 is not set
# CONFIG_PATA_CS5536 is not set
# CONFIG_PATA_CYPRESS is not set
# CONFIG_PATA_EFAR is not set
# CONFIG_ATA_GENERIC is not set
# CONFIG_PATA_HPT366 is not set
# CONFIG_PATA_HPT37X is not set
# CONFIG_PATA_HPT3X2N is not set
# CONFIG_PATA_HPT3X3 is not set
# CONFIG_PATA_IT821X is not set
# CONFIG_PATA_IT8213 is not set
CONFIG_PATA_JMICRON=y
# CONFIG_PATA_TRIFLEX is not set
# CONFIG_PATA_MARVELL is not set
# CONFIG_PATA_MPIIX is not set
# CONFIG_PATA_OLDPIIX is not set
# CONFIG_PATA_NETCELL is not set
# CONFIG_PATA_NINJA32 is not set
# CONFIG_PATA_NS87410 is not set
# CONFIG_PATA_NS87415 is not set
# CONFIG_PATA_OPTI is not set
# CONFIG_PATA_OPTIDMA is not set
# CONFIG_PATA_PDC_OLD is not set
# CONFIG_PATA_RADISYS is not set
# CONFIG_PATA_RZ1000 is not set
# CONFIG_PATA_SC1200 is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_SERVERWORKS is not set
# CONFIG_PATA_PDC2027X is not set
# CONFIG_PATA_SIL680 is not set
# CONFIG_PATA_SIS is not set
# CONFIG_PATA_VIA is not set
# CONFIG_PATA_WINBOND is not set
CONFIG_MD=y
CONFIG_BLK_DEV_MD=y
CONFIG_MD_LINEAR=y
CONFIG_MD_RAID0=y
CONFIG_MD_RAID1=y
CONFIG_MD_RAID10=y
CONFIG_MD_RAID456=y
CONFIG_MD_RAID5_RESHAPE=y
CONFIG_MD_MULTIPATH=y
# CONFIG_MD_FAULTY is not set
CONFIG_BLK_DEV_DM=y
# CONFIG_DM_DEBUG is not set
CONFIG_DM_CRYPT=y
# CONFIG_DM_SNAPSHOT is not set
# CONFIG_DM_MIRROR is not set
# CONFIG_DM_ZERO is not set
# CONFIG_DM_MULTIPATH is not set
# CONFIG_DM_DELAY is not set
# CONFIG_DM_UEVENT is not set
# CONFIG_BLK_DEV_DM_BBR is not set
CONFIG_FUSION=y
CONFIG_FUSION_SPI=y
# CONFIG_FUSION_FC is not set
# CONFIG_FUSION_SAS is not set
CONFIG_FUSION_MAX_SGE=128
# CONFIG_FUSION_CTL is not set
# CONFIG_FUSION_LOGGING is not set




And... I went into my BIOS and absolutely made sure my existing 500G pair is the first in the boot order ( bot in drive order as well as channel ( floppy/cd/network/external) order.

I'm missing something and it's really driving me nets.... Please help!

Todd


Last edited by beacher on Sun Nov 08, 2009 4:26 pm; edited 1 time in total
Back to top
View user's profile Send private message
DONAHUE
Watchman
Watchman


Joined: 09 Dec 2006
Posts: 7651
Location: Goose Creek SC

PostPosted: Sun Nov 08, 2009 3:47 pm    Post subject: Reply with quote

Likely a drive attached to the new controller has jumped into line as sda3.
when grub starts, drop into the edit mode (enter e) on the choice that boots with the new controller removed. Then edit (select the kernel line and enter e) the root=/dev/sda3 to root=sdc3. Then enter and enter b to try to boot.
Back to top
View user's profile Send private message
beacher
n00b
n00b


Joined: 11 Mar 2003
Posts: 30
Location: Atlanta

PostPosted: Sun Nov 08, 2009 4:26 pm    Post subject: Reply with quote

DONAHUE wrote:
Likely a drive attached to the new controller has jumped into line as sda3.
when grub starts, drop into the edit mode (enter e) on the choice that boots with the new controller removed. Then edit (select the kernel line and enter e) the root=/dev/sda3 to root=sdc3. Then enter and enter b to try to boot.


You're exactly right ;) I didn't pay attention during the boot and the drives on the NForce reported as HDD2 and HDD3 and the JMicron ones showed up as HDD0 and 1.. I edited my mdadm.conf, grub.conf, fstab and mtab with the new values and it came up like a champ ;) Thanks!!!!!!!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Kernel & Hardware 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