LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 03-04-2008, 05:25 PM   #1
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Rep: Reputation: 0
Grub 17 error


Mandriva One 2007 only

Hi, I have been using Mandriva happily for a few months and at the weekend tried to reformat an external hard drive to act as a back up drive. In the process I seem to have screwed up the auto mounting of my devices so that I now get a GRUB 17 error message on startup and my system hangs without even beginning to boot. I've done a bit of research and I think the problem is in the fstab file. As I'm a newbie, I'm a little scared of editing this file as I may do more damage.

Please find below some of the informtion I have managed to find. I have access to a terminal through a live CD and access to the internet through another computer.

Hoping somebody can help me out of this whole which I've got myself into. Thx


"/etc/fstab" contains the following...
none / unionfs rw 0 0
/dev/sda1 /media/hd ext2 sync,relatime 0 0
/dev/sda5 /media/hd2 vfat unmask=0022,users,iocharset=utf8,sync,noauto,exec 0 0
/dev/sr0 /media/cdrom auto unmask=0022,users,iocharset=utf8,sync,noauto,ro,exec 0 0


"fdisk -l" shows the following...
Device Boot Start End ID System
/dev/sda1 * 1 15353 83 Linux
/dev/sda2 15354 30401 5 Extended
/dev/sda5 15354 30027 b W95 FAT32
/dev/sda6 30028 30401 82 Linux Swap/Solaris

and "mount" shows the following...
none on / type unionfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda5 on /media hd2 type vfat (rw,nosuid,nodev,sync,users,umask=0022,iocharset=utf8)
 
Old 03-04-2008, 05:35 PM   #2
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Welcome to LQ!

This reformat thing you did sounds a little suspicious ... are you sure you formatted correct partition on the correct drive?
The fstab you see is from livecd, not the one your Mandriva is using. Assuming your root partition is sda1, do something like ls -a /media/hd to see if there are any files.
 
Old 03-04-2008, 05:43 PM   #3
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
it says

./ ../

Last edited by nickstah; 03-04-2008 at 05:49 PM. Reason: incorrect response
 
Old 03-04-2008, 05:55 PM   #4
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
OK, what is the output of mount command from LiveCD?
 
Old 03-04-2008, 05:59 PM   #5
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
none on / type unionfs (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sda5 on /media hd2 type vfat (rw,nosuid,nodev,sync,users,umask=0022,iocharset=utf8)
 
Old 03-04-2008, 06:05 PM   #6
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Hmh, it mounts automatically your Windows partition but not Linux ... try

mount /dev/sda1 /mnt/hd

Are you sure there is no typo in your initial post
Quote:
/dev/sda1 /media/hd ext2 sync,relatime 0 0
 
Old 03-04-2008, 06:13 PM   #7
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
I've checked and there is no typo.

I tried:
mount /dev/sda1 /media/hd

I used "media" because I think Mandriva uses media rather than "mnt"....and it says

mount: you must specify the filesystem type

Ps does this mean I have NOT reformated the HDD by mistake?
 
Old 03-04-2008, 06:25 PM   #8
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
OK, you got the idea, to mount sda1 and check if there are any files. If there was a valid Linux filesystem the mount command you issued would have mounted it. How did you reformat that external drive?
 
Old 03-04-2008, 06:29 PM   #9
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
I used the Mandriva Disk Partitioning GUI. Is there anything I can do to recover the data?
 
Old 03-04-2008, 06:47 PM   #10
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
You formatted it to FAT32?
 
Old 03-04-2008, 06:52 PM   #11
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
I partitioned the external hard drive approx 50/50 linux EXT3 and Windows. I can see from fdisk and the partitioning GUI with the live CD that I have not altered the size of the HDD partitions...so have I really reformatted the HDD as well as the external drive?
 
Old 03-04-2008, 06:58 PM   #12
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
OK, try this:

mount -t vfat /dev/sda1 /media/hd

Something weird has happened to your sda1, GRUB error 17 (from memory) means partition not found, I think.
 
Old 03-04-2008, 07:05 PM   #13
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
I just tried:

#mount -t vfat /dev/sda1 /media/hd

and

#mount -t ext3 /dev/sda1 /media/hd

for both it says:
wrong fs type, bad option, bad superblock on /dev/sda1, missing codepage or other error
 
Old 03-04-2008, 07:09 PM   #14
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Hmmm ... what fsck tells you about sda1? fsck /dev/sda1
 
Old 03-04-2008, 07:15 PM   #15
nickstah
LQ Newbie
 
Registered: Mar 2008
Distribution: Mandriva One
Posts: 10

Original Poster
Rep: Reputation: 0
It says:

Couldn't find ext2 superblock, trying backup blocks...
/dev/sda1 was not cleanly unmounted, check forced.
Pass 1: Checking inodes, blocks, and sizes
Inode 7 has illegal blocks. Clear<y>?

What should I press?

I forgot to say in the intro, that after I had formatted the external drive, I still could not access it so I rebooted. Everything was going ok and it was booting as normal and it got partly through booting Mandriva, before giving me a prompt saying something like could not find ext2 on sd....supoerblock etc.

I then went back into the disk partitioner using the Live CD to demount the external drive. don't ask me why... I wish I'd never touched it obviously.

But this means that after the formatting, I had not formatted the wrong drive as it still booted up, if only partially.
 
  


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
Sofware RAID 1 + Fedora Core 3 + Boot Error L1 + GRUB 21 ERROR najeebsyed2 Linux - Hardware 0 10-25-2007 02:20 PM
Grub error 17, and wont reinstall using grub-install! chiefreborn Linux - General 6 06-06-2007 11:29 AM
Error Grub stage2 loading error (using FC6) on seperate hdd Anifield Linux - Newbie 7 03-20-2007 02:14 PM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 09:33 AM


All times are GMT -5. The time now is 12:21 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