Re: overlays on dd images of 4T drives

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, 14 Nov 2021 02:29:24 +0000
David T-G <davidtg+robot@xxxxxxxxxxxxxxx> wrote:

>   diskfarm:/mnt/10Traid50md/tmp # ls -goh overlay-sd*
>   -rw-r--r-- 1 4.0T Nov 12 02:05 overlay-sda1
>   -rw-r--r-- 1 4.0T Nov 12 02:05 overlay-sdb1
>   -rw-r--r-- 1 4.0T Nov 12 02:05 overlay-sdc1
>   diskfarm:/mnt/10Traid50md/tmp # losetup -a
>   /dev/loop1: [66326]:1059 (/mnt/10Traid50md/tmp/overlay-sdb1)
>   /dev/loop2: [66326]:1060 (/mnt/10Traid50md/tmp/overlay-sdc1)
>   /dev/loop0: [66326]:1058 (/mnt/10Traid50md/tmp/overlay-sda1)
> 
> my overlay files and loopback devices.  But ...
> 
> It seems that blockdev does not like
> 
>   diskfarm:/mnt/10Traid50md/tmp # blockdev --getsize ./overlay-sda1
>   blockdev: ioctl error on BLKGETSIZE: Inappropriate ioctl for device
> 
> my files

It must be run on block devices, not files, so try: 

  blockdev --getsize /dev/loop0

-- 
With respect,
Roman



[Index of Archives]     [Linux RAID Wiki]     [ATA RAID]     [Linux SCSI Target Infrastructure]     [Linux Block]     [Linux IDE]     [Linux SCSI]     [Linux Hams]     [Device Mapper]     [Device Mapper Cryptographics]     [Kernel]     [Linux Admin]     [Linux Net]     [GFS]     [RPM]     [git]     [Yosemite Forum]


  Powered by Linux