LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
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-10-2010, 11:19 PM   #1
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Rep: Reputation: 0
Error message after BIOS | unknown filesystem


I installed Kubuntu 10.04 last couple days ago.
Yesterday I installed some package software,
After reboot, I had problem to login in GUI in Kubuntu.
I tried few solutions in web I found,
Now It became more worse !

After BIOS - show this error message

error : unknown filesystem
grub rescue>

anyone can help ? Thanks.
 
Old 12-10-2010, 11:25 PM   #2
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Reinstall grub2 from a liveCD

https://help.ubuntu.com/community/Gr...0from%20LiveCD
 
Old 12-10-2010, 11:36 PM   #3
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Hey andrew thank for reply,
I tried | SIMPLEST - Copy GRUB 2 Files from the LiveCD

It seem doesn't work. Here is what I got after followed the commands.


ubuntu@ubuntu:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x69f17e12

Device Boot Start End Blocks Id System
/dev/sda1 1 5 40131 de Dell Utility
/dev/sda2 6 1918 15360000 7 HPFS/NTFS
/dev/sda3 * 1918 36486 277668259+ 7 HPFS/NTFS
/dev/sda4 36486 38914 19502081 5 Extended
/dev/sda5 36486 38807 18642944 83 Linux
/dev/sda6 38807 38914 858112 82 Linux swap / Solaris
ubuntu@ubuntu:~$ sudo mount /dev/sda5 /mnt
mount: you must specify the filesystem type
ubuntu@ubuntu:~$ sudo grub-install --root-directory=/mnt /dev/sda
/usr/sbin/grub-probe: error: cannot find a device for /mnt/boot/grub (is /dev mounted?).
No path or device is specified.
Try `/usr/sbin/grub-probe --help' for more information.
Auto-detection of a filesystem module failed.
Please specify the module with the option `--modules' explicitly.
 
Old 12-11-2010, 08:25 AM   #4
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Code:
sudo mount /dev/sda5 /mnt
sudo grub-install --root-directory=/mnt/ /dev/sda
I don't know why you got this error message after the first command:
Code:
mount: you must specify the filesystem type
But you did miss the trailing / in the --root-directory=/mnt/
You might also want to add
Code:
-t ext4
to the mount command to see if the error goes away.
 
Old 12-11-2010, 09:13 AM   #5
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hello weidemmu and welcome to LQ,

referring to the errormessage you've a kernel which does not support the ext4 file-system, i.e. the kernel is too old to handle ext4, or the partition /dev/sda5 is not formatted (which seems unlikely).

In order to check if the kernel of the live-CD supports ext4 filesystem you'll have to find the .config file for the kernel, either in /usr/src/linux or in /boot and execute the command
Code:
grep -i ext4 nameoftheconfigfile
and post the output here.

If the kernel of the live-CD supports ext4 with a module, it may be that the module is not loaded, you can load it with
Code:
modprobe ext4
Markus
 
Old 12-11-2010, 11:43 AM   #6
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Post

Andrew - I added the trailing, output still same.
I issued command -t ext4

ubuntu@ubuntu:~$ sudo mount -t ext4 /dev/sda5 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so


Markus - Here is the result

ubuntu@ubuntu:~$ grep -i ext4 nameoftheconfigfile
grep: nameoftheconfigfile: No such file or directory
ubuntu@ubuntu:~$ modprobe ext4
FATAL: Module ext4 not found.

Thank for kindly help, I wish you two can help me further.
Could you brief describe commands ? Thanks.

Last edited by weidemmu; 12-11-2010 at 12:06 PM.
 
Old 12-11-2010, 12:28 PM   #7
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Well, I meant you should search for the configfile and substitute the word nameoftheconfigfile with the real config-file. It normally resides as ".config" in the /usr/src/linux directory, but I'm not sure if this is true for your live-CD. As an example. On my machine:
Code:
samsung:/usr/src/linux# grep -i ext4 .config
CONFIG_EXT4_FS=m
CONFIG_EXT4_FS_XATTR=y
CONFIG_EXT4_FS_POSIX_ACL=y
CONFIG_EXT4_FS_SECURITY=y
# CONFIG_EXT4_DEBUG is not set
you see, that ext4 support is configured as a module.

Markus
 
Old 12-11-2010, 08:45 PM   #8
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I cant login in to Kubuntu.
After BIOS, It jump to grub prompt

grub >

What commands I can use in this prompt to get me in Kubuntu ?

I cant find the directory by using live-CD.

I have attached a .txt for boot info script, see what can help.
Attached Files
File Type: txt RESULTS2.txt (8.1 KB, 14 views)
 
Old 12-11-2010, 09:30 PM   #9
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You have legacy grub (0.97) and not grub2. You should follow these instructions for reinstallation.

https://help.ubuntu.com/community/Gr...talling%20GRUB

You seem to lack a /boot/grub/menu.lst file. What exactly have you done? What version of Kubuntu is this?

You state in the first post that it is 10.04, but then there would be grub2 and not grub.

Last edited by andrewthomas; 12-11-2010 at 09:35 PM.
 
Old 12-11-2010, 10:39 PM   #10
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
I'm using Kubuntu 10.04 LTS Desktop Edition

I'm not sure what I had done cause this.

I was having problem after installed Kubuntu with Window Vista last 3 days ago.

First time reboot was no problem, I logged in Vista.
2nd time reboot failed.
I got this message :

" no module name found
Aborted. Press any key to exit.
Broadcom UNDI PXE-2.1 v11.0.9
Copyright (C) 2000-2009, Broadcom Corporation
Copyright (C) 1997-2000, Intel Corporation
All rights reserved.

PXE-E61 : Media test failure, check cable
PXE-M0F : Exiting Broadcom PXE COM.
Operating System not found"

I found this solution at one web
I boot my Live-cd and issued this commands

sudo mount /dev/sda5 /mnt
sudo grub-install --recheck --root-directory=/mnt /dev/sda

problem solved, but once I login Vista and reboot, problem come.
I tried few times above commands.

Last 2 days ago, I did commands to install desktop screen recorder - xvidcap.

sudo apt-get install xvidcap

After reboot, current problem come.
 
Old 12-11-2010, 10:46 PM   #11
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Hey, Andrew

I followed reinstalling using GUI.

Selected manuall partition.

I click on my linux partition sda5
Which mount point should I select ?

I selected /boot , after that I select forward

Error Message :

No root file system is defined.
Please correct this from the partitioning menu.
 
Old 12-11-2010, 11:08 PM   #12
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
You don't have a separate /boot partition so you should choose /.

Furthermore, I think that your Dell recovery partition is overwriting the mbr ( https://bugs.launchpad.net/ubuntu/+s...b2/+bug/482757 ) .

See this post for a fix.

http://ubuntuforums.org/showthread.p...12#post9081112

For future reference, this is a great grub2 thread:

http://ubuntuforums.org/showthread.php?t=1195275

Last edited by andrewthomas; 12-11-2010 at 11:11 PM.
 
Old 12-12-2010, 12:36 AM   #13
weidemmu
LQ Newbie
 
Registered: Dec 2010
Posts: 10

Original Poster
Rep: Reputation: 0
Andrew,

By selecting mount /. will it delete all files in my Kubuntu partition ?

like picture,video,doc.
 
Old 12-12-2010, 07:59 AM   #14
andrewthomas
Senior Member
 
Registered: May 2010
Location: Chicago Metro
Distribution: Arch, Gentoo, Slackware
Posts: 1,690

Rep: Reputation: 312Reputation: 312Reputation: 312Reputation: 312
Is this a Kubuntu 10.04 LiveCD? If it is, then I am not sure that method will work.
I am unsure how you got grub on your HD.
I would install grub2 from within a chroot.
Using METHOD 3 - CHROOT : again from https://help.ubuntu.com/community/Gr...0from%20LiveCD
except that you don't have grub2 installed so you must install it first.
You could either cut and paste the mount commands into the terminal one at a time or copy the entire thing (including the #!/bin/bash) into kwrite and save it to your liveCD desktop as chroot, and make it executable. Then, after switching your terminal to the directory that contains the file, run the file by typing
Code:
./chroot
Code:
#!/bin/bash
sudo mount /dev/sda5 /mnt/
sudo mount --bind /proc /mnt/proc
sudo mount --bind /dev /mnt/dev
sudo mount --bind /dev/pts /mnt/dev/pts
sudo mount --bind /sys /mnt/sys
sudo mount --bind /etc/resolv.conf /mnt/etc/resolv.conf
sudo chroot /mnt/ /bin/bash
# enter sudo apt-get install grub-pc here <ctl-d> or exit to quit
sudo umount /mnt/etc/resolv.conf
sudo umount /mnt/sys
sudo umount /mnt/dev/pts
sudo umount /mnt/dev
sudo umount /mnt/proc
sudo umount /mnt/
 
Old 12-12-2010, 09:01 AM   #15
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Hi,

I don't think this will work. One has to mount the devices before chrooting!

I would use the following
Code:
mount /dev/sda5 /mnt
mount -t proc none /mnt/proc
mount -o bind /dev /mnt/dev
chroot /mnt /bin/bash
this is how it works with Gentoo.

Markus
 
  


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
[SOLVED] Error: Unknown Filesystem ghostcamera Linux - Laptop and Netbook 6 09-02-2010 07:03 AM
Unknown error message!!!! GCONF or something? alirezan1 Linux - Newbie 3 08-08-2010 08:45 PM
Grub error: unknown filesystem LydonZA Linux - Newbie 6 05-27-2010 06:00 AM
cant start up (error: unknown filesystem) Salo3750 General 2 03-29-2010 01:55 PM
unknown user error message niranjan_s Fedora 1 09-16-2004 03:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

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