ºìÁªLinuxÃÅ»§
Linux°ïÖú
µ±Ç°Î»ÖÃ: ºìÁªLinuxÃÅ»§ > SuSE

SLES9°²×°×ܽá--No root device found:exiting to /bin/sh

·¢²¼Ê±¼ä:2008-03-08 09:42:30À´Ô´:ºìÁª×÷Õß:Flindzvt
Notes£º°²×°SLES£¨Suse Linux Enterprise Server£©Ç°ÏÈ´ò¿ª°²×°ÅÌ£¬ËÑË÷¡°kernel¡±£¬¿´Æä°æ±¾ÊÇ·ñÓëÏëÒªµÄ°æ±¾Ïà·û£¨Í¨³£Îª2.6.5-7.97£©¡£Áí£¬SLES SP3²¹¶¡ÖÐkernelΪ2.6.5-7.244¡£

1¡¢SLES9°²×°¹ý³ÌÖиñʽ»¯Ó²ÅÌËÀ»úÎÊÌâ

£¨1£©ÏÖÏóÃèÊö
°´³£Ô¶¼û·½Ê½°²×°£¬¶àÊýÇé¿öÏ»á³öÏÖ¸ñʽ»¯LINUX·ÖÇøºóÓ²Å̵Ƴ¤ÁÁ£¬°²×°¹ý³ÌÎÞ·¨¼ÌÐøµÄÎÊÌ⣬ÎÞÂ۵ȶà¾Ã¡£¾Ý˵²âÊÔ²¿µÄ½â¾ö·½·¨¾ÍÊDz»¶Ï»»µçÄÔ£¬Ò»°ãÒª»»ËÄÎą̊£¬ÅöÇÉÁ˲ÅÄÜ×°ÉÏ¡£ÎÒ¾ÍûÅöÇÉ£¬»»ÁËÁùÆß̨Ҳ²»ÐС£

£¨2£©Ô­Òò·ÖÎö
¾ßÌåÔ­ÒòÊÇ£¬ÁªÏ뿪ÌìM4000¼ÆËã»úÓõÄÊÇSATA½Ó¿ÚµÄÓ²ÅÌ£¨¡°É豸¹ÜÀíÆ÷¡±ÖÐIDE¡¢SATAÓ²ÅÌÏÔʾµÄ¶¼ÊÇATA/ATAPI¿ØÖÆÆ÷£¬Ultra ATA¿ØÖÆÆ÷£¬ÕâÖÖ·½Ê½ºÃÏñ¿´²»³öÀ´ÊÇɶ½Ó¿Ú£©£¬¶øLINUXĬÈÏʹÓÃIDE½Ó¿ÚµÄÇý¶¯³ÌÐò£¬ËùÒÔ²»Óð²È«Ä£Ê½¾ÍÊÇ×°²»ÉÏ¡£

£¨3£© ½â¾ö·½·¨
żȻ·¢ÏÖ£¬ÔÚ°²×°½çÃæÉÏÑ¡800*600·Ö±æÂÊ£¬Í¬Ê±ÓÃSafe Settingsģʽ°²×°¾Í¿ÉÒÔ¼ÌÐø½øÐÐÏÂÈ¥¡£

2¡¢ÈçºÎ´ò²¹¶¡£¿
ÔÚ¹âÇýÖзÅÈëSP3-CD1£¬´ò¿ªYaST | Software | Patch CD Update£¬°´Ìáʾ²Ù×÷¼´¿É¡£

3¡¢SLES9´ò²¹¶¡²»Á¼Ó°ÏìÖ®Ò»£¬´ò²¹¶¡½áÊø£¬ÏµÍ³¶ªÊ§ÎÊÌâ¡£

£¨1£©ÏÖÏóÃèÊö
´ò²¹¶¡SP3ºóÖØÆôϵͳ£¬³öÏÖÈçÏÂÌáʾ£º

ÒýÓÃ:
¡­¡­

RAMDISK:Compressed image found at block 0

VFS:Mounted root(ext2 filesystem)

Starting udev

Creating devices

Loading kernel/drivers/scsi/scsi_mod.ko

SCSI subsystem initialized

Loading kernel/drivers/scsi/sd_mod.ko

Loading kernel/drivers/scsi/libata.ko

Loading kernel/drivers/scsi/ata_piix.ko

