Attend XDA's Second Annual Developer Conference, XDA:DevCon 2014!
5,739,607 Members 52,936 Now Online
XDA Developers Android and Mobile Development Forum

/system writable with unionfs

Tip us?
 
jensbln
Old
(Last edited by jensbln; 8th December 2010 at 10:23 PM.) Reason: some missspellings...
#1  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Mar 2009
Default /system writable with unionfs

Hi,

I've followed the instructions on how to build froyo on Ubuntu 10.04 32Bit,

I had to disable gdb in /buildroot/local/g8_arm/g8_arm.config
or shot make -i world
make menuconfig breaks everything

....so edit configs by hand.....

then it builds fine.....

thanks to his patch:

www android-hilfe de /android-os-entwicklung-customize/4801-kernel-module-kompilieren-erster-versuch.html

it runs (else unionfs complains about missing symbols..)

Code:
Select Code
adb push unionfs.ko /data/local/tmp
adb push ntfs.ko /data/local/tmp

I've created a second 2GB ext3 partition on my sdhc class6

Code:
Select Code
insmod /data/local/tmp/unionfs.ko
mount /dev/block/vold/179:18 /data/newroot
mount -t unionfs -o dirs="/data/newroot/rootfs=rw:/system=ro" unionfs /system

and now i've things like a writeble host file .....

it runs since yesterday here - and is fine.


jens
Attached Files
File Type: zip archos_gen8_unionfs-ntfs_modules.zip - [Click for QR Code] (134.0 KB, 81 views)
 
mothy
Old
#2  
mothy's Avatar
Senior Member
Thanks Meter 70
Posts: 595
Join Date: Oct 2008
Location: Fort Collins
Quote:
Originally Posted by jensbln View Post
Hi,

I've followed the instructions on how to build froyo on Ubuntu 10.04 32Bit,

I had to disable gdb in /buildroot/local/g8_arm/g8_arm.config
or shot make -i world
make menuconfig breaks everything

....so edit configs by hand.....

then it builds fine.....

thanks to his patch:

www android-hilfe de /android-os-entwicklung-customize/4801-kernel-module-kompilieren-erster-versuch.html

it runs (else unionfs complains about missing symbols..)

Code:
Select Code
adb push unionfs.ko /data/local/tmp
adb push ntfs.ko /data/local/tmp

I've created a second 2GB ext3 partition on my sdhc class6

Code:
Select Code
insmod /data/local/tmp/unionfs.ko
mount /dev/block/vold/179:18 /data/newroot
mount -t unionfs -o dirs="/data/newroot/rootfs=rw:/system=ro" unionfs /system

and now i've things like a writeble host file .....

it runs since yesterday here - and is fine.


jens

For morons like me what does that mean....root access??

Sorry if that is a dumb question
 
chrulri
Old
#3  
chrulri's Avatar
Senior Member
Thanks Meter 275
Posts: 896
Join Date: Dec 2010

 
DONATE TO ME
@mothy
so far, temporary root with writable /system directory
 
laptopfreek0
Old
#4  
Member
Thanks Meter 5
Posts: 49
Join Date: May 2010
So just to be clear. Do you replace the kernel at all?
And do you have to mount the sd partition every time you boot up?
 
jensbln
Old
#5  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Mar 2009
It's for the original Archos Kernel 2.6.29-omap1

Code:
Select Code
# lsmod
ntfs 213028 0 - Live 0xbf276000
unionfs 74364 1 - Live 0xbf211000
this means you have to
temproot+"re"mount
the writable places, maybe soft-reboot (i use LCDDensity, it's soft-rebooting) and all your're changes are magicly there :)

instead of using sd, you can just create /data/newroot and let the things go there

Code:
Select Code
# df -h
/dev/block/mmcblk0p4    299.4M    205.1M     78.9M  72% /data

i don't see any new rom's soon, unless we get a new bootloader, Archos uses mmcblk0 (an SD-Card device) and not mtd, so i think we can forget all that fastboot, flash_unlock mtd stuff.

this is very annoying, maybe i'm wrong,
but it looks like they don't want us to reflash the device :(

unionfs usually need a own kernel, but the "ugly patches" make it run with the archos gen8 kernel

So i use temproot, gscript, LCDDensity after each reboot - and have all my settings back, apps like adsfree runs...

jens
 
thefunkygibbon
Old
#6  
Senior Member
Thanks Meter 19
Posts: 684
Join Date: Sep 2004
forgive my lack of knowledge but you keep mentioning ntfs in the code fragments but you havent actually said that this is giving you ntfs support. does your kernal changes allow for reading ntfs volumes?
 
jensbln
Old
#7  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Mar 2009
yes, i hope so, but i havn't tested it until now, minimum is that you can mount ntfs volumes by hand - but maybe it's automounting....

i want test a HD movie from sd, but mine doesnt fit in 4Gig (fat)


jens
 
jensbln
Old
#8  
Junior Member - OP
Thanks Meter 0
Posts: 4
Join Date: Mar 2009
i've connected same ntfs disk and:

Code:
Select Code
usb 2-1:1.0: uevent
usb-storage 2-1:1.0: usb_probe_interface
usb-storage 2-1:1.0: usb_probe_interface - got id
devdb: devpath usb-musb_hdrc-1 not found
scsi0 : SCSI emulation for USB Mass Storage devices
usb-storage: device found at 2
usb-storage: waiting for device to settle before scanning
/mnt/flash/releases/G8A/v2.0.53-r80341/arcbuild/linux/drivers/usb/core/inode.c: creating file '002'
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1 enable change, status 00000503
scsi 0:0:0:0: Direct-Access     SAMSUNG  HM160HI               PQ: 0 ANSI: 2
sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
sd 0:0:0:0: [sda] 312581808 512-byte hardware sectors: (160 GB/149 GiB)
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 38 00 00 00
sd 0:0:0:0: [sda] Assuming drive cache: write through
 sda: sda1
sd 0:0:0:0: [sda] Attached SCSI disk
usb-storage: device scan complete
FAT: bogus number of reserved sectors
VFS: Can't find a valid FAT filesystem on dev sda1.
hub 2-0:1.0: state 7 ports 1 chg 0000 evt 0002
hub 2-0:1.0: port 1, status 0100, change 0001, 12 Mb/s
usb 2-1: USB disconnect, address 2
usb 2-1: unregistering device
usb 2-1: usb_disable_device nuking all URBs
usb 2-1: unregistering interface 2-1:1.0

same things more need to be done, a trick could be having a small fat partition, so the system has it's sda1 as fas as expecting .....


jens

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


TRENDING IN THEMER...