Support --rw-blockdev option for usage with read-only/forensic like devices
authorMichael Prokop <mika@grml.org>
Thu, 13 Apr 2017 21:47:47 +0000 (23:47 +0200)
committerMichael Prokop <mika@grml.org>
Thu, 13 Apr 2017 21:50:51 +0000 (23:50 +0200)
commit5033f52497a444831696f178ba6ee77722a4533d
treebea7241d2c9146a081ea2557f552f16c93cc0c69
parentaba2e512be48412693b977a72d9b76ecf3382a41
Support --rw-blockdev option for usage with read-only/forensic like devices

If the system is running in a read-only mode for devices and
setting devices to read-only when they appear (e.g. partition
table scans) then we need to explictely set read-write mode
on the involved devices (e.g. /dev/sdx + /dev/sdx2 if /dev/sd2
is the target partition).

Be aware that you might have to use the --skip-bootflag option
as well then, because this option triggers parted code which
is behaving bad with read-only devices.
grml2usb