Fedora-Fr - Communauté francophone Fedora - Linux

Communauté francophone des utilisateurs de la distribution Linux Fedora.

  

Dernière news : Fedora 34 Beta est disponible

#1 27/12/2020 18:23:03

Zarathoustri
Membre
Inscription : 27/12/2020
Messages : 5

Comment savoir ce que contiennent mes DD externe ?

Bonjour, bonsoir,

Voila j'ai récupéré  deux disques durs d'un de mes anciens ordi (1.5T chacun)(sous fedora 20 je crois), et je voudrais savoir ce qu'ils contiennent (je suis sur une clé usb boot f33)

un fdisk -l

 [liveuser@localhost-live ~]$ sudo fdisk -l

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

Disk /dev/sda: 1.36 TiB, 1500301910016 bytes, 2930277168 sectors
Disk model: WDC WD15EARS-00Z
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: 7236493C-B224-4E39-AEBC-8DF533E7C98D

Device     Start        End    Sectors  Size Type
/dev/sda1   2048 2930276351 2930274304  1.4T Linux LVM


Disk /dev/sdb: 1.36 TiB, 1500300828160 bytes, 2930275055 sectors
Disk model: WDC WD15EADS-00P
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: gpt
Disk identifier: B80878EA-AF98-40E5-8980-3907DE9A0586

Device       Start        End    Sectors  Size Type
/dev/sdb1     2048     411647     409600  200M EFI System
/dev/sdb2   411648    1435647    1024000  500M Microsoft basic data
/dev/sdb3  1435648 2930274303 2928838656  1.4T Linux LVM 

J'arrive à monter avec mount sdb1 et 2 mais ils ne contiennent que les fichiers systeme alors que ce sont les multimédias qui m'intéréssent (s'il y en a..).

 [liveuser@localhost-live ~]$ sudo mkdir /mnt/dd1
[liveuser@localhost-live ~]$ sudo mount /dev/sda1 /mnt/dd1
mount: /mnt/dd1: unknown filesystem type 'LVM2_member'. 

en cherchant "mount: /mnt/dd1: unknown filesystem type 'LVM2_member'." sur internet je trouve cela :

https://askubuntu.com/questions/766048/ … vm2-member

 [liveuser@localhost-live ~]$ sudo vgdisplay
  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  --- Volume group ---
  VG Name               fedora
  System ID             
  Format                lvm2
  Metadata Areas        2
  Metadata Sequence No  6
  VG Access             read/write
  VG Status             resizable
  MAX LV                0
  Cur LV                3
  Open LV               0
  Max PV                0
  Cur PV                3
  Act PV                1
  VG Size               4.09 TiB
  PE Size               4.00 MiB
  Total PE              1072922
  Alloc PE / Size       1072922 / 4.09 TiB
  Free  PE / Size       0 / 0   
  VG UUID               NVG7TP-GQHt-vZBv-4fiB-AsDB-p6ye-5F2aaC 
[liveuser@localhost-live ~]$ sudo vgrename NVG7TP-GQHt-vZBv-4fiB-AsDB-p6ye-5F2aaC disque1
  Processing VG fedora because of matching UUID NVG7TP-GQHt-vZBv-4fiB-AsDB-p6ye-5F2aaC
  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  Cannot change VG fedora while PVs are missing.
  See vgreduce --removemissing and vgextend --restoremissing.
  Cannot process volume group fedora 



Auriez vous des idées ?

Merci d'avance

Dernière modification par Zarathoustri (27/12/2020 18:33:28)

Hors ligne

#2 27/12/2020 18:58:36

Zarathoustri
Membre
Inscription : 27/12/2020
Messages : 5

Re : Comment savoir ce que contiennent mes DD externe ?

See vgck --updatemetadata to correct inconsistency.

du coup je fais un man vgck --updatemetadata
il faut rajouter UUID a la commande

 [liveuser@localhost-live ~]$ sudo vgck --updatemetadata NVG7TP-GQHt-vZBv-4fiB-AsDB-p6ye-5F2aaC 
  Volume group "NVG7TP-GQHt-vZBv-4fiB-AsDB-p6ye-5F2aaC" not found
  Cannot process volume group NVG7TP-GQHt-vZBv-4fiB-AsDB-p6ye-5F2aaC 
 [liveuser@localhost-live ~]$ sudo vgscan
  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  Found volume group "fedora" using metadata type lvm2
[liveuser@localhost-live ~]$ 
 [liveuser@localhost-live ~]$ sudo fsck -f -y /dev/sda
fsck from util-linux 2.36
e2fsck 1.45.6 (20-Mar-2020)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

Found a gpt partition table in /dev/sda
[liveuser@localhost-live ~]$ sudo fsck -f -y /dev/sdb
fsck from util-linux 2.36
e2fsck 1.45.6 (20-Mar-2020)
/dev/sdb is in use.
e2fsck: Cannot continue, aborting.


[liveuser@localhost-live ~]$ sudo fsck -f -y /dev/sdb3
fsck from util-linux 2.36
[liveuser@localhost-live ~]$ 


ai-je oublié quelque chose ?

Dernière modification par Zarathoustri (27/12/2020 19:08:24)

Hors ligne

#3 27/12/2020 20:13:57

nouvo09
Accro à Fedo !
Lieu : Paris
Inscription : 22/09/2005
Messages : 23 040

Re : Comment savoir ce que contiennent mes DD externe ?

ai-je oublié quelque chose ?

Oui on fait un fsck sur un système de fichiers, pas sur un disque.

Mais peut-être un pvscan pourrait trouver quelque chose, s'il ne manque rien d'autre ?


C'est pas parce que c'est difficile qu'on n'ose pas,
c'est parce qu'on ose pas que c'est difficile !

Hors ligne

#4 28/12/2020 13:54:08

thierryR
Membre
Lieu : Chalons en Champagne
Inscription : 31/01/2011
Messages : 1 767

Re : Comment savoir ce que contiennent mes DD externe ?

Une petite aide pour les LVM

man -k pv|grep pv

201119024340877569.gifChalons en Champagne: Au nord, un peu avant la banquise (Ah ben non... Elle a fondu)
Kernel: 5.10.7-200.fc33.x86_64 x86_64 bits: 64 Desktop: KDE Plasma 5.20.5
Type: Desktop Mobo: ASRock model: X470 Gaming-ITX/ac  UEFI: CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP L2 cache: 4096 KiB

Hors ligne

#5 28/12/2020 16:47:06

Zarathoustri
Membre
Inscription : 27/12/2020
Messages : 5

Re : Comment savoir ce que contiennent mes DD externe ?

nouvo09 a écrit :

ai-je oublié quelque chose ?

Oui on fait un fsck sur un système de fichiers, pas sur un disque.

Mais peut-être un pvscan pourrait trouver quelque chose, s'il ne manque rien d'autre ?

[liveuser@localhost-live ~]$ sudo fsck -f -y /dev/sda1
fsck from util-linux 2.36

comme cela?


le pvscan :

 [liveuser@localhost-live ~]$ sudo pvscan

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  PV /dev/sdb3   VG fedora          lvm2 [1.36 TiB / 0    free]
  PV [unknown]   VG fedora          lvm2 [1.36 TiB / 0    free]
  PV /dev/sda1   VG fedora          lvm2 [1.36 TiB / 0    free]
  Total: 3 [4.09 TiB] / in use: 3 [4.09 TiB] / in no VG: 0 [0   ] 
thierryR a écrit :

Une petite aide pour les LVM

man -k pv|grep pv

je regarde cela !

Merci à vous deux !

Hors ligne

#6 28/12/2020 16:59:14

Zarathoustri
Membre
Inscription : 27/12/2020
Messages : 5

Re : Comment savoir ce que contiennent mes DD externe ?

Toujours les même messages d'erreur liés au metadata je ne comprend pas bien

[liveuser@localhost-live ~]$ sudo pvck /dev/sda1
  Found label on /dev/sda1, sector 1, type=LVM2 001
  Found text metadata area: offset=4096, size=1044480
[liveuser@localhost-live ~]$ sudo pvck /dev/sdb3
  Found label on /dev/sdb3, sector 1, type=LVM2 001
  Found text metadata area: offset=4096, size=1044480
[liveuser@localhost-live ~]$ pvs /dev/sda1
  WARNING: Running as a non-root user. Functionality may be unavailable.
  /run/lock/lvm/P_global:aux: open failed: Permission denied
[liveuser@localhost-live ~]$ sudo pvs /dev/sda1
  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  PV         VG     Fmt  Attr PSize PFree
  /dev/sda1  fedora lvm2 a-m  1.36t    0 
[liveuser@localhost-live ~]$ sudo pvs /dev/sdb3
  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  PV         VG     Fmt  Attr PSize PFree
  /dev/sdb3  fedora lvm2 a--  1.36t    0 

Hors ligne

#7 28/12/2020 17:23:59

nouvo09
Accro à Fedo !
Lieu : Paris
Inscription : 22/09/2005
Messages : 23 040

Re : Comment savoir ce que contiennent mes DD externe ?

Je t ai parlé de pvscan ?


C'est pas parce que c'est difficile qu'on n'ose pas,
c'est parce qu'on ose pas que c'est difficile !

Hors ligne

#8 28/12/2020 18:30:50

thierryR
Membre
Lieu : Chalons en Champagne
Inscription : 31/01/2011
Messages : 1 767

Re : Comment savoir ce que contiennent mes DD externe ?

nouvo09 a écrit :

Je t ai parlé de pvscan ?

Message #3


201119024340877569.gifChalons en Champagne: Au nord, un peu avant la banquise (Ah ben non... Elle a fondu)
Kernel: 5.10.7-200.fc33.x86_64 x86_64 bits: 64 Desktop: KDE Plasma 5.20.5
Type: Desktop Mobo: ASRock model: X470 Gaming-ITX/ac  UEFI: CPU: Topology: 8-Core model: AMD Ryzen 7 2700X bits: 64 type: MT MCP L2 cache: 4096 KiB

Hors ligne

#9 28/12/2020 23:18:34

Zarathoustri
Membre
Inscription : 27/12/2020
Messages : 5

Re : Comment savoir ce que contiennent mes DD externe ?

thierryR a écrit :
nouvo09 a écrit :

Je t ai parlé de pvscan ?

Message #3

le pvscan :

Zarathoustri a écrit :
[liveuser@localhost-live ~]$ sudo pvscan

We trust you have received the usual lecture from the local System
Administrator. It usually boils down to these three things:

    #1) Respect the privacy of others.
    #2) Think before you type.
    #3) With great power comes great responsibility.

  WARNING: ignoring metadata seqno 4 on /dev/sda1 for seqno 6 on /dev/sdb3 for VG fedora.
  WARNING: Inconsistent metadata found for VG fedora.
  See vgck --updatemetadata to correct inconsistency.
  WARNING: Couldn't find device with uuid hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1.
  WARNING: VG fedora was previously updated while PV /dev/sda1 was missing.
  WARNING: VG fedora is missing PV hqBghI-bvZl-BIe1-Kw7F-x22c-WjID-BMgUw1 (last written to [unknown]).
  WARNING: VG fedora was missing PV /dev/sda1 EdobD7-x3vJ-KUz0-2Pvk-eB8x-q7qJ-JAm1xW.
  PV /dev/sdb3   VG fedora          lvm2 [1.36 TiB / 0    free]
  PV [unknown]   VG fedora          lvm2 [1.36 TiB / 0    free]
  PV /dev/sda1   VG fedora          lvm2 [1.36 TiB / 0    free]
  Total: 3 [4.09 TiB] / in use: 3 [4.09 TiB] / in no VG: 0 [0   ] 

Hors ligne

Pied de page des forums