{"id":1626,"date":"2021-07-11T17:19:13","date_gmt":"2021-07-11T15:19:13","guid":{"rendered":"https:\/\/vitocafazzo.it\/site_Wp\/?p=1626"},"modified":"2021-09-25T15:47:48","modified_gmt":"2021-09-25T13:47:48","slug":"gl-mini-guida-mount","status":"publish","type":"post","link":"https:\/\/vitocafazzo.it\/site_Wp\/2021\/07\/11\/gl-mini-guida-mount\/","title":{"rendered":"GL Mini guida &#8211; Mount"},"content":{"rendered":"\n<p class=\"has-text-align-center wp-block-paragraph\" id=\"block-42c82295-acb8-40d7-9640-395cc17a8001\"><a href=\"https:\/\/vitocafazzo.it\/site_Wp\/appunti-gnu-linux\/\"><br>Torna all&#8217;elenco <strong>GNU\/Linux<\/strong><\/a><\/p>\n\n\n\n<div id=\"block-b4abf350-6451-4328-a5be-c0308ab903ad\" class=\"wp-block-image\"><figure class=\"aligncenter\"><img decoding=\"async\" src=\"https:\/\/vitocafazzo.it\/site_Wp\/wp-content\/uploads\/2021\/07\/TT_GnuLinux.jpg\" alt=\"Questa immagine ha l'attributo alt vuoto; il nome del file \u00e8 TT_GnuLinux.jpg\"\/><\/figure><\/div>\n\n\n\n<h3 class=\"wp-block-heading\" id=\"block-ac59a477-7492-4bc4-9b4f-8c6ff0afecbd\">Montaggio dischi all\u2019avvio<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"has-inline-color has-vivid-red-color\">Creare i punti di mount<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo mkdir \/media\/DISCOextX<br>sudo mkdir \/media\/DISCOnfts<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong><span class=\"has-inline-color has-vivid-red-color\">Aggiungere alla fine del file <em>etc\/fstab<\/em> le righe relative ai dischi da montare<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>\/dev\/sda2 \/media\/DISCOextX extX defaults 0 0<br>\/dev\/sda3 \/media\/DISCOnfts ntfs auto,rw,exec,users,dmask=000,fmask=111,nls=utf8,uid=NOMEUTENTE 0 0<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><br><strong><span class=\"has-inline-color has-vivid-red-color\">Comandi utili<\/span><\/strong><\/p>\n\n\n\n<ul class=\"wp-block-list\"><li>conoscere i device: <code>sudo fdisk -l<\/code> oppure<code> df -h<\/code><\/li><li>conoscere gli uuid: <code>sudo blkid<\/code><\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"has-inline-color has-vivid-red-color\">Problemi<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Nel caso le cose non andassero a buon fine, per sistemare da terminale: <code>sudo nano \/etc\/fstab<\/code><\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Montaggio FTP al file system<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Installare <em>curlftpfs<\/em> se non presente nel sistema<\/li><li>Per montare il file system eseguire: <code>sudo curlftpfs -o user=UNAME:PSW ftp.DOMINIO \/media\/CARTELLA<\/code><\/li><li>Per smontare il file system eseguire: <code>sudo umount \/media\/CARTELLA<\/code><\/li><li>La cartella nella directory <em>\/media<\/em> deve essere creata precedentemente.<\/li><li>La cartella \u00e8 accessibile da <em>NEMO\/NAUTILUS<\/em> se l\u2019utente \u00e8 il root.<\/li><\/ul>\n\n\n\n<p class=\"wp-block-paragraph\"><strong>NOTA<\/strong>: Capire come criptare la PSW<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Montare partizione remota<\/h3>\n\n\n\n<ul class=\"wp-block-list\"><li>Installare <em>sshfs<\/em> se non presente nel sistema (eventualmente anche sul server)<\/li><li>Creare una directory come punto di mount: <code>mkdir \/media\/MYDIR<\/code><\/li><li>Montare la partizione: sudo <code>sshfs UTENTEREM@INDIRIZZOREM:\/DIRREM \/media\/MYDIRLOC -o allow_other<\/code>. Esempio: <code>sudo sshfs harlock@192.168.1.2:\/ \/media\/sshHarlock -o allow_other<\/code><\/li><li>Smontare la partizione: <code>sudo fusermount -u \/media\/MYDIR<\/code>. Esempio: <code>sudo fusermount -u \/media\/sshHarlock<br><\/code><\/li><\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Gestione errori<\/h3>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"has-inline-color has-vivid-red-color\">Errore mount partizioni NTFS<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Error mounting: <em>mount exited with exit code 13: $MFTMirr does not match $MFT (record 0).<br>Failed to mount \u2019\/dev\/sdb1\u2019: Input\/output error NTFS is either inconsistent, or there is a hardware fault, or it\u2019s a SoftRAID\/FakeRAID hardware. In the first case run chkdsk \/f on Windows then reboot into Windows twice<\/em>.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo fdisk -l<br>sudo ntfsfix \/dev\/sdbN<\/code><\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><strong><span class=\"has-inline-color has-vivid-red-color\">Problemi con alcune pendrive Fat32<\/span><\/strong><\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Spesso, dopo <em>errori di trasferimento file<\/em>, la <em>pendrive<\/em> viene montata in sola lettura, anche se ad operare \u00e8 il <em>root<\/em>. Ho risolto utilizzando <em>dosfsck<\/em> .<\/p>\n\n\n\n<p class=\"wp-block-paragraph\"><code>sudo fdisk -l<\/code><br><code>sudo dosfsck \/dev\/sdbXXX<\/code> (controllo errori)<br><code>sudo dosfsck -r \/dev\/sdbXXX<\/code> (riparare errori)<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Torna all&#8217;elenco GNU\/Linux Montaggio dischi all\u2019avvio Creare i punti di mount sudo mkdir \/media\/DISCOextXsudo mkdir \/media\/DISCOnfts Aggiungere alla fine del file etc\/fstab le righe relative ai dischi da montare \/dev\/sda2 \/media\/DISCOextX extX defaults 0 0\/dev\/sda3 \/media\/DISCOnfts ntfs auto,rw,exec,users,dmask=000,fmask=111,nls=utf8,uid=NOMEUTENTE 0 0 Comandi utili conoscere i device: sudo fdisk -l oppure df -h conoscere gli uuid: sudo [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[11],"tags":[],"class_list":["post-1626","post","type-post","status-publish","format-standard","hentry","category-gnulinux"],"_links":{"self":[{"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/posts\/1626","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/comments?post=1626"}],"version-history":[{"count":4,"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/posts\/1626\/revisions"}],"predecessor-version":[{"id":1634,"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/posts\/1626\/revisions\/1634"}],"wp:attachment":[{"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/media?parent=1626"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/categories?post=1626"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/vitocafazzo.it\/site_Wp\/wp-json\/wp\/v2\/tags?post=1626"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}