How to make an image ?

Hello All;

I believe this questions has been asked before, but I don’t recall an answer.

I am using the latest Debian image as a starting point and have installed a number of additional tool in rootfs.

I am using an 8GB uSD card but the roof file system takes up less than 4GB.

What I am trying to do is to create an image that is about 4GB and includes the boot partition plus the used portion of rootfs.

I researched the “DD” command, but if I understand correctly, I would end up with an 8GB image.

I know that I can use “tar” to create an archive of the boot/rootfs partitions, but that isn’t an “image”.

I suppose I could just modify one of Robert Nelson’s scripts to automatically format and copy a uSD card, but I am wondering

If there is a better way ?

Thanks;

Bill

“No one could make a greater mistake than he who did nothing because he could do only a little.”

“All that is necessary for the triumph of evil is that good men do nothing” Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

I use tar and the substitute my rootfs archive for Robert’s and reuse his scripts. I don’t store to emmc though, so it may be different for your case.

Thanks Philip, that’s what I was after.

( I don’t write to emmc either J)

“No one could make a greater mistake than he who did nothing because he could do only a little.”

“All that is necessary for the triumph of evil is that good men do nothing” Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book

Thanks again Philip;

I can’t find my old scripts that I used to use and I couldn’t find

The originals, using Google.

Most of the links point to burning an image or step by step and not Robert’s script.

I looked in the obvious(?) spot on his git hub L

Bill

“No one could make a greater mistake than he who did nothing because he could do only a little.”

“All that is necessary for the triumph of evil is that good men do nothing” Edmond Burke (1729 - 1797)

http://www.packtpub.com/building-a-home-security-system-with-beaglebone/book