PDA

View Full Version : ext2 doesn't mount



Rivendell
04-08-2004, 09:06 AM
Hallo Everyone

I have a problem with mounting partition with ext2 fs on additional drive.
I have 3 disks all are IDE disks :
hda (hda1 vfat, hda2 ext2 /), hdc1, hdd (hdd1 vfat, hdd2 ext3, hdd4 vfat, hdd5 ext2)

when I try to mount hdd5 when running knoppix from cd it is ok, but when I added line to fstab autogenerated by knoppix it doesn't work
I get a message like this:
mount: wrong fs type, bad option, bad superblock on /dev/hdd5,
or too many mounted file systems
(could this be the IDE device where you in fact use
ide-scsi so that sr0 or sda or so is needed?)

I added line to fstab like this (autogenerated works when running from cd)
/dev/hdd5 /mnt/hdd5 ext2 noauto,users,exec 0 0
but it doesn't work

this is an output from dmesg

hdd5: bad access: block=2, count=2
end_request: I/O error, dev 16:45 (hdd), sector 2
EXT2-fs: unable to read superblock
hdd5: bad access: block=2, count=2
end_request: I/O error, dev 16:45 (hdd), sector 2
EXT2-fs: unable to read superblock

Can it be something with kernel? I compiled a new one maybe something is not enabled, but I don't know what.

thanks for interest.

OErjan
04-08-2004, 09:57 AM
do a

dmesg|grep hd
folow that with a

dmesg|grep sd
post utput here.
it would also be nice to see your entire fstab. there might be a clue there

Rivendell
04-08-2004, 01:44 PM
from dmesg|grep hd



Kernel command line: BOOT_IMAGE=Linux ro root=302 hda=scsi hdb=scsi hdc=scsi hdd=scsi hde=scsi hdf=scsi hdg=scsi hdh=scsi apm=power-off nomce
ide_setup: hda=scsi
ide_setup: hdb=scsi
ide_setup: hdc=scsi
ide_setup: hdd=scsi
ide_setup: hde=scsi
ide_setup: hdf=scsi
ide_setup: hdg=scsi
ide_setup: hdh=scsi
hda: ST34321A, ATA DISK drive
hdb: CD-ROM CDU511, ATAPI CD/DVD-ROM drive
hdc: QUANTUM BIGFOOT1280A, ATA DISK drive
hdd: Maxtor 6E040L0, ATA DISK drive
hda: attached ide-disk driver.
hda: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hda: task_no_data_intr: error=0x04 { DriveStatusError }
hda: 8405775 sectors (4304 MB) w/128KiB Cache, CHS=523/255/63
hdc: attached ide-disk driver.
hdc: task_no_data_intr: status=0x51 { DriveReady SeekComplete Error }
hdc: task_no_data_intr: error=0x04 { DriveStatusError }
hdc: 2511936 sectors (1286 MB) w/87KiB Cache, CHS=2492/16/63
hdd: attached ide-disk driver.
hdd: host protected area => 1
hdd: setmax LBA 80293248, native 66055244
hdd: 66055244 sectors (33820 MB) w/2048KiB Cache, CHS=65530/16/63
ide-cd: passing drive hdb to ide-scsi emulation.
hdb: attached ide-scsi driver.
hda: hda1 hda2 hda3
hdc: [PTBL] [623/64/63] hdc1
hdd: [PTBL] [4111/255/63] hdd1 hdd2 hdd3 < > hdd4
hdd5: bad access: block=2, count=2
end_request: I/O error, dev 16:45 (hdd), sector 2
hdd5: bad access: block=2, count=2


My fstab


/dev/hda2 / ext2 defaults,errors=remount-ro 0 1
proc /proc proc defaults 0 0
/dev/fd0 /mnt/fdd vfat defaults,user,noauto,showexec,umask=022 0 0
/dev/cdrom /cdrom iso9660 defaults,ro,user,noexec,noauto 0 0
/dev/hdc1 /mnt/big vfat auto,users,exec,umask=000 0 0
/dev/hda1 /mnt/win98 vfat auto,users,exec,umask=000 0 0
none /cdrom/cd supermount fs=iso9660,dev=/dev/cdrom,--,defaults,ro,user,noexec 0 0

/dev/hdd1 /mnt/hdd1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
/dev/hdd2 /mnt/hdd2 ext3 noauto,users,exec 0 0
/dev/hdd4 /mnt/hdd4 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0
/dev/hdd5 /mnt/hdd5 ext2 noauto,users,exec 0 0

OErjan
04-08-2004, 04:34 PM
what does fdisk -l say?
it seems weirdly partitioned, normally you have 3 primary and 1extended, then further partitions IN that extended. OR 4 primary partitions.
that should work in your case. the 4 partitions, that is if you are willing to repartition the drive (wiping data if anythng is stored in that extended partition).

Rivendell
04-08-2004, 04:41 PM
Disk /dev/hdc: 1286 MB, 1286111232 bytes
64 heads, 63 sectors/track, 623 cylinders
Units = cylinders of 4032 * 512 = 2064384 bytes

Device Boot Start End Blocks Id System
/dev/hdc1 * 1 623 1255936+ b Win95 FAT32

Unable to seek on /dev/hdd

Wow quite interesting, isn't it? however, the most weird is fact that when I run knoppix from cd this partition works excellent!

OErjan
04-08-2004, 07:30 PM
copy the /etc/fstab from knoppix onto a floppy and post that here then. and fdisk -l in knoppix aswell please. something is not quite right. your disk seems to be broken oe have a bad partition table (i have seen similar erors caused by partition magic messing up)

Rivendell
04-08-2004, 10:14 PM
OK. I've found out that this error is about kernel. I noticed that on default knoppix kernel /dev/hdd5 mounts as well as /dev/hdd6 (swap). Both are extended partitions so I thik than my new kernel doesn't support extended partitions or something like that. I will try to recompile kernel, maybe I will find this option :)

Great thanks for interest.