LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 01-14-2013, 03:03 PM   #1
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Rep: Reputation: 45
Initrd does not contain /dev/sda1 (so does not boot)


Hi everyone,
after upgrading from opensuse 11.2 to 12.1 my system can not boot. Actually it fails to boot at the very first stages (grub has something like root=/dev/sda3 but the device is never found). I have tried a bit and I think I gathered important debugging information.


the grub/menu.lst

Code:
# Modified by YaST2. Last modification on Mon Jan 14 17:49:18 CET 2013
# THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
# For the new kernel it try to figure out old parameters. In case we are not able to recognize it (e.g. change of flavor or strange install order ) it it use as fallback installation parameters from /etc/sysconfig/bootloader

default 2
timeout 8
##YaST - generic_mbr
gfxmenu (hd0,1)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: linux###
title openSUSE 12.1 - 3.4.11-2.16 (default)
    root (hd0,1)
    kernel /vmlinuz-3.4.11-2.16-default root=/dev/sda3 splash=0 resume=/dev/sda6 splash=silent quiet showopts vga=0x31a
    initrd /initrd-3.4.11-2.16-default

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Failsafe -- openSUSE 12.1 - 3.4.11-2.16 (default)
    root (hd0,1)
I also followed the instructions, provided on first page to unpack the initrd


Code:
zcat /media/boot/initrd-3.4.11-2.16-desktop | cpio -imduv
Inside initrd's etc/ there is no file called
mdadm.conf

and dev/ is empty (probably this explains a lot)

What else might be needed? Hm...
my /grub/device.map looks like that


Code:
(fd0)   /dev/fd0
(hd0)   /dev/disk/by-id/ata-WDC_WD20EVDS-63T3B0_WD-WCAVY6660374
What should I do now? How to make opensuse boot again?

Alex
 
Old 01-14-2013, 03:12 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
What are your partition layout? If you don't know boot to a live-CD and launch, as root, the command
Code:
fdisk -l
 
Old 01-14-2013, 04:59 PM   #3
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: Slackware, Ubuntu, PCLinux,
Posts: 10,485

Rep: Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485Reputation: 2485
You menu.lst file has "root (hd0,1) which would be sda2 in Grub Legacy and your kernel line has "root=/dev/sda3". More info suggested above would help.
 
Old 01-15-2013, 01:47 AM   #4
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
Indeed you are right. Please find the full "collection" and description




at grub I receive the following messages (as system is down and could not copy paste please find screnhots)before booting halts.
http://imageshack.us/photo/my-images...oto0178hm.jpg/


Other files needed for troubleshooting are given below
Code:
 # Modified by YaST2. Last modification on Mon Jan 14 17:49:18 CET 2013
 # THIS FILE WILL BE PARTIALLY OVERWRITTEN by perl-Bootloader
 # For the new kernel it try to figure out old parameters. In case we are
 not able to recognize it (e.g. change of flavor or strange install order )
 it it use as fallback installation parameters from
 /etc/sysconfig/bootloader
 default 2
 timeout 8
 ##YaST - generic_mbr
 gfxmenu (hd0,1)/message
 
##YaST - activate
 ###Don't change this comment - YaST2 identifier: Original name: linux###
 title openSUSE 12.1 - 3.4.11-2.16 (default)
     root (hd0,1)
     kernel /vmlinuz-3.4.11-2.16-default root=/dev/sda3 splash=0
 resume=/dev/sda6 splash=silent quiet showopts vga=0x31a
     initrd /initrd-3.4.11-2.16-default
 
###Don't change this comment - YaST2 identifier: Original name: failsafe###
 title Failsafe -- openSUSE 12.1 - 3.4.11-2.16 (default)
     root (hd0,1)
     kernel /vmlinuz-3.4.11-2.16-default root=/dev/sda3 showopts apm=off
 noresume edd=off powersaved=off nohz=off highres=off
 processor.max_cstate=1 nomodeset  x11failsafe vga=0x31a
     initrd /initrd-3.4.11-2.16-default
 
###Don't change this comment - YaST2 identifier: Original name: linux###
 title Desktop -- openSUSE 12.1 - 3.4.11-2.16
     root (hd0,1)
     kernel /vmlinuz-3.4.11-2.16-desktop root=/dev/sda3 splash=0
 resume=/dev/sda6 splash=silent quiet showopts vga=0x31a
     initrd /initrd-3.4.11-2.16-desktop
 
###Don't change this comment - YaST2 identifier: Original name: failsafe###
 title Failsafe -- openSUSE 12.1 - 3.4.11-2.16 (desktop)
     root (hd0,1)
     kernel /vmlinuz-3.4.11-2.16-desktop root=/dev/sda3 showopts apm=off
 noresume edd=off powersaved=off nohz=off highres=off
 processor.max_cstate=1 nomodeset  x11failsafe vga=0x31a
     initrd /initrd-3.4.11-2.16-desktop
 
###Don't change this comment - YaST2 identifier: Original name: floppy###
 title Diskette
     rootnoverify (fd0)
     chainloader +1
 
###Don't change this comment - YaST2 identifier: Original name: other###
 title Windows 7
     map (hd0) (hd0)
     map (hd0) (hd0)
     rootnoverify (hd0,0)
     makeactive
     chainloader +1

Code:
 
device.map
 (fd0)   /dev/fd0
 (hd0)   /dev/disk/by-id/ata-WDC_WD20EVDS-63T3B0_WD-WCAVY6660374
 ~


Code:
linux:/home/linux # fdisk -l
 
