Fedora Linux Support Community & Resources Center

Go Back   FedoraForum.org > Fedora 17/18 > Using Fedora
FedoraForum Search

Forgot Password? Join Us!

Using Fedora General support for current versions. Ask questions about Fedora and it's software that do not belong in any other forum.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 30th May 2008, 08:45 AM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
initrd has disappeared

Hi!
My grub.conf has disappeared like also my initrd-2.6.25-14.fc9.i686 file too.

I don't wanna reinstall the system. Before, on that time a rescue disk existed, I went into a chroot enviroment and from there I could made my changes. Is it possible with a F9 Live CD? Or is there other solutions out there?

/ Patrik
Reply With Quote
  #2  
Old 30th May 2008, 12:56 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
With live CD its even easier.

1. Boot to the live CD
2. Mount the F9 partition
3. chroot to the F9 partition.
4. ls /boot verify other contents are present (vmlinuz-xxx etc)
5. mkinitrd initrd.img-kernelversion kernelversion
6. reboot.
__________________
Robot Nite - Designated device drivers drink free
Reply With Quote
  #3  
Old 30th May 2008, 03:08 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
/boot was empty...
Reply With Quote
  #4  
Old 30th May 2008, 04:23 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
While in chroot environment can you please try the following.

1. mount -a
2. fdisk -ls
3. ifconfig

Please post the output of the above here.
__________________
Robot Nite - Designated device drivers drink free
Reply With Quote
  #5  
Old 31st May 2008, 01:04 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
Here is the output:

Code:
[root@localhost boot]# mount -a
mount: special device UUID=88d71295-cbeb-4c5a-9604-64fffd47a810 does not exist
mount: mount point /dev/shm does not exist
mount: mount point /dev/pts does not exist
[root@localhost boot]# /sbin/fdisk -ls
cannot open /proc/partitions
[root@localhost boot]# /sbin/ifconfig 
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
lo        Link encap:Local Loopback  
          inet addr:127.0.0.1  Mask:255.0.0.0
          UP LOOPBACK RUNNING  MTU:16436  Metric:1

Warning: cannot open /proc/net/dev (No such file or directory). Limited output.
wlan0     Link encap:Ethernet  HWaddr 00:1D:E0:B5:06:AF  
          inet addr:192.168.1.3  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1

[root@localhost boot]#
Reply With Quote
  #6  
Old 31st May 2008, 01:16 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Ok its not the output I would have to liked to see

Can you please post the /etc/fstab of your system

Code:
 cat /etc/fstab
Edit:
Can you please post the output of fdisk -ls from outside the chroot environment?
__________________
Robot Nite - Designated device drivers drink free

Last edited by notageek; 31st May 2008 at 01:28 PM.
Reply With Quote
  #7  
Old 31st May 2008, 01:24 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
From the chroot environment

Code:
[root@localhost boot]# cat /etc/fstab 
UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7 /                       ext3    defaults        1 1
UUID=88d71295-cbeb-4c5a-9604-64fffd47a810 /boot                   ext3    defaults        1 2
tmpfs                   /dev/shm                tmpfs   defaults        0 0
devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
sysfs                   /sys                    sysfs   defaults        0 0
proc                    /proc                   proc    defaults        0 0
UUID=d7bae448-0bed-4fdd-9026-c8928a39657a swap                    swap    defaults        0 0
[root@localhost boot]#
Reply With Quote
  #8  
Old 31st May 2008, 01:30 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Please try the following.

Code:
findfs UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7

findfs UUID=88d71295-cbeb-4c5a-9604-64fffd47a810
__________________
Robot Nite - Designated device drivers drink free
Reply With Quote
  #9  
