On 2024-10-06 20:59, -pj via openSUSE Users wrote:
On 10-06-2024 05:38AM, Bengt Gördén wrote:
systemctl status udisks2.service
systemctl status udisks2.service ● udisks2.service - Disk Manager Loaded: loaded (/usr/lib/systemd/system/udisks2.service; disabled; preset: disabled) Active: active (running) since Sun 2024-10-06 04:10:44 CDT; 9h ago Invocation: 47427a1e4afa40d59fc94da7dcf5469f Docs: man:udisks(8) Main PID: 2123 (udisksd) Tasks: 6 (limit: 9137) CPU: 10.240s CGroup: /system.slice/udisks2.service └─2123 /usr/libexec/udisks2/udisksd
Oct 06 05:09:15 paul-Thinkcentre-M57p udisksd[2123]: Cleaning up mount point /run/media/paul/EF83-7994 (device 254:3 is not mounted) Oct 06 05:09:15 paul-Thinkcentre-M57p udisksd[2123]: Unmounted /dev/dm-3 on behalf of uid 1000 Oct 06 05:10:38 paul-Thinkcentre-M57p udisksd[2123]: Mounted /dev/dm-3 at /run/media/paul/WORLDWIDE on behalf of uid 1000 Oct 06 05:25:48 paul-Thinkcentre-M57p udisksd[2123]: Cleaning up mount point /run/media/paul/mylabel (device 8:16 is not mounted) Oct 06 05:25:48 paul-Thinkcentre-M57p udisksd[2123]: Unmounted /dev/sdb on behalf of uid 1000 Oct 06 05:26:04 paul-Thinkcentre-M57p udisksd[2123]: Unmounted /dev/sdb on behalf of uid 1000 Oct 06 05:28:24 paul-Thinkcentre-M57p udisksd[2123]: Mounted /dev/sdb at /run/media/paul/WORLDWIDE-F2FS on behalf of uid 1000 Oct 06 05:29:51 paul-Thinkcentre-M57p udisksd[2123]: Cleaning up mount point /run/media/paul/WORLDWIDE-F2FS (device 8:16 no longer exists) Oct 06 05:30:22 paul-Thinkcentre-M57p udisksd[2123]: Mounted /dev/sdb at /run/media/paul/WORLDWIDE-F2FS on behalf of uid 1000 Oct 06 05:31:57 paul-Thinkcentre-M57p udisksd[2123]: Cleaning up mount point /run/media/paul/WORLDWIDE-F2FS (device 8:16 no longer exists)
It appears that the service is active. - cryptsetup -v -y luksFormat /dev/sdb
WARNING! ======== This will overwrite data on /dev/sdb irrevocably.
Are you sure? (Type 'yes' in capital letters): YES Enter passphrase for /dev/sdb: Verify passphrase: Key slot 0 created. Command successful. - mkfs.f2fs -l WORLDWIDE-FSF2 -i -f -O extra_attr,inode_checksum,sb_checksum /dev/sdb
F2FS-tools: mkfs.f2fs Ver: 1.16.0 (2023-04-11)
Info: Disable heap-based policy Info: Debug level = 0 Info: Label = WORLDWIDE-FSF2 Info: Trim is enabled Info: [/dev/sdb] Disk Model: /dev/sdb appears to contain an existing filesystem (f2fs). Info: Segments per section = 1 Info: Sections per zone = 1 Info: sector size = 512 Info: total sectors = 7831552 (3824 MB) Info: zone aligned segment0 blkaddr: 512 Info: format version with "Linux version 6.11.0-1-default (geeko@buildhost) (gcc (SUSE Linux) 14.2.0, GNU ld (GNU Binutils; openSUSE Tumbleweed) 2.43.1.20240828-2) #1 SMP PREEMPT_DYNAMIC Wed Sep 25 07:09:20 UTC 2024 (b87e886)" Info: [/dev/sdb] Discarding device Info: This device doesn't support BLKSECDISCARD Info: This device doesn't support BLKDISCARD Info: Overprovision ratio = 2.520% Info: Overprovision segments = 48 (GC reserved = 46) Info: format successful - I can then mount the filesystem but it is not encrypted with luks container.
Because you don't do mkfs.f2fs on sdb, but on the /dev/mapper/ device that appears AFTER opening the luks device. There is a missing step in there. cryptsetup -v -y luksFormat /dev/sdb cryptsetup luksDump /dev/sdb info... cryptsetup luksOpen /dev/sdb cr_name mkfs.f2fs -l WORLDWIDE-FSF2 -i -f -O \ extra_attr,inode_checksum,sb_checksum /dev/mapper/cr_name cryptsetup status cr_name cryptsetup remove cr_name edit fstab and /etc/crypttab, or not. -- Cheers / Saludos, Carlos E. R. (from 15.5 x86_64 at Telcontar)