Messages in this thread | | | Date | Thu, 16 Sep 1999 17:56:55 +0200 | From | Andreas Tobler <> | Subject | Re: strange mounting problem |
| |
Guest section DW wrote: >
> Now I change the side of the cartridge and do the same again. > Doing so I get the WRONG content listed from Bside. The tree is still > the same as on the Aside. > > My question: why this behavior when working with fstab entries??? > > There may well be a kernel bug somewhere here, > where perhaps check_media_change is not done right. > > On the other hand, the report is rather fuzzy. > The kernel does not know anything about fstab. > That is something the mount program looks at. > So, whether or not you use fstab ought not to make any difference. > You can check for yourself what happens by using strace on mount > so that you can see the system call that is actually executed. > For example > # strace -e mount mount /dev/hda11 /mnt > mount("/dev/hda11", "/mnt", "bfs", 0xc0ed0000, 0) = 0 > #
Ah, have to try it although never used strace before.
attached you'll find the whole log including error messages.
Thanks for the hint
AndreasMO-C1716T ---------
kernel 2.2.13pre8 platform LinuxPPC1999
-------------------------------- mount via /dev/sdc <mountpoint>: -------------------------------- cartridge in A-side: -------------------- mount /dev/sdc/ Aopto cd Aopto ls -> ASIDE cd .. umount /dev/sdc eject /dev/sdc
cartridge out: -------------- mount /dev/sdc Aopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2
umount /dev/sdc
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2
mount /dev/sdc/ Aopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2 pm7200 kernel: sd.c:Bad block number/count requestedscsidisk I/O error: dev 08:20, sector 2 pm7200 kernel: hfs_fs: unable to read block 0x00000002 from dev 08:20 pm7200 kernel: hfs_fs: Unable to read superblock pm7200 kernel: sd.c:Bad block number/count requestedscsidisk I/O error: dev 08:20, sector 0 pm7200 kernel: hfs_fs: unable to read block 0x00000000 from dev 08:20 pm7200 kernel: hfs_fs: Unable to read block 0.
umount /dev/sdc umount: /dev/sdc: not found
cartridge in B-side: -------------------- mount /dev/sdc/ Bopto cd Bopto ls -> BSIDE cd .. umount /dev/sdc eject /dev/sdc
cartridge out: -------------- mount /dev/sdc Bopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2
umount /dev/sdc
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2
mount /dev/sdc/ Bopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2 pm7200 kernel: sd.c:Bad block number/count requestedscsidisk I/O error: dev 08:20, sector 2 pm7200 kernel: hfs_fs: unable to read block 0x00000002 from dev 08:20 pm7200 kernel: hfs_fs: Unable to read superblock pm7200 kernel: sd.c:Bad block number/count requestedscsidisk I/O error: dev 08:20, sector 0 pm7200 kernel: hfs_fs: unable to read block 0x00000000 from dev 08:20 pm7200 kernel: hfs_fs: Unable to read block 0.
umount /dev/sdc umount: /dev/sdc: not found
---------------------------------------------- the same sequence is done via the fstab entry: ---------------------------------------------- /dev/sdc /mnt/Aopto ext2 noauto 0 0
cartridge in A-side: -------------------- mount /mnt/Aopto cd Aopto ls -> ASIDE cd .. umount /mnt/Aopto eject /mnt/Aopto
cartridge out: -------------- mount /mnt/Aopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2
umount /mnt/Aopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2
mount /mnt/Aopto
pm7200 kernel: SCSI disk error : host 1 channel 0 id 5 lun 0 return code = 8000000 pm7200 kernel: [valid=0] Info fld=0x0, Current sd08:20: sense key Not Ready pm7200 kernel: Additional sense indicates Medium not present pm7200 kernel: scsidisk I/O error: dev 08:20, sector 2 pm7200 kernel: EXT2-fs: unable to read superblock mount: wrong fs type, bad option, bad superblock on /dev/sdc or too many mounted file systems unmount /mnt/Aopto umount: /mnt/Aopto/: not mounted
cartridge in B-side: -------------------- mount /mnt/Bopto cd Bopto ls -> ASIDE <---------WRONG it is physically BSIDE cd .. umount /mnt/Bopto eject /mnt/Bopto
| |