LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu
User Name
Password
Ubuntu This forum is for the discussion of Ubuntu Linux.

Notices


Reply
  Search this Thread
Old 12-09-2010, 04:09 PM   #1
sonicboy
Member
 
Registered: Mar 2009
Posts: 72

Rep: Reputation: 15
GRUB problems


Hi,

When I started up my pc today I noticed a message stating "error: unknown filesystem." with a prompt "grub rescue>"
I knew my hd had already some errors on it, but never tried to fix it since I didn't want to break it because everything worked fine.

I have two questions:
1) what can I do get my pc started up again? I assume I could try to re-install grub manager but how do I do this (I'm linux-newbie you know).
2)What are the possible dangers given my hd is not in perfect shape (but not that bad neither, no read errors, no crashes..., gparted stated that my hd had errors, that's all i know)

thanx!

ps: with live session i'm able to read and write to harddisk.
 
Old 12-09-2010, 05:31 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Assuming that you are using 9.10 or later reinstall using these instructions:

https://help.ubuntu.com/community/Gr...0from%20LiveCD
 
Old 12-09-2010, 07:13 PM   #3
widget
Senior Member
 
Registered: Oct 2008
Location: S.E. Montana
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628

Rep: Reputation: 497Reputation: 497Reputation: 497Reputation: 497Reputation: 497
I would follow these instructions as a first attempt to fix this problem;

https://help.ubuntu.com/community/Grub2

Ignore any instructions about editing files. All you should need is the "sudo grub-install" command. "sudo update-grub" needs to be run when you are back on your OS.

If that does not work follow these instructions;
https://help.ubuntu.com/community/Gr...0Rescue%20Mode

You may want to look at the second one first and if it does not scare you off use it first.
 
Old 12-13-2010, 08:11 AM   #4
sonicboy
Member
 
Registered: Mar 2009
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by andrewthomas View Post
Assuming that you are using 9.10 or later reinstall using these instructions:

https://help.ubuntu.com/community/Gr...0from%20LiveCD
I've tried both methods, but when using the command

"sudo mount /dev/sd06 /mnt/home" I receive the message "specify file system"

What else parameters do I have to give in for this command to work?

when trieng the ubuntu gui method, the only partition I cannot see is the partition on which kubuntu 10.10 is installed, my home and swap partitions as well as the windows partition i can see.


thx in advance
 
Old 12-13-2010, 05:00 PM   #5
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Quote:
Originally Posted by sonicboy View Post
I've tried both methods, but when using the command

"sudo mount /dev/sd06 /mnt/home" I receive the message "specify file system"

What else parameters do I have to give in for this command to work?

when trieng the ubuntu gui method, the only partition I cannot see is the partition on which kubuntu 10.10 is installed, my home and swap partitions as well as the windows partition i can see.


thx in advance
Code:
sudo mount /dev/sd06 /mnt/home
What is this? You probably should be selecting /dev/sda6 not /dev/sd06

Use
Code:
sudo fdisk -l
to check if you are not sure.
 
Old 12-14-2010, 01:32 AM   #6
sonicboy
Member
 
Registered: Mar 2009
Posts: 72

Original Poster
Rep: Reputation: 15
my apologies,

I noted it wrong in the previous post.

What I did was:


"sudo mount /dev/sda6 /mnt/home" (after first creating the directory /mnt/home)

the output i get is:

"mount: you pust specify the filesystem type"

what should i type?

thanx,

Wouter

update:

I tried sudo mount -t ext4 /dev/sda6 /mnt/home
and got:

wrong fs type, bad option, bad superblock on /dev/sda6,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so

when doing dmesg, i receive:
[ 61.994042] ppdev: user-space parallel port driver
[ 66.959230] EMU10K1_Audigy 0000:04:05.0: PCI INT A -> GSI 20 (level, low) -> IRQ 20
[ 69.250186] ADDRCONF(NETDEV_UP): eth0: link is not ready
[ 72.240383] uli526x: eth0 NIC Link is Up 100 Mbps Full duplex
[ 72.240633] ADDRCONF(NETDEV_CHANGE): eth0: link becomes ready
[ 75.962198] lp0: using parport0 (interrupt-driven).
[ 83.109650] eth0: no IPv6 routers present
[ 145.613874] CPUFREQ: Per core ondemand sysfs interface is deprecated - up_threshold
[ 148.630030] Clocksource tsc unstable (delta = -105215404 ns)
[ 856.582306] EXT4-fs (sda6): VFS: Can't find ext4 filesystem

so whats wrong?

thanx

Last edited by sonicboy; 12-14-2010 at 01:45 AM.
 
Old 12-14-2010, 02:28 AM   #7
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Quote:
Originally Posted by sonicboy View Post
so whats wrong?
Basically what's wrong can be summed up in this
Quote:
I knew my hd had already some errors on it, but never tried to fix it since I didn't want to break it because everything worked fine.
The filesystem is broken - it may have been fixable previously, but may not be now. Try and run a fsck against it from a liveCD environment. May need to use a backup superblock - post back if you need that info.
What does your fstab specify ?.
 
Old 12-14-2010, 01:47 PM   #8
sonicboy
Member
 
Registered: Mar 2009
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Basically what's wrong can be summed up in thisThe filesystem is broken - it may have been fixable previously, but may not be now. Try and run a fsck against it from a liveCD environment. May need to use a backup superblock - post back if you need that info.
What does your fstab specify ?.
Hi,

To be honnest, I don't know wat you mean by fsck nor fstab.

Could you be more precise what command I need to type, including the parameters?

thanx,
 
Old 12-14-2010, 07:41 PM   #9
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
If you have a working Linux system, a simple "cat /etc/fstab" will show you that. From a liveCD you'll need to find it; look under "Places" for the appropriate "xx Gig Filesystem" (xx is the size; hopefully you won't have too many).
Whilst in the terminal enter these (be patient if using a liveCD and post the output
Code:
sudo parted -l
sudo fdisk -l
fsck is used to check (and repair) a filesystem - it can be destructive. I usually wouldn't recommend you use it unless you have a good backup. It's as simple as "fsck.ext4 /dev/sda6". You may not have any option but to try it.
 
Old 12-15-2010, 02:12 AM   #10
sonicboy
Member
 
Registered: Mar 2009
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
If you have a working Linux system, a simple "cat /etc/fstab" will show you that. From a liveCD you'll need to find it; look under "Places" for the appropriate "xx Gig Filesystem" (xx is the size; hopefully you won't have too many).
Whilst in the terminal enter these (be patient if using a liveCD and post the output
Code:
sudo parted -l
sudo fdisk -l
fsck is used to check (and repair) a filesystem - it can be destructive. I usually wouldn't recommend you use it unless you have a good backup. It's as simple as "fsck.ext4 /dev/sda6". You may not have any option but to try it.
The problem is that I cannot find my linux system partition when running a live session, only partitions i can see are the windows and home partitions (and also the swap I think). This is the main reason why i cannot use the suggestions previously mentioned.

I have two questions:

1)When doing fsck.ext4 /dev/sda, does this contain a risk for whole my hd or only for the mentioned partition (sda6, the linux system partition?)

