Card reader question
Petter Adsen
petter at synth.no
Sat Jul 18 16:26:06 UTC 2015
On Sat, 18 Jul 2015 10:14:56 -0400
Robert Heller <heller at deepsoft.com> wrote:
> At Sat, 18 Jul 2015 14:45:03 +0100 "Ubuntu user technical support, not for general discussions" <ubuntu-users at lists.ubuntu.com> wrote:
>
> >
> > On 18 July 2015 at 01:02, Phil <phil_lor at bigpond.com> wrote:
> > > Thanks Colin. I've since realised that I can no longer make an image of the
> > > SD card read from the USB card reader. Backup yes but not an image.
> >
> > Why not, I do exactly that with
> > sudo dd if=/dev/sdb of=$FILENAME bs=10M
>
> I think the OP's problem is that this cannot be easily automated, since the if
> argument is not a constant value and there isn't a good way to compute the
> value. OTOH, doing a file oriented backup (ala mount+tar for example) *can* be
> automated, since it is possible to use either LABEL= or UUID= as the device
> argument to mount, which removes the need to know the exact device file
> (/dev/sd<mumble>, etc.) to use.
You could, for example, parse the output of 'blkid'.
'blkid -L FOO'
will give you the device node of the device with the LABEL FOO. Use
'-U' for UUID.
I would say that fairly easily lends itself to be automated.
Petter
--
"I'm ionized"
"Are you sure?"
"I'm positive."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 213 bytes
Desc: OpenPGP digital signature
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150718/0e0ab06f/attachment.sig>
More information about the ubuntu-users
mailing list