Disk /dev/sda: 2000.4 GB, 2000398934016 bytes
 255 heads, 63 sectors/track, 243201 cylinders, total 3907029168 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0x0000a718
 
   Device Boot      Start         End      Blocks   Id  System
 /dev/sda1   *          63   524297339   262148638+   7  HPFS/NTFS/exFAT
 /dev/sda2       524297340   526353659     1028160   83  Linux
 /dev/sda3       526353660   780309179   126977760   83  Linux
 /dev/sda4       780309180  3907024064  1563357442+   f  W95 Ext'd (LBA)
 /dev/sda5       780309243  3894156062  1556923410   83  Linux
 /dev/sda6      3894157312  3907022847     6432768   82  Linux swap / Solaris
 
Disk /dev/sdb: 32.0 GB, 32015122432 bytes
 21 heads, 21 sectors/track, 141790 cylinders, total 62529536 sectors
 Units = sectors of 1 * 512 = 512 bytes
 Sector size (logical/physical): 512 bytes / 512 bytes
 I/O size (minimum/optimal): 512 bytes / 512 bytes
 Disk identifier: 0xc3072e18
 
   Device Boot      Start         End      Blocks   Id  System
 /dev/sdb1   *        8064    62529535    31260736    c  W95 FAT32 (LBA)
 

contents of boot partitions


and the contents of boot directory



Code:
-rw------- 1 root root      512 Nov  3 10:22 backup_mbr
 lrwxrwxrwx 1 root root        1 Aug 29 05:38 boot -> .
 -rw-r--r-- 1 root root     1236 Oct 25  2011 boot.readme
 -rw-r--r-- 1 root root   131150 Oct  4 20:56 config-3.4.11-2.16-default
 -rw-r--r-- 1 root root   131351 Oct  4 20:56 config-3.4.11-2.16-desktop
 drwxr-xr-x 2 root root     4096 Jan 15 07:31 grub
 lrwxrwxrwx 1 root root       26 Jan 14 16:49 initrd ->
 initrd-3.4.11-2.16-default
 -rw-r--r-- 1 root root 13668583 Jan 14 16:50 initrd-3.4.11-2.16-default
 -rw-r--r-- 1 root root 13314471 Jan 14 16:51 initrd-3.4.11-2.16-desktop
 drwx------ 2 root root    16384 Aug 28 12:19 lost+found
 -rw-r--r-- 1 root root   582656 Jan 14 16:44 message
 -rw-r--r-- 1 root root   634719 Oct  4 22:08 symtypes-3.4.11-2.16-default.gz
 -rw-r--r-- 1 root root   635604 Oct  4 23:02 symtypes-3.4.11-2.16-desktop.gz
 -rw-r--r-- 1 root root   222417 Oct  4 22:04 symvers-3.4.11-2.16-default.gz
 -rw-r--r-- 1 root root   222379 Oct  4 22:51 symvers-3.4.11-2.16-desktop.gz
 -rw-r--r-- 1 root root      409 Oct  4 22:04 sysctl.conf-3.4.11-2.16-default
 -rw-r--r-- 1 root root      520 Oct  4 22:51 sysctl.conf-3.4.11-2.16-desktop
 -rw-r--r-- 1 root root  2405545 Oct  4 21:52 System.map-3.4.11-2.16-default
 -rw-r--r-- 1 root root  2487319 Oct  4 22:30 System.map-3.4.11-2.16-desktop
 -rw-r--r-- 1 root root  5467969 Oct  4 22:04 vmlinux-3.4.11-2.16-default.gz
 -rw-r--r-- 1 root root  5719500 Oct  4 22:50 vmlinux-3.4.11-2.16-desktop.gz
 lrwxrwxrwx 1 root root       27 Jan 14 16:49 vmlinuz ->
 vmlinuz-3.4.11-2.16-default
 -rw-r--r-- 1 root root  4694960 Oct  4 21:52 vmlinuz-3.4.11-2.16-default
 -rw-r--r-- 1 root root  4919280 Oct  4 22:30 vmlinuz-3.4.11-2.16-desktop
What else do you think might be needed to fix that ?

Regards
Alex

Last edited by alaios; 01-15-2013 at 06:08 AM.
 
Old 01-15-2013, 06:06 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The links to the screenshots are missing, please post them again.
 
Old 01-15-2013, 06:08 AM   #6
alaios
Senior Member
 
Registered: Jan 2003
Location: Aachen
Distribution: Opensuse 11.2 (nice and steady)
Posts: 2,203

Original Poster
Rep: Reputation: 45
http://imageshack.us/photo/my-images...oto0178hm.jpg/
fixed also at first post
 
Old 01-15-2013, 06:43 AM   #7
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It seems that your initrd is corrupt, it is even missing commands. I don't know which command it is on openSuse (maybe it is even possible with Yast), but all distros have a command to rebuilt the initrd.
I would recommend to try that.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Archived /dev/sda1/home by accident - system unable to boot moraxu Linux - Newbie 7 12-26-2012 12:02 PM
[SOLVED] Cannot see /dev/sda1 boot in LUKS - LVM setup hua Slackware 4 09-29-2012 08:30 AM
Technical question: /dev/sda1 vs /mnt/sda1 macnab Linux - Newbie 5 01-03-2012 04:58 AM
Mint 6 install fails to boot dev/sda1/ does not exist JimboJuggs Linux - Distributions 9 03-06-2009 08:57 AM
Grub Dual Boot /dev/sda1 /dev/hda1 jono268 Debian 4 01-14-2005 04:54 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 10:56 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration