yashsingh1/xdaforums huggingface dataset:
[Samsung Galaxy S (4G Model)] FBis251:
# su
# cd /sdcard/fedora
# ls
bootfedora
fedora.img
fedora.sh
# sh fedora.sh
rm: can't remove '/system/bin/bootfedora': No such file or directory
cp: can't create '/system/bin/bootfedora': Read-only file system
chmod: /system/bin/bootfedora: No such file or directory

Fedora Chroot Bootloader v0.1
Fedora Bootloader is now installed!
This process does NOT damage Android OS!

Original Installer by Charan Singh
Modified for Fedora Chroot by N4melessS0ldier

To enter the Fedora Linux console just type 'bootfedora'
# bootfedora
bootfedora: not found
# sh bootfedora
failed.
mkdir failed for /mnt/extcard2, Read-only file system
mknod: /dev/loop0: File exists
losetup: /dev/loop0
mount: No such file or directory
mkdir failed for /mnt/extcard2/rootfs-f12/mnt/sdcard, No such file or directory
mount: No such file or directory
mkdir failed for /mnt/extcard2/rootfs-f12/phonedata, No such file or directory
mount: No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/*, No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/.*, No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
bootfedora: line 25: can't create /mnt/extcard2/rootfs-f12/etc/resolv.conf: nonexistent directory
bootfedora: line 26: can't create /mnt/extcard2/rootfs-f12/etc/resolv.conf: nonexistent directory
Setting localhost on /etc/hosts
bootfedora: line 28: can't create /mnt/extcard2/rootfs-f12/etc/hosts: nonexistent directory
Operation complete!
Courtesy N4melessS0ldier!

chroot: can't change root directory to /mnt/extcard2/rootfs-f12: No such file or directory
Shutting down Fedora
#

Same thing. It's not actually installing the script, nor is it making the new mount point. Why did you use?

/mnt/extcard2/rootfs-f12

EDIT

Well got it to install the script, didn't notice /system was read only, but the boot script still fails.
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
OH OH OH OH OHHHHHHHHHHHHHHHHHHHHHHH LOL!!!!! I forgot to make it automatically mount /system and writable! Will fix that now and upload the new script! Man, I feel stupid (I have my system mounted as writeable when I turn on my phone)....

Check the site, it will say "now mounts correctly" when it's uploaded :P

edit: uploaded new scripts (fedora.sh and bootfedora) if it still doesn't work still give me the error message but also try remounting system and writable (manually) and running the script
[Samsung Galaxy S (4G Model)] FBis251:
I remounted as writable, so the bootfedora gets copied correctly, but bootfedora itself can't make the extcard2 mount point, since it says /mnt is mounted read only.
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
Run "mount -rw -o remount /mnt"

and tell me what happens when you run the script after that :D

edit: wait don't do that..... you might have something mounted on /mnt itself...... and that might cause some problems

instead post what running the command "mount" by itself gives you :D
[Samsung Galaxy S (4G Model)] FBis251:
No dice, /mnt is not a valid mount point.

Heads up, the files you just uploaded have Windows line endings... Had to convert them to Unix before they ran.

I'm still wondering why you're using

/mnt/extcard2/rootfs-f12

as the mount point. This phone has no extcard anyway. I've had problems trying to mount fs images before, giving me crap about /loop/dev0 being in use and all.
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
Is the /mnt directory existent? and I know you don't have an "extcard" I made the folder "extcard2" because I was hoping that folder didn't exist.

try running "mkdir -p /mnt/extcard2"

And if nothings mounted to /mnt why is it saying that it's a read-only filesystem in your errors when you remounted "system".

.....wait....:eek:! Make sure you remount "/" with "mount -rw -o remount /" if you haven't downloaded the new scripts :P
[Samsung Galaxy S (4G Model)] FBis251:
Now it's able to create the folder, but not mount fedora.img

# bootfedora
failed.
mknod: /dev/loop0: File exists
losetup: /dev/loop0
mount: Device or resource busy
mkdir failed for /mnt/extcard2/rootfs-f12/mnt/sdcard, No such file or directory
mount: No such file or directory
mkdir failed for /mnt/extcard2/rootfs-f12/phonedata, No such file or directory
mount: No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/*, No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/.*, No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
/system/bin/bootfedora: line 25: can't create /mnt/extcard2/rootfs-f12/etc/resolv.conf: nonexistent directory
/system/bin/bootfedora: line 26: can't create /mnt/extcard2/rootfs-f12/etc/resolv.conf: nonexistent directory
Setting localhost on /etc/hosts
/system/bin/bootfedora: line 28: can't create /mnt/extcard2/rootfs-f12/etc/hosts: nonexistent directory
Operation complete!
Courtesy N4melessS0ldier!

chroot: can't change root directory to /mnt/extcard2/rootfs-f12: No such file or directory
Shutting down Fedora
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
run "losetup -a" and tell me what that outputs please :D

is it says: "/dev/loop0: [b301]:47 (/mnt/sdcard/fedora/fedora.img)"

or something similar also run "mount" and tell me what it outputs :D

Thanks a lot because you're helping me make this very universal so everyone can run my scripts :D
[Samsung Galaxy S (4G Model)] FBis251:
I think the busybox version I have might be old or might not have support for this:

# losetup -a
losetup: invalid option -- 'a'
BusyBox v1.19.0.git (2010-12-20 01:08:42 MST) multi-call binary.

Usage: losetup [-o OFS] LOOPDEV FILE - associate loop devices
losetup -d LOOPDEV - disassociate
losetup [-f] - show

Options:
-o OFS Start OFS bytes into FILE
-f Show first free loop device

#
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
I'll post a new script for you because I'm really really really curious as to what you have mounted on your loop device (also this should make it work for you)

download: http://anonymouslyacquired.info/fedoraonsgs4g/download.php?file=testboot

place the file in your fedora folder of your SD Card

and run "sh /sdcard/fedora/testboot"

then when you're in Fedora run "losetup -a"

and post the results

then go ahead and have fun but I'd really like the results :D
[Samsung Galaxy S (4G Model)] FBis251:
This is what I got so far, had to change the mount command since it wasn't working for some reason, had to add busybox at the front (lines 2,3)

failed.
mkdir failed for /mnt/extcard2, File exists
mknod: /dev/loop1: File exists
losetup: /dev/loop1
mount: Device or resource busy
mkdir failed for /mnt/extcard2/rootfs-f12/mnt/sdcard, No such file or directory
mount: No such file or directory
mkdir failed for /mnt/extcard2/rootfs-f12/phonedata, No such file or directory
mount: No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/*, No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/.*, No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
testboot: cannot create /mnt/extcard2/rootfs-f12/etc/resolv.conf: directory nonexistent
testboot: cannot create /mnt/extcard2/rootfs-f12/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
testboot: cannot create /mnt/extcard2/rootfs-f12/etc/hosts: directory nonexistent
Operation complete!
Courtesy N4melessS0ldier!

chroot: can't change root directory to /mnt/extcard2/rootfs-f12: No such file or directory
Shutting down Fedora
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
I'm thinking you may have tried making your own "loop" devices before this...(?)

try to run

"losetup -d /dev/loop1"

and (even if losetup gives you an error) then run

"rm /dev/loop1"

and then run the "testboot" script :D
[Samsung Galaxy S (4G Model)] FBis251:
bash-3.2# losetup -d /dev/loop1
losetup: /dev/loop1: Device or resource busy
bash-3.2# rm /dev/loop1
bash-3.2# ls /dev/loop*
/dev/loop0
bash-3.2# ls
bootfedora
fedora.img
fedora.sh
testboot
bash-3.2# sh testboot
failed.
mkdir failed for /mnt/extcard2, File exists
losetup: /dev/loop1
mount: Device or resource busy
mkdir failed for /mnt/extcard2/rootfs-f12/mnt/sdcard, No such file or directory
mount: No such file or directory
mkdir failed for /mnt/extcard2/rootfs-f12/phonedata, No such file or directory
mount: No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/*, No such file or directory
rm failed for /mnt/extcard2/rootfs-f12/tmp/.*, No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
testboot: cannot create /mnt/extcard2/rootfs-f12/etc/resolv.conf: directory nonexistent
testboot: cannot create /mnt/extcard2/rootfs-f12/etc/resolv.conf: directory nonexistent
Setting localhost on /etc/hosts
testboot: cannot create /mnt/extcard2/rootfs-f12/etc/hosts: directory nonexistent
Operation complete!
Courtesy N4melessS0ldier!

chroot: can't change root directory to /mnt/extcard2/rootfs-f12: No such file or directory
Shutting down Fedora
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
::scratches head:: ..........

can you post the output to

"ls /mnt/extcard2"

this is really confusing me!
[Samsung Galaxy S (4G Model)] FBis251:
Nothing in there.
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
also do a "du /sdcard/fedora/fedora.img" and "du -h /sdcard/fedora/"

edit: because my next conclusion is you didn't finish downloading the filesystem image
[Samsung Galaxy S (4G Model)] FBis251:
bash-3.2# du /sdcard/fedora/fedora.img
1444176 /sdcard/fedora/fedora.img
bash-3.2# du -h /sdcard/fedora/
du: invalid option -- h
bash-3.2# du /sdcard/fedora/
1444240 /sdcard/fedora/
bash-3.2#
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
Damn that is ~1.5GB so unless it stopped downloading slightly near the end of the download that's probably not it..... AGHHHHHHHHHHHHHHHHHHHHHHHHHHHHHH

Hmmmmm...... I really don't know what to do now..... I can try to post a new script that uses a different directory to mount the image file to:

http://anonymouslyacquired.info/fedoraonsgs4g/download.php?file=testboot2

run "sh /sdcard/fedora/testboot2"

if still doesn't work:

http://anonymouslyacquired.info/fedoraonsgs4g/download.php?file=testboot3

run "sh /sdcard/fedora/testboot2"

if still doesn't work:

reboot phone (to free up resources)

run "bootfedora" (make sure you redownload that script first)

http://anonymouslyacquired.info/fedoraonsgs4g/download.php?file=bootfedora
[Samsung Galaxy S (4G Model)] FBis251:
I'll try this in the morning, it's getting pretty late. Thanks for all the help
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
Yeah not a prob! Please let me know how it works out!
[Samsung Galaxy S (4G Model)] androcton:
Tried everything to the letter, but no luck!, landed in exactly the same situation as FBis251, anything to try out??
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
Is it saying device or resource busy on the mount command after losetup? I'm thinking you need a rom with the Bali kernel because loop devices might not be enabled in the stock...
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
All I know right now is it works for me and "device or resource busy" is a strange error to have when the "device or resource" is not supposed to be "busy."

If you want to go to the extent to make your ROM identical to mine:

[ROM] Bionix Frost SGS4G * Team Whiskey Dev Team

[KERNEL] Bali [VoodooSnd / BLN / BFQ / no OC] "Extended Battery Life"

I installed Bionix Frost then updated by adding Bali. Then I had the thought to try to put linux on my SGS4G.

If you don't want to go to that extent then download the smaller "fedoraold.img" (which is the original filesystem I used) and copy it to your sdcard as "/sdcard/fedora/fedora.img" and make sure all the scripts are in "/sdcard/fedora"

Run the scripts and post your errors <- this will help me immensely to make this have the ability to run on any SGS4G! please, thank you, and have fun! :D
[Samsung Galaxy S (4G Model)] androcton:
How do I verify that? when I say 'losetup -f' it shows me the next available free loop device, and it increments from loop1 to loop2 after executing the 'losetup /dev/loop0 /mnt/sdcard/fedora/fedora.img'. Does that mean that it was sucessful?

And yes, I was stuck at 'device or resource busy' trap!
[Samsung Galaxy S (4G Model)] FBis251:
Got around to testing testboot2 and 3. Pretty much the same thing. =/

# su
# sh testboot2
failed.
losetup: /dev/loop1
mount: Device or resource busy
mkdir failed for /mnt/thisisnewmntdir/rootfs-f12/mnt/sdcard, No such file or directory
mount: No such file or directory
mkdir failed for /mnt/thisisnewmntdir/rootfs-f12/phonedata, No such file or directory
mount: No such file or directory
rm failed for /mnt/thisisnewmntdir/rootfs-f12/tmp/*, No such file or directory
rm failed for /mnt/thisisnewmntdir/rootfs-f12/tmp/.*, No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
testboot2: line 27: can't create /mnt/thisisnewmntdir/rootfs-f12/etc/resolv.conf: nonexistent directory
testboot2: line 28: can't create /mnt/thisisnewmntdir/rootfs-f12/etc/resolv.conf: nonexistent directory
Setting localhost on /etc/hosts
testboot2: line 30: can't create /mnt/thisisnewmntdir/rootfs-f12/etc/hosts: nonexistent directory
Operation complete!
Courtesy N4melessS0ldier!

chroot: can't change root directory to /mnt/thisisnewmntdir/rootfs-f12: No such file or directory
Shutting down Fedora
# ls /mnt
thisisnewmntdir
asec
secure
sdcard
# sh testboot3
failed.
mknod: /dev/loop1: File exists
losetup: /dev/loop1
mount: Device or resource busy
mkdir failed for /data/thisisdatadir/rootfs-f12/mnt/sdcard, No such file or directory
mount: No such file or directory
rm failed for /data/thisisdatadir/rootfs-f12/tmp/*, No such file or directory
rm failed for /data/thisisdatadir/rootfs-f12/tmp/.*, No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
mount: No such file or directory
Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4
testboot3: line 25: can't create /data/thisisdatadir/rootfs-f12/etc/resolv.conf: nonexistent directory
testboot3: line 26: can't create /data/thisisdatadir/rootfs-f12/etc/resolv.conf: nonexistent directory
Setting localhost on /etc/hosts
testboot3: line 28: can't create /data/thisisdatadir/rootfs-f12/etc/hosts: nonexistent directory
Operation complete!
Courtesy N4melessS0ldier!

chroot: can't change root directory to /data/thisisdatadir/rootfs-f12: No such file or directory
Shutting down Fedora
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
Sudden thought: "chmod 777 /sdcard/fedora/fedora.img"
[Samsung Galaxy S (4G Model)] FBis251:
No dice :/. Oh well man.
[Samsung Galaxy S (4G Model)] androcton:
couldn't proceed any further!

Here is what it spews when I run testboot3

sh testboot3

failed.

mkdir failed for /data/thisisdatadir, File exists

mknod: /dev/loop1: File exists

losetup: /dev/loop1

mount: Device or resource busy

mkdir failed for /data/thisisdatadir/rootfs-f12/mnt/sdcard, No such file or directory

mount: No such file or directory

rm failed for /data/thisisdatadir/rootfs-f12/tmp/*, No such file or directory

rm failed for /data/thisisdatadir/rootfs-f12/tmp/.*, No such file or directory

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

mount: No such file or directory

Setting /etc/resolv.conf to Google Open DNS 8.8.8.8 and 8.8.4.4

testboot3: cannot create /data/thisisdatadir/rootfs-f12/etc/resolv.conf: directory nonexistent

testboot3: cannot create /data/thisisdatadir/rootfs-f12/etc/resolv.conf: directory nonexistent

Setting localhost on /etc/hosts

testboot3: cannot create /data/thisisdatadir/rootfs-f12/etc/hosts: directory nonexistent

Operation complete!

Courtesy N4melessS0ldier!

chroot: can't change root directory to /data/thisisdatadir/rootfs-f12: No such file or directory

Shutting down Fedora

#

Any ideaz??

~androcton
[Samsung Galaxy S (4G Model)] portis:
Hi , im running Gingerbread 2.3.3 KF1 only , when type bootfedora im getting the following error:

Usage: mount.........

failed

Usage: mount

failed

read-only file systemxtcard32

mknod:error 22

losetup:notfound

...

It looks maybe the kernel doesn't support it.But thanks i will try it and install the 2.2 and bali.I have one question though , when connect trough vnc are you able to watch actual online video or from sdcard with full frames and sound or the screen refreshing is less than 60 hz no matter how fast is your internet?

Thank you
[Samsung Galaxy S (4G Model)] FBis251:
Hey which version of the Bali kernel are you using?
[Samsung Galaxy S (4G Model)] Asyn:
Tried it too... bunch of crap about mount not having the right parameters and it goes downhill from there. Running ICBINB.5 and Bali 3.3UV. My thought with mount kicking back is maybe a differing ver of busybox? I can't see mount working for you and not myself on the same KD1 core unless it does come down to busybox. I'm stabbing in the dark here, but that's based on my knowledge of Linux and not Android. I get a chance I'll update mine and try again.
[Samsung Galaxy S (4G Model)] Blue_Churo:
This looks really sweet! With this we could run anything linux wise! I hope you get it working nicely soon

Sent from my SGH-T959V
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
That should help most people that are having problems for now. If you still cant get things to work, post your errors! Thanks!

By the way, I'm making a new script and filesystem that won't require people to use this workaround!

edit: http://xdaforums.com/showthread.php?t=1167837
[Samsung Galaxy S (4G Model)] glt0404:
The app2sd is definitely the problem. I moved all my apps back to the phone and im able to boot ubuntu that i got from www.androlinux.com . I'm having trouble with the graphical ui though.

I want to try out fedora but the bootfedora file from the download site is just an empty zip file so I haven't been able to test it yet.
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
What do you mean it's an empty zip file? It should be text and there should be no extension ("zip" or whatever). It should just be very literally named "bootfedora"

Also, if you check the new thread for this (link in first post), I've updated the script to get around the "App2SD problem"
[Samsung Galaxy S (4G Model)] Somairotevoli:
when downloading through the phone all the files get saved with

.zip extension. I just rename them. been having issues downloading the huge image file from my phone. gonna have to download onto pc I think and transfer.
[Samsung Galaxy S (4G Model)] N4melessS0ldier:
I'm not sure if there's a 7z / 7zip / 7-zip app for the Android, but if there is the "large file" becomes a hell of a lot smaller when you can extract fedora.7z after download as opposed to downloading what you extract from fedora.7z.
[Samsung Galaxy S (4G Model)] glt0404:
Yeah that was the problem. Thanks man. About to give it a go.
[Samsung Galaxy S (4G Model)] Asyn:
Worked like a champ with Fbi's new scripts. Thanks a million man!
[Galaxy S II Q&A, Help & Troubleshooting] borgmanjayce:
Is there any way that I can tell if my Galaxy S II is softbricked or not?

Basically, I was recharging it on Saturday when it suddenly began to get really hot and reboot itself every couple of minutes.

When I later checked my phone, I found that I got a 'System UIDs Inconsistent' message when I switched it off and then back on.

I tried to do a force close on the phone and that didn't seem to work.

The data on the data partitions seem to be safe and I can access ClockworkMod within the phone without any problems, but at the same time, I can't access the data partitions at all via Windows Explorer after being connected to my laptop.

Is there any way I can fix the phone without having to delete the data partitions at all?

EDIT: When I boot up the phone, the lock screen works fine along with the time and date that appears on it as well as the icons that appear on the top of the screen.
[Desire Q&A, Help & Troubleshooting] shockem:
Solution in 5th post! :)

Hi, i have decided to get the HD2 by selling my desire. I was requested to put it back to stock. Unfortunately, i dont know what went wrong along the way. I need help. Firstly i made a gold card then i ran an ruu. It went successfully through all the way until it finished system partition and then it failed on the data partition. after that i searched for other problems by others. i saw that if you had the Data++ or other hboots you will have problems flashing and thats what happened.

So i used Android Flasher to flash a the hboot downgrade and it did not succesfully write the hboot by saying failed at that part. At the end it says success though.

Now i flashed stock hboot same problem. After flashing all this my device isn't able to flash anything because boot loader signature failed. I dont know what to do plus i gotta sell the device by tomorrow:(

Please help me..... Thank you, :(

Should i try a RUU thats version 2.1+?

Can i have a link? all the ones i got are below version 2. Thanks

By the way the phone is now turning on with the black htc screen with the four triangles. I cant get into the bootloader menu too:( only when the ruu fails and i take out the power cable and old it shows is the version and "RUU"

I have tried the asia RUU and the Europe RUU. I need help with the PB99IMG.

The error i recieve is this:

ERROR[140]:BOOTLOADER VERSION ERROR

The rom update utility cannot update your android phone.

Please get the correct rom update utility and try again.

Click exit to quit.

Thanks!
[Desire Q&A, Help & Troubleshooting] shockem:
Heres what i get with Android flasher:

operable program or batch file.

operable program or batch file.

cd data\

'taskkill' is not recognized as an internal or external command,

taskkill /F /IM adb.exe

operable program or batch file.

taskkill /F /IM fastboot.exe

adb.exe reboot bootloader

* daemon not running. starting it now on port 5037 *

error: device not found

* daemon started successfully *

fastboot.exe flash hboot hboot.img

sending 'hboot' (512 KB)...

OKAY [ 0.109s]

OKAY [ 0.109s]

writing 'hboot'...

(bootloader) signature checking...

FAILED (remote: 12 signature verify fail)

finished. total time: 0.172s

rebooting into bootloader...

fastboot.exe erase cache

OKAY [ 0.031s]

finished. total time: 0.031s

< waiting for device >

erasing 'cache'...

OKAY [ 0.516s]

finished. total time: 0.516s

Del hboot.img

fastboot.exe reboot

rebooting...

finished. total time: 0.031s
[Desire Q&A, Help & Troubleshooting] paolo-red1:
So you can't even enter into bootloader?

however if you want a guide "FOR INSTALLING ANY RUU AS PB99IMG.ZIP", you find it here: http://xdaforums.com/showthread.php?t=880268
[Desire Q&A, Help & Troubleshooting] shockem:
Hey man thanks for the reply. Great news, i just fixed it! :) Im having tuition now so will post it later