repack .img file from usb that have been partitioned to two partition

Clash Royale CLAN TAG#URR8PPP
up vote
0
down vote
favorite
i have an img file with unix system.
i used "win32diskimager" to create a bootable usb from that img file.
i booted successfully and i installed some packages.
now i want to repack it to img file again.
the usb is split to two partitions.
i tried to use dd in two forms
that is the result of parted the original .img
Disk Flags:
Number Start End Size File system Name Flags
1 32768B 100000255B 99967488B fat32 primary msftdata
2 100000256B 7516175871B 7416175616B ext3 primary
1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)
2) dd if=/dev/sdc1 of=myimg_try2.img
dd if=/dev/sdc2 >myimg_try2.img
any of this options didn't worked to me(i tried to load the output result).
any ideas how can i do it?
dd disk-image
add a comment |Â
up vote
0
down vote
favorite
i have an img file with unix system.
i used "win32diskimager" to create a bootable usb from that img file.
i booted successfully and i installed some packages.
now i want to repack it to img file again.
the usb is split to two partitions.
i tried to use dd in two forms
that is the result of parted the original .img
Disk Flags:
Number Start End Size File system Name Flags
1 32768B 100000255B 99967488B fat32 primary msftdata
2 100000256B 7516175871B 7416175616B ext3 primary
1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)
2) dd if=/dev/sdc1 of=myimg_try2.img
dd if=/dev/sdc2 >myimg_try2.img
any of this options didn't worked to me(i tried to load the output result).
any ideas how can i do it?
dd disk-image
add a comment |Â
up vote
0
down vote
favorite
up vote
0
down vote
favorite
i have an img file with unix system.
i used "win32diskimager" to create a bootable usb from that img file.
i booted successfully and i installed some packages.
now i want to repack it to img file again.
the usb is split to two partitions.
i tried to use dd in two forms
that is the result of parted the original .img
Disk Flags:
Number Start End Size File system Name Flags
1 32768B 100000255B 99967488B fat32 primary msftdata
2 100000256B 7516175871B 7416175616B ext3 primary
1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)
2) dd if=/dev/sdc1 of=myimg_try2.img
dd if=/dev/sdc2 >myimg_try2.img
any of this options didn't worked to me(i tried to load the output result).
any ideas how can i do it?
dd disk-image
i have an img file with unix system.
i used "win32diskimager" to create a bootable usb from that img file.
i booted successfully and i installed some packages.
now i want to repack it to img file again.
the usb is split to two partitions.
i tried to use dd in two forms
that is the result of parted the original .img
Disk Flags:
Number Start End Size File system Name Flags
1 32768B 100000255B 99967488B fat32 primary msftdata
2 100000256B 7516175871B 7416175616B ext3 primary
1) dd if=/dev/sdc of=myimg_try1.img bs=512 count14680031 (the total size of the two partition)
2) dd if=/dev/sdc1 of=myimg_try2.img
dd if=/dev/sdc2 >myimg_try2.img
any of this options didn't worked to me(i tried to load the output result).
any ideas how can i do it?
dd disk-image
dd disk-image
asked Sep 27 at 15:25
Yonatan Amir
11
11
add a comment |Â
add a comment |Â
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f471859%2frepack-img-file-from-usb-that-have-been-partitioned-to-two-partition%23new-answer', 'question_page');
);
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password