bonjour,
Je suis en train de tester un script bash.
monter=$(mount /dev/sdb1 -t auto /media/sauvegarde -o
pamconsole,exec,noauto,managed)
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
dans le log j'ai
Feb 12 00:59:38 anne kernel: [277236.155791] EXT4-fs (sdb1):
Unrecognized mount option "pamconsole" or missing value
Je n'ai pas trouvé beaucoup d'information sur pamconsole
J'ai viré pamconsole et j'ai retesté
Maintenant dans le log de kernel j'ai :
Feb 12 01:12:03 anne kernel: [277981.405372] EXT4-fs (sdb1):
Unrecognized mount option "managed" or missing value
J'ai viré managed
Donc maintenant j'ai la ligne
monter=$(mount /dev/sdb1 -t auto /media/sauvegarde -o exec,noauto)
il monte et démonte le disque mais il y a des messages
Feb 12 01:17:20 anne kernel: [278298.762464] EXT4-fs (sdb1): mounted
filesystem with ordered data mode. Opts: (null)
Feb 12 01:17:21 anne kernel: [278299.021640] sdb: sdb1
Feb 12 01:17:21 anne kernel: [278299.031163] sd 11:0:0:0: [sdb]
Synchronizing SCSI cache
Feb 12 01:17:25 anne kernel: [278303.939161] quiet_error: 2 callbacks
suppressed
Feb 12 01:17:25 anne kernel: [278303.939171] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939191] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939205] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939217] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939222]
ldm_validate_partition_table(): Disk read failed.
Feb 12 01:17:25 anne kernel: [278303.939234] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939246] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939258] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939270] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939275] Dev sdb: unable to read RDB
block 0
Feb 12 01:17:25 anne kernel: [278303.939286] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939298] Buffer I/O error on device
sdb, logical block 0
Feb 12 01:17:25 anne kernel: [278303.939323] sdb: unable to read
partition table
----
j'ai fait des essais en lignes de commande en étant root
# mount /dev/sdb1 /media/sauvegarde-nuts/
dans le log de kernel
Je l'ai qu'une ligne dans le log du kernel
Feb 12 01:32:46 anne kernel: [279224.653977] EXT4-fs (sdb1): mounted
filesystem with ordered data mode. Opts: (null)
Je n'ai réussi à trouver grand chose sur les options pamconsole et managed
Anne