LinuxQuestions.org
Review your favorite Linux distribution.
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 07-17-2012, 03:28 PM   #1
proNick
Member
 
Registered: Apr 2005
Posts: 104

Rep: Reputation: 15
Cannot find a GRUB drive for bootpart error


Hello,

I installed Fedora 17 today. Problem that occurred is that it did not wanted to boot.

Following insttructions from http://docs.fedoraproject.org/en-US/...all-bootloader, I entered into rescue system, and tried to reinstall GRUB.

But, when I tried command that is mentioned there:

Code:
/sbin/grub2-install bootpart
... it returned the following error:

Code:
/usr/sbin/grub2-probe: error: cannot find a GRUB drive for bootpart. Check your device.map
My device.map looks like this:

Code:
# this device.map was generated by anaconda
(hd0)    /dev/sda
(hd1)    /dev/sdb
(hd2)    /dev/sdc
(hd3)    /dev/sdd
(hd4)    /dev/sde

Just to mention that I have RAID partitions on hd1 and hd2, but I think that can not cause this problem.

Can you help me how to fix this problem? Thank you in advance!
 
Old 07-17-2012, 03:37 PM   #2
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Is Fedora the only operating system installed?
Did you create a separate boot partition?
You could boot the Fedora CD and go to the site below and download and run the bootinfoscript. This will give information about drives/partitions and boot files you can review or post here for help.

http://sourceforge.net/projects/bootinfoscript/
 
Old 07-17-2012, 03:45 PM   #3
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Mistake in my question... I executed a command

Code:
/sbin/grub2-install sda

Yes, I do have separate /boot partition

Yes, Fedora is only system installed.

Last edited by proNick; 07-17-2012 at 03:54 PM.
 
Old 07-17-2012, 10:26 PM   #4
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,058

Rep: Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916Reputation: 1916
That should presumably be "/dev/sda" - as the document you referred to said.

We can't help if you refuse to supply valid info.
 
Old 07-18-2012, 08:19 AM   #5
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Sure, here are results of bootinfoscript (also I removed RAID, hoping it will change, but still the same):


Code:
                  Boot Info Script 0.61      [1 April 2012]


============================= Boot Info Summary: ===============================

 => Grub2 (v1.99) is installed in the MBR of /dev/sda and looks at sector 1 of 
    the same hard drive for core.img. core.img is at this location and looks 
    in partition 99 for .
 => No boot loader is installed in the MBR of /dev/sdb.
 => No boot loader is installed in the MBR of /dev/sdc.
 => No boot loader is installed in the MBR of /dev/sdd.
 => No boot loader is installed in the MBR of /dev/sde.
 => FreeDOS (eXtended FDisk) is installed in the MBR of /dev/sdf.

sda1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sda2: __________________________________________________________________________

    File system:       swap
    Boot sector type:  -
    Boot sector info: 

sda3: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  Fedora release 17 (Beefy 
                       Miracle) Kernel on an ()
    Boot files:        /etc/fstab

sdb1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdc1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdd1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sde1: __________________________________________________________________________

    File system:       ext4
    Boot sector type:  -
    Boot sector info: 
    Operating System:  
    Boot files:        

sdf1: __________________________________________________________________________

    File system:       vfat
    Boot sector type:  Windows 7: FAT32
    Boot sector info:  No errors found in the Boot Parameter Block.
    Operating System:  
    Boot files:        

============================ Drive/Partition Info: =============================

Drive: sda _____________________________________________________________________

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sda1    *          2,048     1,026,047     1,024,000  83 Linux
/dev/sda2           1,026,048    11,266,047    10,240,000  82 Linux swap / Solaris
/dev/sda3          11,266,048 1,953,523,711 1,942,257,664  83 Linux


Drive: sdb _____________________________________________________________________

Disk /dev/sdb: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdb1               2,048 1,953,523,711 1,953,521,664  83 Linux


Drive: sdc _____________________________________________________________________

Disk /dev/sdc: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdc1               2,048 1,953,523,711 1,953,521,664  83 Linux


Drive: sdd _____________________________________________________________________

Disk /dev/sdd: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdd1               2,048 1,953,523,711 1,953,521,664  83 Linux


Drive: sde _____________________________________________________________________

Disk /dev/sde: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders, total 1953525168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sde1               2,048 1,953,523,711 1,953,521,664  83 Linux


Drive: sdf _____________________________________________________________________

Disk /dev/sdf: 2051 MB, 2051013632 bytes
33 heads, 63 sectors/track, 1926 cylinders, total 4005886 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot  Start Sector    End Sector  # of Sectors  Id System

/dev/sdf1                  32     4,005,885     4,005,854   b W95 FAT32


"blkid" output: ________________________________________________________________

Device           UUID                                   TYPE       LABEL

/dev/loop0                                              squashfs   
/dev/loop1       758e0768-f22c-48a8-919d-23054ed0707a   ext4       Anaconda
/dev/mapper/live-rw 758e0768-f22c-48a8-919d-23054ed0707a   ext4       Anaconda
/dev/sda1        95d46fae-fce4-4ec8-a3ac-8443ed759b39   ext4       
/dev/sda2        7ec972ae-bad4-47da-a5a8-3111b9616012   swap       
/dev/sda3        11312b13-1bb4-491c-8aaa-96fc090e80ad   ext4       
/dev/sdb1        3c80d339-adf1-41cc-80ab-2d9850c95242   ext4       
/dev/sdc1        26990b63-cf2d-4be4-ab2f-7349e86fc884   ext4       
/dev/sdd1        a52078d2-11d5-4118-b856-975ee6ef4d48   ext4       
/dev/sde1        790b1b45-a082-483f-b9de-e9337cce69a0   ext4       
/dev/sdf1        A4F5-9F66                              vfat       MYUSB
/dev/sr0                                                iso9660    Fedora 17 x86_64

