View previous topic :: View next topic |
Author |
Message |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Thu Aug 11, 2005 2:18 pm Post subject: [solved] Problem while mounting fat32 disks |
|
|
Hello
Im new gentoo user. I have the following problem: While i try to mount fat32 drive, i get following message:
Code: |
#mount /dev/hda1 /mnt/c
mount: wrong fs type, bad option, bad superblock on /dev/hda1, or too many mounted file systems
|
What is more, i have a problem while system boot. I think it might be the reason. Here is the message:
Code: |
FSCK.EXT2: No such file or directory while trying to open /dev/BOOT
/dev/BOOT:
The superblock could not be read or does not describe a correct ext2 filesystem. If the device is valid and it really contains an ext2 filesystem (and not swap or vfs or something else), then the superblock is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>
*Fsck could not correct all errors, manual repair needed [!!]
|
And then i'm asked about the root password, or told to press ctrl+d. The rest of the system is working well.
I am pretty sure that i enabled fat and vfat support in kernel; i was also told to enable DEVFS, so i did:
Code: |
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
|
I recompiled the kernel and used it, but it did not help at all.
I had installed gentoo using Mandrake rescue disk, and using it i could mount those disks with no problem at all, but just after chroot the problem happened upon me the first time.
Some info:
hda1, hda5, hda6 - old fat32 hdd's
hda7 - ext2, 32mb, i was told to make it to keep the kernel there
hda8 - swap
hda9 - ReiserFS, 3.5GB - my main disk now
If you need any more info, file listings etc, ask right away.
edit / there was hda2 and hda3 in place of hda5 and hda6, fixed _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669
Last edited by KosiarZ on Sun Aug 14, 2005 5:15 pm; edited 3 times in total |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Thu Aug 11, 2005 2:58 pm Post subject: |
|
|
Plz post your /etc/fstab, I suspect that your problem is there _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
opqdan Guru

Joined: 13 Dec 2004 Posts: 429 Location: Redmond, WA, USA
|
Posted: Thu Aug 11, 2005 3:06 pm Post subject: |
|
|
you most likely have 2 problems here:
/dev/BOOT doesn't exist (and never would), it is a placeholder in the fstab file that needs to be replaced with the actual location of the boot partition (/dev/hda# or whatever). You also probably have the same problem with /dev/ROOT and /dev/SWAP.
As far as fat support goes, make sure that you have it compiled into your kernel. The entry in fstab should have the fs "vfat". If you don't have a line in fstab for your FAT drive, then this is also a problem. you could mount the drive manually but you would need to specify the fs on the command line (I suspect this is the case since you also specify the mount location).
Post your fstab, and whether you have FAT enabled in your kernel. |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Thu Aug 11, 2005 7:20 pm Post subject: |
|
|
Here it is:
Code: |
# /etc/fstab: static file system information.
# $Header: /home/cvsroot/gentoo-src/rc-scripts/etc/fstab,v 1.14 2003/10/13 20:03:38 azarah Exp $
#
# noatime turns off atimes for increased performance (atimes normally aren't
# needed; notail increases performance of ReiserFS (at the expense of storage
# efficiency). It's safe to drop the noatime options if you want and to
# switch between notail and tail freely.
# <fs> <mountpoint> <type> <opts> <dump/pass>
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
/dev/BOOT/ boot ext2 noauto,noatime 1 1
/dev/ROOT/ xfs noatime 0 0
/dev/SWAP none swap sw 0 0
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
#/dev/fd0/ mnt/floppy auto noauto 0 0
# NOTE: The next line is critical for boot!
none /proc proc defaults 0 0
# glibc 2.2 and above expects tmpfs to be mounted at /dev/shm for
# POSIX shared memory (shm_open, shm_unlink).
# (tmpfs is a dynamically expandable/shrinkable ramdisk, and will
# use almost no memory if not populated with files)
# Adding the following line to /etc/fstab should take care of this:
none /dev/shm tmpfs defaults 0 0
|
I'm sure that i have FAT enabled in kernel. And, in fact, i do not have /dev/BOOT , /dev/ROOT or /dev/SWAP .
By the way, there's "/dev/ROOT/ xfs", and im pretty sure that its on ReiserFS; isn't it wrong? _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
mattmatteh Guru

