Résolu le 30-12-18 [RESOLU] Commande pour ouvrir un dossier dans un volume crypté

Questions concernant les lignes de commandes
Avatar du membre
Linuxing
Messages : 1484
Enregistré le : mar. 25 août 2015 01:28

[RESOLU] Commande pour ouvrir un dossier dans un volume crypté

Message par Linuxing »

Bonjour ;)

Pour ouvrir un dossier dans le Terminal il suffit de :

Code : Tout sélectionner

cd /home/linuxing/dossier
Mais pour ouvrir un dossier figurant dans un volume crypté monté, il n'en va pas de même apparemment :-o J'ai essayé 2 moutures, mais sans succès :

Code : Tout sélectionner

linuxing@linuxing-Satellite-Pro-S300 ~ $ cd /media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture
bash: cd: /media/veracrypt1/IMAGES: Aucun fichier ou dossier de ce type

Autre essai :

linuxing@linuxing-Satellite-Pro-S300 ~ $ cd /home/linuxing/media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture
bash: cd: /home/linuxing/media/veracrypt1/IMAGES: Aucun fichier ou dossier de ce type
Si quelqu'un a un filon... merci d'avance :) ;)
Modifié en dernier par Linuxing le lun. 11 sept. 2017 01:15, modifié 1 fois.
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022

Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par arghlub »

Salut,
je n'utilise pas Veracrypt mais as-tu monté ton volume crypté au préalable ? https://www.veracrypt.fr/en/Main%20Prog ... indow.html" onclick="window.open(this.href);return false;
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Avatar du membre
Linuxing
Messages : 1484
Enregistré le : mar. 25 août 2015 01:28

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par Linuxing »

Salut arghlub ;)

OUI, mon volume est bien monté 8-) :)
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022

Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox

Avatar du membre
alain
Administrateur du site
Messages : 14701
Enregistré le : dim. 11 oct. 2015 23:41
Localisation : Chelles
Contact :

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par alain »

Bonjour Linuxing.

Moi non plus je n'utilise pas veracrypt.

Mais je pense que c'est normal que la commande "cd" ne puisse pas voir un volume/dossier crypté, c'est un peu le but, non?
Moi, ce que je ferai, je regarderai au niveau des commandes possible de veracrypt. car je pense que seul veracrypt peut gérer les volumes
cryptés par lui.
Fait un:
man veracrypt
et un
veracrypt -h
ça devrait de donner la liste des commandes/options possible avec veracrypt et certainement des explications sur leurs fonctionnements, mais
il a de fortes chances que ça soit en anglais...
PC are like air conditioning, they becomes useless when you open Windows (L.T)
PC1 : CM : ASRock 990FX | CPU: AMD FX 8350-8 cores, 4 GHz | RAM: 16 Go DDR3 1600 MHz | CG: ATI RX 580-8 Go | OS : LM 20.3 Uma Xfce 4.16 | K: 5.4
PC2
:Core2 Quad Q9650 @ 3 GHz | CG: Nvidia GTX 650TI | OS: LM 21.3 Xfce 4.18| K: 6.5
PC3 :Core i7-2600 @ 3,5 GHz | CG: ATI HD 4650 | OS: Emmade5 Xfce 4.18.0 | K: 6.1
PC4 : AMD Ryzen 5 3500X 4GHz | CG: GTX 970 | Ram : 8GB |OS : Debian 10.5 | K: 5.10
In a world without walls and fences, who needs windows and gates?

mpedro
Messages : 1517
Enregistré le : dim. 8 nov. 2015 22:13
Contact :

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par mpedro »

cd cette commande [cd: /media/veracrypt1/IMAGES] devrait fonctionner puisqu'elle fonctionne avec truecrypt. Attention le volume peut-être démonté (ne pas vouloir s'ouvrir si un MDP est demandé) mais être visible avec le gestionnaire de fichiers.
Stretch 32bits cinnamon/Fedora25/Sarah
Compaq 8510p/MSI GE70/Raspberry Pi2

Avatar du membre
Linuxing
Messages : 1484
Enregistré le : mar. 25 août 2015 01:28

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par Linuxing »

@ alain ;)

Voici ce que me donne la commande man veracrypt :

Code : Tout sélectionner

linuxing@linuxing-Satellite-Pro-S300 ~ $ man veracrypt
Aucune entrée de manuel pour veracrypt
voir « man 7 undocumented » pour obtenir de l'aide quand les pages de manuel ne sont pas disponibles.

et pour la suite 

UNDOCUMENTED(7)            Linux Programmer's Manual           UNDOCUMENTED(7)

NAME
       undocumented - No manpage for this program, utility or function.

DESCRIPTION
       This  program,  utility  or  function  does  not have a useful manpage.
       Before opening a bug to report this, please check with the  Debian  Bug
       Tracking System (BTS) at <http://bugs.debian.org/> if a bug has already
       been reported.  If not, you can submit a wishlist bug if you want.

       If you are a competent and accurate writer and are willing to spend the
       time  reading  the source code and writing good manpages please write a
       better man page than this one.  Please contact the  package  maintainer
       and copy man-pages@qa.debian.org in order to avoid several people work‐
       ing on the same manpage.

       Even if you are not an accurate writer,  your  input  may  be  helpful.
       Writing  manual pages is quite easy, the format is described in man(7).
       The most important and time-consuming task is to collect  the  informa‐
       tion to be put in the new manpage.

DIAGNOSTICS
 Manual page undocumented(7) line 1 (press h for help or q to quit)

Je décide de presser help 


                   SUMMARY OF LESS COMMANDS

      Commands marked with * may be preceded by a number, N.
      Notes in parentheses indicate the behavior if N is given.
      A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K.

  h  H                 Display this help.
  q  :q  Q  :Q  ZZ     Exit.
 ---------------------------------------------------------------------------

                           MOVING

  e  ^E  j  ^N  CR  *  Forward  one line   (or N lines).
  y  ^Y  k  ^K  ^P  *  Backward one line   (or N lines).
  f  ^F  ^V  SPACE  *  Forward  one window (or N lines).
  b  ^B  ESC-v      *  Backward one window (or N lines).
  z                 *  Forward  one window (and set window to N).
  w                 *  Backward one window (and set window to N).
  ESC-SPACE         *  Forward  one window, but don't stop at end-of-file.
  d  ^D             *  Forward  one half-window (and set half-window to N).
  u  ^U             *  Backward one half-window (and set half-window to N).
  ESC-)  RightArrow *  Left  one half screen width (or N positions).
HELP -- Press RETURN for more, or q when done

Je quitte ici, rien de concluant 
Voici ce que donne veracrypt -h :

Tout d'abord une première fenêtre bien remplie se superpose au Terminal et me demande de cliquer sur valider, en voici le contenu :

Code : Tout sélectionner

Synopsis:

veracrypt [OPTIONS] COMMAND
veracrypt [OPTIONS] VOLUME_PATH [MOUNT_DIRECTORY]


Commands:

--auto-mount=devices|favorites
 Auto mount device-hosted or favorite volumes.

--backup-headers[=VOLUME_PATH]
 Backup volume headers to a file. All required options are requested from the
 user.

-c, --create[=VOLUME_PATH]
 Create a new volume. Most options are requested from the user if not specified
 on command line. See also options --encryption, -k, --filesystem, --hash, -p,
 --random-source, --quick, --size, --volume-type. Note that passing some of the
 options may affect security of the volume (see option -p for more information).

 Inexperienced users should use the graphical user interface to create a hidden
 volume. When using the text user interface, the following procedure must be
 followed to create a hidden volume:
  1) Create an outer volume with no filesystem.
  2) Create a hidden volume within the outer volume.
  3) Mount the outer volume using hidden volume protection.
  4) Create a filesystem on the virtual device of the outer volume.
  5) Mount the new filesystem and fill it with data.
  6) Dismount the outer volume.
  If at any step the hidden volume protection is triggered, start again from 1).

--create-keyfile[=FILE_PATH]
 Create a new keyfile containing pseudo-random data.

-C, --change[=VOLUME_PATH]
 Change a password and/or keyfile(s) of a volume. Most options are requested
 from the user if not specified on command line. PKCS-5 PRF HMAC hash
 algorithm can be changed with option --hash. See also options -k,
 --new-keyfiles, --new-password, -p, --random-source.

-d, --dismount[=MOUNTED_VOLUME]
 Dismount a mounted volume. If MOUNTED_VOLUME is not specified, all
 volumes are dismounted. See below for description of MOUNTED_VOLUME.

