LinuxQuestions.org
Visit Jeremy's Blog.
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 12-31-2006, 11:50 AM   #1
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Rep: Reputation: 0
Grub Error 17, again ...


I have been using SLED 10 for a few months and it installed very smoothly, ran the update and reads the Windows partitions with no problem (can't write to them though, but I understand that's normal). By way of interest in Open Source, I was looking for alternatives to both SLED 10 and XP.

I don't have any essential data on the Linux disk, so when I got a dual sided DVD with Ubuntu on one side and Fedora Core 6 on the other, I tried to install Fedora. It all seemed to go well and deleted the SLED 10 installation, but when it rebooted, all I could get was the Grub loader 1.5 message, followed by Error 17 (which I understand means unable to mount the device).

Exactly the same thing happened when I tried to install Ubuntu. I assumed that it was the SATA drive being the boot drive in BIOS that's causing the problem, but when I put SLED 10 back on, everything went fine again. No changes to BIOS or anything else, except the installation DVD of course.

Since I didn't know what to do with that, it was then necessary to run Windows fixmbr to get online to ask this forum what to do about it.

I looked at other Grub Error 17 posts and they didn't help really. I'm sure someone knows and I'd be grateful if said someone could help.


birchyboy
(3GHz P4 dual core, Asrock MoBo 775i65GV, 160Gb SATA (Win XP Pro); 37Gb IDE (Linux); 1Gb RAM)
 
Old 12-31-2006, 12:18 PM   #2
odd2k
Member
 
Registered: Oct 2006
Distribution: Slackware-11.0
Posts: 35

Rep: Reputation: 15
Well, it could be lots of things, I suppose. It would probably be easier to troubleshoot if you would output your /boot/grub/menu.lst (I think it's changed name to grub.conf now, though) and /etc/fstab files here, to see what disk grub is trying to read from.

In menu.lst, make sure your root= is set to the same partition where your / is mounted.
 
Old 12-31-2006, 12:33 PM   #3
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Original Poster
Rep: Reputation: 0
odd2k - thanks for the suggestion, but as a newbie, how exactly to I get the /boot/grub/grub.conf and /etc/fstab for the failed install?

birchyboy
(3GHz P4 dual core, Asrock MoBo 775i65GV, 160Gb SATA (Win XP Pro); 37Gb IDE (Linux); 1Gb RAM)
 
Old 12-31-2006, 03:00 PM   #4
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
Quote:
how exactly to I get the /boot/grub/grub.conf and /etc/fstab for the failed install?
(1) Boot up a Live CD, any one will do

(2) makde a directory in the /mnt of the boot-up Linux, mount your Fedora partition on it. Say your Fedora is in hda1 partition the commands (need root privilege) will be
Code:
mkdir /mnt/hda1
mount /dev/hda1 /mnt/hda1
(3) Go the the boot-up Linux desk top and search in /mnt directory. The file you after are /mnt/hda1/boot/grub/menu.lst (or /mnt/hda1/boot/grub/grub.conf) and /mnt/hda1/etc/fstab once the partition hda1 has been mounted. Adjust hda1 if your Fedora partition isn't hda1.

(4) Cut and paste the information in the thread.
 
Old 01-01-2007, 04:28 AM   #5
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Original Poster
Rep: Reputation: 0
Saikee - many thanks for that. I'll give it a try during New Year's Day and post the result later.

Incidentally, I like your 'cloning XP' tips. I actually used HD Clone (hdclone.3.1.12.be.en) to do a similar thing (the 37Gb IDE to 160Gb SATA I described in my post). I forgot to disconnect the original drive, so XP locked up, but the second try was fine. Reclaimed the extra space with partition magic. Reformatted the 37Gb and I'm now using that for Linux experiments. It's a steep learning curve, but I love the Linux community's approach!
 
Old 01-01-2007, 05:04 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
birchyboy,

There is a "Gparted" and "Parted Magic" in Linux now available as bootable iso Live CD images. They are on par if not better than the commercial software. One thing for sure you don't need to install any of them as the case of the Windows-based commercial software.
 
Old 01-01-2007, 10:52 AM   #7
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Original Poster
Rep: Reputation: 0
saikee, below is the contents of grub.conf. I mounted hda1 and there appears to be nothing in it. I mounted hdc1 and this is what is in it (I didn't bother to change 'other' to Win XP in the installation) -

# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd1,0)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/VolGroup00/LogVol00 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title Other
rootnoverify (hd0,0)
chainloader +1
 
Old 01-01-2007, 11:42 AM   #8
odd2k
Member
 
Registered: Oct 2006
Distribution: Slackware-11.0
Posts: 35

Rep: Reputation: 15
I'm guessing the following:

Quote:
Originally Posted by birchyboy
/dev/VolGroup00/LogVol00
is an LVM group or whatchamacallit. I don't really have any experience with LVM, but don't you need some special drivers in your initrd (or built-in to the kernel?) in order to mount it at boot time?

Is your root= entry in grub.conf correct? Is grub installed in /boot/boot/grub/? (In this case, I think it should be.). Either way, try creating a symlink in /boot called boot, that points to /boot. Like so:

Code:
ln -s /boot /boot/boot
I don't know exactly how LVM works, but would it be possible to all those entries in grub.conf with the respective device files (hda1, hda2 etc)? just for troubleshooting, of course.
 
Old 01-01-2007, 12:45 PM   #9
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
birchboy,

OK here is what I think.

You saw nothing in hda1 because Fedora does not support ntfs partition out of a box. You need to read this thread to add "ntfs-3g".

To fire up Fedora you need to do the following

(A) Implement the change (marked red) to grub.conf.
Code:
# grub.conf generated by anaconda
#
# Note that you do not have to rerun grub after making changes to this file
# NOTICE: You have a /boot partition. This means that
# all kernel and initrd paths are relative to /boot/, eg.
# root (hd1,0)
# kernel /vmlinuz-version ro root=/dev/VolGroup00/LogVol00
# initrd /initrd-version.img
#boot=/dev/sda
default=1
timeout=5
splashimage=(hd1,0)/grub/splash.xpm.gz
hiddenmenu
title Fedora Core (2.6.18-1.2798.fc6)
root (hd1,0)
kernel /vmlinuz-2.6.18-1.2798.fc6 ro root=/dev/hdc2 rhgb quiet
initrd /initrd-2.6.18-1.2798.fc6.img
title Other
rootnoverify (hd0,0)
chainloader +1
I need to know your partition scheme and you can tell us by posting the the output of
Code:
fdisk -l
In the mean time I have assumed the root of your Fedora is in hdc2. It would be the first one with partition ID 83 after hdc1. You can correct it yourself and try it.

(B) Edit Fedora's /etc/fstab and replace the partition reference for "/dev/VolGroup00/LogVol00" with "/dev/hdc2" for the line defining the root or "/" of the Fedora.

Fedora, so is eavy member of the Red Hat family pushes very hard to use LVM and employ a system to find the root of the Linux by "Label" like root=/dev/VolGroup00/LogVol00 instead of the conventional device name like root=/dev/hdc1. I always change it back myself. All Red Hat distros work fine with the standard device names and I got plenty of them to show.
 
Old 01-01-2007, 01:41 PM   #10
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Original Poster
Rep: Reputation: 0
odd2k - Yes, the Logical Volume Manager is installed by default. I don't know much about it either, except that it doesn't rely on physical volumes like ext3.

saikee - I confess that I hadn't realised that Fedora Core6 didn't support ntfs 'out of the box'. I'll try your suggestions tomorrow (I'm still off for the New Year, yipeeeee).

Thanks both for your time to post all this stuff.
 
Old 01-03-2007, 04:53 PM   #11
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Original Poster
Rep: Reputation: 0
Hi, both. I haven't been able to get very mch further with the Fedora Core 6. I tried altering the Grub.conf from Ubuntu, but it still wouldn't boot. I tried looking at the Grub.conf file itself, but all I could get using Vi was unknown filesystem LVM001, or something of the like. I tried an installation with no LVM support, but that still gave Error 17.
Now I have reinstalled SLED 10 and it all works properly, so I think I will stay with that until I know a bit more about the workings of Linux ...

Thanks for your time.
 
Old 01-03-2007, 05:16 PM   #12
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 112Reputation: 112
birchyboy,

There are others think LVM is the best thing since slice bread but as a newbie I recommend the use of a single partition for installing Fedora. That will force it to drop LVM because no boot loader can read a LVM. Other Linux needs a driver to read the damn thing. It isn't a bad idea for a server but the added complication should be avoided by the desktop users.

To avoid LVM in the Anaconda installer of Fedora just tell it you want expert in partitioning, select a partition, select edit, click it to mount "/", format it in Ext3 and click OK.

I run FC2 to FC6 all with a single partition. In fact every one of the 137 Linux in here all in a single partition.
 
Old 01-04-2007, 01:21 PM   #13
birchyboy
LQ Newbie
 
Registered: Nov 2006
Location: Midlands, UK
Distribution: Open SuSE 11
Posts: 11

Original Poster
Rep: Reputation: 0
Saikee

It's all working now. Open SuSE 10, with KDE, although I used Gnome with SLED10 - still experimenting.

Your Linux systems link is an eye-opener. My PC is hand built too and I have been using Windows/DOS for years, so I know it pretty well, including lot of corners that many others don't. Linux is a refreshing change and reminds me of my first dabblings with DOS programming and commands.

I expect that I will visit your 137 Linux installation pages again!

Thanks a lot for your help.






.
 
  


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
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 10:29 AM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Software 11 02-25-2007 07:42 AM
GRUB Error 26: Disk Read Error (using grub4dos and ubuntu) Dark_Master Linux - Newbie 2 11-07-2006 11:58 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM


All times are GMT -5. The time now is 05:07 AM.

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