Page 1 of 1

Raspbian Jessie Lite IMG problem

Posted: Fri Jun 23, 2017 9:44 pm
by marionee
Hello,
in the last release 2017-06-21 of Raspbian Lite there is an issue with the IMG file.
The problem is that file is not aligned on 512 bytes (the smallest sector size). I presume someone made a mistake when creating it. If you pad it out with zeros to be a multiple of 512 bytes then it would work again.
Best regards.

Re: Raspbian Jessie Lite IMG problem

Posted: Mon Jun 26, 2017 8:22 am
by ShiftPlusOne
Could you elaborate? What are you seeing and what are you expecting to see (exact numbers)?

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 10:37 am
by marionee
ls -l

Code: Select all

-rw-r--r--    1 root     root     1297862656 Apr 10 10:58 2017-04-10-raspbian-jessie-lite.img
-rw-r--r--    1 root     root     1304672023 Jun 26 09:14 2017-06-21-raspbian-jessie-lite.img
fdisk -l
Disk 2017-04-10-raspbian-jessie-lite.img: 1.2 GiB, 1297862656 bytes, 2534888 sectors
Disk 2017-06-21-raspbian-jessie-lite.img: 1.2 GiB, 1304671744 bytes, 2548187 sectors

the last img file has 279 bytes over.

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 10:53 am
by ShiftPlusOne
The size of the image doesn't matter. It would just mean that a few extra bytes get written when the image is dd'ed, but that's about it.

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 11:15 am
by marionee
In order to fix it i execute the following command:

Code: Select all

dd if=/dev/zero bs=1 count=233 >> 2017-06-21-raspbian-jessie-lite.img

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 11:17 am
by ShiftPlusOne
That doesn't accomplish anything.

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 11:23 am
by B.Goode
in the last release 2017-06-21 of Raspbian Lite there is an issue with the IMG file.
Just as another user who has not yet tried this recent image, can I ask what the actual 'issue' is here?

Can the image be successfully 'flashed' to a microSD card?

Does the resulting microSD card subsequently boot up normally in an RPi?

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 11:34 am
by marionee
I cannot use the last image with "Image for Linux" http://www.terabyteunlimited.com/image-for-linux.htm
It check if the file is not aligned on 512 bytes (the smallest sector size) and give me an error.
In order to make it work i have to manually add the missing 233 bytes.

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 12:36 pm
by jahboater
marionee wrote:I cannot use the last image with "Image for Linux" http://www.terabyteunlimited.com/image-for-linux.htm
It check if the file is not aligned on 512 bytes (the smallest sector size) and give me an error.
In order to make it work i have to manually add the missing 233 bytes.
Why not just use dd (or etcher) which don't have any daft requirements like that? (And are free - in particular dd is included as standard in all Linux's). You have used dd anyway.

To reiterate whats already been said, the file size has nothing to do with "alignment".

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 12:48 pm
by jahboater
B.Goode wrote:
in the last release 2017-06-21 of Raspbian Lite there is an issue with the IMG file.
Just as another user who has not yet tried this recent image, can I ask what the actual 'issue' is here?
There is no issue.
Just a strange piece of software that expects the image to be an exact multiple of 512 bytes in size.

2017-06-21 Raspbian Lite works fine.

Re: Raspbian Jessie Lite IMG problem

Posted: Tue Jun 27, 2017 2:19 pm
by marionee
Thanks, all of you.