PCI:Found IRQ 11 for device 0000:00:1f.2

PCI:Sharing IRQ 11 with 0000:00:1f.3

PCI:Sharing IRQ 11 with 0000:01:02.0

Ata:0x170 IDE port busy

Ata:SATA max UDMA/133 cmd 0xF0 ctl 0x3F6 bmdma 0xF0000 irq 14

Ata1 dev 0 ata max UDMA/133,156301488 sectors

Ata1 dev 0 configured for UDMA/133

SCSI0:ata_pixx

Vendor: ATA Model WDC WD800BD-88JM Rev :05.0

Type:Direct-Access ANSI SCSI revision:05

SCSI device sda:156301488 512-byte hdwr sectors(80026M)

SCSI device sda:device cache:write back

Sda:sda1 sda2

Attached scsi disk sda at scsi0,channel 0,id0 iwn0

Loading kernel/fs/jbd/jbd.ko

Loading kernel/fs/ext3/ext3.ko

Waiting for device /dev/hda8 to appear:¡­¡­not found¡­ device nodes:

Console disk fb0 full input kmem kmsg loop0 loop1 loop2 loop3 loop4 loop5 loop6 loop7 md0 mem null port psaux ptmx ptya0 ptya1 ptya2 ptya3 ptya4 ptya5 ptya6 ptya7 ptya8 ptya9 ptyaa ptyab ptyac ptyad ptyae ptyaf ptyb0 ptyb1¡­¡­

No root device found:exiting to /bin/sh

Sh:can¡¯t access tty:job control turned off


È»ºó¾ÍʲôҲûÓÐÁË£¬ÏµÍ³¶ªÊ§£¬´ÓÆÁÄ»Ìáʾ¿´£¬´ËʱÒѾ­¹ýÁËgrub£¬´¦ÓÚlinux¼ÓÔعý³ÌÖУ¬ÏëÐÞ¸´±È½ÏÂé·³¡£

£¨2£©ÎÊÌâ·ÖÎö
¾­ÍøÉÏËÑË÷£¬µÃµ½¸÷Öִ𰸣¬ÓеÄ˵ӲÅÌÒÑÂú£¬ÓеĽ¨ÒéÊÖ¹¤ÐÞ¸´µÈµÈ£¬¾­³¢ÊÔ¸÷ÖÖ·½·¨¾ùʧ°Ü£¬Ö»ÓÐÈçÏÂÒ»Ìõ×îÖÕ×àЧ£¬

Talk about a shot in the dark... but here goes nothing. I'm going to make two assumptions, if either is wrong, forgive the wasted bandwidth and ignore the rest.

Are you using sata drive(s) and in your install before updates were they mounted as /dev/hdx?

