MoDaCo is undergoing planned maintenance. Site functionality may be reduced - follow @modaco or @paulobrien on Twitter for updates.

  • Announcements

    • Reminder - MoDaCo position on illegal content

      ILLEGAL CONTENT I'd like to just reaffirm MoDaCo's position regarding piracy and illegal content in the light of some recent questions / postings. Posts will be censored by myself or my moderation team if the contain or link to: Illegal / pirated / cracked software or sites that host such software
      Nintendo emulators / ROMs or sites hosting them (in light of Nintendo's legal stance)


      CUSTOM ROMS

      You may discuss and post links to custom device ROMs on MoDaCo, provided the following rules are adhered to: ROMs must not be hosted directly in topic via the MoDaCo attachment system
      ROMs must not contain any illegal 3rd party software (this includes trial versions included without permission)
      ROMs must give full credit to the original author
      This decision has been taken in light of the huge amount of interest in this area of device customisation within the community, and member feedback! Please note that custom ROM discussion should be kept in specific device sub-areas, (e.g. Kaiser.MoDaCo.com for Kaiser based devices). ISSUES If you have any issues with this policy, please contact me directly via PM. P
    • Support MoDaCo by signing up to a MoDaCo Silver or Gold membership

      To sign up to an annual MoDaCo Silver subscription which will eliminate all ads from the site (as well as giving you access to the MoDaCo Online Kitchens for Android) for only £9.99 using PayPal, Credit or Debit Card, ensure you are logged in to the site, and then click the link below, which will take you directly to the subscription store! You can also sign up to an annual MoDaCo Gold subscription for £29.99, which adds the benefits listed below! PURCHASE A MODACO SUBSCRIPTION - FREE Titanium Backup Mobile for Android worth $5.99! - FREE 1 year PrivateInternetAccess.com worth $39.95! - FREE 1 year LastPass Premium worth $12! - FREE CalcConvert for Pocket PC from Binaryfish worth $17.95! - FREE Calendar Bar for Pocket PC from OmegaOne worth $9.99! - FREE CamerAware for Pocket PC and Smartphone from MoDaCo worth £19.99 / $30! - FREE Chronos for Pocket PC from ActiveKitten worth $14.95! - FREE CodeWallet Pro for Smartphone and Pocket PC from DeveloperOne worth up to $24.95! - FREE Concentrix for Pocket PC from eSoft Interactive worth $9.95! - FREE FlexMail for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE FTouchSL for Pocket PC from Vekoff s.r.o. worth 10 euro / $12.50! - FREE Jewel Challenge for Pocket PC from eSoft Interactive worth $9.95! - FREE John Cody's Alerts Pro for Smartphone from Omnisoft worth $14.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Dutch for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> French for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> German for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Italian for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Talking Dictionary 2008 English <-> Spanish for Pocket PC from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Dutch for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> French for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> German for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Russian for Smartphone from Lingvosoft worth $49.95! - FREE LingvoSoft Dictionary English <-> Turkish for Smartphone from Lingvosoft worth $49.95! - FREE Note2Self for Pocket PC and Smartphone from WebIS worth up to $19.90! - FREE Opera 8.60 for Pocket PC and Smartphone from Opera Software worth up to $48! - FREE Pocket Informant for Pocket PC and Smartphone from WebIS worth up to $59.90! - FREE Pocket Launcher for Pocket PC and Smartphone from Conduits worth $9.95! - FREE PTab for Pocket PC and Smartphone from z4soft worth up to $60! - FREE Resco Explorer for Pocket PC and Smartphone from Resco worth up to $49.90! - FREE Safemode for Pocket PC from monocube worth $12.95 - FREE SplashPhoto for Pocket PC and Smartphone from SplashData worth up to $59.90! - FREE Sprite Backup for Pocket PC and Smartphone from Sprite Software worth $29.95! - FREE Teksoft Glyphs UI for Pocket PC and Smartphone from Teksoft €9.95! - FREE Teksoft HeadsetRemote for Pocket PC and Smartphone from Teksoft €4.95! - FREE Traffic Jam for Pocket PC from eSoft Interactive worth $9.95! - FREE unlock (1 per year) from imei-check.co.uk - DISCOUNT of 10% at MoDaCo FairDeal - DISCOUNT of 10% at Semsons.com - FORUM - AD FREE SITE - FORUM - custom rank / title - FORUM - double competition entries - FORUM - double post attachment space - FORUM - no search flood control - FORUM - priority event registration - FORUM - triple PM space
    • Reminder: Selling items on the forum directly is not allowed

      Please note that selling items on the forum directly is not allowed by the forum rules. There is a forum for eBay auctions whereby you can list the items on eBay and link to them there. This is the ONLY forum for this type of activity. You may also advertise links to the eBay forum in your signature. Please note that selling directly in contravention of these rules will result in a warning / suspensions / ban.

Hardware hacking this puppy, input?

266 posts in this topic

Posted · Report post

OK so have hit a few speed bumps here

It appears that the filesystems are mapped by init.rc and that this file is stored in the boot.img file which is loaded at each boot.

This means that I can use my extra space but only manually, as I cannot use vold to mount the partition for me.

So here is where I am at

1. work out how to modify the boot image to create a sub folder under /sdcard on the rootfs and modify vold.conf to mount the sdcard to the subfolder, then modify init.rc to mount the internal partition to /sdcard

2. leave everything as it is and mount my new partition to a folder I create on each boot.

any tips and tricks would be appreciated

Tim

0

Share this post


Link to post
Share on other sites

Posted · Report post

OK so have hit a few speed bumps here

It appears that the filesystems are mapped by init.rc and that this file is stored in the boot.img file which is loaded at each boot.

This means that I can use my extra space but only manually, as I cannot use vold to mount the partition for me.

So here is where I am at

1. work out how to modify the boot image to create a sub folder under /sdcard on the rootfs and modify vold.conf to mount the sdcard to the subfolder, then modify init.rc to mount the internal partition to /sdcard

2. leave everything as it is and mount my new partition to a folder I create on each boot.

any tips and tricks would be appreciated

Tim

Do you have a Linux box available to repartition and format this card with?

If so give what I outlined above a shot, I bet it works.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Do you have a Linux box available to repartition and format this card with?

If so give what I outlined above a shot, I bet it works.

Problem with that is that say I extended partition 6 i would have a large /data partition and if i extended partition 5 i would have a large cache partition

The numbers need to be 5 and 6 as they are the entries in the init.rc file.

Unless of course I have completely missed the point of what you are suggesting

Tim

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Problem with that is that say I extended partition 6 i would have a large /data partition and if i extended partition 5 i would have a large cache partition

The numbers need to be 5 and 6 as they are the entries in the init.rc file.

Unless of course I have completely missed the point of what you are suggesting

Tim

You do misunderstand (or maybe I do...).

What you want is a large data partition and a reasonable cache.

This card is where the apps get installed to and the data partition is where that happens.

So in Linux run fdisk, create partitions 1->4 with a single sector apiece, that will take care of any partition reordering that may occur.

Create partition 5 and make it reasonable, it's just a cache partition, say around 1Gb (twice the internal memory).

Create partition 6 and make it the rest of the card.

Then format each one with ext3.

Then copy over the data from the respective partitions on the original card using tar.

Put it back in and boot it up, that OS will mount it and it should show as a ton of space to install programs into.

I don't think you are going to be using the internal card as some kind of extra storage unless you play some games like creating a partition from what you have after you dd that is the rest of the card, mount it by hand as a subdirectory hanging off the /sdcard directory and then make a script that runs on startup that mounts it there all the time. But even that should be trivial.

Come to think of it that kind of opens up the possibility of a secret (security through obscurity) storage space that is only accessible when mounted but isn't obvious due to the devices factory specified 2 Gb internal capacity. Hmmm...

Edited by popetodd
0

Share this post


Link to post
Share on other sites

Posted · Report post

You do misunderstand (or maybe I do...).

What you want is a large data partition and a reasonable cache.

This card is where the apps get installed to and the data partition is where that happens.

So in Linux run fdisk, create partitions 1->4 with a single sector apiece, that will take care of any partition reordering that may occur.

Create partition 5 and make it reasonable, it's just a cache partition, say around 1Gb (twice the internal memory).

Create partition 6 and make it the rest of the card.

Then format each one with ext3.

Then copy over the data from the respective partitions on the original card using tar.

Put it back in and boot it up, that OS will mount it and it should show as a ton of space to install programs into.

I don't think you are going to be using the internal card as some kind of extra storage unless you play some games like creating a partition from what you have after you dd that is the rest of the card, mount it by hand as a subdirectory hanging off the /sdcard directory and then make a script that runs on startup that mounts it there all the time. But even that should be trivial.

Come to think of it that kind of opens up the possibility of a secret (security through obscurity) storage space that is only accessible when mounted but isn't obvious due to the devices factory specified 2 Gb internal capacity. Hmmm...

hmm, okay with you know.

I was thinking of using the space for media, do I really need that amount of space for applications?

I like the idea of a startup script have you any ideas of how to make one.

Also if you mount the extra space beneath /sdcard then when you connect the streak in mass storage it will not work as you will not be able to dismount the /sdcard mount as it will have a locked folder, no?

What I think the ideal solution would be to use vold/dbus or something similar to automount the space beneath the sdcard or mount the sdcard beneath the /sdcard mount, as the dell media app if nothing else seems to look directly at the /sdcard mount point

Tim

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

hmm, okay with you know.

I was thinking of using the space for media, do I really need that amount of space for applications?

I like the idea of a startup script have you any ideas of how to make one.

Also if you mount the extra space beneath /sdcard then when you connect the streak in mass storage it will not work as you will not be able to dismount the /sdcard mount as it will have a locked folder, no?

What I think the ideal solution would be to use vold/dbus or something similar to automount the space beneath the sdcard or mount the sdcard beneath the /sdcard mount, as the dell media app if nothing else seems to look directly at the /sdcard mount point

Tim

Hmm, excellent points.

Don't want to use vold for this as it won't need to be controlled for random mounting.

First things first though, have you picked up Root Explorer yet? With this you can make the flash read write and create a mount point and edit files on it. This would be the first step as a directory in root (/intstorage for example) needs to be created for a mount point.

vold.cfg looks good but I am sure there is a standard Unix type fstab somewhere that can be edited to add the mount to, as I said this can be done with Root Explorer and should persist through a shutdown and restart.

I'll start looking now for the fstab file for Android, if you know what and where this is let me know and I'll get you the exact string to add to it.

Same for all you devs out there, pipe in if you already know where this is to save us some time looking for it.

[EDIT] Found it, it's /init.rc.

I'm working out what out add and where to add it.

Edited by popetodd
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Hmm, excellent points.

Don't want to use vold for this as it won't need to be controlled for random mounting.

First things first though, have you picked up Root Explorer yet? With this you can make the flash read write and create a mount point and edit files on it. This would be the first step as a directory in root (/intstorage for example) needs to be created for a mount point.

vold.cfg looks good but I am sure there is a standard Unix type fstab somewhere that can be edited to add the mount to, as I said this can be done with Root Explorer and should persist through a shutdown and restart.

I'll start looking now for the fstab file for Android, if you know what and where this is let me know and I'll get you the exact string to add to it.

Same for all you devs out there, pipe in if you already know where this is to save us some time looking for it.

[EDIT] Found it, it's /init.rc.

I'm working out what out add and where to add it.

Problem with the init.rc is that the rootfs partition that it loads into is a ram disk and all changes seem to be lost at restart

Edited by plink212
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Problem with the init.rc is that the rootfs partition that it loads into is a ram disk and all changes seem to be lost at restart

Yup. I see that is the issue.

So, without actually modifying the image itself (looks like that is what will be required to make it a perm change) a script that can be run after startup looks like the best way.

Something like this then:

#!/system/bin/sh
/system/bin/mount -w -o remount rootfs /
/system/bin/mkdir /storage
/system/bin/mount -t ext3 -w /dev/block/innersd0p1 /storage
/system/bin/mount -r -o remount rootfs /[/codebox]

This assumes that your new partition is number 1, if it is not change the "p" designation in the block device to the partition number you set up for the extra space on the card. It also assumes that you have formatted the filesystem in that partition as ext3.

I read on another thread in another platform forum here that someone thought Paul was placing init scripts in /data/system/etc/init.d to have them run at boot, if that is the case you could call this script S99InternalMount or similar and place it in that directory and it should mount up the partition after the system has started.

[EDIT] Nope, that's not the init script directory on this device. Will look around a bit to see if I can find one.

On the plus side the script work perfectly to create the mount pint.

Then to access it while plugged in through USB place a soft link on the SD card to this directory? Don't know if that will work as there is some funny business with the SD card when USB charging.

Be sure to chmod 755 so no one will be able to start something you don't want started by modifying the file.

Edited by popetodd
0

Share this post


Link to post
Share on other sites

Posted · Report post

I wonder why they decided to use microsd cards as main memory...it seems much slower than having memory directly onto the board.

0

Share this post


Link to post
Share on other sites

Posted · Report post

Not really, its not main memory, its storage so the effect isn't particularly significant.

0

Share this post


Link to post
Share on other sites

Posted · Report post

ok was wondering if this might help us

service flash_recovery /system/etc/install-recovery.sh

disabled

oneshot

#Jeff flash recovery image

on property:sys.init.fdiskcmd_complete=1

start flash_recovery

it seems that, that shell script does not exist in /system/etc/ if this is the case maybe we can use it to our advantage and run the remount script that way

Tim

0

Share this post


Link to post
Share on other sites

Posted · Report post

You know Tim, I have some apps on my machine that I installed that start up at boot so there must be a way to register them or a file they create somewhere that does this. It's just a matter of figuring out what and where and then the script can be run automatically.

0

Share this post


Link to post
Share on other sites

Posted · Report post

You know Tim, I have some apps on my machine that I installed that start up at boot so there must be a way to register them or a file they create somewhere that does this. It's just a matter of figuring out what and where and then the script can be run automatically.

im using startup manager to stop all these programs starting up for no reason, in the apps there is a custom tab where you can run your own programs at start. I assume you can somehow add it there or find aanother similar app. Iv not done this btw. You need root tho, but thats not so bad to get done :lol:

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

Just gave that a try, couldn't find anywhere that I could specify a particular script to run from.

Edited by popetodd
0

Share this post


Link to post
Share on other sites

Posted · Report post

Just gave that a try, couldn't find anywhere that I could specify a particular script to run from.

Going to try this to edit the init.rc

Howto: edit boot images

Tim

0

Share this post


Link to post
Share on other sites

Posted · Report post

Going to try this to edit the init.rc

Howto: edit boot images

Tim

That didn't quite pan out, the boot image was the wrong size and I managed to screw it up

Anyone got any tips for opening the boot image

Tim

0

Share this post


Link to post
Share on other sites

Posted · Report post

That didn't quite pan out, the boot image was the wrong size and I managed to screw it up

Anyone got any tips for opening the boot image

Tim

hmm if i open the image with unpack-bootimg.pl and repack with repack-bootimg.pl it fails to load once flashed so I think i am doing something wrong here

0

Share this post


Link to post
Share on other sites

Posted · Report post

Have you made any further progress with this?

Has anyone else tried swapping out the internal SD card for a larger one?

Thanks

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

lag...

Edited by courtlandre
0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

I see in the custom rom that there is a /system/init.d with a init file in it.

I'm going to try and put the mount script into a custom rom and see if it works there.

[EDIT] Nope, doesn't autorun anything in that directory.

Edited by popetodd
0

Share this post


Link to post
Share on other sites

Posted · Report post

any updates?

0

Share this post


Link to post
Share on other sites

Posted (edited) · Report post

any updates?

Not yet, teaching myself how this all fits together right now.

I'm a long time Unix Admin so it's familiar except for the image packages and how to deal with unpacking and packing them again.

I am working on it though, there are just too many things I would hack differently for this particular device (Android seems stuck in phone mode as installed on this thing) for me to give it up and accept it as it is.

Just have to work in the time to do it around a 140 mile commute and 9 hours in the office...

Edited by popetodd
0

Share this post


Link to post
Share on other sites

Posted · Report post

Not yet, teaching myself how this all fits together right now.

I'm a long time Unix Admin so it's familiar except for the image packages and how to deal with unpacking and packing them again.

I am working on it though, there are just too many things I would hack differently for this particular device (Android seems stuck in phone mode as installed on this thing) for me to give it up and accept it as it is.

Just have to work in the time to do it around a 140 mile commute and 9 hours in the office...

Bit of thread necro I know but has anybody made any progress along these lines yet? Or have we as a community hit a brick wall when it comes to upgrading the internal SD card due to the issues already presented within this thread or perhaps something else entirely?

0

Share this post


Link to post
Share on other sites

Posted · Report post

Bit of thread necro I know but has anybody made any progress along these lines yet? Or have we as a community hit a brick wall when it comes to upgrading the internal SD card due to the issues already presented within this thread or perhaps something else entirely?

In my case a shattered nose and seriously bad side effects from the blood pressure meds needed to get it low enough so the can get the 5 plus peices back into place have been my hamper. I'm planning on picking this back up after my operation next week.

0

Share this post


Link to post
Share on other sites

Posted · Report post

In my case a shattered nose and seriously bad side effects from the blood pressure meds needed to get it low enough so the can get the 5 plus peices back into place have been my hamper. I'm planning on picking this back up after my operation next week.

Sounds like a pet-shopping / lighter incident. flaming rodent fireball to the nose? :)

0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

MoDaCo is part of the MoDaCo.network, © Paul O'Brien 2002-2015. MoDaCo uses IntelliTxt technology.