Re: Subject: Multiple issues with partx

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

 



Thanks. Fast resolution.

On Tue, 22 Mar 2016, Karel Zak wrote:
> On Tue, Mar 22, 2016 at 01:17:42PM +0100, Serge van den Boom wrote:
> > 
> > 4. It is possible to specify a partition by the device name of a
> >    partition on another block device.
> > 
> > The command 'partx /dev/sdb2 /dev/sda' makes no sense, but still
> > produces output, namely the second partition of /dev/sda.
> 
>  Fixed,
> 
>  # partx --show /dev/sdx1 /dev/sdc
>  partx: partition and disk name do not match

Strictly speaking, it should be the devices themselves which would need
to match, not their names. I could create a few symlinks, and
'partx x0 x' would work, even when x0 and x refer to unrelated devices:

    ln -s /dev/sda x
    ln -s /dev/sdb2 x0


Regards,

Serge

--
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