I-Appliance BBS
The Official Source for Internet Appliance Upgrades and Mods
Amazon Honor System Click Here to Pay Learn More
BBS Main List | Sign In | Sign Up | Search | Help | Linux-Hacker.netReply to Thread | Printer |

Home / Other I-Appliances / MSN Companion
Modifing cramfs/or linux-3.img
Modifing cramfs/or linux-3.img

New MessageModifing cramfs/or linux-3.img (modified 0 times) javajedi
Profile
Hey folks,

Rasmus's version of jailbait is real nice. For what I want to do with the ia-1, I won't be needing any x stuff like (x itself!) or things like netscape. What I'd like to do is remove these from the image, and use this valuable free space for "other" programs. Unfortantly in linux I wasn't able to remove *anything* in /usr, or anything that is a cramfs image. It would be really to be able to just mount rasmus's linux-3.img file on my slackware desktop machine, take out what I need, put in what I want, and then dolly over my new linux img to that ia-1. I tried to mount it in linux with mount -o loop linux-3.img /mnt/jailbait, but this didn't work.

Any thoughts?

Thanks in advance, you guys rock!

Kevin

01-25-2002 12:05:07

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) DGMage
Profile | Email
You might want to try just remounting the root on the ia-1 using

mount -o remount,rw /

And then working from there. It'll at least get you to the point of being able to edit the FS

Kyle

01-25-2002 14:40:12

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) debrcmj
Profile
The cramfs filesystem is read-only, so you can't change it directly on the IA-1.

You will need the 'mkcramfs' utility from the Linux kernel source tree--I think it's under /usr/src/linux/kernel/scripts/, but you'll have to compile that specifically.

As far as I know, your best bet is to make working copies of the cramfs partitions, then make whatever changes you need to make. Rasmus has a neat script on his page that lets you mount the partitions in the Jailbait image file using the loopback device (jbmount and jbunmount). That way, you don't have to dump the image to a CF card before mounting the individual partitions.

When you're done changing things around, use 'mkcramfs' to rebuild the relevant cramfs images, then somehow insert them back into the Jailbait image (this part I'm a little hazy on--I've been trying to rework the Jailbait image in my spare time, and I haven't got far enough for mkcramfs).

Good luck!

01-25-2002 14:52:06

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) javajedi
Profile
Good question! :)

I've mounted the stuff I want using rasmus's script, jbmount, removed what I want, and now am ready to recram it via mkcramfs. I guess the question now is, how do you "re-insert" - if you will this into rasmus's linux-3.img, (and then re-dolly over to the ia-1)...

Thanks again!

01-27-2002 07:39:11

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) javajedi
Profile
I think I understand the grand scheme of things:


1) i've made a /mnt/jailbait
2) jdmount linux-3.img /mnt/jailbait
3) cp -a /mnt/jailbait /home/javajedi/jailbait
4) take out whatever i don't want
5) mkcramfs
6) dolly over my new image?

The only problem i am having is with the cp -a command, apparently it has troule copying when it sees symbolic links that are not linked to anything. Here to show you better:

root@deltaflyer:/mnt/jailbait# ls -l
total 46
drwxr-xr-x 1 root root 1220 Feb 29 2000 bin
drwxr-xr-x 1 root root 104 Dec 31 1969 boot
drwxrwxr-x 1 root root 48 Jan 27 06:49 dev
drwxr-xr-x 1 root root 20 Dec 31 1969 etc
lrwxrwxrwx 1 root root 15 Dec 31 1969 home ->
drwxr-xr-x 1 root root 1600 Feb 24 2001 lib
drwxr-xr-x 1 root root 0 Jun 7 2001 lost+found
drwxr-xr-x 1 root root 0 Jan 27 06:35 mnt
drwxr-xr-x 1 root root 0 Jan 27 06:41 proc
drwxr-xr-x 1 root root 152 May 29 2001 root
drwxr-xr-x 1 root root 704 Feb 23 2000 sbin
drwxrwxrwt 1 root root 0 Jan 27 06:47 tmp
drwxr-xr-x 1 root root 108 Feb 25 2000 usr
lrwxrwxrwx 1 root root 8 Jan 27 06:47 var ->

See the home, and var dirs? they have symbolic links to -> (aka nowhere).
Is this normal? Also, if it is, what is a better way to copy these files?

Thanks again :)

01-27-2002 09:00:02

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) wizzard32
Profile | Email
hay if someone has a .img of ms companion ver 2 or 1 could you pls email the darn thing to me
01-27-2002 11:05:37

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) javajedi
Profile
any thoughts? :)

I'm really stuck here, thanks!

01-28-2002 16:29:16

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) AirMan
Profile
Try using cpio to copy the files. It will handle the symbolic links just fine.
01-28-2002 20:13:45

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) bittmann
Profile | Email
I'm sure that this is the "hard" way...but I've had good luck with "tar".

Try something like "tar -cvf <outfile> /directory. You would follow that up by cd-ing to the desired new directory and issuing a "tar -xvf <outfile>...

It's even possible to do it all in one command line...but I prefer keeping it simple.

bittmann

01-28-2002 20:19:52

New MessageRE:Modifing cramfs/or linux-3.img (modified 0 times) shadowsunrise
Profile
wizzard32, find an appropriate thread for your question. also, check the 'Hosting the MSN Companion Image?' thread. if you really wanted it, you should've backed it up first.
01-30-2002 08:16:01

Reply to Thread | Printer |
All times are PSTPowered by UltraBoard v1.62



Copyright © 2000, Netmake Inc. All Rights Reserved.
See Terms and Conditions for more information.




i-opener opener laptop notebook computer help drivers dll free windows dos repair fix linux mac macintosh 2000 95 98 nt pc configure hardware software sound video netscape explorer network networking lan wan software cmos fat bios printer card mouse modem ide scsi cd rom controllers scanner tape hard drive cgi scripts source code mp3