Re: Linux distra na smatphone-u/tablet-u
Postano: 21 vel 2013, 22:01
kojom skriptom ? Gdje si našao tu skriptu ?
Regionalni Linux forum
https://www.linuxzasve.com/forum/
četvrta linija, piše "roid", gdje je "and" ?Tomislav001 je napisao/la:evo output od ubuntu-a ovo je skripta sa complete linux installer-a
ali isto dobijem sa onom skriptom
Kod: Označi sve
$ $ cd /sdcard/ubuntu $ su # roid/files/bootscript.sh /sdcard/ubuntu/ubuntu.img source: not found Checking loop device... FOUND No user defined mount points net.ipv4.ip_forward = 1 [1] Segmentation fault ${bbox} chroot $... Shutting down Linux ARM umount: can't umount /data/local/mnt/external_sd: Invalid argument # losetup: /dev/block/loop255: No such device or address
Kod: Označi sve
###########################################
# Set up loop device and mount image #
###########################################
echo -n "Checking loop device... "
if [ -b /dev/block/loop255 ]; then
echo "FOUND"
else
echo "MISSING"
# Loop device not found so we create it and verify it was actually created
echo -n "Creating loop device... "
$bbox mknod /dev/block/loop255 b 7 255
if [ -b /dev/block/loop255 ]; then
echo "OK"
else
echo "FAILED"
error_exit "Unable to create loop device!"
fi
fi
$bbox losetup /dev/block/loop255 $imgfile
if [ $? -ne 0 ];then error_exit "Unable to attach image to loop device! (Image = $imgfile)"; fi
$bbox mount -t ext2 /dev/block/loop255 $mnt
if [ $? -ne 0 ];then error_exit "Unable to mount the loop device!"; fi
Kod: Označi sve
###########################################
# Set up loop device and mount image #
###########################################
echo -n "Checking loop device... "
if [ -b /sdcard/loop255 ]; then
echo "FOUND"
else
echo "MISSING"
# Loop device not found so we create it and verify it was actually created
echo -n "Creating loop device... "
$bbox mknod /sdcard/loop255 b 7 255
if [ -b /sdcard/loop255 ]; then
echo "OK"
else
echo "FAILED"
error_exit "Unable to create loop device!"
fi
fi
$bbox losetup /sdcard/loop255 $imgfile
if [ $? -ne 0 ];then error_exit "Unable to attach image to loop device! (Image = $imgfile)"; fi
$bbox mount -t ext2 /sdcard/loop255 $mnt
if [ $? -ne 0 ];then error_exit "Unable to mount the loop device!"; fi