Quote:
Originally Posted by makkonen
I had trouble with the windows squashfs... I don't know which version you're using. I asked for instruction on compiling squashfs images, and babijoee said he did it thusly:
sudo unsquashfs system.sqsh
(make changes)
sudo mv ./squashfs-root ./system
sudo genext2fs -d ./system -b 100000 -a system.ext2
mkdir ext2mount
sudo mount -o loop ./system.ext2 ./ext2mount
sudo mksquashfs ./ext2mount newsystem.sqsh
doing all those things through sudo (i.e. doing them as root) is important, because it keeps all the file ownership/permissions from getting messed up. I'm not sure if that stuff gets messed up regardless of how you do it in windows. There's probably a right way to do it, but I didn't find it when I was trying.
His method is probably overkill -- all the stuff of making a filesystem out of the folder and then mounting it can probably be dropped. But that's straight from the horse's mouth on how to build the system.sqsh.
|
thanks for finding that out for me. am using to latest unsquashfs for windows. i tried to use sudo for the past few hours and cant see to figure out how to by pass the password or what password to use, so im giving up for now.
i figure if i can re-pack it then i would start gathering stuff from the htc hero and make a new system.sqsh.