LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Repair a filesystem ...fsck is it??????? (https://www.linuxquestions.org/questions/linux-general-1/repair-a-filesystem-fsck-is-it-206409/)

hrg 07-17-2004 07:49 PM

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.

RobertP 07-17-2004 08:36 PM

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

hrg 07-23-2004 08:19 AM

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

RobertP 07-24-2004 07:41 AM

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


All times are GMT -5. The time now is 12:36 AM.