Substituting SD card while booted
Posted: Sat Mar 28, 2015 10:14 pm
I would like to be able to use this tool: http://www.bertold.org/sdtool/ on some SD cards to render them read-only.
To be clear, the SD cards aren't the same SD card that I use to run my Pi - they are SD cards that I use for other stuff but I'd like to be confident that nothing is able to be written to them once I've got the content on them that I need.
In order to modify the CSD register, the tool requires access to the SD card as a block device (e.g., /dev/mmcblk1) and not as a USB mass storage device (e.g., /dev/sda) thus using a USB SD card reader is not an option.
What I'm thinking might be possible is to use something like this: http://www.raspipress.com/2013/05/insta ... ash-drive/ to get the Pi booted in such a way that it's not dependent on the SD card, and then remove the SD card, introduce my other SD cards (one-at-a-time), and then run the SD tool on each SD card to edit the CSD register as I require.
I'm pretty much a noob with Raspberry Pis (and new to this forum so apologies if this is the wrong subforum to post in) so before I expend too much effort in trying to get this to work, I was keen to get some feedback from those of you who know this kind of stuff about whether or not this might be possible?
Thanks...
To be clear, the SD cards aren't the same SD card that I use to run my Pi - they are SD cards that I use for other stuff but I'd like to be confident that nothing is able to be written to them once I've got the content on them that I need.
In order to modify the CSD register, the tool requires access to the SD card as a block device (e.g., /dev/mmcblk1) and not as a USB mass storage device (e.g., /dev/sda) thus using a USB SD card reader is not an option.
What I'm thinking might be possible is to use something like this: http://www.raspipress.com/2013/05/insta ... ash-drive/ to get the Pi booted in such a way that it's not dependent on the SD card, and then remove the SD card, introduce my other SD cards (one-at-a-time), and then run the SD tool on each SD card to edit the CSD register as I require.
I'm pretty much a noob with Raspberry Pis (and new to this forum so apologies if this is the wrong subforum to post in) so before I expend too much effort in trying to get this to work, I was keen to get some feedback from those of you who know this kind of stuff about whether or not this might be possible?
Thanks...