Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tried to relocate 'the most core' utils to RAMdisk with error: failed to update mingw32 (unable to lock database) error: failed to update mingw64... #60

Open
abdulbadii opened this issue Mar 9, 2019 · 0 comments

Comments

@abdulbadii
Copy link

abdulbadii commented Mar 9, 2019

Any idea how to correctly relocate some 'very frequently used' utilities to Ramdisk ?
I tried most of them successfully but cannot use pacman,

$ pacman -Syu
:: Synchronizing package databases...
error: failed to update mingw32 (unable to lock database)
error: failed to update mingw64 (unable to lock database)
error: failed to update msys (unable to lock database)
error: failed to synchronize all databases

Z is a RAM disk and I did create windows desktop shortcut
Z:\CoreUtil\usr\bin\mintty.exe --dir /usr/bin /usr/bin/bash -ac 'MSYSTEM=MINGW64;exec /usr/bin/bash -l'
and relocate some to it :

bash.exe
chmod.exe
cp.exe
curl.exe
cut.exe
cygpath.exe
cygwin-console-helper.exe
file.exe
find.exe
getopt.exe
gpg.exe
grep.exe
head.exe
hexdump.exe
hostname.exe
ldd.exe
ln.exe
ls.exe
mintty.exe
mkdir.exe
msys-2.0.dll
msys-assuan-0.dll
msys-bz2-1.dll
msys-gcc_s-seh-1.dll
msys-gcrypt-20.dll
msys-gpg-error-0.dll
msys-iconv-2.dll
msys-intl-8.dll
msys-magic-1.dll
msys-ncursesw6.dll
msys-readline7.dll
msys-sqlite3-0.dll
msys-z.dll
mv.exe
od.exe
rm.exe
sed.exe
sort.exe
tee.exe
time.exe
tr.exe
tzset.exe
xz.exe

after change all paths in /etc/profile to point back to original MSYS installation, and pacman setting:

$ cat Z:\RAMCoreUtil\etc\pacman.conf
...
[options]
RootDir     = /e/msys/
DBPath      = /e/msys/var/lib/pacman/
CacheDir    = /e/msys/var/cache/pacman/pkg/
LogFile     = /e/msys/var/log/pacman.log
GPGDir      = /e/msys/etc/pacman.d/gnupg/
...
[mingw32]
Include = /e/msys/etc/pacman.d/mirrorlist.mingw32
[mingw64]
Include = /e/msys/etc/pacman.d/mirrorlist.mingw64
[msys]
Include = /e/msys/etc/pacman.d/mirrorlist.msys 

How to solve the stumbling-block

error: failed to update mingw32 (unable to lock database)
error: failed to update mingw64 (unable to lock database)

Any useful idea will be very appreciated and thanks much in advance!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant