View Single Post
Posts: 41 | Thanked: 8 times | Joined on Mar 2008
#54
OK, I modified the .chroot file as shown (do I need to make the other changes noted by Maxoueb?). When I do "sudo debian" as user I get a boat load of errors. So I figured I need to be root. When I enter "sudo debian" I just get the prompt back and nothing happens. I tried rebooting and it does the same thing.

Also, if I ever get my ext2 partition mounted it should be completely empty. Are you saying I should create a /debian folder to extract the filesystem into?

Or am I just way the heck in too deep!

Originally Posted by qole View Post
you have to mount the partition, then extract the data. Best thing to do is to modify your /home/user/.chroot file to say the following:
Code:
IMGFILE=/dev/mmcblk0p2
Then do "sudo debian" to mount the filesystem (and chroot into it). Just type "exit" to get back out of the (empty) chroot. (Do a "ls" just to make sure that it IS empty. If it isn't empty, you may have already mounted your img file, and so you may need to reboot and type "sudo debian" again) Now you've got your partition mounted and you can "cd /debian" and extract the tarball there. Once the file is extracted, you can do "sudo debian" and you're in your new Debian chroot!