Tutorials Linux opt on loopback

From WebOS Internals
Revision as of 03:44, 21 July 2009 by PuffTheMagic (talk | contribs)
Jump to navigation Jump to search

The following commands will move all your optware to an ext3 1GB loopback image that resides on /media/internal. <source lang="bash"> dd if=/dev/zero of=/media/internal/optware.img bs=1024 count=1000k mkfs.ext3 -F /media/internal/optware.img mkdir /tmp/opt mount -o loop /media/internal/optware.img /tmp/opt rm -rf /tmp/opt/lost\+found mv /opt/* /tmp/opt/ umount /opt umount /var/opt mount -o loop /media/internal/optware.img /opt/ echo '/media/internal/optware.img /opt ext3 defaults,loop 0 0' >>/etc/fstab </source>