Re: [BUG] losetup: support for physical devices

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

 



Lucio Crusca <lucio@xxxxxxxxxx> writes:
> During a disaster recovery I found that losetup either 
>
> 1. does not support creating loop devices that target physical devices. In 
> this case I think there exists a compelling reason to support them 
> (http://serverfault.com/questions/659484) and this bug report is a wishlist 
> bug 
>
> or 
>
> 2. it does support physical devices, but it is an undocumented feature (at 
> least in the manpage) and the warning it issues is misleading beacuse it 
> makes you think it doesn't support them ("losetup: /dev/sdc2: warning: file 
> smaller than 512 bytes, the loop device maybe be useless or invisible for 
> system tools"). In this case this could be a documentation bug.
>
> I haven't tested which of the two possibilities is the real situation, but 
> I'm pretty sure you already know.

I don't recall what I've done that convinced me, but I'm *sure* that you
can do

    losetup -o [offset] {-f[--show]|loopdev} /dev/sdXXX

This is implicit throughout Linux, because any block device is also a
"file", and can be read/written as such.  (You just can't change its
size.)

What command are you executing?  What error are you seeing?

Dale
--
To unsubscribe from this list: send the line "unsubscribe util-linux" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Netdev]     [Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux