Contenu | Rechercher | Menus

Annonce

Si vous avez des soucis pour rester connecté, déconnectez-vous puis reconnectez-vous depuis ce lien en cochant la case
Me connecter automatiquement lors de mes prochaines visites.

À propos de l'équipe du forum.

#1 Le 09/03/2024, à 10:02

Lalo-Ubuntu

Problème montage disque externe

Bonjour !

Je fais face à un problème avec un disque dur externe. Il est divisé en 2 partitions : l'une en ext4 où j'y fais mes sauvegardes DejaDup, l'autre en NTFS où j'y stocke des films et autres diverses vidéos.
J'ai débranché mon hub en ayant oublié que mon disque y était connecté (je sais que ce n'est pas bien et je ne le fais normalement jamais, il s'agit d'une vraie maladresse). En le rebranchant, celui-ci parvenait bien à se monter, et il me semble que la partition ext4 n'avait aucun problème, en revanche je ne pouvais lire aucun fichier vidéo de la partition NTFS.

J'ai donc ouvert l'utilitaire Disques pour vérifier le système de fichier et, si possible, le réparer, sauf que celui-ci m'a indiqué qu'il ne parvenait pas à démonter le disque. J'ai donc essayé de redémarrer mon système, mais l’extinction était bloquée par l'utilitaire disque et le temps d'attente indiqué ne faisait que croître (1min30, 3min; 4min30, 6min), là j'ai forcé l'extinction de mon ordinateur.

Au redémarrage, je branche le disque, son voyant s'allume et il se met à tourner à l'intérieur. En revanche il ne se monte pas automatiquement et ne s'affiche nullement dans l'utilitaire disque.

Cela m'était déjà arrivé il y a quelque temps, il me semble que j'avais résolu le problème en branchant le disque sur un mac ou un pc windows qui était parvenu à le monter, le réparer, puis il apparaissait de nouveau dans mon système Linux et se montait automatiquement. Mais je n'ai pas accès cette fois-ci à ces autres machines.

Ainsi, pourriez-vous m'aider à réparer le système de fichier pour que je puisse de nouveau accéder à mes données ? Et si c'est impossible, j'aimerais au moins pouvoir accéder à ce disque pour le reformater et éviter de devoir en racheter un ! roll


Je pense vous avoir donné toutes les informations que j'avais, mais peut-être en avez-vous besoin d'autres ? Dites-le-moi dans ce cas.
Ah oui et dernière chose : j'ai essayé de démarrer mon ordinateur avec le disque branché dessus : eh bien ma machine n'arrivait alors pas à booter correctement (l'écran de déverrouillage de mon disque Ubuntu qui est chiffré ne s'affichait pas). Tout se passe normalement si je démarre sans le disque branché à mon ordinateur.

Dernière modification par Lalo-Ubuntu (Le 09/03/2024, à 10:03)

Hors ligne

#2 Le 09/03/2024, à 10:15

geole

Re : Problème montage disque externe

Bonjour.
Bien dommages d'avoir des partitions NTFS lorsque windows n'est pas sur place.
Pour un disque nomade, il faut préferer le format EXFAT qui sait gérer les pertes brutales de communication avec l'ordinateur.

Essaie la commande NTFSFIX, elle traite quelques cas d'erreurs  NTFS

Si tu ne peux pas accéder au disque, fais ce diagnostic.
On recommence,
- Débranche de nouveau le disque, Initialise une trace.

echo 'Debut Trace1' | sudo tee -a /dev/kmsg

- Branche le disque, attends 60 secondes et termine la trace.

echo 'Fin Trace' | sudo tee -a /dev/kmsg

- Puis publie ce retour.

journalctl   -b  | sed -n '/Debut Trace1/,/Fin Trace/p' 

-----------------

Dernière modification par geole (Le 09/03/2024, à 10:22)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#3 Le 09/03/2024, à 11:53

Lalo-Ubuntu

Re : Problème montage disque externe

Oui, je comprends.
Je me suis rendu sur la page NTFSFIX de la documentation.

J'ai lancé comme indiqué sur cette page

parted -l

pour trouver l'identifiant de la partition. Voici le retour de la commande :

Error: /dev/mapper/nvme0n1p3_crypt: unrecognised disk label
Model: Linux device-mapper (crypt) (dm)                                   
Disk /dev/mapper/nvme0n1p3_crypt: 1023GB
Sector size (logical/physical): 512B/512B
Partition Table: unknown
Disk Flags:

Dois-je lancer ntfsfix /dev/mapper/nvme0n1p3_crypt ? Car il me semble qu'il s'agit là de la partition ext4 pour mes sauvegarde (qui est chiffrée).

Voici le retour de journalctl   -b  | sed -n '/Debut Trace1/,/Fin Trace/p' :

mars 09 10:24:57 LaloXPS13 unknown: Debut Trace1
mars 09 10:25:04 LaloXPS13 kernel: usb 2-1.3: new SuperSpeed USB device number 4 using xhci_hcd
mars 09 10:25:04 LaloXPS13 kernel: usb 2-1.3: New USB device found, idVendor=0bc2, idProduct=2039, bcdDevice=19.01
mars 09 10:25:04 LaloXPS13 kernel: usb 2-1.3: New USB device strings: Mfr=1, Product=2, SerialNumber=3
mars 09 10:25:04 LaloXPS13 kernel: usb 2-1.3: Product: Expansion SW
mars 09 10:25:04 LaloXPS13 kernel: usb 2-1.3: Manufacturer: Seagate
mars 09 10:25:04 LaloXPS13 kernel: usb 2-1.3: SerialNumber: 00000000NACD6NJ8
mars 09 10:25:04 LaloXPS13 kernel: scsi host0: uas
mars 09 10:25:04 LaloXPS13 kernel: scsi 0:0:0:0: Direct-Access     Seagate  Expansion SW     1901 PQ: 0 ANSI: 6
mars 09 10:25:04 LaloXPS13 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
mars 09 10:25:04 LaloXPS13 mtp-probe[8983]: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-1/2-1.3"
mars 09 10:25:04 LaloXPS13 mtp-probe[8983]: bus: 2, device: 4 was not an MTP device
mars 09 10:25:04 LaloXPS13 mtp-probe[8986]: checking bus 2, device 4: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-1/2-1.3"
mars 09 10:25:04 LaloXPS13 mtp-probe[8986]: bus: 2, device: 4 was not an MTP device
mars 09 10:25:10 LaloXPS13 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
mars 09 10:25:52 LaloXPS13 kernel: sd 0:0:0:0: [sda] Spinning up disk...
mars 09 10:26:18 LaloXPS13 sudo[9014]:     root : TTY=pts/0 ; PWD=/root ; USER=root ; COMMAND=/usr/bin/tee -a /dev/kmsg
mars 09 10:26:18 LaloXPS13 sudo[9014]: pam_unix(sudo:session): session opened for user root(uid=0) by (uid=0)
mars 09 10:26:18 LaloXPS13 sudo[9014]: pam_unix(sudo:session): session closed for user root
mars 09 10:26:18 LaloXPS13 kernel: .
mars 09 10:26:18 LaloXPS13 unknown: Fin Trace

J'ai relancé ce processus une deuxième fois, car après un peu plus de 5min, il se passe quelque chose avec le disque : il y a un son système et celui-ci apparaît (un peu) dans l'utilitaire de disque (voici une illustration) :

mars 09 10:36:45 LaloXPS13 unknown: Debut Trace1
mars 09 10:36:47 LaloXPS13 systemd[1]: systemd-hostnamed.service: Deactivated successfully.
mars 09 10:36:51 LaloXPS13 kernel: usb 2-1.2: new SuperSpeed USB device number 6 using xhci_hcd
mars 09 10:36:51 LaloXPS13 kernel: usb 2-1.2: New USB device found, idVendor=0bc2, idProduct=2039, bcdDevice=19.01
mars 09 10:36:51 LaloXPS13 kernel: usb 2-1.2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
mars 09 10:36:51 LaloXPS13 kernel: usb 2-1.2: Product: Expansion SW
mars 09 10:36:51 LaloXPS13 kernel: usb 2-1.2: Manufacturer: Seagate
mars 09 10:36:51 LaloXPS13 kernel: usb 2-1.2: SerialNumber: 00000000NACD6NJ8
mars 09 10:36:51 LaloXPS13 kernel: scsi host0: uas
mars 09 10:36:51 LaloXPS13 kernel: scsi 0:0:0:0: Direct-Access     Seagate  Expansion SW     1901 PQ: 0 ANSI: 6
mars 09 10:36:51 LaloXPS13 kernel: sd 0:0:0:0: Attached scsi generic sg0 type 0
mars 09 10:36:51 LaloXPS13 mtp-probe[10265]: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-1/2-1.2"
mars 09 10:36:51 LaloXPS13 mtp-probe[10265]: bus: 2, device: 6 was not an MTP device
mars 09 10:36:51 LaloXPS13 mtp-probe[10268]: checking bus 2, device 6: "/sys/devices/pci0000:00/0000:00:0d.0/usb2/2-1/2-1.2"
mars 09 10:36:51 LaloXPS13 mtp-probe[10268]: bus: 2, device: 6 was not an MTP device
mars 09 10:37:03 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Failed to activate service 'org.gnome.Weather.BackgroundService': timed out (service_start_timeout=120000ms)
mars 09 10:37:39 LaloXPS13 kernel: sd 0:0:0:0: [sda] Spinning up disk...
mars 09 10:37:44 LaloXPS13 systemd[1]: Starting man-db.service - Daily man-db regeneration...
mars 09 10:37:44 LaloXPS13 systemd[1]: man-db.service: Deactivated successfully.
mars 09 10:37:44 LaloXPS13 systemd[1]: Finished man-db.service - Daily man-db regeneration.
mars 09 10:37:53 LaloXPS13 gnome-shell[1860]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
mars 09 10:37:56 LaloXPS13 gnome-shell[1860]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
mars 09 10:38:01 LaloXPS13 gnome-shell[1860]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
mars 09 10:38:03 LaloXPS13 gnome-shell[1860]: Window manager warning: META_CURRENT_TIME used to choose focus window; focus window may not be correct.
mars 09 10:38:03 LaloXPS13 gnome-shell[1860]: JS ERROR: TypeError: workspace is undefined
                                              _getSpacing@resource:///org/gnome/shell/ui/workspacesView.js:212:13
                                              vfunc_allocate@resource:///org/gnome/shell/ui/workspacesView.js:338:18
                                              vfunc_allocate@resource:///org/gnome/shell/ui/overviewControls.js:214:33
                                              removeWindow@resource:///org/gnome/shell/ui/workspace.js:854:29
                                              addWindow/<.destroyId<@resource:///org/gnome/shell/ui/workspace.js:805:22
                                              _updateWorkspacesViews@resource:///org/gnome/shell/ui/workspacesView.js:1026:38
                                              prepareToEnterOverview@resource:///org/gnome/shell/ui/workspacesView.js:993:14
                                              prepareToEnterOverview@resource:///org/gnome/shell/ui/overviewControls.js:720:33
                                              gestureBegin@resource:///org/gnome/shell/ui/overviewControls.js:782:14
                                              _gestureBegin@resource:///org/gnome/shell/ui/overview.js:405:33
                                              _beginGesture@resource:///org/gnome/shell/ui/swipeTracker.js:603:14
                                              _handleEvent@resource:///org/gnome/shell/ui/swipeTracker.js:170:26
mars 09 10:40:01 LaloXPS13 kernel: ...not responding...
mars 09 10:40:15 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:40:15 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:40:15 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:40:15 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:40:36 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:40:36 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:41:01 LaloXPS13 kernel: sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
mars 09 10:41:01 LaloXPS13 kernel: sd 0:0:0:0: [sda] Sense Key : Not Ready [current] 
mars 09 10:41:01 LaloXPS13 kernel: sd 0:0:0:0: [sda] Add. Sense: Logical unit is in process of becoming ready
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Sense Key : Not Ready [current] 
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Add. Sense: Logical unit is in process of becoming ready
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] 0-byte physical blocks
mars 09 10:42:28 LaloXPS13 NetworkManager[914]: <info>  [1709977348.8655] dhcp4 (wlp0s20f3): state changed new lease, address=192.168.208.130
mars 09 10:42:39 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:42:39 LaloXPS13 rtkit-daemon[1073]: Supervising 7 threads of 4 processes of 1 users.
mars 09 10:42:52 LaloXPS13 kernel: sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD IN 
mars 09 10:42:52 LaloXPS13 kernel: sd 0:0:0:0: [sda] tag#5 CDB: Mode Sense(6) 1a 00 00 00 04 00
mars 09 10:42:52 LaloXPS13 kernel: scsi host0: uas_eh_device_reset_handler start
mars 09 10:42:52 LaloXPS13 kernel: usb 2-1.2: reset SuperSpeed USB device number 6 using xhci_hcd
mars 09 10:42:52 LaloXPS13 kernel: scsi host0: uas_eh_device_reset_handler success
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] tag#5 uas_eh_abort_handler 0 uas-tag 1 inflight: CMD 
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] tag#5 CDB: Test Unit Ready 00 00 00 00 00 00
mars 09 10:43:02 LaloXPS13 kernel: scsi host0: uas_eh_device_reset_handler start
mars 09 10:43:02 LaloXPS13 kernel: usb 2-1.2: reset SuperSpeed USB device number 6 using xhci_hcd
mars 09 10:43:02 LaloXPS13 kernel: scsi host0: uas_eh_device_reset_handler success
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: Device offlined - not ready after error recovery
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Write Protect is off
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Mode Sense: 00 00 00 00
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: rejecting I/O to offline device
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Asking for cache data failed
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Preferred minimum I/O size 4096 bytes not a multiple of physical block size (0 bytes)
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Optimal transfer size 33553920 bytes not a multiple of physical block size (0 bytes)
mars 09 10:43:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Attached SCSI disk
mars 09 10:43:03 LaloXPS13 dbus-daemon[879]: [system] Activating via systemd: service name='org.freedesktop.hostname1' unit='dbus-org.freedesktop.hostname1.service' requested by ':1.68' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:03 LaloXPS13 systemd[1]: Starting systemd-hostnamed.service - Hostname Service...
mars 09 10:43:03 LaloXPS13 dbus-daemon[879]: [system] Successfully activated service 'org.freedesktop.hostname1'
mars 09 10:43:03 LaloXPS13 systemd[1]: Started systemd-hostnamed.service - Hostname Service.
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Settings.SearchProvider' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Contacts.SearchProvider' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Calculator.SearchProvider' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Characters' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.FontManager' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.clocks' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Boxes.SearchProvider' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Weather.BackgroundService' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.seahorse.Application' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.Epiphany.SearchProvider' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.Settings.SearchProvider'
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.clocks'
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.Boxes.SearchProvider'
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.seahorse.Application'
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.Contacts.SearchProvider'
mars 09 10:43:06 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.Characters'
mars 09 10:43:06 LaloXPS13 org.gnome.Weath[10650]: ImportError: Unable to load file from: resource:///org/gnome/Weather/js/service/main.js (La ressource dans « /org/gnome/Weather/js/service/main.js » n’existe pas)  
mars 09 10:43:06 LaloXPS13 org.gnome.Weath[10650]: Unhandled promise rejection. To suppress this warning, add an error handler to your promise chain with .catch() or a try-catch block around your await expression. Stack trace of the failed promise:
                                                     @/usr/share/org.gnome.Weather/org.gnome.Weather.BackgroundService:9:4
mars 09 10:43:06 LaloXPS13 gnome-shell[1860]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: L’objet n’existe pas à l’emplacement « /org/gnome/Terminal/SearchProvider »
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.Calculator.SearchProvider'
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.FontManager'
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.Epiphany.SearchProvider'
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.seahorse.Application' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:07 LaloXPS13 org.gnome.FontManager[10623]: Fontconfig error: No writable cache directories
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.seahorse.Application'
mars 09 10:43:07 LaloXPS13 gnome-shell[1860]: Received error from D-Bus search provider org.gnome.Terminal.desktop: Gio.DBusError: GDBus.Error:org.freedesktop.DBus.Error.UnknownMethod: L’objet n’existe pas à l’emplacement « /org/gnome/Terminal/SearchProvider »
mars 09 10:43:07 LaloXPS13 gnome-character[10621]: JS LOG: Characters Application started
mars 09 10:43:07 LaloXPS13 org.gnome.Nautilus[5661]: sys:1: Warning: Source ID 13173 was not found when attempting to remove it
mars 09 10:43:07 LaloXPS13 dbus-daemon[879]: [system] Activating via systemd: service name='org.freedesktop.PackageKit' unit='packagekit.service' requested by ':1.92' (uid=1000 pid=2349 comm="/usr/bin/gnome-software --gapplication-service")
mars 09 10:43:07 LaloXPS13 systemd[1]: Starting packagekit.service - PackageKit Daemon...
mars 09 10:43:07 LaloXPS13 PackageKit[10833]: daemon start
mars 09 10:43:07 LaloXPS13 dbus-daemon[879]: [system] Successfully activated service 'org.freedesktop.PackageKit'
mars 09 10:43:07 LaloXPS13 systemd[1]: Started packagekit.service - PackageKit Daemon.
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.DiskUtility' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:07 LaloXPS13 PackageKit[10833]: resolve transaction /23159_dcbdbced from uid 1000 finished with success after 153ms
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.DiskUtility'
mars 09 10:43:17 LaloXPS13 gnome-character[10621]: JS LOG: Characters Application exiting
mars 09 10:43:20 LaloXPS13 unknown: Fin Trace

En effet, à la fin : "mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Activating service name='org.gnome.DiskUtility' requested by ':1.32' (uid=1000 pid=1860 comm="/usr/bin/gnome-shell")
mars 09 10:43:07 LaloXPS13 PackageKit[10833]: resolve transaction /23159_dcbdbced from uid 1000 finished with success after 153ms
mars 09 10:43:07 LaloXPS13 dbus-daemon[1691]: [session uid=1000 pid=1691] Successfully activated service 'org.gnome.DiskUtility''

Hors ligne

#4 Le 09/03/2024, à 19:41

geole

Re : Problème montage disque externe

Tout est dit  dans ces lignes Read Capacity(16) failed: ===> sda 0 512-byte logical blocks:

kernel: sd 0:0:0:0: [sda] Read Capacity(16) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
mars 09 10:41:01 LaloXPS13 kernel: sd 0:0:0:0: [sda] Sense Key : Not Ready [current] 
mars 09 10:41:01 LaloXPS13 kernel: sd 0:0:0:0: [sda] Add. Sense: Logical unit is in process of becoming ready
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Read Capacity(10) failed: Result: hostbyte=DID_OK driverbyte=DRIVER_OK
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Sense Key : Not Ready [current] 
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] Add. Sense: Logical unit is in process of becoming ready
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] 0 512-byte logical blocks: (0 B/0 B)
mars 09 10:42:02 LaloXPS13 kernel: sd 0:0:0:0: [sda] 0-byte physical blocksé

Si tu as besoin de récupérer les données, il faudra s'adresser à un expert de réparation en matériel
qui changera la pièce qui contient la taille du disque

Sinon il peut y avoit une solution avec testdisk en lui imposant une taille fictive en CHS. Mais je ne garantis pas. Il faudrait déjà ses caractéristiques tecniques. Marque , reférence. et taille.

Dernière modification par geole (Le 09/03/2024, à 19:51)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#5 Le 09/03/2024, à 21:13

Lalo-Ubuntu

Re : Problème montage disque externe

Merci beaucoup pour ta réponse !

Mais je suis donc surpris que le problème soit lié au matériel et soit donc physique. Il m'en vient ces quelques questions :
1. Peut-on être sûr que cette pièce cassée le soit en raison du débranchage un peu violent du disque ?
2. Est-ce que cela aurait pu être évité si la partition avait été en EXFAT ?
3. D'autres facteur peuvent-ils expliquer ce cassage ?

Voici les informations relatives à mon disque :
Marque : Seagate
Référence : Expension SW model : SRD0NF1
Taille (théorique indiquée) : 2 TB

Il me semble bien que j'avais partitionné le disque en 2 partitions égales de 1 TB. L'une en NTFS, l'autre en ext4 chiffrée.

Dernière modification par Lalo-Ubuntu (Le 09/03/2024, à 21:15)

Hors ligne

#6 Le 09/03/2024, à 22:39

inbox

Re : Problème montage disque externe

Salut,

Par acquis de conscience, tu devrais ouvrir le boîtier de ton disque externe et vérifier les branchements. Il faut aussi que le disque soit bien fixé à l'intérieur.

A+


Un problème résolu ? Indiquez le en modifiant le titre du sujet.

Hors ligne

#7 Le 09/03/2024, à 22:42

geole

Re : Problème montage disque externe

1) Je ne sais pas mais cela a pu générer une sur-tension..
2) Non
3) Sans certitude. Il est possible que la perte de la taille du disque se soit produite avant.

Tu n'as pas dit s'il faut absolument tenter quelque chose avec testdisk

Dernière modification par geole (Le 09/03/2024, à 22:44)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#8 Le 10/03/2024, à 14:55

Lalo-Ubuntu

Re : Problème montage disque externe

J'aimerais bien essayer ce que tu indiquais avec testdisk sur la taille fictive. Mais je ne sais pas comment m'y prendre...

Hors ligne

#9 Le 11/03/2024, à 12:10

geole

Re : Problème montage disque externe

Lalo-Ubuntu a écrit :

Voici les informations relatives à mon disque :
Marque : Seagate
Référence : Expension SW model : SRD0NF1
Taille (théorique indiquée) : 2 TB

Il me semble bien que j'avais partitionné le disque en 2 partitions égales de 1 TB. L'une en NTFS, l'autre en ext4 chiffrée.

Bonjour

Je vais essayer de trouver les caractéristiques CHS de ce disque et les appliquerais à une clé USB.    Je posterais comment faire.
Je compléterais au fur et à mesure de l'avancement...

https://www.seagate.com/content/dam/sea … -fr_FR.pdf

Bon à savoir

sudo hdparm -g /dev/sdb
/dev/sdb:
 geometry      = 121601/255/63, sectors = 1953525168, start = 0

Mais dans ton contexte, il n'y aura certainement que des zéros.

 sudo hdparm -g /dev/sdc
/dev/sdc:
 geometry      = 1018/124/62, sectors = 7831552, start = 0
sudo testdisk /dev/sdc

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

  TestDisk is free software, and
comes with ABSOLUTELY NO WARRANTY.

Select a media (use Arrow keys, then press Enter):
>Disk /dev/sdc - 4009 MB / 3824 MiB - Kingston DT 100 G2




>[Proceed ]  [  Quit  ]

Note: Disk capacity must be correctly detected for a successful recovery.
If a disk listed above has an incorrect size, check HD jumper settings and BIOS
detection, and install the latest OS patches and disk drivers.

Proceed

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org


Disk /dev/sdc - 4009 MB / 3824 MiB - Kingston DT 100 G2

Please select the partition table type, press Enter when done.Hint: None partition table type has been detected.
 [Intel  ] Intel/PC partition
 [EFI GPT] EFI GPT partition map (Mac i386, some x86_64...)
 [Humax  ] Humax partition table
 [Mac    ] Apple partition map (legacy)
>[None   ] Non partitioned media
 [Sun    ] Sun Solaris partition
 [XBox   ] XBox partition
 [Return ] Return to disk selection

Il  s'est positionné sur none,  mais s'il se positionne sur une autre valeur, tu acceptes son choix.
None

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/sdc - 4009 MB / 3824 MiB - CHS 1018 124 62

     Partition                  Start        End    Size in sectors
>   P ext4                     0   0  1  1018  83 22    7831552 [CleUSB1]


 [  Type  ] >[Superblock]  [  List  ]  [Image Creation]  [  Quit  ]

Je ne sais pas ce que cela va donner pour toi,   Comme ce n'est pas ce que je cherche, je choisis
Quit et j'ai le menu désiré.

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org


Disk /dev/sdc - 4009 MB / 3824 MiB - Kingston DT 100 G2
     CHS 1018 124 62 - sector size=512

 [ Analyse  ] Analyse current partition structure and search for lost partitions
>[ Advanced ] Filesystem Utils
 [ Geometry ] Change disk geometry
 [ Options  ] Modify options
 [ Quit     ] Return to disk selection

Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched.

Il faut que je me positionne sur
Geometry
et j'ai le menu désiré.

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org


Disk /dev/sdc - 4009 MB / 3824 MiB - CHS 1018 124 62, sector size=512

Because these numbers change the way that TestDisk looks for partitions
and calculates their sizes, it's important to have the correct disk geometry.
PC partitioning programs often make partitions end on cylinder boundaries.

A partition's CHS values are based on disk translations which make them
different than its physical geometry. The most common CHS head values
are: 255, 240 and sometimes 16.

 [ Cylinders ]  [   Heads   ]  [  Sectors  ]  [Sector Size] >[    Ok     ]

                          Done with changing geometry

Qu'il faut apprivoiser, il te faudra certainement plusieurs essais pour maîtriser la frappe
On va introduire le CHS    qui sera certainement   243202/255/63    Je n'ai pas encore trouvé dans la documentation....
Je viens de trouver  pour un 6 To https://www.smartmontools.org/ticket/1330  Souvent c est la même logique quelque soit la taille
    Du coup la taille physique du secteur serait 4096.      El le nombre de secteurs deviendrait 30400 sinon 15200
Disk /dev/sdc - 2000 GB / 1863 GiB - Kingston DT 100 G2
     CHS 30400 255 63 - sector size=4096


- Se positionner sur Cylinders et introduire 243202  (  Si tu es certain que ta recherche porte dans la première moitié, introduis 121601)
- Cela se positionne alors sur Heads,, introduire 255
- Cela se positionne alors sur  Secteurs, introduire 63
- Cela se positionne alors sur secteur size,      Je finirais bien par trouver s'il faut mettre 512 ou 4096. Cela me semble important de mettre la bonne valeur, dans un premier temps, je te propose 512
Cliquer sui OK
Voila, Ma clé USB qui faisait 4 Go est maintenant vue comme une clé USB de 2 To

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org


Disk /dev/sdc - 2000 GB / 1863 GiB - Kingston DT 100 G2
     CHS 243202 255 63 - sector size=512

 [ Analyse  ] Analyse current partition structure and search for lost partitions
 [ Advanced ] Filesystem Utils
>[ Geometry ] Change disk geometry
 [ Options  ] Modify options
 [ Quit     ] Return to disk selection

Note: Correct disk geometry is required for a successful recovery. 'Analyse'
process may give some warnings if it thinks the logical geometry is mismatched.

Il ne te reste plus qu'a te positionner sur analyse et    faire la recherche classique du contenu.
Je ne poste pas cette partie, elle me semble bien documentée.
Comme testdisk, n'est pas prévu pour de la malfaçon, il ne sauvegarde pas ces modifications de taille, qu'il faudra que tu rejoues   à chaque lancement.
C'est parti

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243202 255 63
Current partition structure:
     Partition                  Start        End    Size in sectors

   P ext4                     0   0  1 243201 254 63 3907040130 [CleUSB1]


>[Quick Search]
                            Try to locate partition

Dans mon contexte, tu trouve tout de suite, C est parti pour le quick search qui trouve bien

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Disk /dev/sdc - 2000 GB / 1863 GiB - CHS 243202 255 63
     Partition               Start        End    Size in sectors
>P FAT32                    0  32 33   391 191 56    6291456 [TESTUSB]
 P Linux md 1.x RAID      396  21  4   399 150  9      56328 [p:0]
 P Linux md 1.x RAID      399 227 14   403 101 19      56328 [p:0]
 P Linux md 1.x RAID      403 178 24   407  52 29      56328 [p:0]
 P Linux md 1.x RAID      407 129 34   411   3 39      56328 [p:0]
 P Linux md 1.x RAID      411  80 44   414 209 49      56328 [p:0]
 P Linux md 1.x RAID      415  31 54   418 160 59      56328 [p:0]
 P Linux md 1.x RAID      418 238  1   422 112  6      56328 [p:0]
 P Linux md 1.x RAID      422 189 11   426  63 16      56328 [p:0]
 P Linux md 1.x RAID      426 140 21   430  14 26      56328 [p:0]
 P Linux md 1.x RAID      430  91 31   433 220 36      56328 [p:0]
 P Linux md 1.x RAID      434  42 41   437 171 46      56328 [p:0]
 P Linux md 1.x RAID      437 248 51   441 122 56      56328 [p:0]
 P Linux md 1.x RAID      441 199 61   445  74  3      56328 [p:0]
 P Linux md 1.x RAID      445 151  8   449  25 13      56328 [p:0]
 P Linux md 1.x RAID      449 102 18   452 231 23      56328 [p:0]
 P Linux md 1.x RAID      453  53 28   456 182 33      56328 [p:0]
 P Linux md 1.x RAID      457   4 38   460 133 43      56328 [p:0]
 P Linux md 1.x RAID      460 210 48   464  84 53      56328 [p:0]
 P Linux md 1.x RAID      464 161 58   468  35 63      56328 [p:0]
 P Linux md 1.x RAID      468 113  5   471 242 10      56328 [p:0]
 P Linux md 1.x RAID      472  64 15   475 193 20      56328 [p:0]
 P Linux md 1.x RAID      476  15 25   479 144 30      56328 [p:0]
 P Linux md 1.x RAID      479 221 35   483  95 40      56328 [p:0]
 P FAT16                  483 105  7   487 125 22      65536 [EFI System Partition] [VTOYEFI]

Structure: Ok.


Keys T: change type, P: list files,
     Enter: to continue
FAT32, blocksize=4096, 3221 MB / 3072 MiB

Dernière modification par geole (Le 11/03/2024, à 14:15)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne

#10 Le 15/03/2024, à 01:08

Lalo-Ubuntu

Re : Problème montage disque externe

Bonsoir ! Merci pour ta réponse détaillée.

J'ai lancé

testdisk /dev/sdc

mais cela me retourne :

TestDisk 7.1, Data Recovery Utility, July 2019
Christophe GRENIER <grenier@cgsecurity.org>
https://www.cgsecurity.org

Unable to open file or device /dev/sdc: No such file or directory

Si je lance testdisk avant de connecter mon disque, tout de suite après la connexion, ou après que le truc bizarre soit apparu dans l'utilitaire disque, testdisk (lorsque je lance la commande sans aucun argument) affiche une liste de disque qui est toujours la même, il n'y a rien qui ne change.

Ai-je manqué quelque chose ou est-ce un mauvais signe pour mon disque ?

Hors ligne

#11 Le 15/03/2024, à 11:34

geole

Re : Problème montage disque externe

Bonjour.
Le disque SDC semble donc supprimé de la liste des disques lorsque la capacité est détectée comme êtant 0. C'est dommages que le logiciel se comporte comme cela.
As-tu essayé avec wiindows?
Je crains que tu doives faire appel à un expert en matériel qui changera la pièce défectueuse

Dernière modification par geole (Le 15/03/2024, à 13:15)


Les grilles de l'installateur https://doc.ubuntu-fr.org/tutoriel/inst … _subiquity
"gedit admin:///etc/fstab" est proscrit,  utilisez "pkexec env DISPLAY=$DISPLAY XAUTHORITY=$XAUTHORITY xdg-open /etc/fstab" Voir  https://doc.ubuntu-fr.org/gedit
Les partitions EXT4 des disques externes => https://forum.ubuntu-fr.org/viewtopic.p … #p22697248

Hors ligne