LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Fedora > Fedora - Installation
User Name
Password
Fedora - Installation This forum is for the discussion of installation issues with Fedora.

Notices

Reply
 
Search this Thread
Old 03-27-2012, 04:34 PM   #1
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Rep: Reputation: 217Reputation: 217Reputation: 217
Installed Fedora 16 but no boot partition (was empty), trying to copy needed bootable


Hello,

although I tried to solve it on my own, I'm failing to get to boot the Fedora release 16 (Verne) installation.
I have one (1) hard drive partitioned for Windows (can boot fine), openSuse 12.1 (can boot) and Fedora 16 (can't boot).
My drive layout on picture (taken from openSuse) seems complicated for me to solve what and where to boot.

I managed to get openSuse GRUB on bootable partition (164MB Ext4) to boot:
- Windows (partition 37GB NTFS)
- openSuse Desktop (21GB LVM2 Physical)
and failed to boot Fedora on 524MB Ext4 (sdc5).

My grub.conf is like:
Code:
# Modified by YaST2. Last modification on Tue Mar 13 08:47:25 CET 2012
# 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 0
timeout 10
## gfxmenu (hd0,2)/message
##YaST - activate

###Don't change this comment - YaST2 identifier: Original name: other###
title Windows 7
    rootnoverify (hd0,0)
    chainloader +1

###Don't change this comment - YaST2 identifier: Original name: linux###
title Linux openSUSE Desktop 12.1 - 3.1.9-1.4
    root (hd0,2)
    kernel /vmlinuz-3.1.9-1.4-desktop root=/dev/system/root resume=/dev/system/swap splash=silent quiet showopts vga=0x31a
    initrd /initrd-3.1.9-1.4-desktop

###Don't change this comment - YaST2 identifier: Original name: failsafe###
title Linux - Failsafe - openSUSE 12.1 - 3.1.9-1.4
    root (hd0,2)
    kernel /vmlinuz-3.1.9-1.4-desktop root=/dev/system/root showopts apm=off noresume nosmp maxcpus=0 edd=off powersaved=off nohz=off highres=off processor.max_cstate=1 nomodeset x11failsafe vga=0x31a
    initrd /initrd-3.1.9-1.4-desktop

###Don't change this comment - YaST2 identifier: Original name: other###
title Fedora 16
    rootnoverify (hd0,3)
    chainloader +1
Now when I selected the 4-th option Fedora 16 it didn't boot, because of no files were found there.
So I went in openSuse to look at /dev/sdc5 (from openSuse) and found out that it's empty,
then I put installation DVD Fedora 16 (i386) and started "rescue mode" and copied some files there:
Code:
opensuse12-1:/media/71b5f3fa-3070-489b-b0bb-a6cac240eefd # la
total 25784
dr-xr-xr-x. 5 root root     1024 Mar  5 01:35 .
drwxr-xr-x  7 root root      140 Mar 27 22:57 ..
-rw-------. 1 root root  1889008 Feb 21 02:35 System.map-3.2.7-1.fc16.i686.PAE
-rw-r--r--. 1 root root   117147 Feb 21 02:35 config-3.2.7-1.fc16.i686.PAE
-rw-r--r--. 1 root root    18421 Feb 21 02:36 config.mk-compat-wireless-3.3-rc1-2-3.2.7-1.fc16.i686.PAE
drwxr-xr-x. 2 root root     1024 Mar  5 00:05 grub
drwxr-xr-x. 3 root root     7168 Mar  5 01:37 grub2
-rw-r--r--. 1 root root 18081124 Mar  5 01:35 initramfs-3.2.7-1.fc16.i686.PAE.img
-rw-r--r--. 1 root root  1615817 Mar  5 01:35 initrd-plymouth.img
drwx------. 2 root root    12288 Mar  4 23:13 lost+found
-rwxr-xr-x. 1 root root  4645952 Feb 21 02:35 vmlinuz-3.2.7-1.fc16.i686.PAE
opensuse12-1:/media/71b5f3fa-3070-489b-b0bb-a6cac240eefd # la grub
total 71
drwxr-xr-x. 2 root root  1024 Mar  5 00:05 .
dr-xr-xr-x. 5 root root  1024 Mar  5 01:35 ..
-rw-r--r--. 1 root root 67229 Mar 21  2011 splash.xpm.gz

==============0
Fedora partition LVM2
opensuse12-1:/media/d0cb9c2e-cb86-44d8-b0c1-c8c5be758344 # la boot/
total 135648
drwxr-xr-x.  2 root root      4096 Mar 13 12:57 .
dr-xr-xr-x. 21 root root      4096 Mar 15 23:36 ..
-rw-r--r--   1 root root       132 Mar 13 11:16 grub.conf
-rw-r--r--   1 root root 134819396 Mar 13 11:16 initrd.img
-rwxr-xr-x   1 root root   4063584 Mar 13 11:16 vmlinuz
opensuse12-1:/media/d0cb9c2e-cb86-44d8-b0c1-c8c5be758344 # 

opensuse12-1:/media/d0cb9c2e-cb86-44d8-b0c1-c8c5be758344 # cat boot/grub.conf 
#debug --graphics
default=0
splashimage=@SPLASHPATH@
timeout 5
hiddenmenu
title Fedora 16
        kernel @KERNELPATH@
        initrd @INITRDPATH@
Now I would like to ask if someone could please tell me
what files go where and
what to put in grub.conf to successfully boot Fedora.
I don't mind very much if openSuse GRUB is the loader for all OS's which shows up on computer power on.

Unfortunately my fdisk also shows some mess in partition table:
Code:
fdisk -l

Disk /dev/sdc: 82.3 GB, 82348277760 bytes
255 heads, 63 sectors/track, 10011 cylinders, total 160836480 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: 0xd76fd76f

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1              63    72710189    36355063+   7  HPFS/NTFS/exFAT
/dev/sdc2       113664000   160836479    23586240    5  Extended
/dev/sdc3   *    72712192    73031679      159744   83  Linux
/dev/sdc4        73031680   113663999    20316160   8e  Linux LVM
/dev/sdc5       113666048   114690047      512000   83  Linux
/dev/sdc6       114692096   160835583    23071744   8e  Linux LVM

Partition table entries are not in disk order

Disk /dev/mapper/system-root: 18.7 GB, 18652069888 bytes
255 heads, 63 sectors/track, 2267 cylinders, total 36429824 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/system-root doesn't contain a valid partition table

Disk /dev/mapper/system-swap: 2147 MB, 2147483648 bytes
255 heads, 63 sectors/track, 261 cylinders, total 4194304 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/system-swap doesn't contain a valid partition table

Disk /dev/mapper/vg_hansolofedora16-lv_swap: 4227 MB, 4227858432 bytes
255 heads, 63 sectors/track, 514 cylinders, total 8257536 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/vg_hansolofedora16-lv_swap doesn't contain a valid partition table

Disk /dev/mapper/vg_hansolofedora16-lv_root: 19.4 GB, 19394461696 bytes
255 heads, 63 sectors/track, 2357 cylinders, total 37879808 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/vg_hansolofedora16-lv_root doesn't contain a valid partition table
(I'm trying to solve this for almost a month, so no hurry for a few days more :-)

I appreciate your time to read this post, thank you.

My best regards.
Attached Images
File Type: jpg disk-partitions.jpg (119.5 KB, 3 views)
 
Old 03-27-2012, 05:10 PM   #2
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Hi lithos,

As I can understand you have got an 80GB HDD and you have built up your system as follows:

1. You installed Windows 7 first using 37 GB space(which boots fine)
2. Then you install openSuSE 12.1 which used 21 GB space (which boots fine)
3. Then you install Fedora 16 which does not boot if you select the entry from the boot list. Right?

Quote:
Device Boot Start End Blocks Id System
/dev/sdc1 63 72710189 36355063+ 7 HPFS/NTFS/exFAT
/dev/sdc2 113664000 160836479 23586240 5 Extended
/dev/sdc3 * 72712192 73031679 159744 83 Linux
/dev/sdc4 73031680 113663999 20316160 8e Linux LVM
/dev/sdc5 113666048 114690047 512000 83 Linux
/dev/sdc6 114692096 160835583 23071744 8e Linux LVM
From the above output I can make that /dev/sdc1 and /dev/sdc2 are in use by Windows 7 and /dev/sdc3 (boot partition) and /dev/sdc4 are in use by openSuSE. I need to know how did you partition the disk during Fedora 16 installation.

From the screenshot you have attached it appears like you created 524 MB primary partition for Fedora 16 and left the rest of the space. Is it the way you did? Did your Fedora 16 installation completed successfully?

During installation Fedora 16 ask you to install bootloader. Which option did you select at that time? Did you uncheck the bootloader option during install? If not then on which device did you install the bootloader?
 
Old 03-27-2012, 05:33 PM   #3
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Original Poster
Rep: Reputation: 217Reputation: 217Reputation: 217
Hi,

Yes
1,2,3 is correct order what I did (then I manually added Fedora to the Grub menu.lst of openSuse)

Somewhere there should be swap (for openSuse / Fedora) but I don't see it (picture screenshot Gparted - could be a better view at partitions)

and yes,
boot is correct at sdc3 (/dev/sdc3 on /boot type ext4 (rw,relatime,user_xattr,acl,barrier=1,data=ordered)

Fedora did complete, but after restart I didn't get it to first run, ever.

I think I didn't choose bootloader, probably I unchecked it, and that's why I can't boot. I let Fedora do it's own partitioning.


I see fstab was created:
Code:
#
# /etc/fstab
# Created by anaconda on Sun Mar  4 23:49:16 2012
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
/dev/mapper/vg_hansolofedora16-lv_root /                       ext4    defaults        1 1
UUID=71b5f3fa-3070-489b-b0bb-a6cac240eefd /boot                   ext4    defaults        1 2
/dev/mapper/system-swap swap                    swap    defaults        0 0
/dev/mapper/vg_hansolofedora16-lv_swap swap                    swap    defaults        0 0

Thank you for your help and time looking at this.
Attached Images
File Type: jpeg Partitions layout.jpeg (78.6 KB, 5 views)

Last edited by lithos; 03-27-2012 at 05:37 PM.
 
Old 03-27-2012, 06:14 PM   #4
T3RM1NVT0R
Senior Member
 
Registered: Dec 2010
Location: Internet
Distribution: Linux Mint, Ubuntu, SLES, CentOS
Posts: 1,790

Rep: Reputation: 324Reputation: 324Reputation: 324Reputation: 324
@ Reply

Not sure what exactly Fedora 16 install did when you choose Fedora 16 to do its own partitioning. Bottomline is that it did not copy the boot files for Fedora 16 on the disk for some reason.

I would suggest you to do manual partitioning instead. But be careful when you do that. I would suggest you to backup your system before trying anything with partitioning as playing around with partitions is always risky.

As of now you have got two primary partitions /dev/sdc1 and /dev/sdc3. What you can do is during the install delete /dev/sdc5 and /dev/sdc6. Make sure you are deleting the correct partition. Check there size. I am saying it again and agian because I know how it feels when you loose your important data.

Back on track, delete /dev/sdc5 and /dev/sdc6 and then create the following layout for Fedora:

/dev/sdc5 - primary partitions 100 MB mount point /boot. You can give 200 MB if you are planning to retain old kernel after upgrade.
/dev/sdc6 - extended partition. Create logical volume inside it for / and set the mount point to be /. You can give whatever size you want but I would suggest you should atleast use 8 GB even if you are planning to use Fedora 16 for testing purpose.

When it comes to bootloader part it will give you the device on which you can install bootloader or the device where the bootloader is currently install. This is where you should make the correct choice. Whenever you perform the bootloader install it automatically detects the other operating system installed on the disk. I would suggest you to go with /dev/sdc5 but the decision will totally depend on what it displays at that time so you have to be dynamic in decision making.

Another thing that you should do research on is grub. As far as I am aware Fedora 16 users grub2 as the default bootloader whereas openSuSE uses grub 0.97. So it will be a good option to go with grub2 when install Fedora 16.

All the best!!!

Last edited by T3RM1NVT0R; 03-27-2012 at 06:16 PM.
 
Old 03-27-2012, 07:01 PM   #5
lithos
Senior Member
 
Registered: Jan 2010
Location: SI : 45.9531, 15.4894
Distribution: CentOS, OpenNA/Trustix, testing desktop openSuse 12.1 /Cinnamon/KDE4.8
Posts: 1,144

Original Poster
Rep: Reputation: 217Reputation: 217Reputation: 217
Thank you,

I was hoping I won't need to reinstall (as I also think Fedora uses Grub2 and I'm not familiar with Grub, so I'll do more reading about grub :-)
but then again I will try when I could lose again 3 hours to install it (I don't know why was so slow - the disk drive is not bad )

And that boot partition sdc5 was made by Fedora installer, just like you saw it didn't copy the needed files there (there was a free space there with no partitions).

Thank you for your help.

Regards

Last edited by lithos; 03-27-2012 at 07:02 PM.
 
  


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
Installed new Fedora partition. Old one won't boot. LaDjA Fedora 10 08-08-2011 03:37 PM
Can't boot after empty primary partition was made unallocated Azazwa Linux - Newbie 8 06-17-2010 08:44 AM
How to get "dd" created copy of bootable Ubuntu partition to boot on other drive asmythee Linux - Newbie 1 06-17-2009 05:15 PM
Unable To Boot To Fedora When Grub Installed in /boot Partition FedoraNewbie Linux - Newbie 4 09-26-2006 03:46 AM
strange partition table - boot partition empty etanter Linux - General 0 12-23-2003 09:46 AM


All times are GMT -5. The time now is 09:45 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration