Re: Impossible to give "write" permission on a sub folder
Hello David, really thank you for your reply. I'll try to explain my needs and all info that I can have in order to answer your questions the best way I can: First I will explain my goal: I have always been a Windows user, but for a while I've been thinking in changing to Linux. Last month I decided to do the change, but as we are 2 people at home (me and my wife), I've decided to do a dual boot while I can do all settings and familiarize myself with Debian, while she will still be using Windows (she is not a tech woman, she only wants something that works easily). So I want to be able to access and modify documents on the folders on Debian and Windows, as me and my wife have documents in common on these folders. As I stated before, the computer has 2 physical drives, one SSD with the 2 OSs and a HDD with all the data files (documents, pictures, ...) This drive is meant to be shared between all users, and the folders are there only for organisational purposes. For example: - HDD Documents User1 User2 Public Images User1 User2 Public As I said, the permissions on the subfolder are herited from the parent ones: User1, User2 and Public folder's permissions are herited from Documents or Images. Here is a PowerShell "Get-ACL" output from the 2 user's documents folders: > > PS C:\Windows\system32> cd D:\Documents\User2\ > PS D:\Documents\User2> Get-Acl | Format-Table -Wrap > > Répertoire : D:\Documents > > Path Owner Access > - -- > User2 PC-01\Admin AUTORITE NT\Système Allow FullControl > BUILTIN\Administrateurs Allow FullControl > PC-01\Admin Allow FullControl > PC-01\user1 Allow FullControl > PC-01\user2 Allow FullControl > Tout le monde Allow Write, ReadAndExecute, Synchronize > > PS D:\Documents\User2> cd ..\User1\ > PS D:\Documents\User1> Get-Acl | Format-Table -Wrap > > Répertoire : D:\Documents > > Path Owner Access > - -- > User1 PC-01\Admin AUTORITE NT\Système Allow FullControl > BUILTIN\Administrateurs Allow FullControl > PC-01\Admin Allow FullControl > PC-01\user1 Allow FullControl > PC-01\user2 Allow FullControl > Tout le monde Allow Write, ReadAndExecute, Synchronize > > PS D:\Documents\User1> If I suppose that these settings are the same, I think I could suppose that after a mount, both of these folders would have the same permission settings on Debian, but thats not the case. I also disable fast boot and hibernation on the Windows side: - I first went to power button settings and disabled the fast boot - then I went to PowerShell and did powercfg -h off - at last, I checked the group policies settings to be sure that hibernation was forced on the system As for the tests I did with some new folders: - first I created a "linuxTestFolder" on Debian - "sudo mkdir /mnt/windows/Documents/linuxTestFolder": - this folder was created with "rwxrwxrwx" permissions and I have full access on Debian. - I can also use this folder on Windows, and it's permissions are "Everybody full control" - I can create and edit files on both OSs - second I created a "windowsTestFolder" on Windows, with the same inherit permissions as User1 and User2 - "Add new folder" button on Windows explorer: - after the mount on Debian, this folder have "rwxrwxrwx" permissions and I have full access - I can also use this folder on Windows - I can create and edit files on both OSs This permission history is really puzzeling me... Maybe there are other Windows settings that I can't see with get-acl ? Bet regards, Marc Le 2021-11-28 22:14, David Wright a écrit : > > On Sun 28 Nov 2021 at 17:45:33 (+0100), lists.deb...@netc.eu wrote: > > Thansk for the answer. To be honest to you, I already checked all that. Both User1 and User2 folders have have exactly the same permission sets on Windows (they both herit them from the Documents folder). > > Were this a windows list, we'd expect you to demonstrate this with > some pasted output. > > NTFS permissions and their inheritance is complicated, can be > "broken" (intentional) and corrupted (eg interrupting the > inheritance chain updates) but mendable. So one would need > evidence of clean, up-to-date metadata. > > > I did also tried to use the usermap file, but I must say that I didn't managed to do it. I didn't found the Windows zip file to download from the NTFS-3G website and the Linux one I didn't managed to understand once I launch it. > > I drafted a reply before Chuck's arrived. I wrote: > > You probably need to become very familiar with man ntfs-3g > particularly with: > > "On computers which can be dual-booted into Windows or Linux, > Windows has to be fully shut down before booting into Linux" > > and: > > Regardless of what's shown here, have you written to the filesystem > from linux at all? (Note that I'm not asking you to try.) Or IOW, is > the partition listed as rw or ro by mount? > > "If either Windows is hibernated or its fast
Re: Problème avec umask dans fstab sur un sous-dossier
Merci du retour Didier, Je vais essayer de voir tout ça pendant la semaine. Entre-temps ce que je n'arrive pas trop à comprendre est-ce pourquoi 2 dossiers similaires (User1 et User2) finissent par avoir des permissions différentes, même si sous Windows ils ont exactement les mêmes paramètres de sécurité et droits d'accès... J'ai vraiment du mal à comprendre... Le 28/11/2021 à 21:10:05, didier gaumet a écrit : > > Le dimanche 28 novembre 2021 à 17:51 +0100, lists.deb...@netc.eu a écrit : > Merci de vos retour :) > > Je suis allé sur le site NTFS-3G site, j'ai lu toute la doc relative > au fichier usermap, mais j'ai eu deux soucis : > - je n'ai pas réussi à trouver le fichier zip pour Windows Il (JP Andre) a changé l'organistaion de son site perso et le site principal NTFS-3G sur GitHub ne propose que les sources. Je pense que le zip en question pour Windows version 64 bits est celui- là: https://jp-andre.pagesperso-orange.fr/download-rpm.html#ntfsprogs-windows-64-2017.3.23AR.6.zip > - une foi que j'ai essayé de lancer l'exécution sur Debian, je n'ai > pas trop compris les résultats ni comment les utiliser : j'ai > beaucoup des fichiers et sous-dossiers dans ces dossiers, il semble > que je dois passer sur chaque un afin de vérifier la permission et > faire manuellement la correspondance ? Je pense qu'il faut que tu commences par paramétrer à la main sous Windows dans un fichier de config une correspondance pour faire connaître à Windows à quel utilisateur Windows spécifique il doit attrribuer les droits d'accès attribués sous Linux à un utilisateur Linux spécifique. Du style: Marc_linux:Marc_Windows faire la même chose pour les groupes Ensuite, je me suis arrêté là parce que ça m'aurait pris trop de temps pour te dire quoi faire exactement (vu que c'est un contexte qui est nouveau pour moi, il me faut comprendre de quoi il s'agit et je suis lent), désolé, il va falloir que tu creuses toi-même :-)
Re: Problème avec umask dans fstab sur un sous-dossier
Merci de vos retour :) Je suis allé sur le site NTFS-3G site, j'ai lu toute la doc relative au fichier usermap, mais j'ai eu deux soucis : - je n'ai pas réussi à trouver le fichier zip pour Windows - une foi que j'ai essayé de lancer l'exécution sur Debian, je n'ai pas trop compris les résultats ni comment les utiliser : j'ai beaucoup des fichiers et sous-dossiers dans ces dossiers, il semble que je dois passer sur chaque un afin de vérifier la permission et faire manuellement la correspondance ? Sinon j'ai aussi fait quelques tests, si je n'arrive pas à résoudre tout ça cette semaine, je pense que le plus simple serait de récréer ces dossiers et copier les fichiers. Dans mes tests je n'ai pas eu de soucis avec des nouveaux dossiers, qu'ils soient créés sous Windows ou Linux... Cordialement, Marc Le 2021-11-26 12:29, didier gaumet a écrit : > > à Marc: pour compléter l'intervention de Hugues, tu peux regarder la > page man de ntfs-3g (par défaut quand tu montes du ntfs dans Debian, > c'est ntfs-3g qui est a l'oeuvre) > http://manpages.ubuntu.com/manpages/bionic/en/man8/mount.ntfs.8.html > > où il est suggéré de passer par une liste de correspondance > d'utilisateurs (paragraphe "user mapping"). Un tuto ici: > https://jp-andre.pagesperso-orange.fr/ntfsusermap.html > > ça pourrait s'avérer utile si par exemple tu ne te contentes pas de > consulter tes données partagées sous Linux mais que tu les modifies, > auquel cas tu pourrais avoir des problèmes d'accès une fois revenu sous > Windows > > (j'ai lu en diagonale dans les 2 cas et je n'ai jamais fait ça, donc > pas la peine de croire que je connais bien la chose) > > Je suis loin d'être expert dans le partage de systèmes de fichiers mais > dès que tu partages des données d'un système d'exploitation à un autre, > qu'il soit ou non sur le même PC, que le système de fichiers soit > identique ou non, du moment que chaque système d'exploitation gère > localement ses utilisateurs au lieu de passer par un serveur annuaire > d'utilisateurs, tu peux rencontrer ce genre de problème (un disque > externe en ext4 sur 2 PC linux différents avec le même utilisateur > "marc" ayant un UID différent sur chaque PC devrait représenter un > exemple correct). > > >
Re: Impossible to give "write" permission on a sub folder
Thansk for the answer. To be honest to you, I already checked all that. Both User1 and User2 folders have have exactly the same permission sets on Windows (they both herit them from the Documents folder). I did also tried to use the usermap file, but I must say that I didn't managed to do it. I didn't found the Windows zip file to download from the NTFS-3G website and the Linux one I didn't managed to understand once I launch it. I did some tests, and I think that I I can't find a way to do it this week I will end by recreate this folders. In my tests it worked well :( Best regards, Marc Le 2021-11-27 19:39, Chuck Zmudzinski a écrit : > > Read the ntfs-3 man page. > > Take a look at the man page for ntfs-3g, the section on > Access Handling and Security: > > From the ntfs-3g man page: > > Access Handling and Security > By default, files and directories are owned by the effective > user and group of the mounting process, and ev‐ > erybody has full read, write, execution and directory browsing > permissions. You can also assign permissions > to a single user by using the uid and/or the gid options > together with the umask, or fmask and dmask options. > > Doing so, Windows users have full access to the files created by > ntfs-3g. > > But, by setting the permissions option, you can benefit from the > full ownership and permissions features as > defined by POSIX. Moreover, by defining a Windows-to-Linux > user mapping, the ownerships and permissions are > even applied to Windows users and conversely. > > If ntfs-3g is set setuid-root then non-root users will be also > able to mount volumes. > > > You use the defaults option when mounting. I do not know how that > affects access and security for ntfs-3g. I would suggest either using > uid and gid options when mounting instead, or using the > usermapping file that maps Windows users to Debian users. > > You need to check which user under Windows owns those folders, which Windows > users have write access to those folders, etc. > > As mentioned in the man page, there is a way to map Windows users to > Debian 11 users using the default .NTFS-3G/UserMapping file or a > custom usermapping file with the usermapping mount option. > > I used this feature a long time ago, and the format for the usermapping > file is documented in the ntfs-3g man page. > > As is said at the beginning of this reply, read the ntfs-3g man page! > > HTH, > > Chuck > > On 11/26/2021 3:29 AM, lists.deb...@netc.eu wrote: > > Hello to all, > > I have a dual boot PC with Windows 10 and Debian 11 > > This PC has 2 drives, one SSD that has both operating systems and a > > HDD where I store all other files (documents, music, images, ...) > > The goal is to share this HDD between Windows and Debian. To do it, I > > added the following line to the fstab file: > > > > UUID=ACB23705B236D414 /mnt/windows ntfs-3g defaults,umask=000 > > 0 0 > > > > the folders lount without any problem to /mnt/windows, all with the > > correct permission settings (rwx) : > > > > $ ls -l /mnt/windows/ > > total 80 > > drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN' > > drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation > > drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents > > -rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp > > drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images > > drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music > > drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information' > > drwxrwxrwx 1 root root 40960 21 nov. 22:22 Downloads > > drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos > > > > My problem is that in some sub folders, I'm not getting the write > > ("w") permission. For example on the "Documents" one: > > > > $ ls -l /mnt/windows/Documents/ > > total 117 > > drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1 > > -rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp > > -rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini > > dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2 > > drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public > > drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3 > > dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan > > -rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db > > drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote' > > > > Most of the folders are OK, but I ave User2 and San that doesn't have > > the write ("w") permission... > > Do you have any idea on whats going on? > > Thanks in advance for all the help, > > Berst regards, > > Marc > >
Impossible to give "write" permission on a sub folder
Hello to all, I have a dual boot PC with Windows 10 and Debian 11 This PC has 2 drives, one SSD that has both operating systems and a HDD where I store all other files (documents, music, images, ...) The goal is to share this HDD between Windows and Debian. To do it, I added the following line to the fstab file: > > UUID=ACB23705B236D414 /mnt/windows ntfs-3g defaults,umask=000 0 0 > the folders lount without any problem to /mnt/windows, all with the correct permission settings (rwx) : > > $ ls -l /mnt/windows/ > > total 80 > > drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN' > > drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation > > drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents > > -rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp > > drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images > > drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music > > drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information' > > drwxrwxrwx 1 root root 40960 21 nov. 22:22 Downloads > > drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos > My problem is that in some sub folders, I'm not getting the write ("w") permission. For example on the "Documents" one: > > $ ls -l /mnt/windows/Documents/ > > total 117 > > drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1 > > -rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp > > -rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini > > dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2 > > drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public > > drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3 > > dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan > > -rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db > > drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote' > Most of the folders are OK, but I ave User2 and San that doesn't have the write ("w") permission... Do you have any idea on whats going on? Thanks in advance for all the help, Berst regards, Marc
Impossible de donner la permission "write" à un sous dossier
Bonjour à tous, Je reviens encore une fois vous demander de l'aide. J'ai un ordinateur dual boot Windows 10 / Debian 11. Ce PC possède 2 disques, une SSD avec les 2 systèmes et un HDD où sont les autres fichiers (documents, images, musique,...). Mon idée est de partager ce HDD entre Windows et Debian. Pour le faire, dans mon fichier fstab, j'ai rajouté la ligne suivante : > UUID=ACB23705B236D414 /mnt/windows ntfs-3g defaults,umask=000 0 0 Les dossiers présents montent correctement dans le dossier /mnt/windows : > $ ls -l /mnt/windows/ > total 80 > drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN' > drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation > drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents > -rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp > drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images > drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music > drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information' > drwxrwxrwx 1 root root 40960 21 nov. 22:22 Téléchargements > drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos Tout y est et les permissions sont bien "rwxrwxrwx". Mon problème est dans le dossier Documents : > $ ls -l /mnt/windows/Documents/ > total 117 > drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1 > -rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp > -rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini > dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2 > drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public > drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3 > dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan > -rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db > drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote' En comparant User1 avec User2, on voit bien que User1 a les mêmes permissions que Documents, mas User2 ne permets pas l'écriture, ce qui m'empêche de gérer ce dossier depuis Debian... Auriez-vous une idée de pourquoi les permissions de ces sous-dossiers ne sont pas les mêmes ? Je vous remercie par avance de vos retours, Cordialement, Marc
Problème avec umask dans fstab sur un sous-dossier
Bonjour à tous, Je reviens encore une fois vous demander de l'aide. J'ai un ordinateur dual boot Windows 10 / Debian 11. Ce PC possède 2 disques, une SSD avec les 2 systèmes et un HDD où sont les autres fichiers (documents, images, musique,...). Mon idée est de partager ce HDD entre Windows et Debian. Pour le faire, dans mon fichier fstab, j'ai rajouté la ligne suivante : UUID=ACB23705B236D414 /mnt/windows ntfs-3g defaults,umask=000 0 0 Les dossiers présents montent correctement dans le dossier /mnt/windows : $ ls -l /mnt/windows/ total 80 drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN' drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents -rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information' drwxrwxrwx 1 root root 40960 21 nov. 22:22 Téléchargements drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos Tout y est et les permissions sont bien "rwxrwxrwx". Mon problème est dans le dossier Documents : $ ls -l /mnt/windows/Documents/ total 117 drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1 -rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp -rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2 drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3 dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan -rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote' En comparant User1 avec User2, on voit bien que User1 a les mêmes permissions que Documents, mas User2 ne permets pas l'écriture, ce qui m'empêche de gérer ce dossier depuis Debian... Auriez-vous une idée de pourquoi les permissions de ces sous-dossiers ne sont pas les mêmes ? Je vous remercie par avance de vos retours, Cordialement, Marc
Re: apt install : commande introuvable
Bonjour, Je viens de trouver la cause. Dans un autre forum, quelqu"un a trouvé l'erreur : It seems strange that sudo lists in its error message the two arguments together with the program name "apt". So probably the perceived blanks in the failing line are not whitespace in the eyes of the shell parser. If i copy+paste your first (successful) sudo line into od, i get to see regular blank characters (ASCII 32 decimal): $ echo 'sudo apt install nfs-common' | od -c 000 s u d o a p t i n s t a l l 020 n f s - c o m m o n \n But the second (failing) line yields multi-byte UTF-8 characters instead: $ echo 'sudo apt install nfs-common' | od -c 000 s u d o a p t 342 200 203 i n s t a 020 l l 342 200 203 n f s - c o m m o n \n This is not my old enemy "Nbsp", which would be 302 240 (0xc2 0xa0). Il semble une problème de codage... De toute façon, merci de votre aide :) Bonne journée Le 2021-11-25 12:16, lists.deb...@netc.eu a écrit : > > Bonjour et merci de votre retour. > > > > Voici le résultat des commandes : > > > > $ sudo dpkg --list apt > Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder > | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements > |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais) > ||/ Nom Version Architecture Description > +++-==---= > ii apt 2.2.4 amd64 commandline package manager > > > > > > > > > $ sudo apt -v > apt 2.2.4 (amd64) > > > Par contre comme j'ai dit avant, je ne sais pas pourquoi la commande apt install a recommencé à macher. > En suivant un forum, j'ai essayé de faire $ sudo /usr/bin/apt update > > > > Ce qui a fonctionné (comme c'était le cas de "sudo apt update"). Et jusqu'après la commande $ sudo apt install a fonctionné. Voici un output : > > > > > $ sudo /usr/bin/apt update > Atteint :1 http://security.debian.org/debian-security bullseye-security InRelease > ... > Tous les paquets sont à jour. > > $ sudo apt install nfs-common > Lecture des listes de paquets... Fait > Construction de l'arbre des dépendances... Fait > Lecture des informations d'état... Fait > Les paquets supplémentaires suivants seront installés : > keyutils libnfsidmap2 rpcbind > Paquets suggérés : > open-iscsi watchdog > Les NOUVEAUX paquets suivants seront installés : > keyutils libnfsidmap2 nfs-common rpcbind > 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour. > Il est nécessaire de prendre 369 ko dans les archives. > Après cette opération, 1 215 ko d'espace disque supplémentaires seront utilisés. > Souhaitez-vous continuer ? [O/n] o > ... > > $ sudo apt install nfs-common > sudo: apt install nfs-common : commande introuvable > > > Ce que j'ai du mal a comprendre est-ce que maintenant la commande $ sudo apt install nfs-common fonctionne à nouveau, sans aucune manipulation de ma part... > > > > Avez-vous une idée de ce qui peut se passer ? > > > > Merci encore une fois > > > > > > > > > > Le 2021-11-25 10:39, Jean-Marc a écrit : > > > > > > bonjour Marc, > > > > Le 25/11/21 à 09:31, lists.deb...@netc.eu a écrit : > > > Bonjour à tous, Depuis ce matin je me suis rendu compte que la commande "apt install" ne marche plus sur mon ordinateur. J'ai testé plusieurs autres options (toujours en sudo) : apt update apt search __ apt upgrade apt show __ ... Et tous les commandes fonctionnent correctement, seul "apt install" qui me donne le retour "commande introuvable" :( Avez-vous une idée de ce qui peut bloquer ? Je vous remercie par avance de votre aide, Cordialement, Marc > > > > > > > Que donnent les commandes suivantes ? > > . le paquet apt est-il installé : > > dpkg --list apt > > > > . quelle est la commande apt : > > command -v apt > > > > > > . quelle est la version d'apt: > > apt --version > > > > > > -- > > Jean-Marc
Re: apt install : command not found
Oh my god, Nice found, thanks very much, it seams that you found the reason... Thank you !!! Nice day to you also Le 2021-11-25 12:34, Thomas Schmitt a écrit : > > Hi, > > lists.deb...@netc.eu wrote: > > To test I did "sudo apt install" and it worked > > [...] > > But just after I retried "apt install" and it not work. Here is all the output: > > [...] > > $ sudo apt install nfs-common > > Lecture des listes de paquets... Fait > > [...] > > $ sudo apt install nfs-common > > sudo: apt install nfs-common : commande introuvable > > Now it seems to work again... > > Any idea ? > > It seems strange that sudo lists in its error message the two arguments > together with the program name "apt". > So probably the perceived blanks in the failing line are not whitespace > in the eyes of the shell parser. > > If i copy+paste your first (successful) sudo line into od, i get to see > regular blank characters (ASCII 32 decimal): > > $ echo 'sudo apt install nfs-common' | od -c > 000 s u d o a p t i n s t a l l > 020 n f s - c o m m o n \n > > But the second (failing) line yields multi-byte UTF-8 characters instead: > > $ echo 'sudo apt install nfs-common' | od -c > 000 s u d o a p t 342 200 203 i n s t a > 020 l l 342 200 203 n f s - c o m m o n \n > > This is not my old enemy "Nbsp", which would be 302 240 (0xc2 0xa0). > > As hex it is 0xe2 0x80 0x83. I find it on > https://www.utf8-chartable.de/unicode-utf8-table.pl?start=8064=-=0x > as U+2003 which brings me to > https://www.compart.com/en/unicode/U+2003 > "Em Space" > "Em" seems to be a typographic width (size like in a fixed font ?) > https://en.wikipedia.org/wiki/Em_%28typography%29 > > I read about U+2003 in > https://en.wikipedia.org/wiki/Whitespace_character > "Also known as "mutton". Width of one em. U+2001 Em Quad is canonically > equivalent to this character; U+2003 is preferred. > HTML/XML named entity: , LaTeX: '\quad'" > > Nbsp gets produced on an unmodified xterm by the combined Shift + Space > keys. You will have to find out on your own how your keyboard (or paste > buffer ?) produces Em Space. > > > Have a nice day :) > > Thomas > >
Re: apt install : commande introuvable
Bonjour et merci de votre retour. Voici le résultat des commandes : $ sudo dpkg --list apt Souhait=inconnU/Installé/suppRimé/Purgé/H=à garder | État=Non/Installé/fichier-Config/dépaqUeté/échec-conFig/H=semi-installé/W=attend-traitement-déclenchements |/ Err?=(aucune)/besoin Réinstallation (État,Err: majuscule=mauvais) ||/ Nom Version Architecture Description +++-==---= ii apt 2.2.4 amd64 commandline package manager $ sudo apt -v apt 2.2.4 (amd64) Par contre comme j'ai dit avant, je ne sais pas pourquoi la commande apt install a recommencé à macher. En suivant un forum, j'ai essayé de faire $ sudo /usr/bin/apt update Ce qui a fonctionné (comme c'était le cas de "sudo apt update"). Et jusqu'après la commande $ sudo apt install a fonctionné. Voici un output : $ sudo /usr/bin/apt update Atteint :1 http://security.debian.org/debian-security bullseye-security InRelease ... Tous les paquets sont à jour. $ sudo apt install nfs-common Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : keyutils libnfsidmap2 rpcbind Paquets suggérés : open-iscsi watchdog Les NOUVEAUX paquets suivants seront installés : keyutils libnfsidmap2 nfs-common rpcbind 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 369 ko dans les archives. Après cette opération, 1 215 ko d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o ... $ sudo apt install nfs-common sudo: apt install nfs-common : commande introuvable Ce que j'ai du mal a comprendre est-ce que maintenant la commande $ sudo apt install nfs-common fonctionne à nouveau, sans aucune manipulation de ma part... Avez-vous une idée de ce qui peut se passer ? Merci encore une fois Le 2021-11-25 10:39, Jean-Marc a écrit : > > bonjour Marc, > > Le 25/11/21 à 09:31, lists.deb...@netc.eu a écrit : > > Bonjour à tous, Depuis ce matin je me suis rendu compte que la commande "apt install" ne marche plus sur mon ordinateur. J'ai testé plusieurs autres options (toujours en sudo) : apt update apt search __ apt upgrade apt show __ ... Et tous les commandes fonctionnent correctement, seul "apt install" qui me donne le retour "commande introuvable" :( Avez-vous une idée de ce qui peut bloquer ? Je vous remercie par avance de votre aide, Cordialement, Marc > > > > Que donnent les commandes suivantes ? > . le paquet apt est-il installé : > dpkg --list apt > > . quelle est la commande apt : > command -v apt > > > . quelle est la version d'apt: > apt --version > > > -- > Jean-Marc
Re: apt install : commande introuvable
Bonjour, Merci du retour :) Pour "which -a apt" $ which -a apt /usr/bin/apt /bin/apt Sinon j'ai des nouvelles : En suivant un forum, j'ai essayé de faire $ sudo /usr/bin/apt update Ce qui a fonctionné (comme c'était le cas de "sudo apt update"). Et jusqu'après la commande $ sudo apt install a fonctionné. Voici un output : $ sudo /usr/bin/apt update Atteint :1 http://security.debian.org/debian-security bullseye-security InRelease ... Tous les paquets sont à jour. $ sudo apt install nfs-common Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : keyutils libnfsidmap2 rpcbind Paquets suggérés : open-iscsi watchdog Les NOUVEAUX paquets suivants seront installés : keyutils libnfsidmap2 nfs-common rpcbind 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 369 ko dans les archives. Après cette opération, 1 215 ko d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o ... $ sudo apt install nfs-common sudo: apt install nfs-common : commande introuvable Ce que j'ai du mal a comprendre est-ce que maintenant la commande $ sudo apt install nfs-common fonctionne à nouveau, sans aucune manipulation de ma part... Avez-vous une idée de ce qui peut se passer ? Le 2021-11-25 11:22, Erwan David a écrit : > > Le 25/11/2021 à 10:58, lists.deb...@netc.eu a écrit : > > Bonjour et merci de votre retour. > > Le paquet est installé : > > $ dpkg -l | grep "ii apt " > > ii apt > > 2.2.4 amd64 commandline package manager > > et semble être dans sa place : > > $ ls -l /usr/bin/apt > > -rwxr-xr-x 1 root root 18664 10 juin 10:53 /usr/bin/apt > > Comme j'ai dit dans mon mail, toutes les autres options fonctionnent, la > > seule que pose soucis est l'option install... > > Et quel est le message d'erreur complet ? (en donnant la ligne de > commande complète). > Aussi which -a apt, pour vérifier qu'il n'y a pas un alias ou wrapper > mal faits qui se mettraient en travers > >
Re: apt install : command not found
Hello and thanks for the reply. PATH seems corrects I think: $ echo $PATH /usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games "/usr/bin/apt update" worked, the same as "apt update", which always work. To test I did "sudo apt install" and it worked But just after I retried "apt install" and it not work. Here is all the output: $ sudo /usr/bin/apt update Atteint :1 http://security.debian.org/debian-security bullseye-security InRelease ... Tous les paquets sont à jour. $ sudo apt install nfs-common Lecture des listes de paquets... Fait Construction de l'arbre des dépendances... Fait Lecture des informations d'état... Fait Les paquets supplémentaires suivants seront installés : keyutils libnfsidmap2 rpcbind Paquets suggérés : open-iscsi watchdog Les NOUVEAUX paquets suivants seront installés : keyutils libnfsidmap2 nfs-common rpcbind 0 mis à jour, 4 nouvellement installés, 0 à enlever et 0 non mis à jour. Il est nécessaire de prendre 369 ko dans les archives. Après cette opération, 1 215 ko d'espace disque supplémentaires seront utilisés. Souhaitez-vous continuer ? [O/n] o ... $ sudo apt install nfs-common sudo: apt install nfs-common : commande introuvable Now it seems to work again... Any idea ? Le 2021-11-25 10:22, Philipp Ewald a écrit : > > is your "$PATH" right? > > you can check this with: > > echo $PATH > > > Does "/usr/bin/apt update" work? > > > kind regards > > On 11/25/21 10:04 AM, lists.deb...@netc.eu wrote: > > Hello to all, After this morning I realize that command "apt install" isn't working anymore on my PC. I already used a few days ago... I've tried several other options (always with sudo): apt update apt search __ apt upgrade apt show __ ... And they all work as intended, only "apt install" is giving me the output "command not found" :( Do you have any idea on what might be the problem? Thanks all in advance for the help, Best regards, Marc > > > > -- > Philipp Ewald > Administrator > > DigiOnline GmbH, Probsteigasse 15 - 19, 50670 Köln > Fax: +49 221 6500-690, E-Mail: philipp.ew...@digionline.de > > AG Köln HRB 27711, St.-Nr. 5215 5811 0640 > Geschäftsführer: Werner Grafenhain > > Informationen zum Datenschutz: www.digionline.de/ds > >
Re: apt install : commande introuvable
Bonjour et merci de votre retour. Le paquet est installé : $ dpkg -l | grep "ii apt " ii apt 2.2.4 amd64 commandline package manager et semble être dans sa place : $ ls -l /usr/bin/apt -rwxr-xr-x 1 root root 18664 10 juin 10:53 /usr/bin/apt Comme j'ai dit dans mon mail, toutes les autres options fonctionnent, la seule que pose soucis est l'option install... Le 2021-11-25 10:21, Sébastien NOBILI a écrit : > > Bonjour, > > Le 2021-11-25 09:31, lists.deb...@netc.eu a écrit : > > Et tous les commandes fonctionnent correctement, seul "apt install" qui > > me donne le retour "commande introuvable" :( > > > > Avez-vous une idée de ce qui peut bloquer ? > > Est-ce que le binaire est à sa place ? > > ls -l /usr/bin/apt > > Est-ce que le paquet `apt` est bien installé ? > > dpkg -l | grep "ii apt " > > Sébastien > >
apt install : command not found
Hello to all, After this morning I realize that command "apt install" isn't working anymore on my PC. I already used a few days ago... I've tried several other options (always with sudo): apt update apt search __ apt upgrade apt show __ ... And they all work as intended, only "apt install" is giving me the output "command not found" :( Do you have any idea on what might be the problem? Thanks all in advance for the help, Best regards, Marc
apt install : command not found
Hello to all, After this morning I realize that command "apt install" isn't working anymore on my PC. I already used a few days ago... I've tried several other options (always with sudo): apt update apt search __ apt upgrade apt show __ ... And they all work as intended, only "apt install" is giving me the output "command not found" :( Do you have any idea on what might be the problem? Thanks all in advance for the help, Best regards, Marc
problem with fstab and umask
Hello to all, I have a dual boot PC with Windows 10 and Debian 11 This PC has 2 drives, one SSD that has both operating systems and a HDD where I store all other files (documents, music, images, ...) The goal is to share this HDD between Windows and Debian. To do it, I added the following line to the fstab file: UUID=ACB23705B236D414 /mnt/windows ntfs-3g defaults,umask=000 0 0 the folders lount without any problem to /mnt/windows, all with the correct permission settings (rwx) : $ ls -l /mnt/windows/ total 80 drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN' drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents -rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information' drwxrwxrwx 1 root root 40960 21 nov. 22:22 Downloads drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos My problem is that in some sub folders, I'm not getting the write ("w") permission. For example on the "Documents" one: $ ls -l /mnt/windows/Documents/ total 117 drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1 -rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp -rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2 drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3 dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan -rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote' Most of the folders are OK, but I ave User2 and San that doesn't have the write ("w") permission... Do you have any idea on whats going on? Thanks in advance for all the help, Berst regards, Marc
apt install : commande introuvable
Bonjour à tous, Depuis ce matin je me suis rendu compte que la commande "apt install" ne marche plus sur mon ordinateur. J'ai testé plusieurs autres options (toujours en sudo) : apt update apt search __ apt upgrade apt show __ ... Et tous les commandes fonctionnent correctement, seul "apt install" qui me donne le retour "commande introuvable" :( Avez-vous une idée de ce qui peut bloquer ? Je vous remercie par avance de votre aide, Cordialement, Marc
Problème avec umask sur un disque NTFS
Bonjour à tous, Je reviens encore une fois vous demander de l'aide. J'ai un ordinateur dual boot Windows 10 / Debian 11. Ce PC possède 2 disques, une SSD avec les 2 systèmes et un HDD où sont les autres fichiers (documents, images, musique,...). Mon idée est de partager ce HDD entre Windows et Debian. Pour le faire, dans mon fichier fstab, j'ai rajouté la ligne suivante : UUID=ACB23705B236D414 /mnt/windows ntfs-3g defaults,umask=000 0 0 Les dossiers présents montent correctement dans le dossier /mnt/windows : $ ls -l /mnt/windows/ total 80 drwxrwxrwx 1 root root 4096 14 nov. 20:20 '$RECYCLE.BIN' drwxrwxrwx 1 root root 4096 24 nov. 15:59 CloudStation drwxrwxrwx 1 root root 4096 21 nov. 11:44 Documents -rwxrwxrwx 1 root root 8192 25 juin 08:15 DumpStack.log.tmp drwxrwxrwx 1 root root 4096 22 nov. 20:41 Images drwxrwxrwx 1 root root 4096 24 nov. 11:53 Music drwxrwxrwx 1 root root 8192 23 nov. 06:21 'System Volume Information' drwxrwxrwx 1 root root 40960 21 nov. 22:22 Téléchargements drwxrwxrwx 1 root root 4096 21 nov. 19:44 Videos Tout y est et les permissions sont bien "rwxrwxrwx". Mon problème est dans le dossier Documents : $ ls -l /mnt/windows/Documents/ total 117 drwxrwxrwx 1 root root 16384 24 nov. 15:59 User1 -rwxrwxrwx 1 root root 0 26 nov. 2020 Default.rdp -rwxrwxrwx 1 root root 432 11 mars 2021 desktop.ini dr-xr-xr-x 1 root root 40960 24 nov. 15:59 User2 drwxrwxrwx 1 root root 16384 24 nov. 16:00 Public drwxrwxrwx 1 root root 4096 24 nov. 15:59 User3 dr-xr-xr-x 1 root root 20480 21 nov. 12:05 Scan -rwxrwxrwx 1 root root 18432 4 déc. 2016 Thumbs.db drwxrwxrwx 1 root root 0 16 nov. 23:13 'Unified Remote' En comparant User1 avec User2, on voit bien que User1 a les mêmes permissions que Documents, mas User2 ne permets pas l'écriture, ce qui m'empêche de gérer ce dossier depuis Debian... Auriez-vous une idée de pourquoi les permissions de ces sous-dossiers ne sont pas les mêmes ? Je vous remercie par avance de vos retours, Cordialement, Marc
Re: Problème pour accèder au disque D en dual boot avec Windows 10
Bonjour à tous, Je suis désolé pour l'énorme délai de réponse, mais je me suis embarqué dans mon changement de SSD. Comme prévu par Didier, cela n'a pas résolu le problème, même si j'ai fait une installation propre de mes 2 systèmes : Windows et Debian. Par contre la bonne nouvelle est-ce que j'ai réussi à accéder aux fichiers : j'ai eu une intuition que l'erreur pouvait venir de l'outil de synchronisation avec mon NAS (Synology Drive Client, installé sur mon Windows). J'ai donc copié tous mes documents manuellement du NAS vers mon HDD, et maintenant j'ai accès à tous les fichiers :) Je vais maintenant paramétrer le montage automatique au démarrage et je dois partir bien pour mon dual boot :) Merci beaucoup de votre aide Le 2021-11-10 13:43, didier gaumet a écrit : > > > > Le mercredi 10 novembre 2021 à 13:14 +0100, lists.deb...@netc.eu a > écrit : > > Bonjour Didier, > > > > Je viens de tester les plugins : > > J'ai copié les plugins systcomp (ntfs-plugin-8017.so) et dedup > > (ntfs-plugin-8013.so) dans le dossier /usr/lib64/ntfs-3g/ (j'ai > > du créer le dossier ntfs-3g). > > > > Après avoir redémarré mon PC j'ai toujours le même erreur. > > Je ne suis pas affirmatif mais il est possible que le répertoire > /usr/lib64 ne soit utilisé que sur des installations en double > architecture 32+64 bits, peut-être en 64 bits purs, faut-il copier les > plugins dans /usr/lib/ntfs-3g/. Je viens de vérifier: je n'ai quasiment > rien dans /usr/lib64 (PC avec Debian en 64 bits purs, pas en double > architecture 32+64) > > Tu ne risques rien à faire le test en copiant les plugins dans > /usr/lib/ntfs-3g/... > > > Je pense que je vais essayer de désactiver la compression pour voir > > ce qui cela va donner... Je vous tiens au courant une fois les > > manipulations terminés. > > > >
Re: Problème pour accèder au disque D en dual boot avec Windows 10
Bonjour Didier, Je viens de tester les plugins : J'ai copié les plugins systcomp (ntfs-plugin-8017.so) et dedup (ntfs-plugin-8013.so) dans le dossier /usr/lib64/ntfs-3g/ (j'ai du créer le dossier ntfs-3g). Après avoir redémarré mon PC j'ai toujours le même erreur. Je pense que je vais essayer de désactiver la compression pour voir ce qui cela va donner... Je vous tiens au courant une fois les manipulations terminés. Le 2021-11-09 21:31, didier gaumet a écrit : > > > Pour ne pas te laisser dans la nature, j'ai parcouru le README d'1 des > 3 plugins: les fichiers zip contiennent les sources et les plugins > binaires (extension *.so*). Ceux-ci sont à copier dans /usr/lib64/ntfs- > 3g/ dans le cas d'un OS linux 64 bits > > >
Re: Problème pour accèder au disque D en dual boot avec Windows 10
Bonjour, Hier soir j'ai essayé de faire les modifications que nous avons discuté : Dans un 1er temps j'ai essayé de désactiver le fastboot, mais l'option n'était pas présente dans Windows. J'ai donc du réactiver l'hibernation (avec powercfg dans Powershell), et j'ai pu voir l'option dans Windows. J'ai donc désactivé fastboot, et ensuite j'ai désactivé à nouveau l’hibernation. Malheureusement il n'y a pas eu de changements dans le côté Debian (toujours les mêmes messages 'unsupported reparse point'). Par contre j'ai une autre question : En profitant de ce nouveau dual boot sur mon PC, je me suis décidé de faire un upgrade et changer ma SSD, en remplaçant mon SSD de 128GO pour une nouvelle de 512GO (et ajouter de la mémoire RAM au passage). L'idée c'est d'avoir 2 partitions de ~256GO, une pour chaque système d'exploitation. Je me pose donc la question si dans ce cas de figure, sauriez-vous dire si je pourrais profiter de cette MAJ pour résoudre mon problème d'accès ? C'est à dire, j'avais pensé à cloner mon ancienne SSD, mais si vous pensez qu'en faisant une nouvelle installation (d'un ou des 2 systèmes) je pourrais optimiser mon PC, je pourrais profiter de l'opportunité... Qu'en pensez-vous ? Avez-vous des conseils à me donner ? Merci encore une fois de votre aide, Cordialement, Marc Le 2021-11-08 12:02, didier gaumet a écrit : > > > > Le lundi 08 novembre 2021 à 11:06 +0100, lists.deb...@netc.eu a écrit : > > > > Merci Didier, > > > > Petite précision, tu parles de fastboot ou hibernation ? > > > Je pose la question car j'ai déjà fait la manip dans powershell, mais > > je pense que avec la commande "powercfg -hibernate off", mais je > > pense qu'il est pareil. > > > > Tu as raison, je suis allé un peu vite sans bien me rappeler. > Si je comprends bien, il y a 3 modes démarrage dans les Windows récents > (à froid, réveil d'hibernation, Fast Startup) > https://docs.microsoft.com/en-us/windows-hardware/drivers/kernel/distinguishing-fast-startup-from-wake-from-hibernation > > Tu as déjà déactivé le 2ème mode (powercfg), il reste le 3ème > > Comment le Fast Startup (lien en anglais) avec les outils graphiques > d'administration Microsoft: > https://winaero.com/how-to-disable-or-enable-fast-startup-in-windows-8-1/ > ou avec le powershell en modifiant une clé de régistre > https://mspscripts.com/disable-windows-10-fast-boot-via-powershell/ > > ou en vérifiant peut-être que tu peux le faire avec powercfg (je n'ai > pas épulché toutes les options, y en a certaines qui pourraient être > adaptées) > https://docs.microsoft.com/fr-fr/windows-hardware/design/device-experiences/powercfg-command-line-options > > > Sinon je n'ai pas la main maintenant, mais si je me souviens bien, > > dans la BIOS il y a aussi une option Fastboot (je pense activé). Tu > > penses que cela pourrait avoir une incidence ? > > Autre question : pourquoi le dossier des images n'est pas affecté ? > > Que le dossier documents ? > [...] > > je suppose que tes difficultés à lire/accéder certaines données plutôt > que d'autres pourraient résulter d'un état insistant du système de > fichiers sous depuis Linux (possiblement que quand il démarre, en, > arrière plan, Windows remet en ordre certaines choses) > > >
Re: Problème pour accèder au disque D en dual boot avec Windows 10
Merci Didier, Petite précision, tu parles de fastboot ou hibernation ? Je pose la question car j'ai déjà fait la manip dans powershell, mais je pense que avec la commande "powercfg -hibernate off", mais je pense qu'il est pareil. Sinon je n'ai pas la main maintenant, mais si je me souviens bien, dans la BIOS il y a aussi une option Fastboot (je pense activé). Tu penses que cela pourrait avoir une incidence ? Autre question : pourquoi le dossier des images n'est pas affecté ? Que le dossier documents ? Merci encore une fois, Cordialement, Marc Le 2021-11-08 10:45, didier gaumet a écrit : > > > > En vrac: > > - tes ennuis *pourraient* provenir du fonctionneement par défaut des > Windows récents: quand tu éteins/redémarre ton PC, par défaut, Windows > cherche à minimiser le temps de démarrage au prochain boot. C'est > l'option Fastboot et il est préférable de la désactiver car ça a une > incidence sur l'état des systèmes de fichiers Microsoft. > Sous Windows dans une fenêtre Powershell (je ne sais plus si ça > s'appelle comme ça, un terminal quoi) en mode *administrateur*, tu > tapes: > powercfg /h off > C'est une manip à faire une seule fois, le temps de démarrage de > Windows ne sera augmenté que de manière généralement négligeable mais > Windows laissera le système de fichiers dans un état plus propre pour > Linux > (cf man ntfs-3g) > > - tu n'as pas forcément besoin de déclarer ton "D:\" dans /etc/fstab > (si tu le fais il faut peut-être que tu donnes certaines options de > montage plus ou moins cruciales). > Tu peux simplement laisser un environnement de bureau moderne (dans > ton cas KDE / Plasma) monter le système de fichier quand tu cliques > dessus (il aura sûrement un nom bizarre, mais bon...) dans ton > gestionnaire de fichiers Dolphin (ça marche de la même manière pour les > disques fixes que pour les disques amovibles) > > > > >
Re: Problème pour accèder au disque D en dual boot avec Windows 10
Bonjour Basile, Didier, Je suis désolé pour la réponse tardive, mais le travail a été dur la semaine dernière. Entre-temps, j'ai pu faire quelques tests et j'ai des nouveaux éléments à partager. Voici les sorties de quelques commandes que j'ai pu exécuter : Après avoir monté le HDD avec "sudo mount -t ntfs /dev/sdb1 /mnt/hdd/" (j'ai aussi essayé avec "ntfs-3g") Si je fais "ls -l", j'ai tous les fichiers du dossier "/mnt/hdd/Documents" avec une message d'erreur : test.txt -> 'unsupported reparse point' (écrit en rouge) Par contre dans un autre dossier ("/mnt/hdd/Images"), je n'ai pas ces erreurs : IMG_20170429_172549288.jpg (écrit en vert) Sinon pour les autres informations que vous aviez demandé (je sépare les commandes pour meilleure lisibilité) : - sudo df -h /dev/sdb1 1,9T 1,5T 354G 82% /mnt/hdd - sudo fdisk /dev/sdb1 Bienvenue dans fdisk (util-linux 2.36.1). Les modifications resteront en mémoire jusqu'à écriture. Soyez prudent avant d'utiliser la commande d'écriture. Le périphérique contient déjà une signature « ntfs »; elle sera supprimée par une commande d'écriture. Consultez la page man de fdisk(8) et l'option --wipe pour plus de détails. Le périphérique ne contient pas de table de partitions reconnue. Création d'une nouvelle étiquette pour disque de type DOS avec identifiant de disque 0xcc4dd61e. Commande (m pour l'aide) : - sudo fdisk -l Disque /dev/sda : 119,24 GiB, 128035676160 octets, 250069680 secteurs Modèle de disque : KINGSTON SKC400S Unités : secteur de 1 × 512 = 512 octets Taille de secteur (logique / physique) : 512 octets / 512 octets taille d'E/S (minimale / optimale) : 512 octets / 512 octets Type d'étiquette de disque : dos Identifiant de disque : 0x57c5c42d Périphérique Amorçage Début Fin Secteurs Taille Id Type /dev/sda1 * 2048 206847 204800 100M 7 HPFS/NTFS/exFAT /dev/sda2 206848 203368447 203161600 96,9G 7 HPFS/NTFS/exFAT /dev/sda3 248285184 250066943 1781760 870M 27 TFS WinRE masquée /dev/sda4 203370494 248285183 44914690 21,4G 5 Étendue /dev/sda5 203370496 246284287 42913792 20,5G 83 Linux /dev/sda6 246286336 248285183 1998848 976M 82 partition d'échange Linux / Solaris Les entrées de la table de partitions ne sont pas dans l'ordre du disque. Disque /dev/sdb : 1,82 TiB, 2000398934016 octets, 3907029168 secteurs Modèle de disque : ST2000DM006-2DM1 Unités : secteur de 1 × 512 = 512 octets Taille de secteur (logique / physique) : 512 octets / 4096 octets taille d'E/S (minimale / optimale) : 4096 octets / 4096 octets Type d'étiquette de disque : dos Identifiant de disque : 0x91c2b506 Périphérique Amorçage Début Fin Secteurs Taille Id Type /dev/sdb1 2048 3907026943 3907024896 1,8T 7 HPFS/NTFS/exFAT - En ce que concerne le fichier fstab, je n'ai pas pu noter son contenu, mais il n'a que quelques lignes, j'ai seulement ajouté le "auto-mount" de mon NAS. Il n'y a rien que concerne mon HDD. Qu'en pensez-vous de ces erreurs ? Avez-vous des idées que pourraient aider ? Merci encore une fois de votre aide, Cordialement, Marc Le 2021-11-02 12:00, didier.gau...@gmail.com a écrit : > > Le mardi 02 novembre 2021 à 10:34 +0100, Marcelo Malzyner a écrit : > > Bonjour Didier, > > > > Merci de votre retour. > > > > Pour clarifier un peu mon soucis, j'ai bien parlé de keepass car > > c'est comme ça que j'ai trouvé le problème. > > OK, Keepass2, pas KeepassX ou KeepassXC > > > Mon soucis est plutôt le > > fait qu'il n'arrive pas à "trouver" les fichiers qui sont dans mon > > disque "D". J'arrive bien à "charger" la base keepass, mais pas à > > l'ouvrir, car l'application ne voit pas le fichier clé. > > - Ce que tu appelles "D:\" c'est formaté en quoi? FAT, NTFS, exFAT? > Basile t'a demandé le résultat de la commande mount dans un terminal, > c'est entre autres pour voir quel le système de fichier utilisé > > - si tu pouvais faire dans un terminal un > file REMPLACE_CECI_PAR_LE_NOM_COMPLET_DU_FICHIER_CLEF > ls -al REMPLACE_CECI_PAR_LE_NOM_COMPLET_DU_FICHIER_CLEF > ça pourrait aussi nous donner des idées > > > Autre chose que je ne comprends pas bien : pourquoi lors que j'ai > > copié mon fichier, il me parle de lien symbolique ? > > - Soit tu as cru copier un fichier mais tu as créé un lien > - Soit le fichier que tu as copié est lui-même un lien et tu as copié > ce lien > > explication Wikipedia sur les liens symbolyques: > https://fr.wikipedia.org/wiki/Lien_symbolique > > > Encore une fois, je suis désolé de la confusion, mais dans mon cas > > particulier il s'agit bien des disques différents, pas de partitions > > d'un même disque. Une SSD
Re: Imprimante scanner
Moi aussi, J'ai une hp officejet pro 6960 et l'imprimante et le scanner fonctionnent correctement. Je viens de faire mon installation de debian bullseye (non free) et je n'ai pas fait de manipulation particulière. Le 06/11/2021 à 19:08:30, Erwan David a écrit : > > Le 06/11/2021 à 17:52, Michel a écrit : > Le 06/11/2021 à 17:40, Erwan David a écrit : >> Le 06/11/2021 à 17:02, Michel a écrit : >>> Bonjour, >>> >>> Quel marque / modèle de combiné imprimante laser N et scanner est >>> opérationnel sous Debian Bullseye sans batailler? >>> >>> J'ai une HP Laserjet Pro MFP M28-M31 avec laquelle j'avais bataillé pour >>> faire fonctionner le scanner sous Buster, et depuis la mise à jour en >>> Bullseye, c'est à nouveau la galère: impression ok mais pas de scan >>> possible. >>> >>> Merci de vos retours. >>> >>> >> J'ai une HP LaserJet Pro MFP m125nw qui marche très bien avec hplip. Il >> y a quand même un blob binaire à installer à chaque mise à jour de >> hplip, mais c'est intégré dans les outils HP >> > J'ai aussi fait les mises à jour depuis les outils HP, mais le scanner > est toujours inopérant. > > Je croise les doigts, mais pour mon modèle ça marche en testing depuis je crois 2017... Je scanne avec xsane au cas où ça joue.
Problème pour accèder au disque D en dual boot avec Windows 10
Bonjour à tous, J'ai rencontre quelques soucis avec ma nouvelle installation de Debian sur mon PC, je me permets de venir vous demander de l'aide dans l'espoir de réussir à trouver une solution. Sur mon PC où j'avais installé Windows 10, j'ai 2 disques : SSD 128GB (C:\) où j'ai Windows 10, et maintenant Debian 11.1 (KDE) en dual boot un disque dur D:\ 2TB où j'ai tous mes fichiers Dans un premier temps tout semble bien fonctionner, j'arrive à ouvrir Dolphin et je trouve tous mes fichiers : Mes fichiers Debian sur sa partition dans C:\ Les fichiers présents dans D:\ dans la rubrique tous les disques de arborescence à gauche. J'arrive même à ouvrir des photos et écouter quelques musiques qui sont dans le D:\. Le problème est apparu quand j'ai installé KeePassXC : pour ouvrir la base j'ai besoin d'un mot de passe et d'un fichier clé, qui se trouve dans D:\. Quand j'essaye d'ouvrir ma base, il me dit que le fichier clé n'existe pas. Pourtant je le bien choisi avec une fenêtre de choix de fichier. Pour tester, j'ai essayé de le copier vers "Mes documents" (dossier dans Debian - clique droit copier/coller dans Dolphin), mais j'ai le même soucis. J'ai pensé qu'il peut donc être un soucis de permission. Avec le terminal, j'ai essayé de faire chmod 777 /Documents/'mon fichier.pdf', mais j'ai une message que me dit qu'il est impossible de changer les permissions d'un lien symbolique ! Est-c que quelqu'un aurait une idée de ce qui peut se passer ? Je vous remercie par avance de votre aide, Cordialement, Marc
Re: Milagros que solo ocurren con GNU/Linux.
David Francos (XayOn) wrote: ¿Aguanto un poco con stable hasta que la nueva testing deje de ser unstable (Cuando lenny pase a stable y la nueva testing llegue)? O tendre pocos (no me importa tener algunos :P) problemas instalando la nueva testing? Testing sigue siendo testing, lo que pasa es que en congelado no va a entrar cosas importantes. Dicen que lo único que podría cambiar en OpenJDK. Así que o instalas Sid o Sid. :) De todas formas, la estabilización de Lenny debería ser cosa de unos meses, así que no veo mucho problema estar congelado ese tiempo. :) -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Directory for bash profile snippets?
Hi, I am thinking about where would be the right place to put in some systemwide (not user dependent, though the problems stays nearly the same, with /home/user instead of /etc) snippets for bash, which depent upon existence of a package. For example if I would like fbi to alwyas be called with the same parameters, then I would define an alias in a file (/foo.d/fbi-alias) like: #!/bin/bash alias fbi='fbi -switch1 -switch2 $@' and would like to source the file upon bash start. So there seem to be 2 problems, now that I am thinking about it: 1. Is there a possibility to drop such snippets for bash (/etc/bash_completion.d does not seem to be the right thing)? 2. How do I tell bash to source those snippets upon start? Until now I used something like: /etc/bash.bashrc: [... original debian stuff ...] if [ -r /etc/bash.bashrc.local ]; then . /etc/bash.bashrc.local fi But I don't like the idea to have to change the original bashrc, which is problematic when installing new bash packages. W. la Tendresse -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Webbased bookmark managers
Hi, I would like to install a webbased bookmark manager on my server, any comments appreciated. Here is my list of requisites to such a program: 1. Open Source (of course) 2. Using SQL databse for data storage (PostgreSQL preferred) 3. Does not simply use folders for categories, but inheritable tags, meaning: - Any bookmarks can belong to MORe than 1 category. - There is a global tree of categories - If you have a tag-tree like this for categories: main-category1: sub-category1 sub-category2 main-category2: sub-category2 (YES, the same as the upper one!) sub-category3 and ask for bookmarks from main-category2, you get anything from main-category2 + sub-category2 + sub-category3 4. Multiuser (per user bookmarks + public bookmarks) 5. Export to browsers (not necesseraly though, if SQL databse used.) As stated above, any suggestions welcome. The only one I know is scuttle (http://sourceforge.net/projects/scuttle/) though I did not take a look at it yet. Thanks in advance. W. la Tendresse -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]
Creating packages with changed configuration + using SCM for configs
Hi, I am new to the list (at least as poster), therefore my first words: thanx to all people who continiously read and help others on the list. I hope that I can join soon, too. I am setting up the needed infrastructure right now... Now to my problem: I have installed debian on several PCs and a KuroBox ( http://www.kurobox.com/ , neat and siltne little gear ...). The more PCs I use, the more difficult it gets to maintain them. So I would like to create configured deb packages, packages with local changes made(examples: domainnames, bash profiles, screenrc). What I absolutely do not want, is to build new packages everytime a new version gets released. Is there a way to build meta-packages for configuration files, that depend on the real packages? (for example a screen-configured package which (pre-?)depends on screen). The second problem is I would like to track the changes made to the configuration files in a svn repository, any packages which micht be helpful for that task? OK, I hope i made it clear what I mean and want, if not blame me! CU, W. la Tendresse -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]