[Q] Problem trying to install CM10 for Galaxy Player 4.0 - Samsung Galaxy Player 4.0, 5.0

I tried following the instructions from this page:
http://forum.xda-developers.com/showthread.php?t=2233983
But i keep getting this error message in recovery mode:
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
What do i do to fix this?

smrtchopsticks said:
I tried following the instructions from this page:
http://forum.xda-developers.com/showthread.php?t=2233983
But i keep getting this error message in recovery mode:
What do i do to fix this?
Click to expand...
Click to collapse
Try redownloading and try to see off that gives you any problem
Sent from my Amazon Kindle Fire using Tapatalk 4 Beta

goldflame09 said:
Try redownloading and try to see off that gives you any problem
Sent from my Amazon Kindle Fire using Tapatalk 4 Beta
Click to expand...
Click to collapse
i tried that, but it still giving an error "status 7" im stuck..

smrtchopsticks said:
i tried that, but it still giving an error "status 7" im stuck..
Click to expand...
Click to collapse
Go into advanced/show log, and write the output here.

zaclimon said:
Go into advanced/show log, and write the output here.
Click to expand...
Click to collapse
ok this is what the whole screen looks like:
gs
+ export PATH=/:/sbin:/system/xbin:/system/bin:/
tmp:/sbin:/vendor/bin:/system/sbin:/system/bin:/
system/xbin
+ /tmp/busybox test -e /dev/block/bm17
+ /tmp/busybox grep -q /mnt/sdcard /proc/mounts
+ rm -rf /mnt/sdcard/cyanogenmod_bml.log
+ exec
run_program: child exited with status 2
script aborted: assert failed: run_program("/tmp
/updater.sh") == 0
assert failed: run_program("/tmp/updater.sh") ==
0
E:Error in /sdcard/[ROMS]/CM10/[ROM][Player4][US
Intl] CM10 Jellybean 4.1.2 w 3.0 kernel for the
Galaxy Player 4/cm-10-20130614-EXPERIMENTAL-ypg1
.zip
(Status 7)
Installation aborted.
AND that's all the screen says. Thanks btw for helping me out! I really appreciate it!

smrtchopsticks said:
ok this is what the whole screen looks like:
gs
+ export PATH=/:/sbin:/system/xbin:/system/bin:/
tmp:/sbin:/vendor/bin:/system/sbin:/system/bin:/
system/xbin
+ /tmp/busybox test -e /dev/block/bm17
+ /tmp/busybox grep -q /mnt/sdcard /proc/mounts
+ rm -rf /mnt/sdcard/cyanogenmod_bml.log
+ exec
run_program: child exited with status 2
script aborted: assert failed: run_program("/tmp
/updater.sh") == 0
assert failed: run_program("/tmp/updater.sh") ==
0
E:Error in /sdcard/[ROMS]/CM10/[ROM][Player4][US
Intl] CM10 Jellybean 4.1.2 w 3.0 kernel for the
Galaxy Player 4/cm-10-20130614-EXPERIMENTAL-ypg1
.zip
(Status 7)
Installation aborted.
AND that's all the screen says. Thanks btw for helping me out! I really appreciate it!
Click to expand...
Click to collapse
I actually forgot two lines, so here is the updated one:
Installation aborted.
about to run program [/tmp/updater.sh] with 1 ar
gs
+ export PATH=/:/sbin:/system/xbin:/system/bin:/
tmp:/sbin:/vendor/bin:/system/sbin:/system/bin:/
system/xbin
+ /tmp/busybox test -e /dev/block/bm17
+ /tmp/busybox grep -q /mnt/sdcard /proc/mounts
+ rm -rf /mnt/sdcard/cyanogenmod_bml.log
+ exec
run_program: child exited with status 2
script aborted: assert failed: run_program("/tmp
/updater.sh") == 0
assert failed: run_program("/tmp/updater.sh") ==
0
E:Error in /sdcard/[ROMS]/CM10/[ROM][Player4][US
Intl] CM10 Jellybean 4.1.2 w 3.0 kernel for the
Galaxy Player 4/cm-10-20130614-EXPERIMENTAL-ypg1
.zip
(Status 7)
Installation aborted.

Hmm so by far you should have a file name cyanogenmod_bml.log am I right?

zaclimon said:
Hmm so by far you should have a file name cyanogenmod_bml.log am I right?
Click to expand...
Click to collapse
where do i find that?

smrtchopsticks said:
where do i find that?
Click to expand...
Click to collapse
In /sdcard or your internal storage if you prefer.

zaclimon said:
In /sdcard or your internal storage if you prefer.
Click to expand...
Click to collapse
well, i cant actually access the files on the device, since it didnt actually install the CM10. it keeps booting up than goes into CWMR and shows a "dead" android picture and looping... but i can use odin and go int download mode and install stock rom.. can i still access the cyanogenmod_bml.log file?

smrtchopsticks said:
well, i cant actually access the files on the device, since it didnt actually install the CM10. it keeps booting up than goes into CWMR and shows a "dead" android picture and looping... but i can use odin and go int download mode and install stock rom.. can i still access the cyanogenmod_bml.log file?
Click to expand...
Click to collapse
Hmm so you must be missing something in your /efs. Please restore to stock and show me the output of the cyanogenmod_mtd.log.

btw i keep installing stock rom after i fail to install cm10
than i flash Terrasilent kernel
and than root using doomlord zergrush
is that ok that i do that?
and i also found the .log file after i reflashed the stock rom.
here is what it says:
+ /tmp/busybox grep -q /efs /proc/mounts
+ /tmp/busybox mkdir -p /efs
+ /tmp/busybox umount -l /dev/block/stl3
umount: can't forcibly umount /dev/block/stl3: Invalid argument
+ /tmp/busybox mount -t rfs /dev/block/stl3 /efs
mount: mounting /dev/block/stl3 on /efs failed: Invalid argument
+ /tmp/busybox echo Cannot mount efs.
Cannot mount efs.
+ exit 2

zaclimon said:
Hmm so you must be missing something in your /efs. Please restore to stock and show me the output of the cyanogenmod_mtd.log.
Click to expand...
Click to collapse
i cant find the cyanogenmod_mtd.log file but i did find the cyanogenmod_bml.log file..
this is what it says:
+ /tmp/busybox grep -q /efs /proc/mounts
+ /tmp/busybox mkdir -p /efs
+ /tmp/busybox umount -l /dev/block/stl3
umount: can't forcibly umount /dev/block/stl3: Invalid argument
+ /tmp/busybox mount -t rfs /dev/block/stl3 /efs
mount: mounting /dev/block/stl3 on /efs failed: Invalid argument
+ /tmp/busybox echo Cannot mount efs.
Cannot mount efs.
+ exit 2

smrtchopsticks said:
btw i keep installing stock rom after i fail to install cm10
than i flash Terrasilent kernel
and than root using doomlord zergrush
is that ok that i do that?
and i also found the .log file after i reflashed the stock rom.
here is what it says:
+ /tmp/busybox grep -q /efs /proc/mounts
+ /tmp/busybox mkdir -p /efs
+ /tmp/busybox umount -l /dev/block/stl3
umount: can't forcibly umount /dev/block/stl3: Invalid argument
+ /tmp/busybox mount -t rfs /dev/block/stl3 /efs
mount: mounting /dev/block/stl3 on /efs failed: Invalid argument
+ /tmp/busybox echo Cannot mount efs.
Cannot mount efs.
+ exit 2
Click to expand...
Click to collapse
It can't even mount efs Are you sure you're restoring all your partitions? (including efs)

smrtchopsticks said:
well, i cant actually access the files on the device, since it didnt actually install the CM10. it keeps booting up than goes into CWMR and shows a "dead" android picture and looping... but i can use odin and go int download mode and install stock rom.. can i still access the cyanogenmod_bml.log file?
Click to expand...
Click to collapse
yes the file is stored on the root of your internal sdcard

zaclimon said:
It can't even mount efs Are you sure you're restoring all your partitions? (including efs)
Click to expand...
Click to collapse
well, i thought i was. i just use the ypgzusrestoreodin.tar.md5 file from the stock rom thread and flash using odin. I thought that would restore all my partitions. if im not doing that right, what else do i do to restore ALL my partitions?

smrtchopsticks said:
well, i thought i was. i just use the ypgzusrestoreodin.tar.md5 file from the stock rom thread and flash using odin. I thought that would restore all my partitions. if im not doing that right, what else do i do to restore ALL my partitions?
Click to expand...
Click to collapse
I don't think the tar file do have the efs partition. Even if you manage to restore /efs into rfs, you will need to restore all your efs information too...

zaclimon said:
I don't think the tar file do have the efs partition. Even if you manage to restore /efs into rfs, you will need to restore all your efs information too...
Click to expand...
Click to collapse
ok well, i just downloaded the .efs files from this thread (the stock rom recovery thread):
http://forum.xda-developers.com/showthread.php?t=1531850
and how do i go about restoring the .efs files on my device?

smrtchopsticks said:
ok well, i just downloaded the .efs files from this thread (the stock rom recovery thread):
http://forum.xda-developers.com/showthread.php?t=1531850
and how do i go about restoring the .efs files on my device?
Click to expand...
Click to collapse
You're supposed to have an efs backup into /sdcard, please search for it before using the dummy efs. Also all the informations on how to restore /efs are in the thread.

zaclimon said:
You're supposed to have an efs backup into /sdcard, please search for it before using the dummy efs. Also all the informations on how to restore /efs are in the thread.
Click to expand...
Click to collapse
ok thanks!
im restoring my efs but im stuck on one part.
and this is what im following:
MAKE SURE YOU ARE ON GINGERBREAD AND RUNNING CWM AND NOT THE STOCK KERNEL WHEN DOING THIS!!!
1. Extract the files inside the efs backup into a folder on your sdcard SEPERATE from anything else.
2. Move all of these files into your /efs folder.
3. Reboot into CWM.
4. Choose factory reset/data wipe.
5. Format system.
6. Under mounts and storage.
7. Reboot into download mode.
8. Flash the STOCK factoryfs.rfs onto your device.
9. Reboot and all should be fixed.
except when i get to step 8. what do i flash the STOCK factoryfs.rfs with? im currently in download mode on my device from step 7.

Related

[Q] To devs... How to extract System.img

Hi guys..
Sorry If I'm posting this in the wrong section...
But can anyone guide me how to extract System.img from a Stock ROM as I'm planning to cook a custom ROM
If you would like to see some of my previous work for SGS1 look at my signature
You can try unyaffs in a cygwin environment or wunyaffs which is for windows.
For some reason I get access violation errors with stock roms for the Tab.
With HTC roms it was possible to dump the system.img with magiciso. Again with Tab roms this no longer works.
In CWM, after mounting /system:
make_ext4fs -l 568m -s /sdcard/system.img /system
This gives you a sparse system.img which you can turn into a Linux-mountable ext4 image with simg2img
Sorry i writed on wrong thread
In Linux you can do
mkdir tmp
sudo mount -o loop -t ext4 system.img ./tmp && cp -r ./tmp/* ./system/
sudo umount ./tmp
Sent from my Samsung Galaxy Tab 10.1 using Tapatalk
jamezelle said:
In Linux you can do
mkdir tmp
sudo mount -o loop -t ext4 system.img ./tmp && cp -r ./tmp/* ./system/
sudo umount ./tmp
Sent from my Samsung Galaxy Tab 10.1 using Tapatalk
Click to expand...
Click to collapse
I'm getting an error
Code:
sudo mount -o loop -t ext4 system.img ./tmp && cp -r ./tmp/* ./system
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Nokia7Vista said:
I'm getting an error
Code:
sudo mount -o loop -t ext4 system.img ./tmp && cp -r ./tmp/* ./system
mount: wrong fs type, bad option, bad superblock on /dev/loop0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
Click to expand...
Click to collapse
See the message I posted up above? You have to run the system.img through simg2img to make it mountable.
Sent from my Samsung Galaxy Tab 10.1
mabalito said:
See the message I posted up above? You have to run the system.img through simg2img to make it mountable.
Sent from my Samsung Galaxy Tab 10.1
Click to expand...
Click to collapse
oh ok,, Thanks
Nokia7Vista said:
oh ok,, Thanks
Click to expand...
Click to collapse
Hope this helps and welcome to the GT10.1 forum
Sent from my Samsung Galaxy Tab 10.1
You could always create a regular (non-sparse) image file using dd then mount it.
Command should be similar to ****, though I'm not sure if the busybox version of dd accepts bs=1M, it may require bs=1048576. (That's MB converted to B) And count is the number of MB you want the image to be.
Code:
dd if=/dev/zero of=squeeze.img bs=1M count=512
Then mount it like this:
Code:
mount -o loop,noatime -t ext4 /sdcard/debian/squeeze.img /data/local/debian/
*Pulled from a thread I wrote awhile back, you may be able to get away without using the "noatime" option.

[chroot] BT5 chroot scripts

Bt5 & ubuntu chroot scripts, slighly modified from att GNote version. credit goes to (i assume) msullivan
scripts
http://dl.dropbox.com/u/4109264/chroot.zip
image
BT5 https://www.box.com/s/bi2ix44bi1urufdpatjq
Or Download it from Backtrack's website.
choose BT5
Arch: arm
Image: IMG
http://www.backtrack-linux.org/downloads/
::Ubuntu image and scripts:::
http://ubuntuone.com/1Ew1232e3D51PCjYOkkQU7
http://ubuntuone.com/6majPjQf42Mplb0RZpMjIF
unzip chroot.zip into /sdcard/bt5/ on your phone
(I can't give you the bt5.img I have, it already has a bunch of my stuff in it, just download the bt5.img here, from msullivans post, and take just the bt5.img and put it in your /sdcard/bt5/ folder with that you unzipped earlier.
You should have these files in /sdcard/bt5
bt.sh
mountonly
unionfs
fsrw
bt5.img
Once your files match what's shown above open terminal and:
gain root access for terminal
Code:
su
run the script from the directory
Code:
sh /sdcard/bt5/bt.sh
or change to the dir /sdcard/bt5
Code:
cd /sdcard/bt5
and run sh bt.sh
Code:
sh bt.sh
You should see it start up, and you'll be prompted to start VNC. type Y, for yes, enter
Because our phones are awesome, we want 1280X800 on our images. So, after you have answered yes to starting VNC, we need to edit /usr/bin/startvnc file.
Code:
vi /usr/bin/startvnc
change the last line to (it should say something like vncserver -geometry 800X480)
vncserver -geometry 1280x800
At this point the easy way is restart your phone, and start up bt5 again.
then go to VNC
Nickname: BackTrack5
Password: root
Address: 127.0.0.1
Port: 5901
_______________________________________________________
TL;DR:
scripts http://dl.dropbox.com/u/4109264/chroot.zip
BT5 https://www.box.com/s/bi2ix44bi1urufdpatjq
Or Download it from Backtrack's website.
choose BT5
Arch: arm
Image: IMG
http://www.backtrack-linux.org/downloads/bt5.img
edit /usr/bin/startvnc (in chroot) to vncserver -geometry 1280x800
restart phone, run bt.sh; sh /sdcard/bt5/bt.sh, and start up VNC
It's awesome, and works great with the BT mouse/keyboard, and the extra resolution makes it feel better than the old OQO's . it's awesome
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
also, if you want ubuntu, download the ARM ubuntu.img on XDA (there are everywhere) and just drop it in the folder, rename it to bt.img. (easy way) or change the bt.sh to reflect ubuntu.img everywhere it says bt.img
very interested in this... is this BT5 regular or or is this the version 5 R1 release?
- Dan
Mine is regular bt5, not sure what the images i linked to are. My image is a year old and was used on my atrix too. But i see no reason a new image would'nt work. I'll try to post an image tonight
Any luck finding an image?
images posted. ubuntu image soon.
edounn said:
images posted. ubuntu image soon.
Click to expand...
Click to collapse
Can't wait.
Thanks uploader.
Sorry to bother you but I'm getting the following error:
$ export PATH=/data/local/bin:$PATH
$ su
# sh /sdcard/bt5/bt.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
losetup: /dev/block/loop255: No such file or directory
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
/sdcard/bt5/bt.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
/sdcard/bt5/bt.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
/sdcard/bt5/bt.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/bin/bash': No such file or directory
Shutting down BackTrack ARM
failed.
failed.
failed.
failed.
losetup: /dev/block/loop255: No such device or address
#
Any ideas?
Sent from my SGH-I717R using xda premium
dan.expo said:
chroot: can't execute '/bin/bash': No such file or directory
Shutting down BackTrack ARM
failed.
failed.
failed.
failed.
losetup: /dev/block/loop255: No such device or address
#
Any ideas?
Click to expand...
Click to collapse
do you have busybox installed? if not, do that. if so, try running it twice.
Johnsondr80 said:
Can't wait.
Thanks uploader.
Click to expand...
Click to collapse
np guy with 379px signature ;-)
Yes, I have the newest version 1.19.4 from the installer but no avail.
Sent from my SGH-I717R using xda premium
dan.expo said:
Yes, I have the newest version 1.19.4 from the installer but no avail.
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
looks like it doesn't like your loop back for some reason
type in your terminal:
ls -l /dev/block | grep loop
you'll get a result back that shows loop## maybe try on of those instead of loop255
Yep, I am getting the same error as dan.expo
Ya it looks like I only have loop 1-7 so I guess I need to edit the script to one of those?
Sent from my SGH-I717R using xda premium
dan.expo said:
Ya it looks like I only have loop 1-7 so I guess I need to edit the script to one of those?
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
make sure you have losetup -d/dev/block/looop255 in your script.
Anyone fix error yet?
Sent from the best phone in the world Galaxy Note!!!
it works fine on mine and my buddies. I'll upload the script I have once more. The ones having problems? have you flashed anything? Both the ones I have seen personally working, mine and my buddies, both are stock, rooted, normal stuff.
/mnt/sdcard/bt5 # cat bt.sh
Code:
perm=$(id|cut -b 5)
if [ "$perm" != "0" ];then echo "This script requires root! Type: su"; exit; fi
mount -o remount,rw /dev/block/mmcblk0p5 /system
export kit=/sdcard/bt5
export bin=/system/bin
export mnt=/data/local/mnt
export USER=root
mkdir $mnt
export PATH=$bin:/usr/bin:/usr/local/bin:/usr/sbin:/bin:/usr/local/sbin:/usr/games:$PATH
export TERM=linux
export HOME=/root
if [ -b /dev/block/loop255 ]; then
echo "Loop device exists"
else
busybox mknod /dev/block/loop255 b 7 255
fi
#mount -o loop,noatime -t ext2 $kit/bt5.img $mnt
losetup /dev/block/loop255 $kit/bt5.img
mount -t ext2 /dev/block/loop255 $mnt
mount -t devpts devpts $mnt/dev/pts
mount -t proc proc $mnt/proc
mount -t sysfs sysfs $mnt/sys
busybox sysctl -w net.ipv4.ip_forward=1
echo "nameserver 8.8.8.8" > $mnt/etc/resolv.conf
echo "nameserver 8.8.4.4" >> $mnt/etc/resolv.conf
echo "127.0.0.1 localhost bt5" > $mnt/etc/hosts
echo "Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:"
ifconfig eth0
echo " "
busybox chroot $mnt /bin/bash
echo "Shutting down BackTrack ARM"
umount $mnt/dev/pts
umount $mnt/proc
umount $mnt/sys
umount $mnt
losetup -d /dev/block/loop255
I have the overclock kernel and stock rogers rom. I managed to get the universal phone bt5 script working without issue (not optimized for the note mind you).
Sent from my SGH-I717R using xda premium
i think i changed something, and uploaded the normal one, just change the vnc file as per the instructions on the main post, and it'll be ready to go.
dan.expo said:
Sorry to bother you but I'm getting the following error:
$ export PATH=/data/local/bin:$PATH
$ su
# sh /sdcard/bt5/bt.sh
mkdir failed for /data/local/mnt, File exists
Loop device exists
losetup: /dev/block/loop255: No such file or directory
mount: Invalid argument
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
net.ipv4.ip_forward = 1
/sdcard/bt5/bt.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
/sdcard/bt5/bt.sh: cannot create /data/local/mnt/etc/resolv.conf: directory nonexistent
/sdcard/bt5/bt.sh: cannot create /data/local/mnt/etc/hosts: directory nonexistent
Ubuntu is configured with SSH and VNC servers that can be accessed from the IP:
eth0: No such device
chroot: can't execute '/bin/bash': No such file or directory
Shutting down BackTrack ARM
failed.
failed.
failed.
failed.
losetup: /dev/block/loop255: No such device or address
#
Any ideas?
Sent from my SGH-I717R using xda premium
Click to expand...
Click to collapse
check your mount
type mount and look for /dev/block/mmcblk0pXX /system something like that where XX is the number you need to change in the script file.
should look somethinig like this
mount -o remount,rw /dev/block/mmcblk0p24 /system
24 depending on what you see in your file system.
i'm on Tmobile Galaxy Note. and i was able to use this script by changing that

[Q] [SOLVED] Is there kernel loop support for our device ?

Hi,
As the title says, Is there Kernel loop support for our LG Optimus L9 ?
I'm trying to mount a loop file created on debian on the device, but I get the error
ioctl LOOP_SET_FD failed: Device or resource busy
Click to expand...
Click to collapse
.
This is what I did --
Loop file created on debian and formatted with ext4.
On Optimus L9 with CM10.1, in terminal emulator,
$su
#losetup /dev/block/loop0 /storage/sdcar1/file
#mount -o remount,rw /system
#mkdir /system/temp
#mount -rw -o loop -t ext4 /dev/block/loop0 /system/temp/
ioctl LOOP_SET_FD failed: Device or resource busy
#
Click to expand...
Click to collapse
Is our kernel having loop support. If yes, am I doing anything wrong? The file gets successfully mounted in Debian.
EDIT:
using "busybox mount" solved the issue.
Tried adding busybox to the mount command and voila it worked.
#busybox mount -rw -o loop -t ext4 /dev/block/loop0 /system/temp/
Click to expand...
Click to collapse
You just taught me something new, thanks.
Can you upload your img, I would really like to check this out, or can you direct me to a thread so I can learn some more.
Sent from my LGMS769 using xda app-developers app
kuma82 said:
You just taught me something new, thanks.
Can you upload your img, I would really like to check this out, or can you direct me to a thread so I can learn some more.
Sent from my LGMS769 using xda app-developers app
Click to expand...
Click to collapse
The one I created is over 100MB. I had a html tutorial containing 12,000 files. I don't want to put those files on sdcard and mess it up. So, I used this block device.
I have created a sample "temp.img" file with a size of 500KB. It contains a single text file. I'm attaching it and you can check it out.
Below is the way i created and mounted it.
Code:
# "temp.img" md5 b97642fed817fa3f1a0cc6dc64b6c40d
# remount rootfs rw.
mount -o remount,rw /
# create mount point.
mkdir /mnt/temp
# chmod mountpoint.
chmod 777 /mnt/temp
# create block file.
dd if=/dev/zero of=/storage/sdcard0/temp.img bs=1024 count=500
# this creates 500 KB file. I can't seem
# to get bs=1M argument working on android.
# so bs1024 x count = target file size (=count times in KB).
# query free loop device. (will be /dev/block/loopx)
losetup -f
#attach block file with free loop.
losetup /dev/block/loop0 /storage/sdcard0/temp.img
#create file system.
mke2fs -T ext2 /dev/block/loop0
# And finally mount it
busybox mount -o loop -t ext2 -rw /dev/block/loop0 /mnt/temp
# For unmounting
busybox umount /mnt/temp
And it isn't encrypted. I don't need encryption, and i can't even seem to figure out how to encrypt it.

BusyMount v1.01

{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
BusyMount 1.01 for the Rooted Fire TV
DOWNLOAD HERE
BusyMount is combination utility comprised of BusyBox v1.22.1
and bash scripts that persistently mount multiple USB mass
storage devices on your Fire TV. Of course it works just as well with a
single USB stick.
It has been tested with 4 concurrently mounted drives (vfat,exfat,ntfs,ext4).
BusyMount's two primary scripts live in /system/xbin:
mntdrives1.sh
mntdrives2.sh
The mntdrives1.sh script should run as is on any rooted Fire TV and mount your drives/sticks at /storage/usb/driveX where X is the sequence number of the device on your system: e.g. sda1=drive1, sdb1=drive2, etc.
The mntdrives2.sh script will mount your drives via their UUID, an internal label that is applied when the drive is formatted. If you have more than one drive attached to your Fire TV this is very important.
It is not at all unusual for the operating system to switch /dev/block/sd?? addresses so one boot your movies drive is called /dev/block/sda1 and anime /dev/block/sdb1. Reboot or swap drives and suddenly they have different addresses, sdc1 and sdd1. XBMC will not appreciate this. Mounting via UUID makes sure your data is in the same place every time.
mntdrives2.sh uses the same driveX naming scheme for mountpoints, but you can control what mounts where.
Each script can be called at boot to automount your drives. Currently, this is done via install-recovery-2.sh and busybox run-parts.
BusyMount is installed via Clockwork Mod provided by [email protected], something that is a must have for your rooted Fire TV. If you don't have it install it now, and then come back here! *
To install BusyMount:
1. adb connect 111.222.333.444 (substitute your FireTV IP address)
2. adb push filename.zip /sdcard/
3. adb shell su -c reboot recovery
Once in ClockworkMod Recovery:
Choose zip from sdcard
Choose 0
Scroll to BusyMount zip file
Press Enter
Select Yes
BusyMount will install. When it's finished, reboot. When the Fire TV reboots your drives will have been mounted by mntdrives1.sh. For mounting by UUID you will need to edit mntdrives2.sh. Instructions in the next post.
* you can also download BusyMount without the CWM installer at the link above for manual installation
IMPORTANT: Windows users: do NOT edit the mntdrives2.sh file with notepad! It will break the script. Instead, use busybox vi or pull the file to your computer and use Notepad++. Be sure to make backups of the scripts before editing!
To mount drives via UUID, first you need to find out what they are. After installing BusyMount, ADB shell or sshhttp://www.jocala.com/busydrop.html into your Fire TV. If you entered via adb su to root and issue the command:
Code:
blkid /dev/block/sd*
You should see something like this for as many drives as you have attached:
Code:
[email protected]:/ #blkid /dev/block/sd*
/dev/block/sdi1: LABEL="firetv1" UUID="94f2a28c-caac-4eb7-a544-84a650c0b809" TYPE="ext4"
/dev/block/sdh1: LABEL="CRUZER" UUID="138FD3254AEAB65E" TYPE="ntfs"
/dev/block/sdf1: LABEL="VFAT" UUID="0577-07FC" TYPE="vfat"
/dev/block/sdb1: LABEL="ExFat" UUID="544D-B43D" TYPE="exfat"
The important bits are the sd?? drives's "UUID=XXXXXX"
Now we edit the mntdrives2.sh file
If you're editing directly on the device mount /system as r/w:
Code:
mount -o remount,rw /system
Here is the mntdrives2.sh file:
Code:
#!/system/bin/sh
sleep 20
#
# FireTV USB/UUID Drive Mounter
#
# REQUIRED: Busybox with suuport for run-parts, blkid, mount-helper
# mount-helper and stuff that's probably slipped my mind required.
# AFAIK, NONE of the "free" Play Store busyboxes have all of the
# supplied options. I suggest you use mine or compile your own.
# Replace the UUIDs below with the UUIDs
# from your drives. This script has been tested
# with 4 drives mounted (vfat,exfat,ntfs,ext4)
# but (in theory) should support 26 (sda1-sdz1)
#
# Enjoy! [email protected]
#
export uuid1="544D-B43D"
export uuid2="138FD3254AEAB65E"
export uuid3="94f2a28c-caac-4eb7-a544-84a650c0b809"
export uuid4="0577-07FC"
i=0
storage="/storage/usb"
if [[ $(ls /dev/block | $busybox grep -c 'sd') -eq 0 ]]; then
exit 0
fi
mount -o remount,rw / ;
for f in /dev/block/sd??; do
drive=`echo $f | sed -r 's/^.{11}//'`
mountType=$(busybox blkid $f | busybox sed -n -e 's_^.*TYPE="\([^\"]*\)".*_\1_p');
mountUUID=$(busybox blkid $f | busybox sed -n -e 's_^.*UUID="\([^\"]*\)".*_\1_p');
i=$((i+1))
if [[ $mountUUID == $uuid1 ]]; then
busybox mkdir -p $storage/drive$i;
mount.exfat-fuse -o rw $f $storage/drive$i
fi
if [[ $mountUUID == $uuid2 ]]; then
busybox mkdir -p $storage/drive$i;
ntfs-3g $f $storage/drive$i -o rw,sync
fi
if [[ $mountUUID == $uuid3 ]]; then
busybox mkdir -p $storage/drive$i;
busybox mount UUID=$uuid3 $storage/drive$i
fi
if [[ $mountUUID == $uuid4 ]]; then
busybox mkdir -p $storage/drive$i;
busybox mount UUID=$uuid4 $storage/drive$i
fi
done
mount -o remount,ro /
As you can see there are 4 UUIDs defined at the top of the script. These are my personal UUIDs so of course these are the edits you have to make. Very simply, just change uuid1:
Code:
export uuid1="544D-B43D"
to your uuid1:
Code:
export uuid1="4455X-G5553" (or whatever)
Rinse and repeat for as many drives as you wish to define. Good luck!
reserved
This looks very interesting. Will try it out on the next Fire TV I set-up. Nice work!
So just to be clear, this simply serves to provide additional external storage to the FireTV, kinda like what we have had with StickMount?
It's not a way to expand internal storage like jmandawg's method, or to maximize internal storage space (without expansion) by using the StickMount/Link2SD combo, or is it?
AQKhanTheOne said:
So just to be clear, this simply serves to provide additional external storage to the FireTV, kinda like what we have had with StickMount?
It's not a way to expand internal storage like jmandawg's method, or to maximize internal storage space (without expansion) by using the StickMount/Link2SD combo, or is it?
Click to expand...
Click to collapse
It mounts multiple drives by sd device name or by UUID like paid stickmount. However, as you can see by the attached script, it can also use croniccorey & jmandawg's handy technique to mount an external drive as /data, tricking the aftv. I mount by UUID which gets around the "only one drive & /dev/sda1 only" problem.
BTW, the attached script has a .c extension because sh isn't allowed. If you play with it you'll want rbox's recovery installed. Right now my FTV has a 1TB ext4 drive for media, a 500Gb ext4 drive for /data, plus vfat and exfat drives attached just for the hell of it. Which I think is pretty damn sweet.
jocala said:
It mounts multiple drives by sd device name or by UUID like paid stickmount. However, as you can see by the attached script, it can also use croniccorey & jmandawg's handy technique to mount an external drive as /data, tricking the aftv. I mount by UUID which gets around the "only one drive & /dev/sda1 only" problem.
BTW, the attached script has a .c extension because sh isn't allowed. If you play with it you'll want rbox's recovery installed. Right now my FTV has a 1TB ext4 drive for media, a 500Gb ext4 drive for /data, plus vfat and exfat drives attached just for the hell of it. Which I think is pretty damn sweet.
Click to expand...
Click to collapse
Yes it is! I did have a couple of questions though. One is that would StickMount still be needed? And if I partition a HDD (or a USB stick) into 2 or more partitions, would these partitions have different UUID's?
AQKhanTheOne said:
Yes it is! I did have a couple of questions though. One is that would StickMount still be needed? And if I partition a HDD (or a USB stick) into 2 or more partitions, would these partitions have different UUID's?
Click to expand...
Click to collapse
Stickmount's not needed on FTV in any case. I've been mounting drives with adbFire since v1.01 (v1.12 is current) although mounting by UUID is new. Each partition get's its own UUID when formatted and can be mounted by it. BTW, you can also mount by label, eg drives labeled "movies", "data", etc.
jocala said:
Stickmount's not needed on FTV in any case. I've been mounting drives with adbFire since v1.01 (v1.12 is current) although mounting by UUID is new. Each partition get's its own UUID when formatted and can be mounted by it. BTW, you can also mount by label, eg drives labeled "movies", "data", etc.
Click to expand...
Click to collapse
Cool. Thanks for the answers! This should (will) become the preferred method for external storage on the FTV!
AQKhanTheOne said:
Cool. Thanks for the answers! This should (will) become the preferred method for external storage on the FTV!
Click to expand...
Click to collapse
I think /data swap will need automation for many. Everyone's not comfortable with the command-line. I'm working on an adbFire function to grab a uuid and write out a mount script, but it won't be ready for the next update
jocala said:
I think /data swap will need automation for many. Everyone's not comfortable with the command-line. I'm working on an adbFire function to grab a uuid and write out a mount script, but it won't be ready for the next update
Click to expand...
Click to collapse
Has this been incorporated into the latest version of adbFire?
AQKhanTheOne said:
Has this been incorporated into the latest version of adbFire?
Click to expand...
Click to collapse
Yes, but automation's not done for UUID mounting. I hope to have that finished for the next update.
hi could someone help, i installed this using adbfire and manage to edit the mntdrives2.sh locally
but i cant seem to be able to push this to system
Ive tried:
adb shell
su
mount -o remount,rw /system
adb push mntdrives2.sh /system/xbin/
i probably have a command wrong somewhere
DEREKTROTTER said:
hi could someone help, i installed this using adbfire and manage to edit the mntdrives2.sh locally
but i cant seem to be able to push this to system
Ive tried:
adb shell
su
mount -o remount,rw /system
adb push mntdrives2.sh /system/xbin/
i probably have a command wrong somewhere
Click to expand...
Click to collapse
(This is all built-into adbFire already)
In this case, adb push should be run from the pc, not the android device.
Code:
adb connect your.ip.address:5555
adb push mntdrives2.sh /sdcard
Or use adbFire to push the file to /sdcard
We aren't currently running a rooted kernel, so you can't push directly to /system or /data. You have to push to /sdcard, then shell into the device and do the remainder as root:
Code:
adb shell
su
mount -o remount,rw /system
cp /sdcard/mntdrives2.sh /system/xbin
chmod 0755 /system/xbin/mntdrive2.sh
mount -o remount,ro /system
(using ssh's scp you can copy stuff anywhere on the device and bypass the preliminary push to /sdcard...scp runs as root.)
Edit: I strongly suggest having CWM Recovery installed before rebooting with untested scripts!
thanks i will try this later
and ye i have CWM installed
DEREKTROTTER said:
thanks i will try this later
and ye i have CWM installed
Click to expand...
Click to collapse
Good luck
^ the above didnt seem to work, not sure why
DEREKTROTTER said:
^ the above didnt seem to work, not sure why
Click to expand...
Click to collapse
Check your spelling of mntdrives2.sh -- you typed mntdrive2.sh
jocala said:
Check your spelling of mntdrives2.sh -- you typed mntdrive2.sh
Click to expand...
Click to collapse
lol thanks, ill try again
its because i copied straight from your post above
edit: file transfer was a success and it still boots up fine
I assigned my NTFS drive as uuid4 but it still mounts as drive1. Is it because i need multiple attached? I dont have more drives available to test atm.
DEREKTROTTER said:
lol thanks, ill try again
its because i copied straight from your post above
Click to expand...
Click to collapse
That was a test to see if you were paying attention <g>
DEREKTROTTER said:
edit: file transfer was a success and it still boots up fine
I assigned my NTFS drive as uuid4 but it still mounts as drive1. Is it because i need multiple attached? I dont have more drives available to test atm.
Click to expand...
Click to collapse
No, you can mount one drive or many. Post your script and let's see.

TWRP Flashable BootSplash ZIP and CMD/Terminal Option

Just a simple TWRP Flashable BootSplash Zip for example to replace the warnings when you unlocked/rooted your device.
It will open up_param.bin and repack it with the jpg,s inside the zip.
Simply replace svb_orange.jpg , logo.jpg and booting_warning.jpg with a jpg of your own choice.
Make sure the images don't exceed 500kb, and keep exact same resolution (1440x3040 24bbp)
{
"lightbox_close": "Close",
"lightbox_next": "Next",
"lightbox_previous": "Previous",
"lightbox_error": "The requested content cannot be loaded. Please try again later.",
"lightbox_start_slideshow": "Start slideshow",
"lightbox_stop_slideshow": "Stop slideshow",
"lightbox_full_screen": "Full screen",
"lightbox_thumbnails": "Thumbnails",
"lightbox_download": "Download",
"lightbox_share": "Share",
"lightbox_zoom": "Zoom",
"lightbox_new_window": "New window",
"lightbox_toggle_sidebar": "Toggle sidebar"
}
*** Download ***
Script:
Code:
#!/sbin/sh
OUTFD=$2
ZIP=$3
ui_print() {
echo -n -e "ui_print $1\n" > /proc/self/fd/$OUTFD
echo -n -e "ui_print\n" > /proc/self/fd/$OUTFD
}
cd /tmp
rm -rf arter97
mkdir arter97
cd arter97
unzip -o "$ZIP"
ui_print " - mounting data partition"
mount /data
if [ ! -e /data/media/0/up_param.bak ]; then
ui_print " - backing up current up_param to /sdcard/up_param.bak"
cat /dev/block/platform/13d60000.ufs/by-name/up_param > /data/media/0/up_param.bak
chown 1023:1023 /data/media/0/up_param.bak
chmod 664 /data/media/0/up_param.bak
fi
ui_print " - installing new logo.jpg"
chmod 755 tar
mkdir tartemp
cd tartemp
/tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
cp /tmp/arter97/logo.jpg .
chown root:root *
chmod 444 logo.jpg
touch *
/tmp/arter97/tar -pcvf ../new.tar *
cd ..
cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param
ui_print " - installing new svb_orange.jpg"
chmod 755 tar
mkdir tartemp
cd tartemp
/tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
cp /tmp/arter97/svb_orange.jpg .
chown root:root *
chmod 444 svb_orange.jpg
touch *
/tmp/arter97/tar -pcvf ../new.tar *
cd ..
cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param
ui_print " - installing new booting_warning.jpg"
chmod 755 tar
mkdir tartemp
cd tartemp
/tmp/arter97/tar -xf /dev/block/platform/13d60000.ufs/by-name/up_param
cp /tmp/arter97/booting_warning.jpg .
chown root:root *
chmod 444 booting_warning.jpg
touch *
/tmp/arter97/tar -pcvf ../new.tar *
cd ..
cat new.tar > /dev/block/platform/13d60000.ufs/by-name/up_param
ui_print " - unmounting partition /data"
umount /data > /dev/null 2>&1
ui_print " "
ui_print "finished"
ui_print "Edited for s10+ by Whiskey103"
cd /
rm -rf /tmp/arter97
sync
Installation method with terminal command without TWRP (pushing up_param.bin using dd cmd on phone):
Download up_param.bin
Place in root of internal memory
Open terminal on phone like Material Terminal for example:
command:
su
command:
dd if=/sdcard/up_param.bin of=/dev/block/platform/13d60000.ufs/by-name/up_param
Restore Stock ZIP
Or rename the up_param.bak on your SD into up_param.bin and use the dd cmd method to restore it.
Credits:
@Radzian - used his base zip and edited for s10
@ianmacd for pointing to the error in my first attempt.
Works perfectly:good::good::good:
bininga59 said:
Works perfectly:good::good::good:
Click to expand...
Click to collapse
Thx for the feedback and unknowingly being my guinea pig, or labrat.. Whatever you prefer
Couldn't test it myself but it worked on my S10+ and basically they have the same bootloader to an extent but still.
It's going great on the S10.
Now only an animated gif is missing.:laugh:
bininga59 said:
It's going great on the S10.
Now only an animated gif is missing.[emoji23]
Click to expand...
Click to collapse
Yea, that's something I will try in the future.
Iam still trying to work myself into this Samsung stuff.
Coming from HTC for almost a decade this Galaxy is basically putting me back in baby modus lol.
Small steps going forward, learning curve starting from zero here
I know you can do it. [emoji4]
Gesendet von meinem SM-G973F mit Tapatalk
It's nice that you already have screen S10 but I would prefer without Magisk. It is possible?
Edit.
It's ok. I used Paint and removed the Magisk stamp. Now it's fun because my wife looked at the phone strangely when he restarted and saw this warning triangle and exclamation points asking if I ruined my phone ha h
Installation method with terminal command without TWRP (pushing up_param.bin using dd cmd on phone):
Download up_param.bin
Place in root of internal memory
Open terminal on phone like Material Terminal for example:
command:
su
command:
dd if=/sdcard/up_param.bin of=/dev/block/platform/13d60000.ufs/by-name/up_param
Whiskey103 said:
Installation method with terminal command without TWRP (pushing up_param.bin using dd cmd on phone):
Download up_param.bin
Place in root of internal memory
Open terminal on phone like Material Terminal for example:
command:
su
command:
dd if=/sdcard/up_param.bin of=/dev/block/platform/13d60000.ufs/by-name/up_param
Click to expand...
Click to collapse
Thanks man
Before I install this, how do I revert to stock if I want/need to? Do the originals get backed up, and if so how do I restore them (other than reinstalling the whole firmware)?
Mr Anderson said:
Before I install this, how do I revert to stock if I want/need to? Do the originals get backed up, and if so how do I restore them (other than reinstalling the whole firmware)?
Click to expand...
Click to collapse
Rename up_param.bak on your SD card and rename up_param.bin.
Then you can push it back with the dd su command in OP
Not booting.
Hi Dev.
So i made a few changes to the images and flashed the zip file with twrp.
This did not work and now my phone is stuck at black screen not even booting, is there a way to flash the recovery zip via odin since that is the only thing I can boot into.
Thank you.
FdeKlerk said:
Hi Dev.
So i made a few changes to the images and flashed the zip file with twrp.
This did not work and now my phone is stuck at black screen not even booting, is there a way to flash the recovery zip via odin since that is the only thing I can boot into.
Thank you.
Click to expand...
Click to collapse
You can try flashing BL file from firmware zip with just up-param file in it with Odin.
Or your patched firmware fully with Home CSC to restore it without loosing data.
Not sure what you did to the zip to end up like this though.
When I try to download the up_param.bin from the OP I get following error:
https://www.whiskey103.nl/index1.php?dir=SamsungS10-Plus/BootSplash/s10/
Incorrect format for file ./languages/da.txt on line 7.
Format is "variable name[tab]value"
No problem downloading the Restore Stock zip
*********************************
Ok I managed to download the up_param.bin using Tor.
When I place the file in Internal Storage (NOT Root or SDcard) and type the commands using Material Terminal I get error:
No such file or directory???
Norup58 said:
When I try to download the up_param.bin from the OP I get following error:
https://www.whiskey103.nl/index1.php?dir=SamsungS10-Plus/BootSplash/s10/
Incorrect format for file ./languages/da.txt on line 7.
Format is "variable name[tab]value"
No problem downloading the Restore Stock zip
*********************************
Ok I managed to download the up_param.bin using Tor.
When I place the file in Internal Storage (NOT Root or SDcard) and type the commands using Material Terminal I get error:
No such file or directory???
Click to expand...
Click to collapse
But it should be in root of internal storage. Not sure where you placed it.
Whiskey103 said:
But it should be in root of internal storage. Not sure where you placed it.
Click to expand...
Click to collapse
I'm using Mixplorer and have tried to put the file in root of Root, root of Internal Storage but not root of SDcard.
Get the same error either in Root or Internal Storage???
Norup58 said:
I'm using Mixplorer and have tried to put the file in root of Root, root of Internal Storage but not root of SDcard.
Get the same error either in Root or Internal Storage???
Click to expand...
Click to collapse
No idea what you are trying, nobody reported that it isn't working.
You must be placing it in the wrong place.
Should be in root of INTERNAL SD card.
Sort of fix.
Whiskey103 said:
You can try flashing BL file from firmware zip with just up-param file in it with Odin.
Or your patched firmware fully with Home CSC to restore it without loosing data.
Not sure what you did to the zip to end up like this though.
Click to expand...
Click to collapse
I've been an idiot as always.
Flashing BL works however then one ends up with "custom recovery..." error.
So to fix this I had to flash full patched rom with CSC HOME and then when booted to recovery wipe dalvik, cache and system partition leaving data and internal storage and then after that I flashed my custom rom.
Once booted. It was if I never had any issues.
Finally something nice.
FdeKlerk said:
I've been an idiot as always.
Flashing BL works however then one ends up with "custom recovery..." error.
So to fix this I had to flash full patched rom with CSC HOME and then when booted to recovery wipe dalvik, cache and system partition leaving data and internal storage and then after that I flashed my custom rom.
Once booted. It was if I never had any issues.
Click to expand...
Click to collapse
So thanks to @Whiskey103 I was able to get this working.
For those that like something different, here you go.
Zip attached.
I`m on snapdragon s10 version and this method doesnt work.
My path is /dev/block/platform/soc/1d84000.ufshc/by-name/
After doing ` dd if=/sdcard/up_param.bin of=/dev/block/platform/soc/1d84000.ufshc/by-name/up_param ` i got feedback:
3215+0 records in
3215+0 records out
1646080 bytes transferred in 0.019 secs (86635789 bytes/sec)
Rebooting and i see no changes

Categories

Resources