--delete-token-keyfiles
 Delete keyfiles from security tokens. See also command --list-token-keyfiles.

--export-token-keyfile
 Export a keyfile from a security token. See also command --list-token-keyfiles.

--import-token-keyfiles
 Import keyfiles to a security token. See also option --token-lib.

-l, --list[=MOUNTED_VOLUME]
 Display a list of mounted volumes. If MOUNTED_VOLUME is not specified, all
 volumes are listed. By default, the list contains only volume path, virtual
 device, and mount point. A more detailed list can be enabled by verbose
 output option (-v). See below for description of MOUNTED_VOLUME.

--list-token-keyfiles
 Display a list of all available security token keyfiles. See also command
 --import-token-keyfiles.

--mount[=VOLUME_PATH]
 Mount a volume. Volume path and other options are requested from the user
 if not specified on command line.

--restore-headers[=VOLUME_PATH]
 Restore volume headers from the embedded or an external backup. All required
 options are requested from the user.

--save-preferences
 Save user preferences.

--test
 Test internal algorithms used in the process of encryption and decryption.

--version
 Display program version.

--volume-properties[=MOUNTED_VOLUME]
 Display properties of a mounted volume. See below for description of
 MOUNTED_VOLUME.

MOUNTED_VOLUME:
 Specifies a mounted volume. One of the following forms can be used:
 1) Path to the encrypted VeraCrypt volume.
 2) Mount directory of the volume's filesystem (if mounted).
 3) Slot number of the mounted volume (requires --slot).


Options:

--display-password
 Display password characters while typing.

--encryption=ENCRYPTION_ALGORITHM
 Use specified encryption algorithm when creating a new volume.

--filesystem=TYPE
 Filesystem type to mount. The TYPE argument is passed to mount(8) command
 with option -t. Default type is 'auto'. When creating a new volume, this
 option specifies the filesystem to be created on the new volume (only 'FAT'
 and 'none' TYPE is allowed). Filesystem type 'none' disables mounting or
 creating a filesystem.

--force
 Force mounting of a volume in use, dismounting of a volume in use, or
 overwriting a file. Note that this option has no effect on some platforms.

--fs-options=OPTIONS
 Filesystem mount options. The OPTIONS argument is passed to mount(8)
 command with option -o when a filesystem on a VeraCrypt volume is mounted.
 This option is not available on some platforms.

--hash=HASH
 Use specified hash algorithm when creating a new volume or changing password
 and/or keyfiles. This option also specifies the mixing PRF of the random
 number generator.

-k, --keyfiles=KEYFILE1[,KEYFILE2,KEYFILE3,...]
 Use specified keyfiles when mounting a volume or when changing password
 and/or keyfiles. When a directory is specified, all files inside it will be
 used (non-recursively). Multiple keyfiles must be separated by comma.
 Use double comma (,,) to specify a comma contained in keyfile's name.
 Keyfile stored on a security token must be specified as
 token://slot/SLOT_NUMBER/file/FILENAME. An empty keyfile (-k "") disables
 interactive requests for keyfiles. See also options --import-token-keyfiles,
 --list-token-keyfiles, --new-keyfiles, --protection-keyfiles.

--load-preferences
 Load user preferences.

-m, --mount-options=OPTION1[,OPTION2,OPTION3,...]
 Specifies comma-separated mount options for a VeraCrypt volume:
  headerbak: Use backup headers when mounting a volume.
  nokernelcrypto: Do not use kernel cryptographic services.
  readonly|ro: Mount volume as read-only.
  system: Mount partition using system encryption.
  timestamp|ts: Do not restore host-file modification timestamp when a volume
   is dismounted (note that the operating system under certain circumstances
   does not alter host-file timestamps, which may be mistakenly interpreted
   to mean that this option does not work).
 See also option --fs-options.

--new-keyfiles=KEYFILE1[,KEYFILE2,KEYFILE3,...]
 Add specified keyfiles to a volume. This option can only be used with command
 -C.

--new-password=PASSWORD
 Specifies a new password. This option can only be used with command -C.

-p, --password=PASSWORD
 Use specified password to mount/open a volume. An empty password can also be
 specified (-p ""). Note that passing a password on the command line is
 potentially insecure as the password may be visible in the process list
 (see ps(1)) and/or stored in a command history file or system logs.

