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.
- 11-11-2012 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
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
- 11-11-2012 #2Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 2,514
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
- 11-11-2012 #3Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
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.
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.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
satimis
- 11-18-2012 #4
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 18
- 11-18-2012 #5Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,712
Performed following steps:
Booted Fedora
$ sudo fdisk -l
[sudo] password for satimis:/dev/sda3 and /dev/sda4 NOT found.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
$ sudo mount /dev/sda5 /mnt$ sudo mount /dev/mapper/lvm-root /mnt/Code:mount: unknown filesystem type 'LVM2_member'
$ ls /mnt/Fedora working files are thereCode: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
$ cd /mnt
$ sudo grub2-mkconfig -o /boot/grub2/grub.cfgError messages displayed.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
Rebooted Fedora
At booting GRUB popup with Ubuntu displayed there. Thanks
Started Ubuntu;
$ sudo fdisk -l/dev/sda3 and /dev/sda4 still missing. Where are they?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
B.R.
satimis
- 11-22-2012 #6Linux Guru
- Join Date
- Oct 2007
- Location
- Tucson AZ
- Posts
- 2,514
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.


Reply With Quote

