Page 1 of 2

16 gb raspberry card prepration

Posted: Sun Feb 04, 2018 10:53 pm
by ankur_r
Hi All,

I have raspberry pi2 model b1.1 board and 16 gb card which I want to make for raspbian bootable which I thane tried but the board is not booting what I have done -
1. Download raspbian tar ball from site.
2. Unzip/untar same file.
3. Format card with 2gb fat 32 and rest ext2 partition
4. Copy untar raspbian file by dd commamd given as
sudo dd if=2017-09-07-raspbian-stretch.img of=/dev/sdb1 bs=1M

But finally card is board is not booting, I sensed by green led is not blinking..

Please help and provide step by step process with detail of command too.i feel possibly I am making mistake at partitioning step..Or I used some disk imager or some other point.

Thanks to all.

Ankur

Re: 16 gb raspberry card prepration

Posted: Sun Feb 04, 2018 11:20 pm
by fruitoftheloom
ankur_r wrote:
Sun Feb 04, 2018 10:53 pm
Hi All,

I have raspberry pi2 model b1.1 board and 16 gb card which I want to make for raspbian bootable which I thane tried but the board is not booting what I have done -
1. Download raspbian tar ball from site.
2. Unzip/untar same file.
3. Format card with 2gb fat 32 and rest ext2 partition
4. Copy untar raspbian file by dd commamd given as
sudo dd if=2017-09-07-raspbian-stretch.img of=/dev/sdb1 bs=1M

But finally card is board is not booting, I sensed by green led is not blinking..

Please help and provide step by step process with detail of command too.i feel possibly I am making mistake at partitioning step..Or I used some disk imager or some other point.

Thanks to all.

Ankur

You do not need to pre-format the SD Card, just use Etcher as per instructions in this page:

https://www.raspberrypi.org/documentati ... /README.md

Re: 16 gb raspberry card prepration

Posted: Mon Feb 05, 2018 12:22 am
by ankur_r
What would be the size of both partitions and filesystem would be fat32 and ext2 ...

I have made 8gb card successful working even with vnc with laptop...And I didn't used either ...I used win32 disk imager and normal linux partition gparted ....

But I forget the size....Conceptually there must not be any difference in gparted and ethcher ....

Can anybody give step by step processed with details input, tools and commands if someone has worked with 16gb successful...

It would be a great help ...

Thanks.
Ankur

Re: 16 gb raspberry card prepration

Posted: Mon Feb 05, 2018 12:26 am
by drgeoff
"sudo dd if=2017-09-07-raspbian-stretch.img of=/dev/sdb1 bs=1M" is incorrect as that writes to a partition.

You write an image to the raw card, not a partition with

Code: Select all

sudo dd if=2017-09-07-raspbian-stretch.img of=/dev/sdb bs=1M
No prior preparation or formatting of the card is needed.

BTW that is not the most recent version of Raspbian.

Re: 16 gb raspberry card prepration

Posted: Mon Feb 05, 2018 6:23 am
by B.Goode
1. Download raspbian tar ball from site.
2. Unzip/untar same file.
Unless you have some unspecified very special requirement to do a tailored installation, simply navigate to the official Raspberry Pi Foundation download page and download the gzipped image file of Raspbian.

Then 'flash' that to a microSD card using Etcher.

tar is not involved in the process. The correct partition sizes are established simply by flashing the image to the card.

Less complicated than the unsupported route you are attempting.

Re: 16 gb raspberry card prepration

Posted: Mon Feb 05, 2018 6:38 am
by procount
The official Raspbian release is provided as a zipped image file: .img.zip.

if you are downloading a tar file, it is probably a NOOBS formatted file. Installing this manually is a strange way to do this and a lot harder than the preferred documented methods of installing Raspbian.

If you just want to install Raspbian, download the correct image file and use Etcher as suggested.

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 9:00 am
by ankur_r
Hi All,

I tried Etcher but Its giving issues..

After downloading, unzipping, applying executable permission, it is able to take tar ball of raspbian, but it is not able to sense the bootable drive i.e. card or pen drive...

when i searched on internet as per
https://github.com/resin-io/etcher/issues/649
https://github.com/resin-io/etcher/issues/1440

and more i tried with
https://github.com/resin-io-modules/dri ... /darwin.sh

downloading and executing but it is giving the issues -
darwin.sh: 19: darwin.sh: diskutil: not found
darwin.sh: 81: darwin.sh: Syntax error: word unexpected (expecting ")")

Therefore at the final end..nothing worked out..

Can anybody suggest the solution of this issues or some alternative with step by step process for successfully building raspbian bootable card..

-Thanks
Ankur

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 9:16 am
by fruitoftheloom
ankur_r wrote:
Tue Feb 06, 2018 9:00 am
Hi All,

I tried Etcher but Its giving issues..

After downloading, unzipping, applying executable permission, it is able to take tar ball of raspbian, but it is not able to sense the bootable drive i.e. card or pen drive...

when i searched on internet as per
https://github.com/resin-io/etcher/issues/649
https://github.com/resin-io/etcher/issues/1440

and more i tried with
https://github.com/resin-io-modules/dri ... /darwin.sh

downloading and executing but it is giving the issues -
darwin.sh: 19: darwin.sh: diskutil: not found
darwin.sh: 81: darwin.sh: Syntax error: word unexpected (expecting ")")

Therefore at the final end..nothing worked out..

Can anybody suggest the solution of this issues or some alternative with step by step process for successfully building raspbian bootable card..

-Thanks
Ankur

There is no requirement to unzip the Raspbian Stretch .zip, Etcher both unzips and creates a bootable SD Card.

Is your SD Card Reader SDHC Compliant ?? https://en.wikipedia.org/wiki/Secure_Digital#SDHC

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 9:33 am
by drgeoff
fruitoftheloom wrote:
Tue Feb 06, 2018 9:16 am
There is no requirement to unzip the Raspbian Stretch .zip, Etcher both unzips and creates a bootable SD Card
He is unzipping the Etcher download, not Raspbian.

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 9:45 am
by drgeoff
@ankur_r
The method you reported in the opening post would work if:

1. Your card reader supports SDHC cards

and

2. You use the correct command line.

See https://www.raspberrypi.org/documentati ... ges/mac.md for how to use the dd method on a Mac.

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 2:24 pm
by ankur_r
Hi All,

Why only SDHC ?? There is not any specific recommendation has been provided for same.

If a card can work with dd , gparted as well then why not with etcher ??

As the reported link (provided in my earlier posts ) says, there is some fundamental design/coding error.

Can anybody suggest for which version exactly the SDHC has been proven ??

Is there any other proven alternative of dd/etcher ??

-Thanks.
Ankur

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 2:30 pm
by fruitoftheloom

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 5:12 pm
by drgeoff
ankur_r wrote:
Tue Feb 06, 2018 2:24 pm
Why only SDHC ?? T
With the exception of a few rare 4 Gbyte cards all SD cards of size 4 Gbyte to 32 Gbyte inclusive are SDHC cards. When SD cards were first introduced the sizes were much smaller.. When it became economic to produce much larger cards the interface spec was unable to accommodate them and a new interface spec was introduced for sizes between 2 and 32 Gbyte. The cards are marked SDHC and will not work in old card readers which don't support the SDHC standard.

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 5:33 pm
by W. H. Heydt
I want to ask a classic "stupid question" of the OP... What OS is running on the system you are using to try to flash the SD card?

Re: 16 gb raspberry card prepration

Posted: Tue Feb 06, 2018 9:12 pm
by ankur_r
Hi All,

I am working on
Ubuntu 12.04.5 LTS : version
linux 3.11.0-26-generic : kernel
x86_64: architecture .

My card reader SDHC the details are
https://www.qhmpl.com/QHM5084-All-In-On ... eader.html

additionally i am able to read/write file normally on laptop..the point is it doesnot boot rpi card..

any guess, should i still change this card ??

the terminal says -

ankur@ankur-ubuntu:~/Desktop$ sudo dd if=2017-11-29-raspbian-stretch.img of=/dev/sdb bs=1M
[sudo] password for ankur:
4692+0 records in
4692+0 records out
4919918592 bytes (4.9 GB) copied, 839.437 s, 5.9 MB/s

Please help..


-Regards.
Ankur

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 7:47 am
by drgeoff
ankur_r wrote:
Tue Feb 06, 2018 9:12 pm
the terminal says -
ankur@ankur-ubuntu:~/Desktop$ sudo dd if=2017-11-29-raspbian-stretch.img of=/dev/sdb bs=1M
[sudo] password for ankur:
4692+0 records in
4692+0 records out
4919918592 bytes (4.9 GB) copied, 839.437 s, 5.9 MB/s
Thats looks OK, exactly as it should.

Don't be offended by this but there has been at least one user who couldn't boot the RPi because he/she was putting the card in the reader into a USB socket on the RPi, not into the RPi's card slot.

Failing that you have a duff card, a duff PSU or a duff RPi. Some ways to check the card using Linux are http://oss.digirati.com.br/f3/ and https://ccollins.wordpress.com/2016/01/ ... ith-linux/

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 7:52 am
by fruitoftheloom
ankur_r wrote:
Tue Feb 06, 2018 9:12 pm
Hi All,

I am working on
Ubuntu 12.04.5 LTS : version
linux 3.11.0-26-generic : kernel
x86_64: architecture .

My card reader SDHC the details are
https://www.qhmpl.com/QHM5084-All-In-On ... eader.html

additionally i am able to read/write file normally on laptop..the point is it doesnot boot rpi card..

any guess, should i still change this card ??

the terminal says -

ankur@ankur-ubuntu:~/Desktop$ sudo dd if=2017-11-29-raspbian-stretch.img of=/dev/sdb bs=1M
[sudo] password for ankur:
4692+0 records in
4692+0 records out
4919918592 bytes (4.9 GB) copied, 839.437 s, 5.9 MB/s

Please help..


-Regards.
Ankur

Code: Select all

sudodd bs=4M if=2017-11-29-raspbian-stretch.img of=/dev/sdX conv=fsync
https://www.raspberrypi.org/documentati ... s/linux.md

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 8:03 am
by jahboater
Or

Code: Select all

sudo cp 2017-11-29-raspbian-stretch.img /dev/sdX
which is easier to type.
We are after all simply copying a file, and cp is optimized for just that.

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 9:11 am
by jbudd
We are after all simply copying a file
Ummm that's not true surely? the SD card needs to end up with two partitions of different types, containing thousands of files, not a single file in a single partition.

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 9:15 am
by jahboater
jbudd wrote:
Wed Feb 07, 2018 9:11 am
We are after all simply copying a file
Ummm that's not true surely? the SD card needs to end up with two partitions of different types, containing thousands of files, not a single file in a single partition.
No. "2017-11-29-raspbian-stretch.img" is one single file.
This is why we do not need to format the block device first.

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 10:05 am
by procount
@jbudd, copying a file to /dev/sdX is not writing to a partition, it is writing to the whole card at device driver level and therefore it is creating the partitions and formats on the device at the same time as copying the data.

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 10:15 am
by jahboater
"Installation" is a misnomer when we are talking about ".img" files.
The OS installation is actually done by an RPF engineer on one of their machines, we just use a straight copy of that.
After the installation, they take a complete block level copy of the raw disk, compress it, and thats what we download.
The first 512 bytes of a ".img" file will contain the partition table.

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 10:26 am
by ankur_r
Hi All,

I am using same card and card reader for reading and writing files with partitioning perfectly and when I am using other card on same rpi board the board in properly booting even, i am able perform all operation properly. There is some other factor is lying which we are not able to catch..pls help to catch and rectify same..

Regards.
Ankur

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 10:29 am
by procount
If it is a problem with one particular card, then I would check it with H2testw or similar test software to eliminate any problems with the card itself.

Re: 16 gb raspberry card prepration

Posted: Wed Feb 07, 2018 1:11 pm
by drgeoff
ankur_r wrote:
Wed Feb 07, 2018 10:26 am
I am using same card and card reader for reading and writing files with partitioning perfectly and when I am using other card on same rpi board the board in properly booting even, i am able perform all operation properly. There is some other factor is lying which we are not able to catch..pls help to catch and rectify same.
This is the first time you have revealed that. Almost certainly you have a fake or damaged card. I already gave you links about testing it on a Linux computer.