Re: [Dorset] Using DD to write image file for R-pi problems
On 11/02/16 18:04, Ralph Corderoy wrote: Hi Peter, Neil wrote: sudo dd bs=1M if=./2016-02-03-raspbian-jessie.img of=/dev/sdb1 Dump the image to the device root /dev/sdb not sdb1 Yes, as described: https://www.raspberrypi.org/documentation/installation/installing-images/linux.md It's a disk image, i.e. it has as partition table at the start, not a partition image, i.e. a filesystem. Thanks everybody. It is my stupidity as pointed out by Neil, that was causing the problem. I was following the instructions on the link given by Ralph and others, but missed that one digit. I have tested two of them and they boot fine, so I am doing the others. I used gparted first to clean out all partitions and leave them blank. Peter -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
Hi Peter, > I used gparted first to clean out all partitions and leave them blank. A disk is logically just a sequence of bytes. It's convention that some at the beginning are used to "partition" the remainder, like the contents page of a book. Since the image you're copying onto these disks is a disk image, not a partition image, it includes those initial bytes that comprise the partition table, thus partitioning the drive at the same time. So there's no need to use gparted to remove partitions first; it's just modifying those few bytes at the beginning that you're then trampling en masse with the image. If the disk image is smaller than the disk then dd(1) won't overwrite bytes on the disk beyond the end of the copied image. So if the disk was previously used, data could still remain and be recovered by whoever has the disk, e.g. using photorec(1). But again, having gparted twiddle the initial bytes, the partition table, does nothing to clear these old bytes way further down the drive. Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
Another interesting tool I have come across recently is dcfldd. Use it the same as dd but also has forensic capabilities and, helpfully, progress indication. On 11 Feb 2016 17:56, "Terry Coles"wrote: > On Thursday 11 February 2016 17:26:07 Neil Stone wrote: > > Dump the image to the device root /dev/sdb not sdb1 > > Also, you shouldn't need to create a partition on the SD Card, because dd > will > do a sector by sector copy. > > See > https://www.raspberrypi.org/documentation/installation/installing-images/ > linux.md for a detailed guide. > > -- > > Terry Coles > > > > -- > Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING > Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR > -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
If you send a SIGUSR1 to dd it will spit out some progress information. Note that on OSX and BSD its SIGINFO ... USR1 will kill it. Don't ask me how I know this. On 11 Feb 2016 7:49 p.m., "Neil Stone"wrote: > Another interesting tool I have come across recently is dcfldd. Use it the > same as dd but also has forensic capabilities and, helpfully, progress > indication. > On 11 Feb 2016 17:56, "Terry Coles" wrote: > > > On Thursday 11 February 2016 17:26:07 Neil Stone wrote: > > > Dump the image to the device root /dev/sdb not sdb1 > > > > Also, you shouldn't need to create a partition on the SD Card, because dd > > will > > do a sector by sector copy. > > > > See > > > https://www.raspberrypi.org/documentation/installation/installing-images/ > > linux.md for a detailed guide. > > > > -- > > > > Terry Coles > > > > > > > > -- > > Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 > > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > > New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING > > Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR > > > -- > Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING > Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR > -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
You should be able to do as you say peter. Tflash and sd card readers are notoriously iffy in my experience. If you are using an internal reader that's a definite no no. My first suggestion is to try a different reader. Chad On 11 Feb 2016 17:26, "Neil Stone"wrote: > Dump the image to the device root /dev/sdb not sdb1 > On 11 Feb 2016 17:20, "Peter Merchant" wrote: > > > Hi, I am trying to create systems for my Raspberry Pi on MicroSD cards, > > but not having any luck. > > > > I am using a USB to SD card adapter, a SD card to MicroSD card adapter, > > and aKinsgston 8GB Class 4 Micro SD card. > > > > I use Gparted to create a primary ext4 partition on the uSD card, and > this > > leaves the card unmounted as seems to be required. > > > > sudo dd bs=1M if=./2016-02-03-raspbian-jessie.img of=/dev/sdb1 ( have > > changed 4M to 1M and added ./ to the 'if' string in an attempt to do > > it.) I am in the directory where the image is. > > > > For this uSD card df -h shows it to be sdb1. For my SD cards they > > sometimes show as sdb3. > > > > After the dd process is finished, I cannot mount the card, and when I run > > gparted, it shows an 'unknown' partition type. > > > > I have just had a look at my 8GB SD card (sdb1) and it contains 62 files > > (109.6GB) and the names are unprintable characters. > > > > I am wondering if one of my adapters is corrupt, or if anybody can shed > > some light on my problems. > > > > Thanks, > > > > Peter > > > > > > > > > > -- > > Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 > > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > > New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING > > Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR > > > -- > Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING > Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR > -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
On Thursday 11 February 2016 17:26:07 Neil Stone wrote: > Dump the image to the device root /dev/sdb not sdb1 Also, you shouldn't need to create a partition on the SD Card, because dd will do a sector by sector copy. See https://www.raspberrypi.org/documentation/installation/installing-images/ linux.md for a detailed guide. -- Terry Coles -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
Hi Peter, Neil wrote: > > sudo dd bs=1M if=./2016-02-03-raspbian-jessie.img of=/dev/sdb1 > > Dump the image to the device root /dev/sdb not sdb1 Yes, as described: https://www.raspberrypi.org/documentation/installation/installing-images/linux.md It's a disk image, i.e. it has as partition table at the start, not a partition image, i.e. a filesystem. Cheers, Ralph. -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
[Dorset] Using DD to write image file for R-pi problems
Hi, I am trying to create systems for my Raspberry Pi on MicroSD cards, but not having any luck. I am using a USB to SD card adapter, a SD card to MicroSD card adapter, and aKinsgston 8GB Class 4 Micro SD card. I use Gparted to create a primary ext4 partition on the uSD card, and this leaves the card unmounted as seems to be required. sudo dd bs=1M if=./2016-02-03-raspbian-jessie.img of=/dev/sdb1 ( have changed 4M to 1M and added ./ to the 'if' string in an attempt to do it.) I am in the directory where the image is. For this uSD card df -h shows it to be sdb1. For my SD cards they sometimes show as sdb3. After the dd process is finished, I cannot mount the card, and when I run gparted, it shows an 'unknown' partition type. I have just had a look at my 8GB SD card (sdb1) and it contains 62 files (109.6GB) and the names are unprintable characters. I am wondering if one of my adapters is corrupt, or if anybody can shed some light on my problems. Thanks, Peter -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR
Re: [Dorset] Using DD to write image file for R-pi problems
Dump the image to the device root /dev/sdb not sdb1 On 11 Feb 2016 17:20, "Peter Merchant"wrote: > Hi, I am trying to create systems for my Raspberry Pi on MicroSD cards, > but not having any luck. > > I am using a USB to SD card adapter, a SD card to MicroSD card adapter, > and aKinsgston 8GB Class 4 Micro SD card. > > I use Gparted to create a primary ext4 partition on the uSD card, and this > leaves the card unmounted as seems to be required. > > sudo dd bs=1M if=./2016-02-03-raspbian-jessie.img of=/dev/sdb1 ( have > changed 4M to 1M and added ./ to the 'if' string in an attempt to do > it.) I am in the directory where the image is. > > For this uSD card df -h shows it to be sdb1. For my SD cards they > sometimes show as sdb3. > > After the dd process is finished, I cannot mount the card, and when I run > gparted, it shows an 'unknown' partition type. > > I have just had a look at my 8GB SD card (sdb1) and it contains 62 files > (109.6GB) and the names are unprintable characters. > > I am wondering if one of my adapters is corrupt, or if anybody can shed > some light on my problems. > > Thanks, > > Peter > > > > > -- > Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 > Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ > New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING > Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR > -- Next meeting: Bournemouth, Tuesday, 2016-03-01 20:00 Meets, Mailing list, IRC, LinkedIn, ... http://dorset.lug.org.uk/ New thread: mailto:dorset@mailman.lug.org.uk / CHECK IF YOU'RE REPLYING Reporting bugs well: http://goo.gl/4Xue / TO THE LIST OR THE AUTHOR