Come modificare il file fstab per montare automaticamente le partizioni di una memoria USB

Mer, 08/10/2014 - 22:18
Ritratto di Sargon6

Come modificare il file fstab per montare automaticamente le partizioni di una memoria USB

Inviato da Sargon6 0 commenti

Come modificare il file fstab per montare automaticamente le partizioni di una memoria USB

[fedora20xfce@localhost ~]$ cat /etc/fstab

#
# /etc/fstab
# Created by anaconda on Sat Aug 16 21:34:05 2014
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=839c0d85-eca2-4473-990e-7eb3a216e8ee /                       ext4    defaults        1 1
UUID=1ee9fcc5-c9fa-416a-a4e0-019afad347fa /mnt/Linux1             ext4    defaults        1 2
UUID=33678b95-575b-41c7-972e-4ff12119b2ac /mnt/Linux2             ext4    defaults        1 2
UUID=d7d7b8c3-866f-43ed-bf73-3eba88ec9374 /mnt/Linux3             ext4    defaults        1 2
UUID=f64a46fd-af55-486f-85ea-4f9832df53f7 /mnt/Linux5             ext4    defaults        1 2
UUID=77065cea-6fba-4d9b-b8d8-c84df3ad5da4 /mnt/Linux6             ext4    defaults        1 2
UUID=3f6f8843-5b28-45d0-af00-583dbce656be /mnt/Linux7             ext4    defaults        1 2
UUID=d85a5d3b-b7d8-459e-9b2b-4af5d02ec978 /mnt/Linux8             ext4    defaults        1 2
UUID=1db6b6e8-55d4-4cd5-b6fb-5c6d03657fcc /mnt/tutti              ext4    defaults        1 2
# Seguono righe digitate
UUID=ab9d6d82-9bad-456e-b593-1ad6411c9792 swap			  swap	  defaults        0 0
 
UUID=9E3437B434378DF1 		/mnt/Wxp        	  ntfs-3g defaults        0 0
UUID=E010C41510C3F098		/mnt/Wx             	  ntfs-3g defaults	  0 0
UUID=16D09B81D09B6631		/mnt/Wy         	  ntfs-3g defaults	  0 0
 
/dev/disk/by-id/ata-ST3000DM001-1E6166_W1F4Q8FS-part1 /mnt/usb3Tb/SG1          ntfs-3g    user,rw,umask=000,nofail     0 0
/dev/disk/by-id/ata-ST3000DM001-1E6166_W1F4Q8FS-part5 /mnt/usb3Tb/SG5          ext4       defaults,nofail              0 0
/dev/disk/by-id/ata-ST3000DM001-1E6166_W1F4Q8FS-part6 /mnt/usb3Tb/SG6          ext4       defaults,nofail              0 0
/dev/disk/by-id/ata-ST3000DM001-1E6166_W1F4Q8FS-part7 /mnt/usb3Tb/SG7          ext4       defaults,nofail              0 0
/dev/disk/by-id/ata-ST3000DM001-1E6166_W1F4Q8FS-part8 /mnt/usb3Tb/SG8          ext4       defaults,nofail              0 0
/dev/disk/by-id/ata-ST3000DM001-1E6166_W1F4Q8FS-part9 /mnt/usb3Tb/SG9          ext4       defaults,nofail              0 0

[fedora20xfce@localhost ~]$ ls /dev/disk/by-id

ata-HL-DT-ST_DVDRAM_GSA-H42N_K026CQC0604
ata-ST3000DM001-1E6166_W1F4Q8FS
ata-ST3000DM001-1E6166_W1F4Q8FS-part1
ata-ST3000DM001-1E6166_W1F4Q8FS-part10
ata-ST3000DM001-1E6166_W1F4Q8FS-part2
ata-ST3000DM001-1E6166_W1F4Q8FS-part5
ata-ST3000DM001-1E6166_W1F4Q8FS-part6
ata-ST3000DM001-1E6166_W1F4Q8FS-part7
ata-ST3000DM001-1E6166_W1F4Q8FS-part8
ata-ST3000DM001-1E6166_W1F4Q8FS-part9
ata-ST3500418AS_9VMTGMS6
ata-ST3500418AS_9VMTGMS6-part1
ata-ST3500418AS_9VMTGMS6-part10
ata-ST3500418AS_9VMTGMS6-part11
ata-ST3500418AS_9VMTGMS6-part12
ata-ST3500418AS_9VMTGMS6-part13
ata-ST3500418AS_9VMTGMS6-part14
ata-ST3500418AS_9VMTGMS6-part15
ata-ST3500418AS_9VMTGMS6-part16
ata-ST3500418AS_9VMTGMS6-part2
ata-ST3500418AS_9VMTGMS6-part5
ata-ST3500418AS_9VMTGMS6-part6
ata-ST3500418AS_9VMTGMS6-part7
ata-ST3500418AS_9VMTGMS6-part8
ata-ST3500418AS_9VMTGMS6-part9
wwn-0x5000c5002d2f59f8
wwn-0x5000c5002d2f59f8-part1
wwn-0x5000c5002d2f59f8-part10
wwn-0x5000c5002d2f59f8-part11
wwn-0x5000c5002d2f59f8-part12
wwn-0x5000c5002d2f59f8-part13
wwn-0x5000c5002d2f59f8-part14
wwn-0x5000c5002d2f59f8-part15
wwn-0x5000c5002d2f59f8-part16
wwn-0x5000c5002d2f59f8-part2
wwn-0x5000c5002d2f59f8-part5
wwn-0x5000c5002d2f59f8-part6
wwn-0x5000c5002d2f59f8-part7
wwn-0x5000c5002d2f59f8-part8
wwn-0x5000c5002d2f59f8-part9
wwn-0x5000c50072dda3e3
wwn-0x5000c50072dda3e3-part1
wwn-0x5000c50072dda3e3-part10
wwn-0x5000c50072dda3e3-part2
wwn-0x5000c50072dda3e3-part5
wwn-0x5000c50072dda3e3-part6
wwn-0x5000c50072dda3e3-part7
wwn-0x5000c50072dda3e3-part8
wwn-0x5000c50072dda3e3-part9

[fedora20xfce@localhost ~]$ ls /dev/disk/by-uuid
16D09B81D09B6631
1A6615E96615C683
1db6b6e8-55d4-4cd5-b6fb-5c6d03657fcc
1ee9fcc5-c9fa-416a-a4e0-019afad347fa
2f44971d-1f3e-4025-9ed5-c69ce0e2e9c9
33678b95-575b-41c7-972e-4ff12119b2ac
3f6f8843-5b28-45d0-af00-583dbce656be
77065cea-6fba-4d9b-b8d8-c84df3ad5da4
839c0d85-eca2-4473-990e-7eb3a216e8ee
95bb360c-eda6-4a82-8844-3c32cf0442b7
9E3437B434378DF1
ab9d6d82-9bad-456e-b593-1ad6411c9792
ad047149-72be-4eaa-b0e6-0ce4a201f44a
d43508c5-2d8e-4f3e-a3e5-11c8135accb2
d7d7b8c3-866f-43ed-bf73-3eba88ec9374
d85a5d3b-b7d8-459e-9b2b-4af5d02ec978
E010C41510C3F098
e285a48e-cf35-43b6-80df-87c2558b720b
e5418520-874c-4c95-b169-aea6baa9f254
f64a46fd-af55-486f-85ea-4f9832df53f7

[fedora20xfce@localhost ~]$ ls /dev/disk/by-path
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part1
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part10
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part2
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part5
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part6
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part7
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part8
pci-0000:00:02.1-usb-0:1:1.0-scsi-0:0:0:0-part9

[fedora20xfce@localhost ~]$ ls /dev/disk/by-label
Linux1  Linux3  Linux5  Linux7  SG1  SG6  SG8  swAp   Wx   Wy
Linux2  Linux4  Linux6  Linux8  SG5  SG7  SG9  tutti  WXP

[fedora20xfce@localhost ~]$