On 6 March 2014 12:49, Dmitrij D. Czarkoff <czark...@gmail.com> wrote: > Hello! > > I have a strange problem. Recently I added following to my /etc/fstab: > > /dev/sd0i /mnt/arch ext2fs rw,nodev,nosuid,noexec 0 0 > > I can't mount this partition using "mount -a": > > $ sudo mount -a > mount: /dev/sd0i: fstab type ext2fs != disklabel type ntfs > > The same message appears on boot. Still, I can mount it by hand: > > $ sudo mount /mnt/arch > $ mount > /dev/sd0a on / type ffs (local) > /dev/sd0d on /home type ffs (local, nodev, nosuid) > /dev/sd0i on /mnt/arch type ext2fs (local, nodev, noexec, nosuid) > > The partition is actually of type 0x83, and the first 2 Mb of disk were > zero-outed before Linux and OpenBSD were installed. If it is of any > importance, the system is Lenovo ThinkPad E325, and the Linux partition > contains working, bootable Archlinux installation. Bootloader is > Syslinux. > > I'm running OpenBSD-current from snapshots, updating every several days. > First time I tried it was probably about a week ago and it consistently > keeps behaving the same. > > > ============================================================================== > Fdisk > ============================================================================== > > Disk: sd0 geometry: 38913/255/63 [625142448 Sectors] > Offset: 0 Signature: 0xAA55 > Starting Ending LBA Info: > #: id C H S - C H S [ start: size ] > ------------------------------------------------------------------------------- > *0: 83 0 32 33 - 6527 53 54 [ 2048: 104857600 ] Linux > files* > 1: A6 6527 53 55 - 38912 254 63 [ 104859648: 520277697 ] OpenBSD > 2: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > 3: 00 0 0 0 - 0 0 0 [ 0: 0 ] unused > > > ============================================================================== > Disklabel > ============================================================================== > > # /dev/rsd0c: > type: SCSI > disk: SCSI disk > label: ST320LT007-9ZV14 > duid: d02babcb5f5d80c4 > flags: > bytes/sector: 512 > sectors/track: 63 > tracks/cylinder: 255 > sectors/cylinder: 16065 > cylinders: 38913 > total sectors: 625142448 > boundstart: 104859648 > boundend: 625137345 > drivedata: 0 > > 16 partitions: > # size offset fstype [fsize bsize cpg] > a: 33556384 104859648 4.2BSD 2048 16384 1 # / > b: 8385938 138416032 swap # none > c: 625142448 0 unused > d: 478335360 146801984 4.2BSD 4096 32768 1 # /home > i: 104857600 2048 NTFS # /mnt/arch
Your disklabel seems to have NTFS down as the file system for 'i'. Which might explain the error and inconsistant behaviour. This may be an old disklabel, since zero'ing out the first 2MB doesn't look like it would have reached the OpenBSD partition where the disklabel would be stored. I created an MBR with partition 0 of type 0x83, and disklabel here spoofs that correctly to 'ext2fs'. What does 'disklabel -d sd0' show? .... Ken