LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 07-17-2004, 07:49 PM   #1
hrg
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Rep: Reputation: 0
Repair a filesystem ...fsck is it???????


Hello People

OK basically I need to know how to fix a linux filesystem? I have loaded SuSe on my laptop and everythime I run the grub setup commands I get filesystem unknown.

The reason for this is that I keep on getting an error 17: cannot mount selected partition.

What I need to do is run some sort of fsck on the partition so that it can repair the filesystem and as I thnk it may have lost some of its superblocks on the partition.


The filesystem was loaded as ext2 .......i think. but when I run root on the grub command line I get unknow filesystem even if I select the correct partition.


I also have redhat and winXP running Fine although redhat has some iptables issue and keeps on asking at boot up to run the iptables -h command


error message goes something like this

......mounting fs vfat ....[failed]
perhaps your kernal needs updating

this occurs on the redhat boot up.

persario 2500 laptop

winxp first partition
linux redhat hda5
suse hda6
swap hda7
vfat hda8

If anybody can shed any light on these issues I would be most grateful.

Thanks in advance.
 
Old 07-17-2004, 08:36 PM   #2
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
What is in /dev/hda8 that GRUB needs to know about? If Linux and that other OS run well, it does not seem like a booting issue. I suspect it is a mounting problem. Please list /etc/fstab and the partition table and your filesystem types:
cat /etc/fstab
fdisk -l /dev/hda

cat /proc/filesystems
 
Old 07-23-2004, 08:19 AM   #3
hrg
LQ Newbie
 
Registered: Jul 2004
Posts: 12

Original Poster
Rep: Reputation: 0
Here is the info cheers



fdisk -l /dev/hda

Device boot start end blocks id system

/dev/hda1 * 1 2058 16530853+ 7 HPFS/NTFS
/dev/hda2 2059 4864 22539195 f Win95 Ext'd (LBA)
/dev/hda5 2059 3333 10241406 83 Linux
/dev/hda6 3334 4608 10241406 83 Linux
/dev/hda7 4609 4736 1028128+ 82 Linux SWAP
/dev/hda8 4737 4864 1028128+ b Win95 FAT32


/proc/filesystems

ext3
nodev sysfs
nodev rootfs
nodev bdev
nodev proc
nodev sockfs
nodev futexfs
nodev tmpfs
nodev pipefs
nodev eventpollfs
nodev devpts
ext2
nodev ramfs
nodev hugetlbfs
minix
iso9660
nodev nfs
nodev nfs4
nodev selinuxfs
nodev rpc_pipefs

/etc/fstab

LABEL=/ / ext3 defaults 1 1
none /dev/pts devpts gid=5, mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda8 /windows vfat defaults 0 0
/dev/hda7 /swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 07-24-2004, 07:41 AM   #4
RobertP
Member
 
Registered: Jan 2004
Location: Manitoba, Canada
Distribution: Debian
Posts: 454

Rep: Reputation: 32
hda8 is vfat

filesystems does not show vfat

Try
/lib/modules/2.6.5-7.95-default/kernel/fs/vfat

kernel 2.6.5 can be downloaded from

ftp://ftp.sunet.se/pub/Linux/distrib...-7.95.i586.rpm


What version of the kernel are you using? If you rolled your own, perhaps you left out vfat support.

An alternative would be to delete the feference to /dev/hda8 in /etc/fstab
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Fsck failed. Please repair manually and reboot. jginger SUSE / openSUSE 4 10-23-2005 01:44 PM
need filesystem repair rblampain Linux - Software 5 07-12-2005 11:17 PM
filesystem repair natalia21 Linux - Software 1 02-03-2005 06:50 AM
kernel can not boot / fsck can not repair rabby Linux - Hardware 7 04-11-2004 10:10 AM
fsck won't repair drive ffib Linux - General 5 10-06-2003 02:42 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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