--protect-hidden=yes|no
 Write-protect a hidden volume when mounting an outer volume. Before mounting
 the outer volume, the user will be prompted for a password to open the hidden
 volume. The size and position of the hidden volume is then determined and the
 outer volume is mounted with all sectors belonging to the hidden volume
 protected against write operations. When a write to the protected area is
 prevented, the whole volume is switched to read-only mode. Verbose list
 (-v -l) can be used to query the state of the hidden volume protection.
 Warning message is displayed when a volume switched to read-only is being
 dismounted.

--protection-keyfiles=KEYFILE1[,KEYFILE2,KEYFILE3,...]
 Use specified keyfiles to open a hidden volume to be protected. This option
 may be used only when mounting an outer volume with hidden volume protected.
 See also options -k and --protect-hidden.

--protection-password=PASSWORD
 Use specified password to open a hidden volume to be protected. This option
 may be used only when mounting an outer volume with hidden volume protected.
 See also options -p and --protect-hidden.

--quick
 Do not encrypt free space when creating a device-hosted volume. This option
 must not be used when creating an outer volume.

--random-source=FILE
 Use FILE as a source of random data (e.g., when creating a volume) instead
 of requiring the user to type random characters.

--slot=SLOT
 Use specified slot number when mounting, dismounting, or listing a volume.

--size=SIZE
 Use specified size in bytes when creating a new volume.

-t, --text
 Use text user interface. Graphical user interface is used by default if
 available. This option must be specified as the first argument.

--token-lib=LIB_PATH
 Use specified PKCS #11 security token library.

--volume-type=TYPE
 Use specified volume type when creating a new volume. TYPE can be 'normal'
 or 'hidden'. See option -c for more information on creating hidden volumes.

-v, --verbose
 Enable verbose output.


IMPORTANT:

If you want to use VeraCrypt, you must follow the security requirements and
security precautions listed in chapter 'Security Requirements and Precautions'
in the VeraCrypt documentation (file 'VeraCrypt User Guide.pdf').


Examples:

Create a new volume:
veracrypt -t -c

Mount a volume:
veracrypt volume.hc /media/veracrypt1

Mount a volume as read-only, using keyfiles:
veracrypt -m ro -k keyfile1,keyfile2 volume.tc

Mount a volume without mounting its filesystem:
veracrypt --filesystem=none volume.tc

Mount a volume prompting only for its password:
veracrypt -t -k "" --protect-hidden=no volume.hc /media/veracrypt1

Dismount a volume:
veracrypt -d volume.tc

Dismount all mounted volumes:
veracrypt -d
Ensuite, voici le contenu du Terminal lui-même :

Code : Tout sélectionner

linuxing@linuxing-Satellite-Pro-S300 ~ $ veracrypt -h
Usage: veracrypt [--auto-mount <str>] [--backup-headers] [--background-task] [-C] [-c] [--create-keyfile] [--current-hash <str>] [--delete-token-keyfiles] [-d] [--display-password] [--encryption <str>] [--explore] [--export-token-keyfile] [--filesystem <str>] [-f] [--fs-options <str>] [--hash <str>] [-h] [--import-token-keyfiles] [-k <str>] [-l] [--list-token-keyfiles] [--load-preferences] [--mount] [-m <str>] [--new-keyfiles <str>] [--new-password <str>] [--non-interactive] [-p <str>] [--protect-hidden <str>] [--protection-hash <str>] [--protection-keyfiles <str>] [--protection-password <str>] [--random-source <str>] [--restore-headers] [--save-preferences] [--quick] [--size <str>] [--slot <str>] [-tc <str>] [--test] [-t] [--token-lib <str>] [-v] [--version] [--volume-properties] [--volume-type <str>] [Volume path] [Mount point]
  --auto-mount=<str>         	Auto mount device-hosted/favorite volumes
  --backup-headers           	Backup volume headers
  --background-task          	Start Background Task
  -C, --change               	Change password or keyfiles
  -c, --create               	Create new volume
  --create-keyfile           	Create new keyfile
  --current-hash=<str>       	Current hash algorithm for change password/keyfiles operation
  --delete-token-keyfiles    	Delete security token keyfiles
  -d, --dismount             	Dismount volume
  --display-password         	Display password while typing
  --encryption=<str>         	Encryption algorithm
  --explore                  	Open explorer window for mounted volume
  --export-token-keyfile     	Export keyfile from security token
  --filesystem=<str>         	Filesystem type
  -f, --force                	Force mount/dismount/overwrite
  --fs-options=<str>         	Filesystem mount options
  --hash=<str>               	Hash algorithm
  -h, --help                 	Display detailed command line help
  --import-token-keyfiles    	Import keyfiles to security token
  -k, --keyfiles=<str>       	Keyfiles
  -l, --list                 	List mounted volumes
  --list-token-keyfiles      	List security token keyfiles
  --load-preferences         	Load user preferences
  --mount                    	Mount volume interactively
  -m, --mount-options=<str>  	VeraCrypt volume mount options
  --new-keyfiles=<str>       	New keyfiles
  --new-password=<str>       	New password
  --non-interactive          	Do not interact with user
  -p, --password=<str>       	Password
  --protect-hidden=<str>     	Protect hidden volume
  --protection-hash=<str>    	Hash algorithm for protected hidden volume
  --protection-keyfiles=<str>	Keyfiles for protected hidden volume
  --protection-password=<str>	Password for protected hidden volume
  --random-source=<str>      	Use file as source of random data
  --restore-headers          	Restore volume headers
  --save-preferences         	Save user preferences
  --quick                    	Enable quick format
  --size=<str>               	Size in bytes
  --slot=<str>               	Volume slot number
  -tc, --truecrypt=<str>     	Enable TrueCrypt mode. Should be put first to avoid issues.
  --test                     	Test internal algorithms
  -t, --text                 	Use text user interface
  --token-lib=<str>          	Security token library
  -v, --verbose              	Enable verbose output
  --version                  	Display version information
  --volume-properties        	Display volume properties
  --volume-type=<str>        	Volume type
