Bitcoin Forum
March 28, 2024, 12:08:36 PM *
News: Latest Bitcoin Core release: 26.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: Ubuntu 20.04 Bitcoin-Core Snap: Permission for external disk  (Read 183 times)
djoser (OP)
Member
**
Offline Offline

Activity: 122
Merit: 16


View Profile
May 15, 2020, 02:01:55 PM
Merited by LoyceV (5)
 #1

Hello.

I recently installed Ubuntu 20.04 and installed Bitcoin-Core 0.19.1 from the Snap-Store.
The Blockchain is stored on an external drive. When i open the application i'm asked for the directory of the blockchain.
Problem is that the application seems to lack permission to write to the external disk.
How can i give permission to the application?

Thanks and regards
djoser

Why mine when you can research? - GRIDCOIN - REAL cryptocurrency without wasting hashes! https://gridcoin.us
1711627716
Hero Member
*
Offline Offline

Posts: 1711627716

View Profile Personal Message (Offline)

Ignore
1711627716
Reply with quote  #2

1711627716
Report to moderator
1711627716
Hero Member
*
Offline Offline

Posts: 1711627716

View Profile Personal Message (Offline)

Ignore
1711627716
Reply with quote  #2

1711627716
Report to moderator
According to NIST and ECRYPT II, the cryptographic algorithms used in Bitcoin are expected to be strong until at least 2030. (After that, it will not be too difficult to transition to different algorithms.)
Advertised sites are not endorsed by the Bitcoin Forum. They may be unsafe, untrustworthy, or illegal in your jurisdiction.
1711627716
Hero Member
*
Offline Offline

Posts: 1711627716

View Profile Personal Message (Offline)

Ignore
1711627716
Reply with quote  #2

1711627716
Report to moderator
1711627716
Hero Member
*
Offline Offline

Posts: 1711627716

View Profile Personal Message (Offline)

Ignore
1711627716
Reply with quote  #2

1711627716
Report to moderator
1711627716
Hero Member
*
Offline Offline

Posts: 1711627716

View Profile Personal Message (Offline)

Ignore
1711627716
Reply with quote  #2

1711627716
Report to moderator
LoyceV
Legendary
*
Online Online

Activity: 3262
Merit: 16315


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2020, 02:43:09 PM
 #2

Problem is that the application seems to lack permission to write to the external disk.
Is it an application problem or a user/permissions problem? To test: can you write to the external disk using another program?

Quote
How can i give permission to the application?
My guess is you'll just need to change folder permissions, see for instance Change folder permissions and ownership.

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
djoser (OP)
Member
**
Offline Offline

Activity: 122
Merit: 16


View Profile
May 15, 2020, 02:50:43 PM
 #3

Is it an application problem or a user/permissions problem? To test: can you write to the external disk using another program?

It seems to be an application problem, because everything else (like writing/copying files to the drive) works perfectly.

My guess is you'll just need to change folder permissions, see for instance Change folder permissions and ownership.

I think i need to give permissions to write to external usb devices directly to the application. I know that this is possible, i just don't know what the specific command console command is.

Why mine when you can research? - GRIDCOIN - REAL cryptocurrency without wasting hashes! https://gridcoin.us
jackg
Copper Member
Legendary
*
Offline Offline

Activity: 2856
Merit: 3071


https://bit.ly/387FXHi lightning theory


View Profile
May 15, 2020, 03:01:05 PM
 #4

I don't know how helpful this'll be but permission looks like it could depend on the drive partition format: https://askubuntu.com/questions/93109/cant-write-to-ntfs-formatted-drives

I'm guessing the drive is fully kounted/findable in /media/drivename to you and you see able to write to it?
LoyceV
Legendary
*
Online Online

Activity: 3262
Merit: 16315


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2020, 03:04:23 PM
 #5

I think i need to give permissions to write to external usb devices directly to the application. I know that this is possible, i just don't know what the specific command console command is.
If it runs as the same user, it has inherited the same permissions already.

Can you check (or post) this file:
Code:
~/.bitcoin/debug.log

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
djoser (OP)
Member
**
Offline Offline

Activity: 122
Merit: 16


View Profile
May 15, 2020, 03:10:17 PM
Last edit: May 15, 2020, 03:20:54 PM by djoser
 #6

Sorry, no such file, because "~/.bitcoin" does not exist. It's a snap.
BTW: I hate those snaps anyway  Angry

The application shows the error "It could not be written to directory 'media/....' Check permissions."

Why mine when you can research? - GRIDCOIN - REAL cryptocurrency without wasting hashes! https://gridcoin.us
LoyceV
Legendary
*
Online Online

Activity: 3262
Merit: 16315


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2020, 03:12:32 PM
 #7

BTW: I hate those snaps anyway  Angry
Then do a normal installation Smiley

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
djoser (OP)
Member
**
Offline Offline

Activity: 122
Merit: 16


View Profile
May 15, 2020, 03:14:08 PM
 #8

Already thought about it. But i wanted to give it a shot.
There must be a solution for this...

Why mine when you can research? - GRIDCOIN - REAL cryptocurrency without wasting hashes! https://gridcoin.us
LoyceV
Legendary
*
Online Online

Activity: 3262
Merit: 16315


Thick-Skinned Gang Leader and Golden Feather 2021


View Profile WWW
May 15, 2020, 03:42:54 PM
 #9

There must be a solution for this...
I've never used "snap" (and until today didn't know it exists), so as a guess, read How to get access to USB-storage from the application installed as Snap?

█▀▀▀











█▄▄▄
▀▀▀▀▀▀▀▀▀▀▀
e
▄▄▄▄▄▄▄▄▄▄▄
█████████████
████████████▄███
██▐███████▄█████▀
█████████▄████▀
███▐████▄███▀
████▐██████▀
█████▀█████
███████████▄
████████████▄
██▄█████▀█████▄
▄█████████▀█████▀
███████████▀██▀
████▀█████████
▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀▀
c.h.
▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄▄
▀▀▀█











▄▄▄█
▄██████▄▄▄
█████████████▄▄
███████████████
███████████████
███████████████
███████████████
███░░█████████
███▌▐█████████
█████████████
███████████▀
██████████▀
████████▀
▀██▀▀
djoser (OP)
Member
**
Offline Offline

Activity: 122
Merit: 16


View Profile
May 15, 2020, 05:59:27 PM
 #10

I've never used "snap" (and until today didn't know it exists), so as a guess, read How to get access to USB-storage from the application installed as Snap?

Thanks for all your suggestions.
Unfortunately snap "bitcoin-core" has no plug named "removable-media".

I think unless the blockchain is mounted in root directory the snap is useless  Sad

Why mine when you can research? - GRIDCOIN - REAL cryptocurrency without wasting hashes! https://gridcoin.us
Abdussamad
Legendary
*
Offline Offline

Activity: 3584
Merit: 1560



View Profile
May 16, 2020, 07:26:54 AM
 #11

why are you using a third party snap? it's unsafe. you should download bitcoin core from bitcoincore.org. untar that download and run bitcoin-qt from the bin directory. it's very easy.
djoser (OP)
Member
**
Offline Offline

Activity: 122
Merit: 16


View Profile
May 16, 2020, 11:16:00 AM
 #12

This is the official core-client from the official ubuntu repository.
So there should be no security issue!?

Since my problem from the first post seem to be unsolveable, i'm forced to use the tgz-packed client anyway.

BTW: The snap-application is also shown as an option on bitcoin.org!!

Why mine when you can research? - GRIDCOIN - REAL cryptocurrency without wasting hashes! https://gridcoin.us
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!