Partition table missing from Linux shrunk .img- Win7 doesn't recognize

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












0














I have been struggling with this issue.



  1. I was able to shrink my JeOS .img with the following tutorial using YUMI live Ubuntu mate 18.04 USB attached to my Windows 7 laptop:

https://softwarebakery.com/shrinking-images-on-linux



The resulting shrunk .img (1.58 GB from a 7.50 GB USB stick) saved on my laptop C drive, when burned via Etcher in Ubuntu mate Linux, is bootable in the TV box.



But when I insert this SD card (via USB adapter as usual) into my Win7 laptop it says: Not readable, would you like to format?



(When I used Etcher, I got a message: partition table not found, Continue? And I just chose Continue.)



  1. When I use above tutorial I actually see two partitions, .img1 for boot and .img2 for storage (userdata etc.), so I just repeated instructions for each, then concatenated the files:
    $ cat .img1 img2 > .img

The .img1 and .img2 files under Ubuntu mate (where I did the shrink operation) appear as ?stl files, whereas the new .img file appears as raw file.



  1. So I think that this shrunk .img file needs a partition table.

***How do I achieve this so I can get a burn boot image on my SD card that is readable by Windows 7 (so I can change the device trees from the included folder)?



I ran testdisk on my Win7 laptop. It located the Linux distro on SD card as L (logical) [ STORAGE], but upon pressing p option, said, " Can't open filesystem. Filesystem seems damaged."



Before it said, " Partition table doesn't have the end mark 0xAA55."



