Feature #8438

Use /dev/rdisk instead of /dev/disk on manual install instructions for Mac

Added by emmapeel 2014-12-14 22:15:37 . Updated 2015-04-04 10:13:09 .

Status:
Resolved
Priority:
Elevated
Assignee:
Category:
Installation
Target version:
Start date:
2014-12-14
Due date:
% Done:

100%

Feature Branch:
bitingbird:doc/8438-mac_rdisk
Type of work:
End-user documentation
Blueprint:

Starter:
Affected tool:
Deliverable for:

Description

A user is suggesting to change the manual install instructions on Mac
to use /dev/rdisk instead of /dev/disk, as /dev/disk is a buffered
version of the former.

Anybody here knows about the risks of running dd on an unbuffered
device? User says /dev/rdisk is much faster, and you can use dd on the
raw device with no problems. On an Class 4 SD card the dd command run
around 20 times faster.

I am not aware of the intrincacies of Mac’s hardware. Does it makes
sense to investigate this further, provided is not used so often?


Subtasks


History

#1 Updated by sajolida 2014-12-16 13:40:26

  • Assignee set to emmapeel

Could you please:

- Ask this user when /dev/rdisk is available in all versions of Mac OS X (or whether it is something new).
- If the answer is not satisfactory, ask people on tails-testers to try that and report.

#2 Updated by emmapeel 2014-12-19 19:57:13

There are blog posts from 2008 about it, at least.

A lot of users in stackoverflow talk about 4 times quicker results using the dd command with /dev/rdisk

User suggests to at least suggest it on the documentation

#3 Updated by sajolida 2014-12-24 13:39:53

  • QA Check changed from Info Needed to Dev Needed

Ok, that sounds good. Do you feel like preparing a patch and have the new instructions validated by a Mac user?

#4 Updated by intrigeri 2015-01-15 15:42:55

  • Type of work changed from Test to End-user documentation

Seems to be a pretty good idea, especially once combined with bs=1M from what I’ve read (we’re using bs=16M on Linux, no idea why the Mac documentation currently doesn’t set any block size).

emmapeel, if you don’t think you’ll be working on this within, say, 3 months, please deassign this ticket from yourself so that others know that they can work on it :)

#5 Updated by sajolida 2015-02-04 22:47:11

With dd:

  • /dev/disk took 15 minutes to copy Tails 1.2.3 (through a USB hub)
  • /dev/rdisk took 76 minutes to copy Tails 1.2.3

So that didn’t work for me :(

#6 Updated by sajolida 2015-02-21 09:42:46

  • QA Check changed from Dev Needed to Info Needed

I tried again with the bs=16m option, and got something more interesting:

  • /dev/disk 250s
  • /dev/rdisk 165s

Still, seeing this I’m not sure that’s worth the trouble…

What do you think?

#7 Updated by intrigeri 2015-02-23 12:16:31

> Still, seeing this I’m not sure that’s worth the trouble…

Now that most, if not all, of the preparatory work has been done, it would feel a bit sad not to implement these improvement in the actual doc. Now, certainly it’s low priority, so don’t feel pressured to do it yourself and/or ASAP.

#8 Updated by BitingBird 2015-03-15 21:43:27

  • Status changed from New to Confirmed
  • Assignee changed from emmapeel to BitingBird
  • Target version set to Tails_1.3.2
  • QA Check deleted (Info Needed)

I’ll take this one from you emmapeel :)

So, to sum up: I’ll replace /dev/disk with /dev/rdisk, and add bs=1M

#9 Updated by sajolida 2015-03-16 14:08:30

Unless you want to test “bs=1M” on Mac yourself, I would use the only tested solution for /dev/rdisk which is “bs=16m”.

#10 Updated by BitingBird 2015-03-16 16:37:06

ok.

#11 Updated by BitingBird 2015-03-17 13:40:46

  • Status changed from Confirmed to In Progress
  • Feature Branch set to bitingbird:doc/8438-mac_rdisk

#12 Updated by BitingBird 2015-03-17 14:06:43

  • Assignee changed from BitingBird to sajolida
  • QA Check set to Ready for QA

Done the mentionned changes, plus changed the iso exemple (tails-0.17.1.iso to 1.3). Please review :)

#13 Updated by BitingBird 2015-04-01 12:37:43

  • Priority changed from Low to Elevated
  • Target version changed from Tails_1.3.2 to Tails_1.4

Postponing -> raising priority

#14 Updated by intrigeri 2015-04-04 10:10:19

  • Assignee changed from sajolida to intrigeri
  • % Done changed from 0 to 50

I’ll take that one.

#15 Updated by intrigeri 2015-04-04 10:11:52

  • Status changed from In Progress to Resolved
  • % Done changed from 50 to 100

Applied in changeset commit:658e8e99f45b7e9e63dd6c579d4c7830b7d3940c.

#16 Updated by intrigeri 2015-04-04 10:13:09

  • Assignee deleted (intrigeri)
  • QA Check changed from Ready for QA to Pass

Fixed a few details on top, unfuzzied translations, pushed. Thanks!