Skip to content

u/chmod666

In this archive from Feb 2009 to Nov 2011

2
posts
6
comments
0
media
31
score

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

3 points

End of this list.

Back to top

Keyboard shortcuts

Move and act

jork
Next / previous post or comment
Enteroro
Open the post
f
Open the media viewer
s
Save
h
Hide (the toast has Undo)
Tab
Right after an action: the toast's Undo
x
Collapse the comment
v
Next layout: cards, compact, grid

Go to

/
Search
gthenh
Home
gthena
All
gthens
Subreddits
gthenl
Library
?
This list
Esc
Close a menu or this list

In the viewer

←or→
Previous / next file
↑or↓
Previous / next post
korj
Previous / next post
Space
Play / pause
m
Mute
z
Zoom
s
Save
o
Open the post (on its own page: back to it)
Esc
Close

Keys do nothing while you type in a box.