I have heard that in some distros (don't know about sles) some kernel updates caused sata hard drives to be mounted as scsi devices where originally they were mounted as ide devices. Since I never really had the problem, I didn't read/persue the solutions very closely.

I seem to remember a suggestion to check the bios and set the sata drives as legacy or something like that in order to force the os to mount as regular ide type devices.

I also recall a suggestion to change /dev/hdx references in grub and fstab to /dev/sdx (might make a backup first).

As i said... a shot in the dark that I haven't tried/tested and may not even apply to you.

Good luck!

£¨3£© ½â¾ö·½·¨
ÉÏÊö×ÊÁÏÖÐ˵µÄÓëÉÏÃæÌùµÄLINUXÆô¶¯Ê§°ÜµÄÆÁÄ»Ìáʾ·Ç³£ÎǺϣ¬¾­³¢ÊÔ£¬µÚ¶þÖÖ·½·¨£¨¸ü¸Ägrub¼°/etc/fstabΪsdx£©²»×àЧ£¬ÓÚÊǵ½BIOSÀï¸ü¸ÄSATA×ÜÏß·ÃÎÊ·½Ê½£º

Integrated peripherals | OnChip IDE Device [Press Enter] | On-Chip Serial ATA[Auto]£¬¸ÄΪSATA Only£¨SATA is operating in legacy mode£©¡£

£¨4£©ÐÞ¸ÄBIOSµÄ²»Á¼Ó°Ï죺
°´ÉÏÊö·½·¨ÐÞ¸ÄBIOS£¬½«µ¼Ö¹âÇý²»¿ÉÓ㬰üÀ¨×Ô¶¯Òýµ¼¹¦ÄÜ£¨¼´Ê¹BIOSÖÐfirst boot deviceÑ¡CDROM£©¡£

4¡¢ ´ò²¹¶¡²»Á¼Ó°ÏìÖ®¶þ£¬grubÎÞ·¨½âÎöÅäÖÃÎļþ£¬Òýµ¼Ê§°Ü¡£

£¨1£©ÏÖÏóÃèÊö£º
´ò²¹¶¡SP3ºóÖØÆôϵͳ£¬ÔÚgrub½çÃæ³öÏÖÈçÏÂÌáʾ£º

¡­Parse error¡­

£¨2£©Ô­Òò·ÖÎö£º
ÕâÊÇÓÉÓÚ´ò²¹¶¡¹ý³ÌÖУ¬¸ü¸ÄÁËϵͳԭÀ´µÄgrubÅäÖÃÎļþ/boot/grub/memu.lstµ¼Ö¡£

CDÆô¶¯½øÈëϵͳºó·¢ÏÖ£¬menu.lstÒѱ»¸ÄΪÈçÏÂÄÚÈÝ£º

ÒýÓÃ:
#Modified by YaST2.Last modification on Fri Mar 7 16:52:57 2008

Color white/blue black/light-gray

Default 0

Time out 8

Gfxmenu(null)/

###Don¡¯t change this comment - YaST2 identifier:Original name:linux###

Title Linux

Kernel(null)/ root=vga=0x314 selinux=0 splash=silent ide=nodma apm=off acpi=off barrier=off resume=/dev/hda7 elevator=cfq showopts

Initrd(null)/

###Don¡¯t change this comment - YaST2 identifier:Original name:windows###

¡­¡­


×¢£º²å¾äÌâÍâ»°£¬½øϵͳºó·Ö±æÂʺÜÄѵ÷£¬Ò²²»ºÃÈ·¶¨µ½µ×ÊÇʲôÏÔ¿¨¼°ÏÔʾÆ÷£¬µ«·¢ÏÖ°²×°Ê±Ñ¡µÄ¸ß·Ö±æÂÊÁ¢¿Ì¾Í×àЧ£¬×îÖÕ·¢ÏÖÊÇͨ¹ýkernelÖеÄvga²ÎÊý´«¸øÄں˵ģ¬ÕâÑù¾Í¸²¸ÇÁËϵͳÖеÄ/etc/X11/XFree86configÖеÄÏÔʾÅäÖá£

³£¼û·ÖÎöÂʶÔÓ¦µÄ²ÎÊýÊÇ£¬

vga=0x314 800*600
vga=0x317 1024*768
vga=0x31a 1280*1024
´ÓÉÏÊöÄÚ¿ÉÖª£¬Òýµ¼Î»Öö¼±»¸ü¸ÄΪnullÁË£¬µ¼ÖÂgrubÎÞ·¨ÕÒµ½ÏµÍ³ËùÔÚµÄλÖá£

£¨3£©½â¾ö·½·¨£º
°Ñ/boot/grub/menu.lst¸ÄΪÈçÏÂÄÚÈÝ£¬ÖØÆô¶¯ÏµÍ³¼´¿É£º

ÒýÓÃ:
#Modified by YaST2.Last modification on Fri Mar 7 16:52:57 2008

Color white/blue black/light-gray

Default 0

Time out 8

Gfxmenu(hd0,7)/boot/message

###Don¡¯t change this comment - YaST2 identifier:Original name:linux###

Title Linux

Kernel(hd0,7)/boot/vmlinuz root=vga=0x314 selinux=0 splash=silent ide=nodma apm=off acpi=off barrier=off resume=/dev/hda7 elevator=cfq showopts

Initrd(hd0,7)/boot/initrd

###Don¡¯t change this comment - YaST2 identifier:Original name:windows###

¡­¡­


ÉÏÊöÄÚÈÝÖС°£¨hd0,7£©¡±Îª±¾PCÖÐSLESµÄ°²×°Î»Ö㬶ÁÕßÔÚÆäËûPCÉÏ°²×°Ê±£¬Çë¸ù¾Ý¾ßÌåÇé¿öÐ޸ġ£
ÎÄÕÂÆÀÂÛ

¹²ÓÐ 0 ÌõÆÀÂÛ