Re: Mapping sectors to have errors

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

 



On 10/28/2011 04:31 AM, Yathindra wrote:
> I'm trying to create a disk and map some sectors to have errors on them.
> 
> I tried this,
> echo "0 100000 linear /dev/sdb 0 100000 480081250 error"| dmsetup create bad_disk
> device-mapper: reload ioctl failed: Invalid argument
> Command failed

Try
echo -e "0 100000 linear /dev/sdb 0\n100000 480081250 error"| dmsetup create bad_disk

Milan

--
dm-devel mailing list
dm-devel@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/dm-devel


[Index of Archives]     [DM Crypt]     [Fedora Desktop]     [ATA RAID]     [Fedora Marketing]     [Fedora Packaging]     [Fedora SELinux]     [Yosemite Discussion]     [KDE Users]     [Fedora Docs]

  Powered by Linux