Ir para conteúdo
View in the app

A better way to browse. Learn more.

Portal do Host

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

[Tutorial] Montando Uma Partição Lvm Danificado

Featured Replies

Postado

O primeiro passo é identificar o HD:  

 

# fdisk -l /dev/hda 

 

Disk /dev/hda: 160.0 GB, 160041885696 bytes 

255 heads, 63 sectors/track, 19457 cylinders 

Units = cylinders of 16065 * 512 = 8225280 bytes 

Device Boot  Start    End    Blocks   Id  System 

/dev/hda1   *         1      13      104391  83  Linux 

/dev/hda2 14       19457   156183930   8e  Linux LVM 

 

# mount /dev/hda2 /tmp/mnt 

mount: /dev/hda2 already mounted or /tmp/mnt busy 

First, let’s determine the volume group containing the physical volume /dev/hda2.  

 

Verifique que o comando acima retornou erro informando para determinar primeiro o grupo físico do volume.  

 

Para isso precisamos identificar o grupo com o comando:  

 

# pvs 

PV         VG         Fmt  Attr PSize   PFree 

/dev/hda2 VolGroup01 lvm2 a-   148.94G 32.00M 

/dev/hdb2  VolGroup00 lvm2 a-   114.94G 96.00M 

Next, let’s list the logical volumes in VolGroup01. 

 

Foram identificados dois volumes, VolGroup00 e o VolGroup01.  

 

Bom, agora com o comando abaixo vamos identificar como que esses grupos foram montados "fisicamente" pelo sistema.  

 

# lvdisplay /dev/VolGroup00 

— Logical volume — 

LV Name                /dev/VolGroup01/LogVol00 

VG Name                VolGroup01 

LV UUID                zOQogm-G8I7-a4WC-T7KI-AhWe-Ex3Y-JVzFcR 

LV Write Access        read/write 

LV Status              available 

# open                 0 

LV Size                146.97 GB 

Current LE             4703 

Segments               1 

Allocation             inherit 

Read ahead sectors     0 

Block device           253:2 

 

# lvdisplay /dev/VolGroup01 

— Logical volume — 

LV Name                /dev/VolGroup01/LogVol01 

VG Name                VolGroup01 

LV UUID                araUBI-4eer-uh5L-Dvnr-3bI6-4gYg-APgYy2 

LV Write Access        read/write 

LV Status              available 

# open                 0 

LV Size                1.94 GB 

Current LE             62 

Segments               1 

Allocation             inherit 

Read ahead sectors     0 

Block device           253:3 

The logical volume I would like to “mount” (in purely  

the computing-related sense) is /dev/VolGroup01/LogVol00.  

The other logical volume is a swap partition. 

 

Agora basta escolher qual deles montar e executar o comando abaixo:  

 

# mount /dev/VolGroup01/LogVol00 /tmp/mnt  

 

Bom, era isso. Abraços...  


Visitante
Este tópico está impedido de receber novos posts.

Quem Está Navegando 0

  • Nenhum usuário registrado visualizando esta página.

Informação Importante

Concorda com os nossos termos?

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.