2)Could a re-install of linux kubuntu 10.10 also solve my problems? (could it also take a risk for my windows partition?)

thx in advance
 
Old 12-15-2010, 02:33 AM   #11
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
Thumbs up

sonicboy

Simply put your Linux installation CD and boot it.

1.) There you will get a option called 'Install grub loader' and 'upgrade grub loader'
2.) Select 'Install grub loader'
3.) problem solved.

best regards,

Last edited by prodev05; 12-21-2010 at 04:21 AM.
 
Old 12-15-2010, 02:35 AM   #12
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Just that filesystem - you should be able to keep your home partition during the re-install if you choose to do that. Under "expert partitioner" or somesuch I imagine.
Your Windows stuff should be safe regardless.
 
Old 12-15-2010, 02:36 AM   #13
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,128

Rep: Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121Reputation: 4121
Prodev, this is a filesystem error, not (strictly) a boot-loader issue. Just looks like it.
 
Old 12-15-2010, 02:23 PM   #14
sonicboy
Member
 
Registered: Mar 2009
Posts: 72

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by syg00 View Post
Just that filesystem - you should be able to keep your home partition during the re-install if you choose to do that. Under "expert partitioner" or somesuch I imagine.
Your Windows stuff should be safe regardless.
Update:

I re-installed kubuntu and it now i get grub screen again and kubuntu starts up. But the first boot i got a message "errors detected on /home, do you want to fix it, ignore, or don't mount partition" (or something similar, don't remember 100% exactly).

So, now everything works fine but I'm a little bit suspicious about getting similar problems again. What should I do to check my hd for errors and repair it (i presume with gparted?)

update 2:
I installed gparted and when viewing information on sda1 (my windows c: partition) i got the following warning

(first technical information, don't think it's necessary to type except for that it's an ntfs partition which is bootable)
error: this software has detechted that the disk has at least 3 bad sectors
warning: the disk has bad sector. This means physical damage on the disk surface caused by deterioration, manufacturing faults or other reason. The reliability of the disk ma stay stable or degrade fast. We suggest making a full backup urgently by running 'ntfsclone --rescue...' then run 'chkdsk /f /r' on windows and reboot it twice! Then you can resize NTFS safely by additionaly using the --bad-sectors option of ntfsresize.

unable to read the contents of this file system!
Because of this some operations may be unavailable

What should I do with this information? It's the same one I received when resizing my disk some months ago for installin linux (fyi: I resized the d: (sda2) partition so sda1 stayed intact). I'm a little bit affraid of destroying my whole disk while trying to repair it (noob indeed :-))
Also, I already tried to use chkdsk /f /r on windows, but i got a dialog stating the disk was in use and could be scanned when rebooting, I did this but since then i got the same message when booting windows (before the login screen). The disk is always in use and so windows cannot scan it. Has this something to do with the bad sectors?

Thanx for your information

Last edited by sonicboy; 12-15-2010 at 03:14 PM.
 
Old 12-15-2010, 11:51 PM   #15
prodev05
Member
 
Registered: Jul 2009
Location: Planet Earth
Distribution: Unix & Linux Variants
Posts: 304

Rep: Reputation: 20
syg00 thank you for notifying me
 
  


Reply



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
Gentoo... grub problems... "/boot/grub/stage1" exists... no halo14 Gentoo 5 02-06-2011 04:50 PM
Grub problems supern0va Linux From Scratch 4 06-15-2010 06:42 PM
Problems with /boot/grub/grub.conf not being read properly on reboots cmeyer Linux - Software 1 10-11-2008 06:34 PM
Problems with GRUB, not using whats in grub.conf **FIXED silentpetey Linux - General 1 11-06-2006 09:24 AM
Grub Error 17: Cannot mount selected partition and other Grub problems Sebastian Naitsabes Linux - General 1 07-05-2005 08:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Ubuntu

All times are GMT -5. The time now is 10:31 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
Open Source Consulting | Domain Registration