Oh, this is an old trick. I remember using it with portage. Some remarks:
mount point doesn't have to be empty, so you can keep your database backup in /var/lib/pacman (after umounting)
no need to compress old database. Simply mount the image somewhere and copy all files there.
XFS is better for cache-like filesystems, so you may try to use mkfs.xfs.
If your mkfs has to take device instead of file (it works on now on my arch but I remember having problems with it) use:
# losetup /dev/loop0 pacman.xfs
# mkfs.xfs /dev/loop0
# mount /dev/loop0 /var/lib/pacman
Ad. 1: Linus' rants are pretty old and obsolete. C++ has changed (even C++11 still hasn't made it to gamedev). Don't give up yet.
Similar: http://www.bettercallsaul.com/
Silly question, but do you use stock kernel? On mine minimal .config, I get from grub to init in less than 2 seconds.
Oh, this is an old trick. I remember using it with portage. Some remarks:
mount point doesn't have to be empty, so you can keep your database backup in /var/lib/pacman (after umounting)
no need to compress old database. Simply mount the image somewhere and copy all files there.
XFS is better for cache-like filesystems, so you may try to use mkfs.xfs.
If your mkfs has to take device instead of file (it works on now on my arch but I remember having problems with it) use: # losetup /dev/loop0 pacman.xfs # mkfs.xfs /dev/loop0 # mount /dev/loop0 /var/lib/pacman
After this you can do simple mount -o loop
It's not rss friendly.
:(GC
End of this list.
Back to top