You are not logged in.

#1 2008-08-01 04:11:09

mrcold
Member
Registered: 2008-01-24
Posts: 150

grub error 17 on fresh install

i just installed arch onto my laptop but can't get into it because Grub isn't configured correctly (i guess..)

on startup i get grub error 17:

Cannot mount selected partition
    This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.

my partitions are:
sda1: windows (fat32)
sda2:arch (ext2)
sda3:swap

i have installed grub on sda2.  I have attempted the method on this wiki page: (grub wouldn't install)
http://wiki.archlinux.org/index.php/Reinstalling_GRUB
and have tried many different configurations of the menu.lst file which currently reads:

 

title Arch Linux
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/disk/by-uuid/2ef28803-19ae-406f-96af-054a8816f25e ro
initrd /boot/kernel26.img

with everything else commented out.  i have tried booting into the install from the liveCD, but i can't seem to get the grub settings right to get there (i keep getting error 15: file not found)

help please??  i will provide any additional information needed
edit... after getting into my system using the technique on the wiki page.. i tried reinstalling grub from pacman.  that worked.. but didn't help at all

Last edited by mrcold (2008-08-01 04:15:12)

Offline

#2 2008-08-01 15:46:07

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: grub error 17 on fresh install

Here is /etc/fstab

#
# /etc/fstab: static file system information
#
# <file system>        <dir>        <type>    <options>    <dump>    <pass
none            /dev/pts    devpts    defaults    0    0
none            /dev/shm    tmpfs    defaults    0    0


/dev/cdrom    /media/cdrom    auto    ro,user,noauto,unhide    0    0
/dev/dvd    /media/dvd    auto    ro,user,noauto,unhide    0    0
UUID=2ef28803-19ae-406f-96af-054a8816f25e / ext2 defaults     0    1
UUID=ceb75d8d-7a75-4c3e-97f0-bb7bbc88899a swap swap defaults    0    0

Offline

#3 2008-08-01 16:07:48

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: grub error 17 on fresh install

OK.. so i made it into my arch install from the livecd with these settings

title Arch Linux
root (hd0,1)
kernel /boot/vmlinuz26 root=/dev/sda2 ro
initrd /boot/kernel26.img

i also edited my fstab so that it read /dev/sda2 instead of the UUID.. but i still get the grub error on startup even when i edit menu.lst to be exactly what i have here (in this post)

any ideas?? until then.. i am searching for typos

Offline

#4 2008-08-01 16:16:18

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: grub error 17 on fresh install

How many physical disk drives do you have in your computer?

run

fdisk -l

as root from the livecd once you are mounted, print the output here please.

Offline

#5 2008-08-01 16:17:40

ghostHack
Member
From: Bristol UK
Registered: 2008-02-29
Posts: 261

Re: grub error 17 on fresh install

Have a look in in /boot/grub for a file called 'device.map'.  This is a mapping between linux sdx disk names and grub's hdn device names.  Check that hd0 is mapped to /dev/sda.  As an example, this is the contents of my device.map file

(hd0)    /dev/sda
(hd1)    /dev/sdb
(hd2)    /dev/sdc

Offline

#6 2008-08-01 16:26:01

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: grub error 17 on fresh install

thanks for the advice.. I'll try these things as soon as possible.

I only have one physical hard drive in my computer.

Offline

#7 2008-08-01 16:29:21

rooloo
Member
Registered: 2008-07-09
Posts: 218

Re: grub error 17 on fresh install

i have installed grub on sda2

try installing grub to the MBR, I have never got grub to work when I installed it to a partition.

your windows partition is the first partition, so windows should boot fine once you get grub on the MBR. Just uncomment the lines on the bottom of the menu.lst file to boot windows.

Last edited by rooloo (2008-08-01 16:33:11)

Offline

#8 2008-08-01 16:38:55

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: grub error 17 on fresh install

my device.map

(fd0)   /dev/fd0
(hd0)  /dev/sda

and the output of fdisk -l

Disk /dev/sda : 30.0 GB, 30005821440 bytes
255 heads, 63 sectors/track, 3648 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier : 0x987a987a

    Device Boot         Start             End                     Blocks                 Id         System
/dev/sda1                     1             1690                   13574893+           c           W95 FAT32 (LBA)
/dev/sda2 *              1691            3517                   14675377+          83          Linux
/dev/sda3                 3518            3648                     1052257+         82           Linux swap / Solaris

Offline

#9 2008-08-01 16:45:13

mrcold
Member
Registered: 2008-01-24
Posts: 150

Re: grub error 17 on fresh install

rooloo wrote:

i have installed grub on sda2

try installing grub to the MBR, I have never got grub to work when I installed it to a partition.

your windows partition is the first partition, so windows should boot fine once you get grub on the MBR. Just uncomment the lines on the bottom of the menu.lst file to boot windows.

what is the best way to go about this from where i am now?
there is an option on the livecd to install grub to the hd0 MBR but it doesn't work (i get error 15, file not found)

Offline

Board footer

Powered by FluxBB