Joined: 10 Mar 2004 Posts: 449 Location: near chicago
|
Posted: Thu Aug 11, 2005 7:38 pm Post subject: |
|
|
you never edited fstab, you need to check the install manual. or rtfm
but what you posted would not boot either... strange
and you need vfat in the kernel
to test without fstab try as root
are you sure the drive is fat32 not ntfs ?
try mount -t vfat /dev/hda1 /mnt/c |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Thu Aug 11, 2005 8:02 pm Post subject: |
|
|
Yes, im 100% sure that its fat32 and i DO have fat and vfat in my kernel. I tried running with -t vfat, just the same result. _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Thu Aug 11, 2005 10:44 pm Post subject: |
|
|
But editing your fstab would help you with the boot issue though.
Change /dev/BOOT, /dev/ROOT and /dev/SWAP to whatever they should read, /dev/hda7, /dev/hda9 and /dev/hda8 I think wold be appropriate for your system _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Fri Aug 12, 2005 8:14 pm Post subject: |
|
|
Allrite, done. Now the system boots with no errors at all. Anyway, despite i have fat and vfat in kernel, i still can't mount hda1, either from fstab or #mount . Any idea how could i fix this problem? _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Aug 12, 2005 8:27 pm Post subject: |
|
|
Hmm, can you mount any of the other partitions, hda2 and hda3? or is it the same with all your fat partitions? _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Fri Aug 12, 2005 9:20 pm Post subject: |
|
|
Here is the full partition tree of my hdd:
Primary:
* hda1: fat32
Extended:
* hda5: fat32
* hda6: fat32
* hda7: ext-2
* hda8: swap
* hda9: rfs
I can mount hda7 and hda9 with no problems, but its just the same error with all the fat32's. _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Aug 12, 2005 9:35 pm Post subject: |
|
|
KosiarZ wrote: | Here is the full partition tree of my hdd:
Primary:
* hda1: fat32
Extended:
* hda5: fat32
* hda6: fat32
* hda7: ext-2
* hda8: swap
* hda9: rfs
I can mount hda7 and hda9 with no problems, but its just the same error with all the fat32's. |
Strange, you didn't compile the vfat support as modules and forgot to load them or so? Must ask, just in case it could be that simple _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Fri Aug 12, 2005 9:54 pm Post subject: |
|
|
Nope, i have vfat built-in into my kernel. _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Aug 12, 2005 10:03 pm Post subject: |
|
|
Could you post the filesystem part from your kernel-config? So that everything can be looked over, in case som kernel/filesystem -guru would drop by and read it _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Fri Aug 12, 2005 10:12 pm Post subject: |
|
|
Sure. Here it is
Code: |
#
# File systems
#
CONFIG_EXT2_FS=y
# CONFIG_EXT2_FS_XATTR is not set
# CONFIG_EXT3_FS is not set
# CONFIG_JBD is not set
CONFIG_REISERFS_FS=y
# CONFIG_REISERFS_CHECK is not set
# CONFIG_REISERFS_PROC_INFO is not set
# CONFIG_REISERFS_FS_XATTR is not set
# CONFIG_JFS_FS is not set
#
# XFS support
#
# CONFIG_XFS_FS is not set
# CONFIG_MINIX_FS is not set
# CONFIG_ROMFS_FS is not set
# CONFIG_QUOTA is not set
CONFIG_DNOTIFY=y
# CONFIG_AUTOFS_FS is not set
CONFIG_AUTOFS4_FS=y
#
# CD-ROM/DVD Filesystems
#
CONFIG_ISO9660_FS=y
CONFIG_JOLIET=y
# CONFIG_ZISOFS is not set
CONFIG_UDF_FS=y
CONFIG_UDF_NLS=y
#
# DOS/FAT/NT Filesystems
#
CONFIG_FAT_FS=y
CONFIG_MSDOS_FS=y
CONFIG_VFAT_FS=y
CONFIG_FAT_DEFAULT_CODEPAGE=437
CONFIG_FAT_DEFAULT_IOCHARSET="iso8859-1"
CONFIG_NTFS_FS=y
# CONFIG_NTFS_DEBUG is not set
CONFIG_NTFS_RW=y
#
# Pseudo filesystems
#
CONFIG_PROC_FS=y
CONFIG_PROC_KCORE=y
CONFIG_SYSFS=y
CONFIG_DEVFS_FS=y
CONFIG_DEVFS_MOUNT=y
# CONFIG_DEVFS_DEBUG is not set
# CONFIG_DEVPTS_FS_XATTR is not set
CONFIG_TMPFS=y
# CONFIG_TMPFS_XATTR is not set
# CONFIG_HUGETLBFS is not set
# CONFIG_HUGETLB_PAGE is not set
CONFIG_RAMFS=y
#
# Miscellaneous filesystems
#
# CONFIG_ADFS_FS is not set
# CONFIG_AFFS_FS is not set
# CONFIG_HFS_FS is not set
# CONFIG_HFSPLUS_FS is not set
# CONFIG_BEFS_FS is not set
# CONFIG_BFS_FS is not set
# CONFIG_EFS_FS is not set
# CONFIG_CRAMFS is not set
# CONFIG_VXFS_FS is not set
# CONFIG_HPFS_FS is not set
# CONFIG_QNX4FS_FS is not set
# CONFIG_SYSV_FS is not set
# CONFIG_UFS_FS is not set
#
# Network File Systems
#
CONFIG_NFS_FS=y
# CONFIG_NFS_V3 is not set
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
# CONFIG_NFSD_V3 is not set
CONFIG_NFSD_TCP=y
CONFIG_LOCKD=y
CONFIG_EXPORTFS=y
CONFIG_SUNRPC=y
# CONFIG_RPCSEC_GSS_KRB5 is not set
# CONFIG_RPCSEC_GSS_SPKM3 is not set
# CONFIG_SMB_FS is not set
# CONFIG_CIFS is not set
# CONFIG_NCP_FS is not set
# CONFIG_CODA_FS is not set
# CONFIG_AFS_FS is not set
#
# Partition Types
#
# CONFIG_PARTITION_ADVANCED is not set
CONFIG_MSDOS_PARTITION=y
|
_________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
geniux Veteran


Joined: 19 Feb 2004 Posts: 1400 Location: /home
|
Posted: Fri Aug 12, 2005 10:23 pm Post subject: |
|
|
According to me it should work, looks like it should, but I could also have missed something _________________ AMD Athlon64 X2 4200+ AM2
MSI K9N SLI Platinum, Enermax Liberty 500W
1GB RAM Crucial DDR2 667MHz, MSI nVidia 7600GS 256MB
400GB + 250GB Samsung SATAII HDD
Gentoo - BeyondSources 2.6.19-20 |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Sat Aug 13, 2005 5:54 pm Post subject: |
|
|
Maybe the problem is elsewhere? Any idea what could cause it?
edit ->> Im spending days on googling for this; found something like this:
Quote: | (Some Russian text here)
mount: wrong fs type, bad option, bad superblock on /dev/sda,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
|
Tried, and found this:
Code: | Unable to load NLS charset iso8859-1
FAT: IO charset iso8859-1 not found
|
I did not have that charset in kernel, fixing it at the very moment. Ill rebuild the kernel now and let ya know if it helped. _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
KosiarZ n00b

Joined: 11 Aug 2005 Posts: 17
|
Posted: Sat Aug 13, 2005 7:07 pm Post subject: |
|
|
Something is still wrong. I enabled the charset in kernel, rebuilt it, but anyway NLS charset iso-8859-1 doesn't load, its the same error message. How could i fix it? I think it's something simple in this point.
Check it out:
http://www.linuxquestions.org/questions/showthread.php?postid=1236167
Edit-> I fixed it. No idea how. Just something messed up, linux was not booting, i recompiled the kernel several times, fixed some minor launch problems, and when i was again able to boot correctly, i was able to mount the disks... Heh, i feel like i hit my PC with a hammer several times now ;f _________________ Contact:
IRC: KosiarZ @ quakenet
GG: 3227669 |
|
Back to top |
|
 |
|