linuxing@linuxing-Satellite-Pro-S300 ~ $ 
Cela ne donne rien apparemment, si ce n'est l'usage de l'application Veracrypt elle-même :)

Tu me dis que ce serait normal que la commande cd ne puisse pas ouvrir un volume crypté ; d'accord avec toi tant qu'il n'est pas monté, mais une fois chose faite il devrait normalement être accessible comme n'importe quel autre répertoire :?:
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022

Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox

Avatar du membre
Linuxing
Messages : 1484
Enregistré le : mar. 25 août 2015 01:28

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par Linuxing »

@ mpedro ;)

Tout d'abord, je signale que mon volume est effectivement bien monté :) 8-)

Voici ce que donne le Terminal pour ta commande :

Code : Tout sélectionner

linuxing@linuxing-Satellite-Pro-S300 ~ $ cd: media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture
La commande « cd: » est introuvable, vouliez-vous dire :
 La commande « cdb » du paquet « tinycdb » (main)
 La commande « cdp » du paquet « irpas » (multiverse)
 La commande « cde » du paquet « cde » (universe)
 La commande « cd5 » du paquet « cd5 » (universe)
 La commande « cdo » du paquet « cdo » (universe)
 La commande « cdw » du paquet « cdw » (universe)
 La commande « cdi » du paquet « cdo » (universe)
 La commande « cdv » du paquet « codeville » (universe)
cd: : commande introuvable

J'en essaie une autre :

linuxing@linuxing-Satellite-Pro-S300 ~ $ [cd: media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture]
[cd: : commande introuvable
En ce qui concerne TrueCrypt, je l'avais installé avec le gestionnaire de paquets consécutivement à l'installation de Mint. J'avais pu créé un conteneur crypté, mais au moment de la copie de mes fichiers du HD externe vers ce même volume crypté, le transfert se bloqua à 18 % des éléments transférés... à la suite de quoi, je choisis Veracrypt 8-)
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022

Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox

mpedro
Messages : 1517
Enregistré le : dim. 8 nov. 2015 22:13
Contact :

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par mpedro »

excuse comme ça sans " : "

Code : Tout sélectionner

cd /media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture
il faut que le volume soit ouvert (monté et ouvert)

Seulement monté :

Code : Tout sélectionner

maya@ibw:~$ cd /media/maya/D4FA-8F6B/Ambass
bash: cd: /media/maya/D4FA-8F6B/Ambass: Aucun fichier ou dossier de ce type
Monté et ouvert

Code : Tout sélectionner

maya@ibw:~$ cd /media/maya/D4FA-8F6B/Ambass
maya@ibw:/media/maya/D4FA-8F6B/Ambass$ 

Si celà ne fonctionne pas il faudra voir dans sudoers je crois mais suis pas sûr et ajouter ton user (si tu montes le volume en root, ce qui ne semble pas être le cas içi).Ou peut-être autre chose...

Veracrypt est un fork de truecrypt

Edition : en tapant visudo en root il faut ajouter cette dernière ligne en bas du fichier : linuxing ALL=(ALL) ALL
Stretch 32bits cinnamon/Fedora25/Sarah
Compaq 8510p/MSI GE70/Raspberry Pi2

Avatar du membre
Linuxing
Messages : 1484
Enregistré le : mar. 25 août 2015 01:28

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par Linuxing »

Salut mpedro ;)

J'ai enfin une bonne nouvelle, mais partielle :

Code : Tout sélectionner

linuxing@linuxing-Satellite-Pro-S300 ~ $ cd /media/veracrypt1
linuxing@linuxing-Satellite-Pro-S300 /media/veracrypt1 $
Comme tu peux le voir ci-dessus, j'ai réussi à ouvrir le volume dans le Terminal, mais c'est pour la suite que ça ne marche pas :

Code : Tout sélectionner

cd /IMAGES ET GESTION/MES IMAGES/Path/Voiture
IMAGES ET GESTION/MES IMAGES/Path/Voiture
cd /home/linuxing/IMAGES ET GESTION/MES IMAGES/Path/Voiture
cd /MES IMAGES/Path/Voiture
cd /media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture
cd /home/linuxing/media/veracrypt1/IMAGES ET GESTION/MES IMAGES/Path/Voiture
Aucune des commandes avec les cheminements ci-dessus ne me permet d'ouvrir le dossier «Voiture» :roll:
Laptop depuis le 16 juillet 2021 : Tuxedo Polaris 17 - Processeur Intel® Core I7 - 10750H / NVIDIA GeForce RTX 1650Ti / Full-HD IPS mat 144Hz / DDR4 SO-DIMM : 16 GB (1x 16GB) 3200Mhz CL22 Samsung / SSD: 1000 GB Samsung 860 EVO (M.2 SATAIII) / WLAN & Bluetooth: Intel Wi-Fi 6 AX200 & Bluetooth 5.1 (up to 2400Mbps). OS : Linux Mint 20.3 (Una) Mate depuis ce 16 janvier 2022

Périphériques : 2 HD Western Digital - Imprimante HP Deskjet 2540 Tout-en-un / Scanner Canon Lide 110 - Navigateur : Firefox

Avatar du membre
arghlub
Administrateur du site
Messages : 10421
Enregistré le : dim. 21 mai 2017 08:19
Localisation : Provence
Contact :

Re: Commande pour ouvrir un dossier dans un volume crypté

Message par arghlub »

Salut Linuxing,

Si tes répertoires contiennent des espaces, Linux prend chaque terme séparé par un espace pour un argument différent, donc ça ne peut pas marcher.

Donc soit tu "échappes" tes espaces avec le caractère d'échappement anti-slash \ pour que Linux ne les prennent pas en considération :

Code : Tout sélectionner

cd /IMAGES\ ET\ GESTION/MES\ IMAGES/Path/Voiture
ou plus simple, tu entoures le chemin vers ton répertoire avec des guillemets " :

Code : Tout sélectionner

cd "/IMAGES ET GESTION/MES IMAGES/Path/Voiture"
;)
Tour1 (custom)CM MSI Z270 M3 | CPU Intel I7-7700K | CG Nvidia GTX 1080 | RAM 16Go | tripleBoot : Debian 11 | MXlinux 21 | LMint 19.3 | XFCE
Tour2 (custom)CM Gigabyte | CPU AMD Athlon 5200+ | CG Nvidia GTX 560 | RAM 6Go | FreeBSD 12.1 XFCE
Portable1 MSI GF75 Thin 9SC | CPU Intel I7-9750H | CG Nvidia GTX 1650 | RAM 32Go | dualBoot : LMint 20.2 | MXlinux 21 | XFCE
Portable2 MacBook Air A1466 (2015) | CPU Intel I5-5250U | CG Intel HD Graphics 6000 | RAM 8Go | dualBoot : macOS Sierra | MXlinux 21 XFCE
─────( pour une informatique libre ! -membre en stand-by de l' April.org────────────────

Répondre