Reply
Thread Tools
Posts: 114 | Thanked: 7 times | Joined on Jan 2006
#1
It seems I finally maxed out the internal storage. I bought a 1G card a few weeks ago, and was going to follow the destructions on moving the file system to the mmc. now it's really time.

running ubuntu under vmware on windows, it sees the disk being inserted
"new full speed USB device using uhci_hcd and address 3" (the address number always changes).
I can see it has been mounted under /proc/bus/usb. I can see the devices file and 001 and 003, etc.

I've searched forums and such, and I keep seeing references to the usb drive being mounted as a scsi device, but I see no such reference in the dmesg. this happens on both the mmc and a regular thumb drive. I really don't know which module I need to modprobe/insmod.

I used sfdisk (on the 770) to create 2 partitions on the mmc (one at 100meg, just for simple file xfer via usb, if needed, and the remaining 900 for the file system and swap file).

So... now... how do i actually mkfs.ext2? I copied it from the scratchbox devkit (yes, the armel version), and got a dependency error (i believe, i don't recall at the moment).

I tried even using a liveCD of gnoppix, and but still got the same issues above of seeing a uhci but not a scsi disk.

help? please? I've been digging at this for almost 24hrs now.. so I'm sure I'm overlooking something small and stupid, so please forgive me.

Last edited by spycedtx; 2006-08-10 at 04:27.
 
Posts: 190 | Thanked: 5 times | Joined on Nov 2005 @ Bee-u-tee-ful Garden Home, Oregon
#2
Just for grins, as root on my 770 I did:

apt-get install e2fsprogs

Would you believe it gave me 'mkfs.ext2'?

Give it a try.

Brad.

EDIT: Even better, it gives you 'e2fsck' for those "hard-crash" moments. Damn... let's see MyLo do that, eh? :-)

Last edited by bradb; 2006-08-10 at 04:51.
 
Posts: 114 | Thanked: 7 times | Joined on Jan 2006
#3
Originally Posted by bradb
Just for grins, as root on my 770 I did:

apt-get install e2fsprogs

Would you believe it gave me 'mkfs.ext2'?

Give it a try.

Brad.

EDIT: Even better, it gives you 'e2fsck' for those "hard-crash" moments. Damn... let's see MyLo do that, eh? :-)

You are so my hero. Now, I just need to figure out where to properly add the insmod in the startup scripts so /media/mmc2 is mounted properly as /Root. As a control, I added the insmod line in the bootmisc.sh and the 2nd partition in fstab. A reboot shows nothing listed in mount. bah. and attempting a mount on the fstab entry fails until I insmod again from the command line.

Now I'm digigng through the /etc/init.d/minircS chain, trying to make sense of it. I need to step away, as my brain is fried, but my tablet is somewhat unusable at this point. *grumble* well, usable. just can't install anything else w/o uninstalling

This is call coming from: http://maemo.org/maemowiki/ExtendedRootFilesystem

I'm opting to use ext2, as from what I've read using jffs/ext3 isn't going to buy me enough to warrant the difference. Tho, if I can't solve it quickly, I'll return to using ext3.. and hope it works easily.

Please feel free to contribute any help. I'm hoping to update the wiki page once all of my madness is complete.
 
Posts: 190 | Thanked: 5 times | Joined on Nov 2005 @ Bee-u-tee-ful Garden Home, Oregon
#4
As my old boss used to tell me: "better lucky than good".

Check this post , it should still apply.

Brad.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#5
Why not to copy whole system to mmc and boot directly from it? Looks easier to me than use ExtendedRootFilesystem. And as a bonus you can have internal flash with clean system as a backup and boot it if something goes wrong with your card and e2fsck it. I have it like this for two weeks and so far had no problem and the speed is comparable with internal flash. Didn't notice any slowdown.

http://maemo.org/pipermail/maemo-dev...st/005040.html

Edit: not two weeks, just one (but seemed like two :-)

Last edited by fanoush; 2006-08-10 at 10:30.
 
aflegg's Avatar
Posts: 1,463 | Thanked: 81 times | Joined on Oct 2005 @ UK
#6
Until it's possible to unionfs /usr, this might well be the best solution :-/

Seems a bit wasteful to have all the stuff on the MMC that I've got in the system flash, though.

Cheers,

Andrew
__________________
Andrew Flegg -- mailto:andrew@bleb.org | http://www.bleb.org
Now known as
Jaffa
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#7
Yes it is wasteful :-) But with 1 or 2 gig card it is bearable. And I find the tradeoff of wasting space vs. having stable rootfs in flash to go back anytime worthwile. And I can still fill the rest of internal flash with e-books or anything to use the rest of free space.
 
Posts: 114 | Thanked: 7 times | Joined on Jan 2006
#8
So, as I continue, step by step, hoping this works, I find that this particular sub doesn't do anything, as udevstart is no longer present in minircS. there are some references to udevsynth and /etc/udev/udev.con...

cp -p /etc/init.d/minircS /etc/init.d/minircS~ && sed -ir 's|(/sbin/udevstart)$|\1;mount /dev/mmcblk0p2|' /etc/init.d/minircS


So, I checked out the thread on the rynch (which I now need to install to make work), but I'm not sure where in the existing steps, if any, this needs to go.

here are the steps so far:

umount /media/mmc1
sfdisk -uM /dev/mmcblk0 << EOF
0,100,6
,,L
EOF
[reboot]
mkfs.vfat /dev/mmcblk0p1
mkfs.ext2 /dev/mmcblk0p2

modified minircS to add the insmod, after the PATH= line:

insmod /mnt/initfs/lib/modules/2.6.16-omap1/ext2.ko


i added mmcblk0p2 to the fstab, and it mounts on boot to /media/mmc2. so, this much is working.

now, the question is.. how much of the minireboot/others do I need to still touch, if any.. what else should be done prior to trying the synch line listed in
http://maemo.org/pipermail/maemo-dev...st/005040.html

there's also a question I have about referencing the version specific dir under modules, rather than current (which is a symlink), as if there's another OS update, will that version go away, will the current still carry the ext2fs.ko...

I appreciate all the help and assistance from everyone that's taken these steps before me. Hopefully, shortly, we can have an updated wiki page to assist others, taken from my adventure.

EDIT: I apologize if I'm missing stupid things.. I've been obsessing over this non-stop now since I started 2 days ago, so I'm sure I've developed some serious tunnel vision. It sucks being a geek sometimes.

Last edited by spycedtx; 2006-08-10 at 22:12.
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#9
Originally Posted by spycedtx
now, the question is.. how much of the minireboot/others do I need to still touch, if any.. what else should be done prior to trying the synch line listed in
http://maemo.org/pipermail/maemo-dev...st/005040.html
you are mixing two things here
1. exended rootfs which tries to reuse system in flash and join it with space on mmc
2. full rootfs on mmc without using rootfs in flash at all

1 is tricky and need lot of modifications you mentioned

for 2 you need to do only the rsync in the mail you quoted and custom initfs with menu (previous mail in the list), nothing you mentioned above.

Last edited by fanoush; 2006-08-11 at 06:02.
 
Posts: 114 | Thanked: 7 times | Joined on Jan 2006
#10
Originally Posted by fanoush
you are mixing two things here
1. exended rootfs which tries to reuse system in flash and join it with space on mmc
2. full rootfs on mmc without using rootfs in flash at all

1 is tricky and need lot of modifications you mentioned

for 2 you need to do only the rsync in the mail you quoted and custom initfs with menu (previous mail in the list), nothing you mentioned above.


aaah! I knew they were two different things, but I had assumed #2 was a different route after having repartitioned and formatted the mmc properly.

I'm wondering which steps I need to remove (ie, changing back the minireboot and minirC), and what would break if I changed your steps to use ext2 rather than jffs. Or should I really just get over it and use jffs?
 
Reply


 
Forum Jump


All times are GMT. The time now is 00:32.