Enviado em 27/11/2016 - 21:34h
Pessoal, desculpe pelo desespero e pela falta da ortografia correta.https://www.google.com.br/search?client=ubuntu&channel=fs&q=ubuntu+nao+consigo+montar+partic...
http://ubuntuforum-br.org/index.php?topic=76110.0#top
https://www.vivaolinux.com.br/dica/Como-criar-senha-de-root-no-Ubuntu
https://www.google.com.br/search?client=ubuntu&channel=fs&q=Error+mounting+eCryptfs%3A+%5B-2...
http://blog.dustinkirkland.com/2009/03/mounting-your-encrypted-home-from.html
http://blog.dustinkirkland.com/2011/04/introducing-ecryptfs-recover-private.html
https://ubuntuforums.org/showthread.php?t=868681
https://digitalvectorz.wordpress.com/2011/06/09/mounting-an-encrypted-hard-disk-luks/
ubuntu@ubuntu:~$ sudo passwd root
Digite a nova senha UNIX:
Redigite a nova senha UNIX:
passwd: senha atualizada com sucesso
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# mkdir /media/test
root@ubuntu:/home/ubuntu# modprobe dm-crypt
root@ubuntu:/home/ubuntu# cryptsetup luksOpen /dev/sda5 test
Informe a frase secreta para /dev/sda5:
root@ubuntu:/home/ubuntu# vgchange -ay
2 logical volume(s) in volume group "ubuntu-vg" now active
root@ubuntu:/home/ubuntu# mount /dev/ubuntu-vg/home /media/test
mount: special device /dev/ubuntu-vg/home does not exist
root@ubuntu:/home/ubuntu# nautilus /media/test
(nautilus:7891): Gtk-WARNING **: Failed to register client: GDBus.Error:org.freedesktop.DBus.Error.ServiceUnknown: The name org.gnome.SessionManager was not provided by any .service files
Gtk-Message: GtkDialog mapped without a transient parent. This is discouraged.
** (nautilus:7891): CRITICAL **: Another desktop manager in use; desktop window won't be created
** (nautilus:7891): WARNING **: Couldn't save the desktop metadata keyfile to disk: Falha ao criar arquivo "/root/.config/nautilus/desktop-metadata.FI8IRY": Arquivo ou diretório não encontrado
** (nautilus:7891): WARNING **: Couldn't save the desktop metadata keyfile to disk: Falha ao criar arquivo "/root/.config/nautilus/desktop-metadata.AZXJRY": Arquivo ou diretório não encontrado
^C
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu# vgchange -ay
2 logical volume(s) in volume group "ubuntu-vg" now active
root@ubuntu:/home/ubuntu# mount /dev/ubuntu-vg/home /media/test
mount: special device /dev/ubuntu-vg/home does not exist
root@ubuntu:/home/ubuntu# umount /media/test
umount: /media/test: not mounted
root@ubuntu:/home/ubuntu# sudo su
root@ubuntu:/home/ubuntu# apt-get install lvm2 cryptsetup
Lendo listas de pacotes... Pronto
Construindo árvore de dependências
Lendo informação de estado... Pronto
cryptsetup is already the newest version (2:1.6.6-5ubuntu2).
lvm2 is already the newest version (2.02.133-1ubuntu10).
0 pacotes atualizados, 0 pacotes novos instalados, 0 a serem removidos e 0 não atualizados.
root@ubuntu:/home/ubuntu# mkdir /media/test
mkdir: é impossível criar o diretório “/media/test”: Arquivo existe
root@ubuntu:/home/ubuntu# modprobe dm-cyrpt
modprobe: FATAL: Module dm-cyrpt not found in directory /lib/modules/4.4.0-31-generic
root@ubuntu:/home/ubuntu# modprobe dm-crypt
root@ubuntu:/home/ubuntu# cryptsetup luksOpen /dev/sda5 test
Dispositivo test já existe.
root@ubuntu:/home/ubuntu# mount /dev/sda5 /media/test
mount: unknown filesystem type 'crypto_LUKS'
root@ubuntu:/home/ubuntu# sudo modprobe dm-crypt
root@ubuntu:/home/ubuntu# sudo modprobe dm-mod
root@ubuntu:/home/ubuntu# sudo cryptsetu luksOpen /dev/sda5 MYTAG
sudo: cryptsetu: comando não encontrado
root@ubuntu:/home/ubuntu# sudo cryptsetup luksOpen /dev/sda5 MYTAG
Informe a frase secreta para /dev/sda5:
Não é possível usar o dispositivo /dev/sda5, pois está em uso (já mapeado ou montado).
root@ubuntu:/home/ubuntu# vgscan
Reading all physical volumes. This may take a while...
Found volume group "ubuntu-vg" using metadata type lvm2
root@ubuntu:/home/ubuntu# vgchange -ay
2 logical volume(s) in volume group "ubuntu-vg" now active
root@ubuntu:/home/ubuntu# lvscan
ACTIVE '/dev/ubuntu-vg/root' [923,14 GiB] inherit
ACTIVE '/dev/ubuntu-vg/swap_1' [7,89 GiB] inherit
root@ubuntu:/home/ubuntu# sudo mkdir /media/root
root@ubuntu:/home/ubuntu# mount /dev/ubuntu-vg/root /media/root
mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu--vg-root,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
root@ubuntu:/home/ubuntu# ^C
root@ubuntu:/home/ubuntu# lvdisplay
--- Logical volume ---
LV Path /dev/ubuntu-vg/root
LV Name root
VG Name ubuntu-vg
LV UUID Y8rMQc-C71c-3sfQ-KBR4-LIp2-kd9A-X0djJL
LV Write Access read/write
LV Creation host, time ubuntu, 2016-10-07 15:13:38 +0000
LV Status available
# open 0
LV Size 923,14 GiB
Current LE 236324
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Path /dev/ubuntu-vg/swap_1
LV Name swap_1
VG Name ubuntu-vg
LV UUID 86fYzv-YxZt-4lNe-OK9x-LQnN-Pp8E-nNDmY8
LV Write Access read/write
LV Creation host, time ubuntu, 2016-10-07 15:13:38 +0000
LV Status available
# open 0
LV Size 7,89 GiB
Current LE 2020
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
root@ubuntu:/home/ubuntu# pvs
PV VG Fmt Attr PSize PFree
/dev/mapper/test ubuntu-vg lvm2 a-- 931,03g 0
root@ubuntu:/home/ubuntu# lvdisplay ubuntu-vg
--- Logical volume ---
LV Path /dev/ubuntu-vg/root
LV Name root
VG Name ubuntu-vg
LV UUID Y8rMQc-C71c-3sfQ-KBR4-LIp2-kd9A-X0djJL
LV Write Access read/write
LV Creation host, time ubuntu, 2016-10-07 15:13:38 +0000
LV Status available
# open 0
LV Size 923,14 GiB
Current LE 236324
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:1
--- Logical volume ---
LV Path /dev/ubuntu-vg/swap_1
LV Name swap_1
VG Name ubuntu-vg
LV UUID 86fYzv-YxZt-4lNe-OK9x-LQnN-Pp8E-nNDmY8
LV Write Access read/write
LV Creation host, time ubuntu, 2016-10-07 15:13:38 +0000
LV Status available
# open 0
LV Size 7,89 GiB
Current LE 2020
Segments 1
Allocation inherit
Read ahead sectors auto
- currently set to 256
Block device 252:2
root@ubuntu:/home/ubuntu# mount /dev/ubuntu-vg/root /media/root
mount: wrong fs type, bad option, bad superblock on /dev/mapper/ubuntu--vg-root,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so.
root@ubuntu:/home/ubuntu# cat /etc/lsb-release
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="Ubuntu 16.04.1 LTS"
root@ubuntu:/home/ubuntu#
root@ubuntu:/home/ubuntu# ls /dev/sd*
/dev/sda /dev/sda1 /dev/sda2 /dev/sda5 /dev/sdb /dev/sdb1
Compartilhando a tela do Computador no Celular via Deskreen
Como Configurar um Túnel SSH Reverso para Acessar Sua Máquina Local a Partir de uma Máquina Remota
Configuração para desligamento automatizado de Computadores em um Ambiente Comercial
Como renomear arquivos de letras maiúsculas para minúsculas
Imprimindo no formato livreto no Linux
Vim - incrementando números em substituição
Efeito "livro" em arquivos PDF
Como resolver o erro no CUPS: Unable to get list of printer drivers
Recuperar arquivos de HD em formato RAW usando Linux (0)
SysAdmin ou DevOps: Qual curso inicial pra essa área? (0)
Melhores Práticas de Nomenclatura: Pastas, Arquivos e Código (3)
[Python] Automação de scan de vulnerabilidades
[Python] Script para analise de superficie de ataque
[Shell Script] Novo script para redimensionar, rotacionar, converter e espelhar arquivos de imagem
[Shell Script] Iniciador de DOOM (DSDA-DOOM, Doom Retro ou Woof!)
[Shell Script] Script para adicionar bordas às imagens de uma pasta