[Debian] Need Help using Easy-Debian from an EXT2 Partition.
What I'm trying to do is use Debian in a chroot from an ext2 partition. Now I know how to install Debian to a partition, and I know how to install Easy-Debian, but not install Easy-Debian to a ext2 partition [not an img file].
You may ask why? Well, chrooting Debian from an actual partition is waaaaaay faster than from an img file, and Qole's img files are ~1GB -- I can have a partition as large as I want. You may also ask, why not just install regular Debian to a partition, like Johnx's one for example, and chroot into it? I tried this, and it just didn't work well. For one, APT was broken, and it just seems that except for being slow, Qole's Easy-Debian just 'works'. So what I did was freshly format my ext2 partition, and edited /sbin/debian and removed all the mount lines. Like: Code:
#Make the tablet's devices available to Debian I then ran Debian-Chroot from the application launcher, and let it mount the debian-img.ext2 image to /debian/ I then copied everything from /debian/ to my ect2 partition. I then edited the /home/user/.chroot file to look like this: Code:
# Sample config for chroot I then rebooted, and changed /sbin/debian back to what it was originally, and tried my chroot out. It seemingly mounts my ext2 partition to /debian/, but NOTHING WORKS! Gah! :( What did I do wrong? Is my whole logic wrong? Help... |
Re: Need Help using Easy-Debian from an EXT2 Partition.
If you run just the "Debian Chroot" icon you should get a terminal that shows a bunch of output..
Copy that output and show us here if you can.. Or if it disapears too fast... open a terminal; get to root; and just run "debian" ... see where the errors are. U didn't need to modify the debian script at all.. if all you wanted to do was mount the img file and copy the data... as root you could have mount myext2.img /debian and copied .. that way not messing with the original scripts... But anyway.. the process you outlined should have been fine. If you DO get into a chroot using just "debian"... then try launching something from the maemo user account in a terminal like: debbie abiword Check the output from that command and see where it's failing. |
Re: Need Help using Easy-Debian from an EXT2 Partition.
Running 'debian' as root gives:
Code:
chroot set up already! Code:
Starting Debian abiword |
Re: Need Help using Easy-Debian from an EXT2 Partition.
Code:
chroot: cannot execute /bin/sh: No such file or directory I think when you copied it it didn't copy over permissions... did you use cp -pr or just cp when you ran the copy from the image to the new ext2?? I think everything in your new debian is probably owner:group root:root and rw-r-r or something similar.. ETA: if this is the case.. it will be easier to start over and run the cp with -pr as root instead of fixing these permissions by hand. |
Re: Need Help using Easy-Debian from an EXT2 Partition.
I used Emelfm2 as root to copy the files. For example, the files in /debian/bin are owner:root group:root and permissions:-rwxr-xr-x, but some files' permissions are different.
|
Re: Need Help using Easy-Debian from an EXT2 Partition.
specifically what are /debian/bin/sh?
|
Re: Need Help using Easy-Debian from an EXT2 Partition.
/debian/bin/sh is owner:root group:root and permissions:lrwxrwxrwx.
|
Re: Need Help using Easy-Debian from an EXT2 Partition.
Sorry... what is the permissions on /debian/bin/bash .. sh is a link.
|
Re: Need Help using Easy-Debian from an EXT2 Partition.
/debian/bin/bash is owner:root group:root and permissions:-rwxr-xr-x.
|
Re: Need Help using Easy-Debian from an EXT2 Partition.
If you manually run:
chroot /debian Do you get the same error? |
All times are GMT. The time now is 03:43. |
vBulletin® Version 3.8.8