On 15/06/2024 14:52, Laurie Brown wrote:
On 15/06/2024 13:19, Phil Ashby wrote:
Hi Phil, long time no see! I trust all is well.
Yes thanks! Same with you I hope.
Phil wrote:
PS: Did you check in /dev/disk/... for those partitions?
Yes, they are there, as follows:
---- cut here ---- /dev/disk/by-id: total 0 drwxr-xr-x 2 root root 280 Jun 14 14:25 . drwxr-xr-x 7 root root 140 Jun 14 14:24 .. lrwxrwxrwx 1 root root 9 Jun 14 14:25 ata-WDC_WDS100T1R0A-68A4W0_241337801697 -> ../../sdc lrwxrwxrwx 1 root root 9 Jun 14 14:25 ata-WDC_WDS100T1R0A-68A4W0_241444800870 -> ../../sda lrwxrwxrwx 1 root root 9 Jun 14 14:25 ata-WDC_WDS100T1R0A-68A4W0_241444800946 -> ../../sdd lrwxrwxrwx 1 root root 9 Jun 14 14:25 ata-WDC_WDS100T1R0A-68A4W0_241444801060 -> ../../sdb lrwxrwxrwx 1 root root 10 Jun 14 14:25 dm-name-ddf1_RAID10 -> ../../dm-0 lrwxrwxrwx 1 root root 10 Jun 14 14:25 dm-uuid-DMRAID-ddf1_RAID10 -> ../../dm-0 lrwxrwxrwx 1 root root 9 Jun 14 14:25 usb-SanDisk_Ultra_4C531000461128109501-0:0 -> ../../sde lrwxrwxrwx 1 root root 10 Jun 14 14:25 usb-SanDisk_Ultra_4C531000461128109501-0:0-part1 -> ../../sde1 lrwxrwxrwx 1 root root 9 Jun 14 14:25 wwn-0x5001b448c4d0ea34 -> ../../sdd lrwxrwxrwx 1 root root 9 Jun 14 14:25 wwn-0x5001b448c4dbeaad -> ../../sdc lrwxrwxrwx 1 root root 9 Jun 14 14:25 wwn-0x5001b448c4dcdb20 -> ../../sdb lrwxrwxrwx 1 root root 9 Jun 14 14:25 wwn-0x5001b448c4dcdb3f -> ../../sda
OK - so the raw disk devices are there as is the mapped array but not the partition, unlike your USB stick which has a '-part1' link as well.
FYI:
# sfdisk -d /dev/mapper/ddf1_RAID10 label: dos label-id: 0x00000000 device: /dev/mapper/ddf1_RAID10 unit: sectors sector-size: 512
/dev/mapper/ddf1_RAID10-part1 : start= 1, size= 4294967295, type=ee
# losetup -o 512 -b 512 -f /dev/mapper/ddf1_RAID0 losetup: /dev/mapper/ddf1_RAID0: failed to set up loop device: No such file or directory
# losetup -o 512 -b 512 -f /dev/mapper/ddf1_RAID0-part1 losetup: /dev/mapper/ddf1_RAID0-part1: failed to set up loop device: No such file or directory
Bah. Looks like sfdisk is happy to read the partition table from the raw array device, but losetup doesn't like using a block device as backing. I'll try that myself here to confirm.
You could also try the linked short name (/dev/dm-0).
Might need to attempt the same trick with device mapper which is a bit more involved - time to hit the search engine..
P.