Also, I tried to run from Windows cmd.exe ,
$ testdisk_win.exe /pathfile/*.img



but Windows doesn't recognize testdisk_win.exe !



Edit: Some more info...
The boot .img1 is fat 16, the Storage .img2 is ext4 so I formatted both to fat32 and also did the Check under gparted. Also used Ignore and Fix alternately. No difference.



So does this mean there is a problem with shrinking two images and then concatenating ?










share|improve this question























  • Exactly what steps did you use to produce img1 and img2 from a single source image that contained multiple partitions? I think you now probably have either two disk images, each of which contains its own partition table, or two partition images, of which neither includes a partition table. Either way, just concatenating them makes no sense. Concatenating two disk images places only the first image's partition table into an useful position... and that partition table probably says that the whole disk ends at the endpoint of the first image.
    – telcoM
    Dec 11 at 8:41















0














I have been struggling with this issue.



  1. I was able to shrink my JeOS .img with the following tutorial using YUMI live Ubuntu mate 18.04 USB attached to my Windows 7 laptop:

https://softwarebakery.com/shrinking-images-on-linux



The resulting shrunk .img (1.58 GB from a 7.50 GB USB stick) saved on my laptop C drive, when burned via Etcher in Ubuntu mate Linux, is bootable in the TV box.



But when I insert this SD card (via USB adapter as usual) into my Win7 laptop it says: Not readable, would you like to format?



(When I used Etcher, I got a message: partition table not found, Continue? And I just chose Continue.)



  1. When I use above tutorial I actually see two partitions, .img1 for boot and .img2 for storage (userdata etc.), so I just repeated instructions for each, then concatenated the files:
    $ cat .img1 img2 > .img

The .img1 and .img2 files under Ubuntu mate (where I did the shrink operation) appear as ?stl files, whereas the new .img file appears as raw file.



  1. So I think that this shrunk .img file needs a partition table.

***How do I achieve this so I can get a burn boot image on my SD card that is readable by Windows 7 (so I can change the device trees from the included folder)?



I ran testdisk on my Win7 laptop. It located the Linux distro on SD card as L (logical) [ STORAGE], but upon pressing p option, said, " Can't open filesystem. Filesystem seems damaged."



Before it said, " Partition table doesn't have the end mark 0xAA55."



Also, I tried to run from Windows cmd.exe ,
$ testdisk_win.exe /pathfile/*.img



but Windows doesn't recognize testdisk_win.exe !



Edit: Some more info...
The boot .img1 is fat 16, the Storage .img2 is ext4 so I formatted both to fat32 and also did the Check under gparted. Also used Ignore and Fix alternately. No difference.



So does this mean there is a problem with shrinking two images and then concatenating ?










share|improve this question























  • Exactly what steps did you use to produce img1 and img2 from a single source image that contained multiple partitions? I think you now probably have either two disk images, each of which contains its own partition table, or two partition images, of which neither includes a partition table. Either way, just concatenating them makes no sense. Concatenating two disk images places only the first image's partition table into an useful position... and that partition table probably says that the whole disk ends at the endpoint of the first image.
    – telcoM
    Dec 11 at 8:41













0












0








0







I have been struggling with this issue.



  1. I was able to shrink my JeOS .img with the following tutorial using YUMI live Ubuntu mate 18.04 USB attached to my Windows 7 laptop:

https://softwarebakery.com/shrinking-images-on-linux



The resulting shrunk .img (1.58 GB from a 7.50 GB USB stick) saved on my laptop C drive, when burned via Etcher in Ubuntu mate Linux, is bootable in the TV box.



But when I insert this SD card (via USB adapter as usual) into my Win7 laptop it says: Not readable, would you like to format?



(When I used Etcher, I got a message: partition table not found, Continue? And I just chose Continue.)



  1. When I use above tutorial I actually see two partitions, .img1 for boot and .img2 for storage (userdata etc.), so I just repeated instructions for each, then concatenated the files:
    $ cat .img1 img2 > .img

The .img1 and .img2 files under Ubuntu mate (where I did the shrink operation) appear as ?stl files, whereas the new .img file appears as raw file.



  1. So I think that this shrunk .img file needs a partition table.

***How do I achieve this so I can get a burn boot image on my SD card that is readable by Windows 7 (so I can change the device trees from the included folder)?



I ran testdisk on my Win7 laptop. It located the Linux distro on SD card as L (logical) [ STORAGE], but upon pressing p option, said, " Can't open filesystem. Filesystem seems damaged."



Before it said, " Partition table doesn't have the end mark 0xAA55."



Also, I tried to run from Windows cmd.exe ,
$ testdisk_win.exe /pathfile/*.img



but Windows doesn't recognize testdisk_win.exe !



Edit: Some more info...
The boot .img1 is fat 16, the Storage .img2 is ext4 so I formatted both to fat32 and also did the Check under gparted. Also used Ignore and Fix alternately. No difference.



So does this mean there is a problem with shrinking two images and then concatenating ?










share|improve this question















I have been struggling with this issue.



  1. I was able to shrink my JeOS .img with the following tutorial using YUMI live Ubuntu mate 18.04 USB attached to my Windows 7 laptop:

https://softwarebakery.com/shrinking-images-on-linux



The resulting shrunk .img (1.58 GB from a 7.50 GB USB stick) saved on my laptop C drive, when burned via Etcher in Ubuntu mate Linux, is bootable in the TV box.



But when I insert this SD card (via USB adapter as usual) into my Win7 laptop it says: Not readable, would you like to format?



(When I used Etcher, I got a message: partition table not found, Continue? And I just chose Continue.)



  1. When I use above tutorial I actually see two partitions, .img1 for boot and .img2 for storage (userdata etc.), so I just repeated instructions for each, then concatenated the files:
    $ cat .img1 img2 > .img

The .img1 and .img2 files under Ubuntu mate (where I did the shrink operation) appear as ?stl files, whereas the new .img file appears as raw file.



  1. So I think that this shrunk .img file needs a partition table.

***How do I achieve this so I can get a burn boot image on my SD card that is readable by Windows 7 (so I can change the device trees from the included folder)?



I ran testdisk on my Win7 laptop. It located the Linux distro on SD card as L (logical) [ STORAGE], but upon pressing p option, said, " Can't open filesystem. Filesystem seems damaged."



Before it said, " Partition table doesn't have the end mark 0xAA55."



Also, I tried to run from Windows cmd.exe ,
$ testdisk_win.exe /pathfile/*.img



but Windows doesn't recognize testdisk_win.exe !



Edit: Some more info...
The boot .img1 is fat 16, the Storage .img2 is ext4 so I formatted both to fat32 and also did the Check under gparted. Also used Ignore and Fix alternately. No difference.



So does this mean there is a problem with shrinking two images and then concatenating ?







linux command-line






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Dec 11 at 7:51

























asked Dec 10 at 17:59









shippy

11




11











  • Exactly what steps did you use to produce img1 and img2 from a single source image that contained multiple partitions? I think you now probably have either two disk images, each of which contains its own partition table, or two partition images, of which neither includes a partition table. Either way, just concatenating them makes no sense. Concatenating two disk images places only the first image's partition table into an useful position... and that partition table probably says that the whole disk ends at the endpoint of the first image.
    – telcoM
    Dec 11 at 8:41
















  • Exactly what steps did you use to produce img1 and img2 from a single source image that contained multiple partitions? I think you now probably have either two disk images, each of which contains its own partition table, or two partition images, of which neither includes a partition table. Either way, just concatenating them makes no sense. Concatenating two disk images places only the first image's partition table into an useful position... and that partition table probably says that the whole disk ends at the endpoint of the first image.
    – telcoM
    Dec 11 at 8:41















Exactly what steps did you use to produce img1 and img2 from a single source image that contained multiple partitions? I think you now probably have either two disk images, each of which contains its own partition table, or two partition images, of which neither includes a partition table. Either way, just concatenating them makes no sense. Concatenating two disk images places only the first image's partition table into an useful position... and that partition table probably says that the whole disk ends at the endpoint of the first image.
– telcoM
Dec 11 at 8:41




Exactly what steps did you use to produce img1 and img2 from a single source image that contained multiple partitions? I think you now probably have either two disk images, each of which contains its own partition table, or two partition images, of which neither includes a partition table. Either way, just concatenating them makes no sense. Concatenating two disk images places only the first image's partition table into an useful position... and that partition table probably says that the whole disk ends at the endpoint of the first image.
– telcoM
Dec 11 at 8:41















active

oldest

votes











Your Answer








StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "106"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);

else
createEditor();

);

function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);



);













draft saved

draft discarded


















StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487174%2fpartition-table-missing-from-linux-shrunk-img-win7-doesnt-recognize%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes















draft saved

draft discarded
















































Thanks for contributing an answer to Unix & Linux Stack Exchange!


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid


  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f487174%2fpartition-table-missing-from-linux-shrunk-img-win7-doesnt-recognize%23new-answer', 'question_page');

);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown






Popular posts from this blog

Peggy Mitchell

Palaiologos

The Forum (Inglewood, California)