Old 31st May 2008, 01:36 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
Code:
[root@localhost ~]# /sbin/findfs UUID=cc9cedeb-1f14-4cf7-8b4e-ce05acd8c4e7
/dev/mapper/VolGroup00-LogVol00
[root@localhost ~]# /sbin/findfs UUID=88d71295-cbeb-4c5a-9604-64fffd47a810
findfs: Unable to resolve 'UUID=88d71295-cbeb-4c5a-9604-64fffd47a810'
[root@localhost ~]#
Reply With Quote
  #10  
Old 31st May 2008, 02:00 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
The problem here is your system isn't able to find the uuid /boot

Please try the following...

1. pvdisplay
2. vgdisplay
3. lvdisplay
__________________
Robot Nite - Designated device drivers drink free

Last edited by notageek; 31st May 2008 at 02:03 PM.
Reply With Quote
  #11  
Old 31st May 2008, 02:05 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
This is the output from chroot

Code:
[root@localhost ~]# /sbin/pvdisplay 
  /proc/mounts: fopen %s failed: No such file or directory
  /proc/devices: fopen failed: No such file or directory
  Failed to create lvm type filter
[root@localhost ~]# /sbin/vgdisplay 
  /proc/mounts: fopen %s failed: No such file or directory
  /proc/devices: fopen failed: No such file or directory
  Failed to create lvm type filter
[root@localhost ~]# /sbin/lvdisplay 
  /proc/mounts: fopen %s failed: No such file or directory
  /proc/devices: fopen failed: No such file or directory
  Failed to create lvm type filter
[root@localhost ~]#
This is the output from the live-cd system:
Code:
[root@localhost boot]# /sbin/pvdisplay 
  --- Physical volume ---
  PV Name               /dev/sda2
  VG Name               VolGroup00
  PV Size               111.60 GB / not usable 2.86 MB
  Allocatable           yes 
  PE Size (KByte)       32768
  Total PE              3571
  Free PE               1
  Allocated PE          3570
  PV UUID               rNZdqX-LV36-XOk2-n3y5-RdAF-yUSU-P4FNae
   
[root@localhost boot]# /sbin/vgdisplay 
  --- Volume group ---
  VG Name               VolGroup00
  System ID             
  Format                lvm2
  Metadata Areas        1
  Metadata Sequence No  3
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                2
  Open LV               2
  Max PV                0
  Cur PV                1
  Act PV                1
  VG Size               111.59 GB
  PE Size               32.00 MB
  Total PE              3571
  Alloc PE / Size       3570 / 111.56 GB
  Free  PE / Size       1 / 32.00 MB
  VG UUID               v0OC0D-dWKv-nQ2h-ffjk-jqly-01I7-KphxfD
   
[root@localhost boot]# /sbin/lvdisplay 
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol00
  VG Name                VolGroup00
  LV UUID                c2dx0z-Oykj-JsP1-JU9c-oWUg-vnmM-szxZkF
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                109.62 GB
  Current LE             3508
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:2
   
  --- Logical volume ---
  LV Name                /dev/VolGroup00/LogVol01
  VG Name                VolGroup00
  LV UUID                0SENzY-4eaX-U2yD-TMze-wtgR-Co2n-HuCpGj
  LV Write Access        read/write
  LV Status              available
  # open                 1
  LV Size                1.94 GB
  Current LE             62
  Segments               1
  Allocation             inherit
  Read ahead sectors     auto
  - currently set to     256
  Block device           253:3
   
[root@localhost boot]#
Reply With Quote
  #12  
Old 31st May 2008, 02:11 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
This output from the live-CD environment is interesting:
Code:
[root@localhost mnt]# mount /dev/sda1 /mnt/bootmaybe/
[root@localhost mnt]# cd bootmaybe/
[root@localhost bootmaybe]# ls
config-2.6.25-14.fc9.i686      memtest86+-2.01
efi                            System.map-2.6.25-14.fc9.i686
grub                           upgrade
initrd-2.6.25-14.fc9.i686.img  vmlinuz-2.6.25-14.fc9.i686
lost+found
[root@localhost bootmaybe]#
Reply With Quote
  #13  
Old 31st May 2008, 02:18 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Is the following command successful? Run it outside the chroot environment.

Code:
 mount  /dev/VolGroup00/LogVol01 /mnt
If the above is successful then try the following.

1. ls /mnt (should ideally list your missing /boot contents, try and locate vmlinuz and grub.conf files here)

If 1 is true then try the following...

2. Edit the fstab (of the chroot system) add the following in the fstab and remove the previous /boot entry

Code:
/dev/VolGroup00/LogVol01  /boot                   ext3    defaults        1 2

Alternative Solution:

Incase you want to keep the UUID way you'll have to regenerate uuid by following.

1. tune2fs -U random /dev/VolGroup00/LogVol01
2. tune2fs -l |grep UUID (note the id returned)
3. Edit fstab and replace the uuio of /boot with this one.
__________________
Robot Nite - Designated device drivers drink free
Reply With Quote
  #14  
Old 31st May 2008, 02:20 PM
notageek's Avatar
notageek Offline
Registered User
 
Join Date: Jan 2008
Location: New Delhi, India
Posts: 2,068
Quote:
Originally Posted by patrox
This output from the live-CD environment is interesting:
Code:
[root@localhost mnt]# mount /dev/sda1 /mnt/bootmaybe/
[root@localhost mnt]# cd bootmaybe/
[root@localhost bootmaybe]# ls
config-2.6.25-14.fc9.i686      memtest86+-2.01
efi                            System.map-2.6.25-14.fc9.i686
grub                           upgrade
initrd-2.6.25-14.fc9.i686.img  vmlinuz-2.6.25-14.fc9.i686
lost+found
[root@localhost bootmaybe]#
What is the output of

Code:
 tune2fs -l /dev/sda1 | grep UUID
Are you dual booting?
Can you post the output of fdisk -ls from live CD?
__________________
Robot Nite - Designated device drivers drink free

Last edited by notageek; 31st May 2008 at 02:25 PM.
Reply With Quote
  #15  
Old 31st May 2008, 02:36 PM
patrox Offline
Registered User
 
Join Date: Aug 2006
Posts: 75
Code:
[root@localhost bootmaybe]# mount /dev/VolGroup00/LogVol01 /mnt
/dev/mapper/VolGroup00-LogVol01 looks like swapspace - not mounted
mount: you must specify the filesystem type
[root@localhost bootmaybe]#
Code:
[root@localhost bootmaybe]# /sbin/tune2fs -l /dev/sda1 | grep UUID 
Filesystem UUID:          88d71295-cbeb-4c5a-9604-64fffd47a810
[root@localhost bootmaybe]#
Quote:
Are you dual booting?
Can you post the output of fdisk -ls from live CD?
I don't dualbooting

Code:
[root@localhost bootmaybe]# /sbin/fdisk -ls

Disk /dev/sda: 120.0 GB, 120034123776 bytes
255 heads, 63 sectors/track, 14593 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x000bdb88

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26       14593   117017460   8e  Linux LVM

Disk /dev/dm-0: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 4294 MB, 4294967296 bytes
255 heads, 63 sectors/track, 522 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 117.7 GB, 117708947456 bytes
255 heads, 63 sectors/track, 14310 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table

Disk /dev/dm-3: 2080 MB, 2080374784 bytes
255 heads, 63 sectors/track, 252 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x30307800

Disk /dev/dm-3 doesn't contain a valid partition table
[root@localhost bootmaybe]#
Reply With Quote
Reply

Tags
disappeared, initrd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/hda disappeared rholme Hardware & Laptops 5 5th May 2009 04:39 PM
CD disappeared trchbrr Hardware & Laptops 4 15th June 2005 12:20 AM
kernel panic with initrd=initrd.img in loadlin jules Installation and Live Media 4 8th July 2004 11:17 AM


Current GMT-time: 21:46 (Saturday, 25-05-2013)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat