marionee
Posts: 7
Joined: Sat Apr 06, 2013 8:20 am

Raspbian Jessie Lite IMG problem

Fri Jun 23, 2017 9:44 pm

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.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Raspbian Jessie Lite IMG problem

Mon Jun 26, 2017 8:22 am

Could you elaborate? What are you seeing and what are you expecting to see (exact numbers)?

marionee
Posts: 7
Joined: Sat Apr 06, 2013 8:20 am

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 10:37 am

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.
Last edited by marionee on Tue Jun 27, 2017 11:09 am, edited 1 time in total.

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 10:53 am

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.

marionee
Posts: 7
Joined: Sat Apr 06, 2013 8:20 am

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 11:15 am

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

ShiftPlusOne
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 6229
Joined: Fri Jul 29, 2011 5:36 pm
Location: The unfashionable end of the western spiral arm of the Galaxy

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 11:17 am

That doesn't accomplish anything.

User avatar
B.Goode
Posts: 10356
Joined: Mon Sep 01, 2014 4:03 pm
Location: UK

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 11:23 am

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?

marionee
Posts: 7
Joined: Sat Apr 06, 2013 8:20 am

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 11:34 am

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.

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 12:36 pm

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".

jahboater
Posts: 5759
Joined: Wed Feb 04, 2015 6:38 pm
Location: West Dorset

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 12:48 pm

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.

marionee
Posts: 7
Joined: Sat Apr 06, 2013 8:20 am

Re: Raspbian Jessie Lite IMG problem

Tue Jun 27, 2017 2:19 pm

Thanks, all of you.

Return to “Raspberry Pi OS”