On 07/11/2018 19:28, PeterMerchant via dorset wrote:
In discussing how I could duplicate my image for my raspberry Pi, Terry said that he had a script for WMT. I found that I could create an image with dd from my 'good' uSD card, and then use etcher to put it on a new card, albeit of a different size.
It wasn't a script as such; it was including in the Installation Manuals that I wrote for the WMT Railway Lighting, Webserver and Minster Bells systems.  I simply detailed how to use dd to copy an SD Card and then write the resulting image to another card.  The info is readily available on the web.

Apparently the cure for this is to fsck it, but that refuses to work saying that I have a DOS partition - that's the boot partition.

The Raspberry Pi Foundation chose to make the SD Card file system FAT32 because it is a standard format used by a lot of different types of removable drives like flash drives and it can be read by just about every operating system. The other*partition*, the one with the data on it, is EXT3, the standard*Linux*file system format.

You should be able to fsck the /boot partition of the SD Card using fsck as follows.  On my system, I have one SSD drive and one spinning rust drive, so the SD Card pops up as sdc with sdc1 being the FAT32 partition called /boot and sdc2 being the ext3 partion containing /.  First the ext3 partition:

terry@OptiPlex:~$ sudo fsck /dev/sdc2
fsck from util-linux 2.32
e2fsck 1.44.4 (18-Aug-2018)
/dev/sdc2: clean, 161128/446208 files, 1430961/1817600 blocks


On this Kubuntu 18.10 desktop, fsck invoked e2fsk to do the job.

Then the FAT32 partition.

terry@OptiPlex:~$ sudo fsck /dev/sdc1
fsck from util-linux 2.32
fsck.fat 4.1 (2017-01-24)
/dev/sdc1: 121 files, 2663/8057 clusters

This time, fsck invoked fsck.fat.

--


      Terry Coles


--
 Next meeting at *new* venue:  Bournemouth, Tuesday, 2018-12-04 20:00
 Check if you're replying to the list or the author
 Meetings, mailing list, IRC, ...  http://dorset.lug.org.uk/
 New thread, don't hijack:  mailto:dorset@mailman.lug.org.uk

Reply via email to