========================= "ls -R /dev/mapper/" output: =========================

/dev/mapper:
control
live-rw

================================ Mount points: =================================

Device           Mount_Point              Type       Options

/dev/devpts      /mnt/sysimage/dev/pts    devpts     (rw,relatime,seclabel,gid=5,mode=620,ptmxmode=000)
/dev/mapper/live-rw /                        ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/proc        /mnt/sysimage/proc       proc       (rw,relatime)
/dev/sda1        /mnt/sysimage/boot       ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sda3        /mnt/sysimage            ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sdb1        /mnt/sysimage/digital    ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sdc1        /mnt/sysimage/home       ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sdd1        /mnt/sysimage/additional1 ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sde1        /mnt/sysimage/additional2 ext4       (rw,relatime,seclabel,user_xattr,barrier=1,data=ordered)
/dev/sdf1        /media                   vfat       (rw,relatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=ascii,shortname=mixed,errors=remount-ro)
/dev/selinuxfs   /mnt/sysimage/sys/fs/selinux selinuxfs  (rw,relatime)
/dev/sr0         /run/initramfs/live      iso9660    (ro,relatime)
/dev/sysfs       /mnt/sysimage/sys        sysfs      (rw,relatime,seclabel)
/dev/tmpfs       /mnt/sysimage/dev/shm    tmpfs      (rw,relatime,seclabel)


=============================== sda3/etc/fstab: ================================

--------------------------------------------------------------------------------

#
# /etc/fstab
# Created by anaconda on Wed Jul 18 21:44:34 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
#
UUID=11312b13-1bb4-491c-8aaa-96fc090e80ad /                       ext4    defaults        1 1
UUID=a52078d2-11d5-4118-b856-975ee6ef4d48 /additional1            ext4    defaults        1 2
UUID=790b1b45-a082-483f-b9de-e9337cce69a0 /additional2            ext4    defaults        1 2
UUID=95d46fae-fce4-4ec8-a3ac-8443ed759b39 /boot                   ext4    defaults        1 2
UUID=3c80d339-adf1-41cc-80ab-2d9850c95242 /digital                ext4    defaults        1 2
UUID=26990b63-cf2d-4be4-ab2f-7349e86fc884 /home                   ext4    defaults        1 2
UUID=7ec972ae-bad4-47da-a5a8-3111b9616012 swap                    swap    defaults        0 0
--------------------------------------------------------------------------------

=============================== StdErr Messages: ===============================

  No volume groups found
mdadm: No arrays found in config file or automatically
 
Old 07-18-2012, 09:38 AM   #6
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
I'm not sure how this happened but your bootinfoscript shows Grub2 in the mbr of sda looking on partition "99" for boot files!! Obviously, you have no partition 99. Also, if you look at your partitions (sda1, sda3) for Fedora, there are no boot files. You could boot your Fedora CD, mount sda1 and try running the command below. I'm not a Fedora user but you may need to use grub2 in the command?

Quote:
grub-install --boot-directory=/mnt/sda1 /mnt/sda
 
Old 07-18-2012, 09:45 AM   #7
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Ok, will try.

Why do I have this problem? Is it connected to Linux distro, or to the fact that I have separate partition for /boot?
 
Old 07-18-2012, 10:07 AM   #8
EDDY1
LQ Addict
 
Registered: Mar 2010
Location: Oakland,Ca
Distribution: wins7, Debian wheezy
Posts: 6,838

Rep: Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649Reputation: 649
Are you getting grub prompt?
 
Old 07-18-2012, 10:44 AM   #9
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
No, no boot prompt at all.

Only messages like "Media test failure, check cable". But that's not the reason, HDD's are there, Fedora is installed, I can access to it's partitions with rescue DVD, but I can not boot it.
 
Old 07-18-2012, 03:21 PM   #10
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
Tried with CentOS. Same problem.....
 
Old 07-18-2012, 04:47 PM   #11
yancek
LQ Guru
 
Registered: Apr 2008
Distribution: PCLinux, Slackware
Posts: 6,990

Rep: Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295Reputation: 1295
Your bootinfoscript shows the mbr has Grub but you don't have any Grub boot files on any of your partitions. Which option for bootlaoder did you select during the installation? You should have had at least to the root partition, mbr and probably boot partition. I've not used RAID so I don't know what impace that might have had.

Use your Fedora CD/DVD and mount sda1 and sda3 and look for /boot/grub to see what files if any you have.
Having a separat boot partition should not be a big problem.
 
Old 07-18-2012, 05:09 PM   #12
proNick
Member
 
Registered: Apr 2005
Posts: 104

Original Poster
Rep: Reputation: 15
I have "everything I need" in /boot/grub, directory is not empty or something.

Is this some issue with BIOS setup or something? Same issue with two Linux distros, tried with and without RAID...
 
  


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] Grub can't find grub.cfg when booting - error: no such device Breagha Linux - Software 8 03-14-2010 01:40 PM
GRUB error on windows-only drive after ubuntu install on separate drive Pappou Linux - Newbie 4 03-22-2009 08:00 PM
Ubuntu on USB drive, XP on main drive. Grub 21 error steste Linux - Newbie 1 12-09-2007 04:10 PM
FC4 - Grub Can't Find Hard Drive bomdemais Fedora - Installation 3 07-01-2005 01:52 AM
bootpart error but still works dreed75 Linux - Newbie 7 04-11-2005 03:46 PM


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

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration