Find the answer to your Linux question:
Results 1 to 6 of 6
Hi all, This is a dualboot system (LVM) 1) Ubuntu 12.04 desktop 64bit 2) Fedora 17 desktop 64bit On original installtion I installed Ubuntu first leaving about half space of ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814

    Fedora reinstallation problem


    Hi all,

    This is a dualboot system (LVM)
    1) Ubuntu 12.04 desktop 64bit
    2) Fedora 17 desktop 64bit

    On original installtion I installed Ubuntu first leaving about half space of the harddrive (160G total capacity) for Fedora. During installing Fedora I deselected "saving bootloader to sda".

    Installation went through without problem with dualboot working properly.

    About 3 hours before, for an unknown reason Fedora failed boot. Then I reinstalled Fedora without saving the bootloader on sda. After installation completed I couldn't start Grub on reboot.

    Then I reinstalled Fedora the 2nd time wiht bootload saved to sda selected. After installation finish on reboot Grub start but I couldn't find Ubuntu on Grub.

    Please help to get Ubuntu back to Grub. TIA

    B.R.
    satimis

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    On your second installation of Fedora, you put its Grub in the mbr and there is no entry for Ubuntu, is that the case? Have you tried the steps under "Updating Grub2 Configuration" at the fedoraproject link below? If that doesn't resolve your issue, you might go to the bootinfoscript site and download and run it and review the output, results.txt file.

    https://fedoraproject.org/wiki/GRUB_2?rd=Grub2

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814
    Quote Originally Posted by yancek View Post
    On your second installation of Fedora, you put its Grub in the mbr and there is no entry for Ubuntu, is that the case?
    Yes, that is the case.

    I did it before on installing dualboot, Ubuntu/Fefora. I installed Ubuntu first and then Fedora. I must NOT select "save bootloader on sda" during installing Fedora. Then after installation on reboot I found both Fedora and Ubuntu in Grub. This time it didn't work. I don't know WHY. I was compelled selecting "save booloader on sda" during reinstalling Fedora. Otherwise on reboot Grub didn't start.

    Have you tried the steps under "Updating Grub2 Configuration" at the fedoraproject link below? If that doesn't resolve your issue, you might go to the bootinfoscript site and download and run it and review the output, results.txt file.

    https://fedoraproject.org/wiki/GRUB_2?rd=Grub2
    I learned a bitter lesson before "Updating Grub2 Configuration" on Fedora. A complete mess was resulted. Finally I have to reinstall both Ubuntu and Fedora.

    satimis

  4. $spacer_open
    $spacer_close
  5. #4
    Linux User glennzo's Avatar
    Join Date
    Sep 2004
    Location
    Salem, Mass
    Posts
    466
    Instead of reinstalling both OS's why don't you boot Fedora, mount the Ubuntu partition and then run grub2-mkconfig -o /boot/grub2/grub.cfg? Watch the output. Ubuntu will be added to the boot menu.
    Glenn
    Powered by Fedora

  6. #5
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,814
    Quote Originally Posted by glennzo View Post
    Instead of reinstalling both OS's why don't you boot Fedora, mount the Ubuntu partition and then run grub2-mkconfig -o /boot/grub2/grub.cfg? Watch the output. Ubuntu will be added to the boot menu.
    Performed following steps:

    Booted Fedora

    $ sudo fdisk -l
    [sudo] password for satimis:
    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x000948c6
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      499711      248832   83  Linux
    /dev/sda2          501758   312580095   156039169    5  Extended
    /dev/sda5          501760   312580095   156039168   8e  Linux LVM
    
    Disk /dev/mapper/lvm-swap_1: 8317 MB, 8317304832 bytes
    255 heads, 63 sectors/track, 1011 cylinders, total 16244736 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 /dev/mapper/lvm-lv01: 1094 MB, 1094713344 bytes
    255 heads, 63 sectors/track, 133 cylinders, total 2138112 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 /dev/mapper/lvm-lv00: 79.7 GB, 79691776000 bytes
    255 heads, 63 sectors/track, 9688 cylinders, total 155648000 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 /dev/mapper/lvm-root: 70.7 GB, 70678216704 bytes
    255 heads, 63 sectors/track, 8592 cylinders, total 138043392 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
    /dev/sda3 and /dev/sda4 NOT found.


    $ sudo mount /dev/sda5 /mnt
    Code:
    mount: unknown filesystem type 'LVM2_member'
    $ sudo mount /dev/mapper/lvm-root /mnt/
    $ ls /mnt/
    Code:
    bin   etc         lib         media        opt   run      srv  usr
    boot  home        lib64       mnt          proc  sbin     sys  var
    dev   initrd.img  lost+found  nonexistent  root  selinux  tmp  vmlinuz
    [satimis@localhost ~]$ ls /mnt/home/satimis/
    Desktop           openstack_essex_on_ub1204_core4_hd1_20121108.txt   Public
    Documents         openstack_essex_on_ub1204_core4_hd1_20121108.txt~  Templates
    Downloads         openstack_essex_on_ub1204_core4_hd1_20121109.txt   Videos
    examples.desktop  openstack_essex_on_ub1204_core4_hd1_20121109.txt~
    Music             Pictures
    Fedora working files are there

    $ cd /mnt
    $ sudo grub2-mkconfig -o /boot/grub2/grub.cfg
    Code:
    Generating grub.cfg ...
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    Found linux image: /boot/vmlinuz-3.6.6-1.fc17.x86_64
    Found initrd image: /boot/initramfs-3.6.6-1.fc17.x86_64.img
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    Found linux image: /boot/vmlinuz-3.3.4-5.fc17.x86_64
    Found initrd image: /boot/initramfs-3.3.4-5.fc17.x86_64.img
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
      Incorrect metadata area header checksum on /dev/sda1 at offset 4096
    Found Ubuntu 12.04.1 LTS (12.04) on /dev/mapper/lvm-root
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    error: unknown LVM metadata header.
    done
    Error messages displayed.

    Rebooted Fedora

    At booting GRUB popup with Ubuntu displayed there. Thanks


    Started Ubuntu;

    $ sudo fdisk -l
    Code:
    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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: 0x000948c6
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *        2048      499711      248832   83  Linux
    /dev/sda2          501758   312580095   156039169    5  Extended
    /dev/sda5          501760   312580095   156039168   8e  Linux LVM
    
    Disk /dev/mapper/lvm-root: 70.7 GB, 70678216704 bytes
    255 heads, 63 sectors/track, 8592 cylinders, total 138043392 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: 0x00000000
    
    Disk /dev/mapper/lvm-root doesn't contain a valid partition table
    
    Disk /dev/mapper/lvm-swap_1: 8317 MB, 8317304832 bytes
    255 heads, 63 sectors/track, 1011 cylinders, total 16244736 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: 0x00000000
    
    Disk /dev/mapper/lvm-swap_1 doesn't contain a valid partition table
    
    Disk /dev/mapper/lvm-lv01: 1094 MB, 1094713344 bytes
    255 heads, 63 sectors/track, 133 cylinders, total 2138112 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: 0x00000000
    
    Disk /dev/mapper/lvm-lv01 doesn't contain a valid partition table
    
    Disk /dev/mapper/lvm-lv00: 79.7 GB, 79691776000 bytes
    255 heads, 63 sectors/track, 9688 cylinders, total 155648000 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: 0x00000000
    
    Disk /dev/mapper/lvm-lv00 doesn't contain a valid partition table
    /dev/sda3 and /dev/sda4 still missing. Where are they?

    B.R.
    satimis

  7. #6
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    Looking at your last post, it would seem you have installed Fedora using LVM and overwritten your Ubuntu installation. Your first fdisk output shows lvm entries and if you add up their total space, you come up with about 160GB. I have never used LVM so can't give you any advice on that. With regard to sda3 and sda4, they are not missing they were just not created. sda1 is your root (/) filesystem partition, sda2 is an Extended partition and the LVM is a logical partition within the Extended. Logical partitions start numbering with 5, sda5 and it doesn't matter what other partitions there are.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •