Reply
Thread Tools
Posts: 37 | Thanked: 5 times | Joined on Feb 2007
#71
Originally Posted by qole View Post
D'ohboy: You need to be root. As for that command line, I can't comment, since it seems odd that you're using /media/mmc1 as your Debian partition...

Here ya go Max:
Thanks a lot! I'm downloading the Gnome packages, trying to make it work once again.

Note: my Debian partition is on /media/mmc1 (only 1 partition: 100% of the external card). Why is that odd?
 
qole's Avatar
Moderator | Posts: 7,109 | Thanked: 8,820 times | Joined on Oct 2007 @ Vancouver, BC, Canada
#72
It is odd because Maemo auto-mounts it, and then it gets mounted into the chroot, and so there's this weird, infinite-mirror thing going on, where /media/mmc1/media/mmc1/media/mmc1/....etc is a valid directory. A crawler like maemo's metalayer-crawler would wander off into the infinite distance trying to index everything over and over again, slowing down your system...

I strongly suggest using qtparted to shrink your partition "to the right" and add a small partition at the beginning of the card.
__________________
qole.org --- twitter --- Easy Debian wiki page
Please don't send me a private message, post to the appropriate thread.
Thank you all for your donations!

Last edited by qole; 2008-08-21 at 05:06.
 
Posts: 132 | Thanked: 40 times | Joined on Jun 2008
#73
I actually used /opt to mount mmcblk0p3 as my debian partition.
 

The Following User Says Thank You to D'ohboy For This Useful Post:
Posts: 37 | Thanked: 5 times | Joined on Feb 2007
#74
Originally Posted by qole View Post
It is odd because Maemo auto-mounts it, and then it gets mounted into the chroot, and so there's this weird, infinite-mirror thing going on, where /media/mmc1/media/mmc1/media/mmc1/....etc is a valid directory. A crawler like maemo's metalayer-crawler would wander off into the infinite distance trying to index everything over and over again, slowing down your system...

I strongly suggest using qtparted to shrink your partition "to the right" and add a small partition at the beginning of the card.
Oh, didn't realize that. Thanks!
 
Posts: 132 | Thanked: 40 times | Joined on Jun 2008
#75
So to update the step-by-step by Maxoueb with the suggestions from Qole

We are assuming you are using (as in: installed and working) Qole's Debian image (debian.img.ext2, that can be downloaded from here: http://qole.maemobox.org/easy-deb-ch....6-2_armel.deb ).


1 --------

First step: create a new partition/format your memory card.
(easiest way: mount your card on a linux box, use GParted to resize/create the new ext2 partition)

Put back the card in your device, boot it up.

2 --------

Mount the current Debian image:

With this command (as root):

Code:
mount -o loop /path/to/currentimgfile /debian

Mount the new formatted partition:

Code:
mount /dev/mmcblkxxx /opt
4 --------

Copy the whole content of /debian to your freshly formatted partition.
In the present case:

Code:
cd /debian
/home/user/img-install/tar cf - . | (cd /opt/; tar xvf -)
5 --------

Restart device

6 --------

Edit /home/user/.chroot (as root: "vi /home/user/.chroot" ). Note that "IMGFILE=/dev/mmcblk1p1" needs to be modified to meet your needs (ie. replace "mmcblk1p1" to the ext2 partition you created)

# Sample config for chroot

# Device or image containing Debian filesystem.
# Default: first in /media/mmc[12]/debian*.img*
IMGFILE=/dev/mmcblk1p1

# Filesystem used; must always be set when using a partition.
# Default: from extension of IMGFILE, or ext2.
IMGFS=ext2

# Mount point for Debian.
# Default: /debian
CHROOT=/debian

# New /tmp dir size for printing / PDF creation
# Default: 2M
TMPSIZE=2M

# Debian user to drop privileges
# Default: user
DEBUSER=user

7 --------

You can remove the debian.img.ext2, as it's no longer needed)

8 --------

Tap on the "Debian chroot" menu item. If everything went well, you should see it mount the Debian image from: /dev/mmcblk1p1 (or whatever partition you have chosen)

I found that there was no need to edit the /sbin/debian only the chroot.
 

The Following 3 Users Say Thank You to D'ohboy For This Useful Post:
Posts: 37 | Thanked: 5 times | Joined on Feb 2007
#76
Originally Posted by qole View Post
Make sure you sudo apt-get update before you sudo apt-get upgrade. And if you're getting the dpkg error code, I bet you a buck it's choking on hal or dbus, and I've given the hack for hal and you can safely uninstall dbus (apt-get remove dbus).
If I "apt-get remove dbus", "the following packages will be REMOVED" => among others: "gedit", "gnome-app-install", "gnome-panel", "gnome-session", "gnome-settings-daemon", "gparted" etc etc., quite a lot actually (347MB).

How can I safely remove dbus without removing all these apps/libs?
(Also, during most app install, I get errors stating HAL isn't configured yet, and thus remains unconfigured => is that a problem?)

Thanks!
 
Posts: 37 | Thanked: 5 times | Joined on Feb 2007
#77
Another couple noob questions:

I had to hack hal to get it to install (put "exit 0" as the first line of /var/lib/dpkg/info/hal.preinst and /var/lib/dpkg/info/hal.postinst then run "apt-get -f install" to finish getting everything installed)...
Is it /debian/var/lib/dpkg/info/hal.preinst and /debian/var/lib/dpkg/info/hal.postinst (from the chroot)?

Also, "put "exit 0"" => should the file be:

Code:
#!/bin/sh
exit 0
set -e

etc.
or

Code:
#!/bin/sh
"exit 0"
set -e
Thanks and apologies for the dumb questions!
 
Posts: 3,428 | Thanked: 2,856 times | Joined on Jul 2008
#78
Max - The first one exit 0 with no quotes.

And from maemo it would be /debian/var... from debian it would just be /var...

You can probably perform the same hack for dbus to get it to load in dpkg.. just change hal.preinst to dbus.preinst and same for postinst.
__________________
If I've helped you or you use any of my packages feel free to help me out.
-----------------------------------------------------------------------------------
Maintaining:
pyRadio - Pandora Radio on your N900, N810 or N800!
 

The Following 2 Users Say Thank You to fatalsaint For This Useful Post:
Posts: 37 | Thanked: 5 times | Joined on Feb 2007
#79
Originally Posted by fatalsaint View Post
Max - The first one exit 0 with no quotes.

And from maemo it would be /debian/var... from debian it would just be /var...

You can probably perform the same hack for dbus to get it to load in dpkg.. just change hal.preinst to dbus.preinst and same for postinst.
Thanks a lot!
 
Posts: 37 | Thanked: 5 times | Joined on Feb 2007
#80
Hi all, I'm trying to access the System->Administration->"Services" tool (from Gnome), but after I enter my root password (which is correct), I get an error message: "you are not allowed to access the system configuration".

Same when running "gnome-services" from debian chroot xterm session.

Any idea? Is it something related to dbus? (I applied Fatalsaint's modifs -exit 0- in dbus.preinst and dbus.postinst)

Thanks in advance!
 
Reply

Tags
chroot, debian, easy debian


 
Forum Jump


All times are GMT. The time now is 01:23.