Boot image
Hey guys,
I'm trying to update a couple of files on a boot image that we use to run a low form of linux on some boards for testing. We basically install the image to create a bootable sdcard with this low form of linux. Anyway I have a final.image.dd file that I usually create the sdcards from, but i need to edit the interfaces and replace a file from inside the .dd image. Any pointers on how this could be done? Thank you. P.S. I'm using Ubuntu on the machine I'm doing all of this on. |
Is there any problem mounting that image to a directory and modifying the contents?
|
I can mount the image on a sdcard and modify the content there, but how do i rip the card to create a new image? i have to do a lot of these cards and we have to give the image to a supplier so they can do this for us, so i need to make the image with the settings that we need.
|
I think you can use dd command to achieve that goal.
Here is post which will help you learn how to use "dd" command. http://www.linuxquestions.org/questi...ommand-362506/ |
I was talking about mounting "the image" not tranferring the image to a card and conecting that card.
If you have a whatever.img, which once was a fs in your card and you have created the image (using dd for instance) you should be able to mount your whatever.img in your /mnt directory. Any change you do there (if you mount your image with write permissions) will be kept in the image once you unmount it. |
I'm trying to.. but i get this:
Code:
root@ubuntu:/home/alex/Desktop/Tech CIP# parted -Tech.final.image.dd unit B print |
Try it without the B on the end of the offset, that should work.
|
That worked, how do I save the .dd file after I'm done editing it?
|
Just unmount it. All edits are realtime, so be sure to have a backup of the image in case anything gets wrong.
|
Thanks a lot
|
All times are GMT -5. The time now is 06:30 AM. |