Welcome, Guest. Please login or register.
Did you miss your activation email?

Author Topic: [EN] [solved] Can't f2fs with Kernel 4.13  (Read 2871 times)

Offline orinoco

  • User
  • Posts: 233
  • Bullshit artist
[EN] [solved] Can't f2fs with Kernel 4.13
« on: 2017/10/14, 20:51:14 »
Hello,

I can't mount a f2fs-partiton on my external ssd with the latest kernel

Code: [Select]
Linux tuxor2 4.13.6-towo.1-siduction-amd64 #1 SMP PREEMPT siduction 4.13-12 (2017-10-12) x86_64 GNU/Linux
Code: [Select]
$ sudo mount -t f2fs /dev/sdb1 /mnt/
mount: /mnt: wrong fs type, bad option, bad superblock on /dev/sdb1, missing codepage or helper program, or other error.

From dmesg

Code: [Select]
[ 2081.968688] usb 9-1: new SuperSpeed USB device number 2 using xhci_hcd
[ 2081.988975] usb 9-1: New USB device found, idVendor=174c, idProduct=07d1
[ 2081.988981] usb 9-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[ 2081.988984] usb 9-1: Product: TS512GESD400K
[ 2081.988987] usb 9-1: Manufacturer: StoreJet
[ 2081.988990] usb 9-1: SerialNumber:
[ 2082.456349] usbcore: registered new interface driver usb-storage
[ 2082.464234] scsi host5: uas
[ 2082.464357] usbcore: registered new interface driver uas
[ 2082.464907] scsi 5:0:0:0: Direct-Access     StoreJet TS512GESD400K    0    PQ: 0 ANSI: 6
[ 2082.482484] sd 5:0:0:0: Attached scsi generic sg2 type 0
[ 2085.588404] sd 5:0:0:0: [sdb] 1000215216 512-byte logical blocks: (512 GB/477 GiB)
[ 2085.588515] sd 5:0:0:0: [sdb] Write Protect is off
[ 2085.588520] sd 5:0:0:0: [sdb] Mode Sense: 43 00 00 00
[ 2085.588716] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[ 2085.589116] xhci_hcd 0000:0d:00.0: ERROR Transfer event for unknown stream ring slot 1 ep 2
[ 2085.589124] xhci_hcd 0000:0d:00.0: @0000000210d67450 00000000 00000000 1b000000 01038001
[ 2085.591742]  sdb: [CUMANA/ADFS] sdb1 [ADFS] sdb1
[ 2085.591745] sdb: partition table partially beyond EOD, enabling native capacity
[ 2085.593083]  sdb: [CUMANA/ADFS] sdb1 [ADFS] sdb1
[ 2085.593086] sdb: partition table partially beyond EOD, truncated
[ 2085.593093] sdb: p1 size 4067027304 extends beyond EOD, truncated
[ 2085.594521] sd 5:0:0:0: [sdb] Attached SCSI disk

I checked it with Knoppix 8.1 (Kernel 4.12) on the same hardware and I was able to mount the partition.
« Last Edit: 2017/10/21, 23:52:24 by orinoco »

Offline orinoco

  • User
  • Posts: 233
  • Bullshit artist
Re: Can't f2fs with Kernel 4.13
« Reply #1 on: 2017/10/16, 00:44:41 »
Strange. Why this line?

Code: [Select]
sdb: [CUMANA/ADFS] sdb1 [ADFS] sdb1
Wikipedia says that adfs is an filesystem from acorn.

The partition is formatted with f2fs. I tried to blacklist adfs without success.

Code: [Select]
$ sudo fdisk -l /dev/sdl
Disk /dev/sdl: 477 GiB, 512110190592 bytes, 1000215216 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 33553920 bytes
Disklabel type: dos
Disk identifier: 0x5d697973

Device     Boot Start        End    Sectors  Size Id Type
/dev/sdl1        2048 1000214527 1000212480  477G 83 Linux

Code: [Select]
$ zcat /proc/config.gz | grep -i adfs
CONFIG_ACORN_PARTITION_ADFS=y
CONFIG_ADFS_FS=m
CONFIG_ADFS_FS_RW=y

Should I set CONFIG_ACORN_PARTITION_ADFS=n and recompile the kernel?

Offline orinoco

  • User
  • Posts: 233
  • Bullshit artist
Re: Can't f2fs with Kernel 4.13
« Reply #2 on: 2017/10/21, 22:44:06 »
I did some more tests with different kernals.

Summary:

Knoppix 8.1 with kernel 4.12.7 -> works
siduction-17.1.0-patience-kde-amd64-201703051755.iso with kernel 4.10.? -> works
Siduction kernel 4.13.{6,7} -> doesn't work
Siduction kernel 4.12.{2,9,10} -> doesn't work
Debian kernel 4.13.0-1 -> works

I compared the kernel configs Siduction 4.13.7 and Debian 4.13.0-1. See the attached picture.

Offline towo

  • Administrator
  • User
  • *****
  • Posts: 2.938
Re: Can't f2fs with Kernel 4.13
« Reply #3 on: 2017/10/21, 23:12:50 »
I removed the adfs foo from our kernel too, feel free to test if it is working now for you.
Ich gehe nicht zum Karneval, ich verleihe nur manchmal mein Gesicht.

Offline orinoco

  • User
  • Posts: 233
  • Bullshit artist
Re: Can't f2fs with Kernel 4.13
« Reply #4 on: 2017/10/21, 23:51:57 »
Thank you for your support, towo.

Code: [Select]
[  160.766907] usb 9-1: new SuperSpeed USB device number 2 using xhci_hcd
[  160.790183] usb 9-1: New USB device found, idVendor=174c, idProduct=07d1
[  160.790191] usb 9-1: New USB device strings: Mfr=2, Product=3, SerialNumber=1
[  160.790196] usb 9-1: Product: TS512GESD400K
[  160.790201] usb 9-1: Manufacturer: StoreJet
[  160.790205] usb 9-1: SerialNumber: xxxxxxxx
[  161.213683] usbcore: registered new interface driver usb-storage
[  161.220184] scsi host5: uas
[  161.220335] usbcore: registered new interface driver uas
[  161.222354] scsi 5:0:0:0: Direct-Access     StoreJet TS512GESD400K    0    PQ: 0 ANSI: 6
[  161.230502] sd 5:0:0:0: Attached scsi generic sg2 type 0
[  161.232019] sd 5:0:0:0: [sdb] 1000215216 512-byte logical blocks: (512 GB/477 GiB)
[  161.232120] sd 5:0:0:0: [sdb] Write Protect is off
[  161.232124] sd 5:0:0:0: [sdb] Mode Sense: 43 00 00 00
[  161.232305] sd 5:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
[  161.232702] xhci_hcd 0000:0d:00.0: ERROR Transfer event for unknown stream ring slot 1 ep 2
[  161.232709] xhci_hcd 0000:0d:00.0: @0000000210814450 00000000 00000000 1b000000 01038001
[  161.234589]  sdb: sdb1
[  161.236308] sd 5:0:0:0: [sdb] Attached SCSI disk
[  173.045476] PCLMULQDQ-NI instructions are not detected.
[  173.325228] F2FS-fs (sdb1): Mounted with checkpoint version = 3299