On 25/07/2019 14.11, Carlos Maiolino wrote: > But I apologize if it's a dumb question, but what do you expect to achieve by > setting the sector size here? You will be essentially writing the fs image file > over the BluRay Filesystem (which IIRC uses UDF), so, the sector size set on > your xfs filesystem image won't matter much, unless I'm missing something, which > is exactly why I'm asking it :) Not dumb question - I'm burning directly the XFS image raw to the DVD, as if it were an ISO :-) But the image is encrypted with LUKS - that's the purpose, to get encrypted DVDs. password protected UDF would be fine, though, but no such thing exists. I have not used the procedure for years, though. DVD are too small; now I got a blueray writer I'm trying again after a decade. The basic procedure is this: <https://www.frederickding.com/posts/2017/08/luks-encrypted-dvd-bd-data-disc-guide-273316/>, but my procedure is older than that, I created it myself IIRC. This is the configuration; file /etc/crypttab contains: crmm_dvd.l /dev/dvd.l none noauto,loop crmm_dvd.lr /dev/dvd.lr none noauto,loop crmm_dvd.lx /dev/dvd.lx none noauto,loop (tried also without "loop") /dev/dvd.lx is a symlink to /dev/dvd /etc/fstab: /dev/mapper/crmm_dvd.l /mnt/dvd.crypta.l auto ro,noauto,user,lazytime 0 0 /dev/mapper/crmm_dvd.lr /mnt/dvd.crypta.lr reiserfs ro,noauto,user,lazytime,barrier=flush 0 0 /dev/mapper/crmm_dvd.lx /mnt/dvd.crypta.lx xfs ro,noauto,user,lazytime 0 0 (I have a script to automate decoding and mount, but this time I'm doing manually to show the steps) I'm getting a problem on mount, though : ... # cryptsetup luksOpen /dev/dvd crmm_dvd.lx Enter passphrase for /dev/dvd: ... # l /dev/mapper/ total 0 drwxr-xr-x 2 root root 120 Jul 25 18:17 ./ drwxr-xr-x 22 root root 7580 Jul 25 18:16 ../ crw------- 1 root root 10, 236 Jul 23 11:41 control ... lrwxrwxrwx 1 root root 7 Jul 25 18:17 crmm_dvd.lx -> ../dm-2 ... # ... # mount -v /dev/mapper/crmm_dvd.lx /mnt/dvd.crypta.lx mount: /mnt/dvd.crypta.lx: mount(2) system call failed: Function not implemented. <=============== HERE ============== # Possible related to this log entry: <0.4> 2019-07-25 18:19:19 Telcontar kernel - - - [127181.795181] XFS (dm-2): device supports 2048 byte sectors (not 512) This worked years ago with plain DVDs. I can mount the dd image out of the dvd into the hard disk, though: dd if=/dev/dvd of=out.img bs=16M BLUERAY_OPS # losetup -f out.img BLUERAY_OPS # losetup -a /dev/loop1: [2087]:1209048961 (/home_aux/BLUERAY_OPS/out.img) /dev/loop0: [2087]:1209048958 (/home_aux/BLUERAY_OPS/image_1_50.img) BLUERAY_OPS # cryptsetup luksOpen /dev/loop1 cr_dvdimage Enter passphrase for /dev/loop1: BLUERAY_OPS # md mnt2 BLUERAY_OPS # mount -v /dev/mapper/cr_dvdimage ./mnt2 mount: /dev/mapper/cr_dvdimage mounted on /home_aux/BLUERAY_OPS/mnt2. BLUERAY_OPS # BLUERAY_OPS # file out.img out.img: LUKS encrypted file, ver 2 [, , sha256] UUID: 0f73c10a-b3e0-4b1b-b124-567abef92fa1 Telcontar:/home_aux/BLUERAY_OPS # BLUERAY_OPS # file -s /dev/mapper/cr_dvdimage /dev/mapper/cr_dvdimage: symbolic link to ../dm-3 BLUERAY_OPS # file -s /dev/dm-3 /dev/dm-3: SGI XFS filesystem data (blksz 2048, inosz 512, v2 dirs) BLUERAY_OPS # BLUERAY_OPS # file -s /dev/dm-2 # that's the decoded DVD /dev/dm-2: SGI XFS filesystem data (blksz 2048, inosz 512, v2 dirs) BLUERAY_OPS Telcontar:/home_aux/BLUERAY_OPS # df -h ./mnt2 Filesystem Size Used Avail Use% Mounted on /dev/mapper/cr_dvdimage 47G 47G 183M 100% /home_aux/BLUERAY_OPS/mnt2 Telcontar:/home_aux/BLUERAY_OPS # Telcontar:/home_aux/BLUERAY_OPS # df -H ./mnt2 Filesystem Size Used Avail Use% Mounted on /dev/mapper/cr_dvdimage 51G 50G 192M 100% /home_aux/BLUERAY_OPS/mnt2 Telcontar:/home_aux/BLUERAY_OPS # -- Cheers / Saludos, Carlos E. R. (from 15.0 x86_64 at Telcontar)
Attachment:
signature.asc
Description: OpenPGP digital signature