Mount image file to partitionsHow to mount this image?Problems with mount command while mounting an image fileHow to mount an image file without root?Ubuntu 14.04 hangs, can fix/login but then after reboot it hangs again. Have bootscript/details. Wubi issue?mount vdhx image on ubuntu (data recovery)
Inequality real analysis
Unpaid suspension due to management error
How oases form in the middle of desert?
What happens differently when ISS is inside this red boundary (Russia & Europe & ...)?
Difference between αὐτός and οὗτος
Does the "stand your ground" law regarding shooting an intruder apply when the door of the dwelling was not locked?
Why is dwarfism considered an advantage for jobs in space?
Template not provided using create-react-app
Is Irish buttermilk different
Why do amateur radio operators call an RF choke a balun?
What is the expected length of the hypotenuse formed by bending a unit length randomly at a right angle?
Prefix all commands in shell
50K, what to do with it?
Is there any reason a person would voluntarily choose to have PMI?
Should I still follow "programming to an interface not implementation" even if I think using concrete class members is the simpler solution?
Rational representation of reals
Why so few osilloscope with dedicated isolated channels?
What's the best way to keep cover of a pan slightly opened?
What does 36.000€ mean?
Does the Detect Magic spell detect itself?
A novel (or maybe a whole series) where a weird disease infects men and machines
What is the logic for the map maker classifying the map this way, specifically in Canada?
How to run " $('div').clone().appendTo('.wrapper'); " in LWC?
Did the Mueller report find that Trump committed any felonies?
Mount image file to partitions
How to mount this image?Problems with mount command while mounting an image fileHow to mount an image file without root?Ubuntu 14.04 hangs, can fix/login but then after reboot it hangs again. Have bootscript/details. Wubi issue?mount vdhx image on ubuntu (data recovery)
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I downloaded a device firmware file named zetnu.xilinx-201907311618-autofreq-user-Update2UBI-NF-sig.tar.gz
I extracted the above file and these are the contents:
BOOT.bin
devicetree.dtb
rootfs.jffs2
uImage
Next to these files was a file to install called runme.sh
This file's content is this:
#!/bin/sh -e
path=$(pwd)
cp_config="all"
if [ ! -d /mnt/upgrade ];
then
mkdir /mnt/upgrade
fi
if [ -e /usr/bin/ctrl_bd ]; then
ret=`cat /usr/bin/ctrl_bd | grep "XILINX" | wc -l`
else
ret=0
fi
if [ $ret -eq 1 ];then
cd ./xilinx
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ `ls /mnt/config/home/usr_config | wc -l` -gt 1 ];then
cp_config="all" #cp -r /config/* /mnt/config/home/usr_config/
else
cp_config="mac" #cp -r /config/mac /mnt/config/home/usr_config/
fi
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e BOOT.bin ]; then
flash_erase /dev/mtd0 0x0 0x80 >/dev/null 2>&1
nandwrite -p -s 0x0 /dev/mtd0 ./BOOT.bin >/dev/null 2>&1
rm -rf BOOT.bin
fi
if [ -e devicetree.dtb ]; then
flash_erase /dev/mtd0 0x1020000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1020000 /dev/mtd0 ./devicetree.dtb >/dev/null 2>&1
rm devicetree.dtb
fi
if [ -e uImage ]; then
flash_erase /dev/mtd0 0x1100000 0x40 >/dev/null 2>&1
nandwrite -p -s 0x1100000 /dev/mtd0 ./uImage >/dev/null 2>&1
rm uImage
fi
if [ -e rootfs.jffs2 ]; then
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd2 0x0 0x1E0 >/dev/null 2>&1
else
flash_erase /dev/mtd2 0x0 0x280 >/dev/null 2>&1
fi
nandwrite -p -s 0x0 /dev/mtd2 ./rootfs.jffs2 >/dev/null 2>&1
rm rootfs.jffs2
fi
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ $cp_config == "all" ];then
cp -r /config/* /mnt/config/home/usr_config/
if [ -e ../lighttpd-htdigest.user ]; then
line1=`cat ../lighttpd-htdigest.user | wc -c`
if [ $line1 != "0" ]; then
cp -r ../lighttpd-htdigest.user /mnt/config/home/usr_config/lighttpd-htdigest.user
if [ -e ../shadow ]; then
line2=`cat ../shadow | wc -c`
if [ $line2 != "0" ]; then
cp /etc/shadow /mnt/config/home/usr_config/shadow
old_shd=`sed -n '1p' /mnt/config/home/usr_config/shadow`
o1=`echo $old_shd:5`
o2=$o1#*:
new_shd=`cat ../shadow`
n1=$new_shd":"$o2
sed -i '1d' /mnt/config/home/usr_config/shadow
sed -i "1i $(echo $n1)" /mnt/config/home/usr_config/shadow
fi
fi
fi
fi
else
cp -r /config/mac /mnt/config/home/usr_config/
fi
sync
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e /dev/ubi_ctrl ];then
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/upgrade
cd /mnt/upgrade/upgrade
rm -rf /mnt/upgrade/upgrade/*
cd $path
if [ -e ./xilinx/angstrom_rootfs.jffs2 ];then
cp -rf ./xilinx/angstrom_rootfs.jffs2 /mnt/upgrade/upgrade
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd3 0 0xa0 >/dev/null 2>&1
fi
fi
flash_erase /dev/mtd0 0x1040000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1040000 /dev/mtd0 ./xilinx/upgrade-marker.bin >/dev/null 2>&1
sync
umount /mnt/upgrade
ubidetach -d 1 /dev/ubi_ctrl
fi
else
echo "this is not for c5"
fi
rm -rf *.tar.gz
#/sbin/reboot -f &
Above code used nandwrite to write in a device.
Now, I want to mount these images to a directory or partitions. and add or change some things to these images. Next write again to images.
How can I do it?
Step 1, I just want to mount and read files and directories.
software-installation mount
add a comment
|
I downloaded a device firmware file named zetnu.xilinx-201907311618-autofreq-user-Update2UBI-NF-sig.tar.gz
I extracted the above file and these are the contents:
BOOT.bin
devicetree.dtb
rootfs.jffs2
uImage
Next to these files was a file to install called runme.sh
This file's content is this:
#!/bin/sh -e
path=$(pwd)
cp_config="all"
if [ ! -d /mnt/upgrade ];
then
mkdir /mnt/upgrade
fi
if [ -e /usr/bin/ctrl_bd ]; then
ret=`cat /usr/bin/ctrl_bd | grep "XILINX" | wc -l`
else
ret=0
fi
if [ $ret -eq 1 ];then
cd ./xilinx
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ `ls /mnt/config/home/usr_config | wc -l` -gt 1 ];then
cp_config="all" #cp -r /config/* /mnt/config/home/usr_config/
else
cp_config="mac" #cp -r /config/mac /mnt/config/home/usr_config/
fi
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e BOOT.bin ]; then
flash_erase /dev/mtd0 0x0 0x80 >/dev/null 2>&1
nandwrite -p -s 0x0 /dev/mtd0 ./BOOT.bin >/dev/null 2>&1
rm -rf BOOT.bin
fi
if [ -e devicetree.dtb ]; then
flash_erase /dev/mtd0 0x1020000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1020000 /dev/mtd0 ./devicetree.dtb >/dev/null 2>&1
rm devicetree.dtb
fi
if [ -e uImage ]; then
flash_erase /dev/mtd0 0x1100000 0x40 >/dev/null 2>&1
nandwrite -p -s 0x1100000 /dev/mtd0 ./uImage >/dev/null 2>&1
rm uImage
fi
if [ -e rootfs.jffs2 ]; then
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd2 0x0 0x1E0 >/dev/null 2>&1
else
flash_erase /dev/mtd2 0x0 0x280 >/dev/null 2>&1
fi
nandwrite -p -s 0x0 /dev/mtd2 ./rootfs.jffs2 >/dev/null 2>&1
rm rootfs.jffs2
fi
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ $cp_config == "all" ];then
cp -r /config/* /mnt/config/home/usr_config/
if [ -e ../lighttpd-htdigest.user ]; then
line1=`cat ../lighttpd-htdigest.user | wc -c`
if [ $line1 != "0" ]; then
cp -r ../lighttpd-htdigest.user /mnt/config/home/usr_config/lighttpd-htdigest.user
if [ -e ../shadow ]; then
line2=`cat ../shadow | wc -c`
if [ $line2 != "0" ]; then
cp /etc/shadow /mnt/config/home/usr_config/shadow
old_shd=`sed -n '1p' /mnt/config/home/usr_config/shadow`
o1=`echo $old_shd:5`
o2=$o1#*:
new_shd=`cat ../shadow`
n1=$new_shd":"$o2
sed -i '1d' /mnt/config/home/usr_config/shadow
sed -i "1i $(echo $n1)" /mnt/config/home/usr_config/shadow
fi
fi
fi
fi
else
cp -r /config/mac /mnt/config/home/usr_config/
fi
sync
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e /dev/ubi_ctrl ];then
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/upgrade
cd /mnt/upgrade/upgrade
rm -rf /mnt/upgrade/upgrade/*
cd $path
if [ -e ./xilinx/angstrom_rootfs.jffs2 ];then
cp -rf ./xilinx/angstrom_rootfs.jffs2 /mnt/upgrade/upgrade
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd3 0 0xa0 >/dev/null 2>&1
fi
fi
flash_erase /dev/mtd0 0x1040000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1040000 /dev/mtd0 ./xilinx/upgrade-marker.bin >/dev/null 2>&1
sync
umount /mnt/upgrade
ubidetach -d 1 /dev/ubi_ctrl
fi
else
echo "this is not for c5"
fi
rm -rf *.tar.gz
#/sbin/reboot -f &
Above code used nandwrite to write in a device.
Now, I want to mount these images to a directory or partitions. and add or change some things to these images. Next write again to images.
How can I do it?
Step 1, I just want to mount and read files and directories.
software-installation mount
If your images are block device, usemount imageFile deistination
, likemount yourfile /mnt
.
– Mohammad Kholghi
Oct 2 at 8:49
@MohammadKholghi My image structure is mtd. can you help me to do it?
– ABP
Oct 3 at 18:29
add a comment
|
I downloaded a device firmware file named zetnu.xilinx-201907311618-autofreq-user-Update2UBI-NF-sig.tar.gz
I extracted the above file and these are the contents:
BOOT.bin
devicetree.dtb
rootfs.jffs2
uImage
Next to these files was a file to install called runme.sh
This file's content is this:
#!/bin/sh -e
path=$(pwd)
cp_config="all"
if [ ! -d /mnt/upgrade ];
then
mkdir /mnt/upgrade
fi
if [ -e /usr/bin/ctrl_bd ]; then
ret=`cat /usr/bin/ctrl_bd | grep "XILINX" | wc -l`
else
ret=0
fi
if [ $ret -eq 1 ];then
cd ./xilinx
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ `ls /mnt/config/home/usr_config | wc -l` -gt 1 ];then
cp_config="all" #cp -r /config/* /mnt/config/home/usr_config/
else
cp_config="mac" #cp -r /config/mac /mnt/config/home/usr_config/
fi
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e BOOT.bin ]; then
flash_erase /dev/mtd0 0x0 0x80 >/dev/null 2>&1
nandwrite -p -s 0x0 /dev/mtd0 ./BOOT.bin >/dev/null 2>&1
rm -rf BOOT.bin
fi
if [ -e devicetree.dtb ]; then
flash_erase /dev/mtd0 0x1020000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1020000 /dev/mtd0 ./devicetree.dtb >/dev/null 2>&1
rm devicetree.dtb
fi
if [ -e uImage ]; then
flash_erase /dev/mtd0 0x1100000 0x40 >/dev/null 2>&1
nandwrite -p -s 0x1100000 /dev/mtd0 ./uImage >/dev/null 2>&1
rm uImage
fi
if [ -e rootfs.jffs2 ]; then
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd2 0x0 0x1E0 >/dev/null 2>&1
else
flash_erase /dev/mtd2 0x0 0x280 >/dev/null 2>&1
fi
nandwrite -p -s 0x0 /dev/mtd2 ./rootfs.jffs2 >/dev/null 2>&1
rm rootfs.jffs2
fi
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ $cp_config == "all" ];then
cp -r /config/* /mnt/config/home/usr_config/
if [ -e ../lighttpd-htdigest.user ]; then
line1=`cat ../lighttpd-htdigest.user | wc -c`
if [ $line1 != "0" ]; then
cp -r ../lighttpd-htdigest.user /mnt/config/home/usr_config/lighttpd-htdigest.user
if [ -e ../shadow ]; then
line2=`cat ../shadow | wc -c`
if [ $line2 != "0" ]; then
cp /etc/shadow /mnt/config/home/usr_config/shadow
old_shd=`sed -n '1p' /mnt/config/home/usr_config/shadow`
o1=`echo $old_shd:5`
o2=$o1#*:
new_shd=`cat ../shadow`
n1=$new_shd":"$o2
sed -i '1d' /mnt/config/home/usr_config/shadow
sed -i "1i $(echo $n1)" /mnt/config/home/usr_config/shadow
fi
fi
fi
fi
else
cp -r /config/mac /mnt/config/home/usr_config/
fi
sync
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e /dev/ubi_ctrl ];then
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/upgrade
cd /mnt/upgrade/upgrade
rm -rf /mnt/upgrade/upgrade/*
cd $path
if [ -e ./xilinx/angstrom_rootfs.jffs2 ];then
cp -rf ./xilinx/angstrom_rootfs.jffs2 /mnt/upgrade/upgrade
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd3 0 0xa0 >/dev/null 2>&1
fi
fi
flash_erase /dev/mtd0 0x1040000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1040000 /dev/mtd0 ./xilinx/upgrade-marker.bin >/dev/null 2>&1
sync
umount /mnt/upgrade
ubidetach -d 1 /dev/ubi_ctrl
fi
else
echo "this is not for c5"
fi
rm -rf *.tar.gz
#/sbin/reboot -f &
Above code used nandwrite to write in a device.
Now, I want to mount these images to a directory or partitions. and add or change some things to these images. Next write again to images.
How can I do it?
Step 1, I just want to mount and read files and directories.
software-installation mount
I downloaded a device firmware file named zetnu.xilinx-201907311618-autofreq-user-Update2UBI-NF-sig.tar.gz
I extracted the above file and these are the contents:
BOOT.bin
devicetree.dtb
rootfs.jffs2
uImage
Next to these files was a file to install called runme.sh
This file's content is this:
#!/bin/sh -e
path=$(pwd)
cp_config="all"
if [ ! -d /mnt/upgrade ];
then
mkdir /mnt/upgrade
fi
if [ -e /usr/bin/ctrl_bd ]; then
ret=`cat /usr/bin/ctrl_bd | grep "XILINX" | wc -l`
else
ret=0
fi
if [ $ret -eq 1 ];then
cd ./xilinx
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ `ls /mnt/config/home/usr_config | wc -l` -gt 1 ];then
cp_config="all" #cp -r /config/* /mnt/config/home/usr_config/
else
cp_config="mac" #cp -r /config/mac /mnt/config/home/usr_config/
fi
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e BOOT.bin ]; then
flash_erase /dev/mtd0 0x0 0x80 >/dev/null 2>&1
nandwrite -p -s 0x0 /dev/mtd0 ./BOOT.bin >/dev/null 2>&1
rm -rf BOOT.bin
fi
if [ -e devicetree.dtb ]; then
flash_erase /dev/mtd0 0x1020000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1020000 /dev/mtd0 ./devicetree.dtb >/dev/null 2>&1
rm devicetree.dtb
fi
if [ -e uImage ]; then
flash_erase /dev/mtd0 0x1100000 0x40 >/dev/null 2>&1
nandwrite -p -s 0x1100000 /dev/mtd0 ./uImage >/dev/null 2>&1
rm uImage
fi
if [ -e rootfs.jffs2 ]; then
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd2 0x0 0x1E0 >/dev/null 2>&1
else
flash_erase /dev/mtd2 0x0 0x280 >/dev/null 2>&1
fi
nandwrite -p -s 0x0 /dev/mtd2 ./rootfs.jffs2 >/dev/null 2>&1
rm rootfs.jffs2
fi
if [ -e /dev/ubi_ctrl ];then
if [ ! -d /mnt/config ];then
mkdir /mnt/config
fi
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/config
if [ ! -d /mnt/config/home/usr_config ];then
mkdir /mnt/config/home/usr_config
fi
if [ $cp_config == "all" ];then
cp -r /config/* /mnt/config/home/usr_config/
if [ -e ../lighttpd-htdigest.user ]; then
line1=`cat ../lighttpd-htdigest.user | wc -c`
if [ $line1 != "0" ]; then
cp -r ../lighttpd-htdigest.user /mnt/config/home/usr_config/lighttpd-htdigest.user
if [ -e ../shadow ]; then
line2=`cat ../shadow | wc -c`
if [ $line2 != "0" ]; then
cp /etc/shadow /mnt/config/home/usr_config/shadow
old_shd=`sed -n '1p' /mnt/config/home/usr_config/shadow`
o1=`echo $old_shd:5`
o2=$o1#*:
new_shd=`cat ../shadow`
n1=$new_shd":"$o2
sed -i '1d' /mnt/config/home/usr_config/shadow
sed -i "1i $(echo $n1)" /mnt/config/home/usr_config/shadow
fi
fi
fi
fi
else
cp -r /config/mac /mnt/config/home/usr_config/
fi
sync
umount /mnt/config
ubidetach -d 1 /dev/ubi_ctrl
fi
if [ -e /dev/ubi_ctrl ];then
ubiattach /dev/ubi_ctrl -m 2
mount -t ubifs ubi1:rootfs /mnt/upgrade
cd /mnt/upgrade/upgrade
rm -rf /mnt/upgrade/upgrade/*
cd $path
if [ -e ./xilinx/angstrom_rootfs.jffs2 ];then
cp -rf ./xilinx/angstrom_rootfs.jffs2 /mnt/upgrade/upgrade
if [ -f /dev/mtd3 ];then
flash_erase /dev/mtd3 0 0xa0 >/dev/null 2>&1
fi
fi
flash_erase /dev/mtd0 0x1040000 0x1 >/dev/null 2>&1
nandwrite -p -s 0x1040000 /dev/mtd0 ./xilinx/upgrade-marker.bin >/dev/null 2>&1
sync
umount /mnt/upgrade
ubidetach -d 1 /dev/ubi_ctrl
fi
else
echo "this is not for c5"
fi
rm -rf *.tar.gz
#/sbin/reboot -f &
Above code used nandwrite to write in a device.
Now, I want to mount these images to a directory or partitions. and add or change some things to these images. Next write again to images.
How can I do it?
Step 1, I just want to mount and read files and directories.
software-installation mount
software-installation mount
edited Sep 28 at 16:52
Zanna
55.7k15 gold badges152 silver badges256 bronze badges
55.7k15 gold badges152 silver badges256 bronze badges
asked Sep 28 at 7:54
ABPABP
1111 bronze badge
1111 bronze badge
If your images are block device, usemount imageFile deistination
, likemount yourfile /mnt
.
– Mohammad Kholghi
Oct 2 at 8:49
@MohammadKholghi My image structure is mtd. can you help me to do it?
– ABP
Oct 3 at 18:29
add a comment
|
If your images are block device, usemount imageFile deistination
, likemount yourfile /mnt
.
– Mohammad Kholghi
Oct 2 at 8:49
@MohammadKholghi My image structure is mtd. can you help me to do it?
– ABP
Oct 3 at 18:29
If your images are block device, use
mount imageFile deistination
, like mount yourfile /mnt
.– Mohammad Kholghi
Oct 2 at 8:49
If your images are block device, use
mount imageFile deistination
, like mount yourfile /mnt
.– Mohammad Kholghi
Oct 2 at 8:49
@MohammadKholghi My image structure is mtd. can you help me to do it?
– ABP
Oct 3 at 18:29
@MohammadKholghi My image structure is mtd. can you help me to do it?
– ABP
Oct 3 at 18:29
add a comment
|
0
active
oldest
votes
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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/4.0/"u003ecc by-sa 4.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
);
);
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177232%2fmount-image-file-to-partitions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
0
active
oldest
votes
0
active
oldest
votes
active
oldest
votes
active
oldest
votes
Thanks for contributing an answer to Ask Ubuntu!
- 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.
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
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1177232%2fmount-image-file-to-partitions%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
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
Required, but never shown
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
Required, but never shown
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
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
If your images are block device, use
mount imageFile deistination
, likemount yourfile /mnt
.– Mohammad Kholghi
Oct 2 at 8:49
@MohammadKholghi My image structure is mtd. can you help me to do it?
– ABP
Oct 3 at 18:29