View Single Post
Posts: 7 | Thanked: 0 times | Joined on May 2007
#28
Hey everybody,

just got myself 770 and I can say so far its the best thing for reading books, manuals i could find. i have tried many things before

Here is what i'm trying to do:

I got a 2gb card and want to create partions on it and my next step would be to boot from it. What i'm trying to figure is will the post by BanditRider would allow me to create and format the partions?

i was reading the wiki here:
http://maemo.org/community/wiki/HowT..._From_MMC_card

Step 2 says to partition the card and follow this link: http://maemo.org/maemowiki/HowTo_EAS..._your_MMC_card to do it. my question is I use this method quoated below to do this? or do i have to folow the wiki page to do it?





Thanks

Alex

Originally Posted by BanditRider View Post
Here's what I did with my 2GB card.
The first partition is 256MB FAT32. I store my e-books and such here. This partition gets unmounted from the 770 and mounted on your PC when you connect with the USB cable.
The second partition is 1.6GB ext2. Here is where my maemo-mapper maps are stored along with a few videos and such.
The remaining 128MB or so is formated as linux swap.

Now, in order to use this setup, you need to edit a few files as root so make sure you can become root and get a # prompt. Also you'll need an editor that you know how to use. I like the built-in vi editor or the vim application but I've been using vi for 20 years. It's not the easiest editor to learn. Midnight Commander (mc) is a cool console file manager that has an editor and I think there's a leafpad for OS2006.

The first thing we'll do is tell the 770 how to mount the partitions by adding a few lines to /etc/fstab. Open xterm (or ssh in from your PC) and "switch user" (su) to root by typing
Code:
sudo su -
note the space and dash after su.
Your prompt should end in ~# If not, you're not root. fix this before continuing.

Open /etc/fstab in your editor of choice and add the folowing 2 lines:
Code:
/dev/mmcblk0p2  /media/mmc2 ext2 rw,noauto      0 0
/dev/mmcblk0p3  swap    swap    defaults        0 0
Next we want to load the ext2 kernel module and mount the ext2 partition and activate the swap partition. Open /etc/init.d/minircS in your editor. near the top, right after the PATH= line add this line:
Code:
insmod /mnt/initfs/lib/modules/2.6.16-omap1/ext2.ko
Then at the end of the file, just before the exit 0 line, add:
Code:
swapon -a
mount /media/mmc2
Now to be nice, we want to unmount mmc2 and de-activate the swap when re-booting or shutting down so edit both /etc/init.d/minireboot and /etc/init.d/minishutdown. Find the line that starts: umount -r and add /media/mmc2 to that line and add swapoff -a so it looks like this:
Code:
echo "Unmounting filesystems... "
umount -r /media/mmc1 /media/mmc2 /mnt/initfs /
swapoff -a
echo "done."
reboot and that's it. You now have a 128MB swap, a big FAT32 partition at /media/mmc1 and a nice big ext2 partition at /media/mmc2.