anonymoous
(usa Outra)
Enviado em 08/12/2012 - 16:09h
andrecanhadas escreveu:
Uma linha por vez:
sudo mount /dev/sda1 /mnt
sudo mount -o bind /dev/ /mnt/dev
sudo mount -o bind /dev/shm/ /mnt/dev/shm
sudo mount -o bind /proc/ /mnt/proc
sudo mount -o bind /sys/ /mnt/sys
sudo mount -o bind /etc/ /mnt/etc
sudo mount -o bind /home/ /mnt/home/
sudo chroot /mnt
su mmc
ecryptfs-mount-private
cd $HOME
ls -alF
Seria bom reiniciar o live para limpar e esses chroots que foram feitos.
ubuntu@ubuntu:~$ sudo su
root@ubuntu:/home/ubuntu# sudo mount /dev/sda1 /mnt
root@ubuntu:/home/ubuntu# sudo mount -o bind /dev/ /mnt/dev
root@ubuntu:/home/ubuntu# sudo mount -o bind /dev/shm/ /mnt/dev/shm
root@ubuntu:/home/ubuntu# sudo mount -o bind /proc/ /mnt/proc
root@ubuntu:/home/ubuntu# sudo mount -o bind /sys/ /mnt/sys
root@ubuntu:/home/ubuntu# sudo mount -o bind /etc/ /mnt/etc
root@ubuntu:/home/ubuntu# sudo mount -o bind /home/ /mnt/home/
root@ubuntu:/home/ubuntu# sudo chroot /mnt
root@ubuntu:/# su mmc
Id desconhecido : mmc
root@ubuntu:/# ecryptfs-mount-private
ERROR: Encrypted private directory is not setup properly
root@ubuntu:/# cd $HOME
root@ubuntu:~# ls -alF
total 64
drwx------ 12 root root 4096 Dez 8 02:34 ./
drwxr-xr-x 26 root root 4096 Dez 8 15:49 ../
-rw------- 1 root root 2010 Dez 8 16:40 .bash_history
-rw-r--r-- 1 root root 3106 Abr 19 2012 .bashrc
drwx------ 3 root root 4096 Dez 6 19:17 .cache/
drwx------ 9 root root 4096 Dez 6 22:29 .config/
drwx------ 3 root root 4096 Dez 5 12:28 .dbus/
drwxr-xr-x 2 root root 4096 Dez 6 22:29 Desktop/
drwxr-xr-x 3 root root 4096 Dez 6 22:29 .gnome2/
drwx------ 2 root root 4096 Dez 5 05:07 .gvfs/
drwxr-xr-x 3 root root 4096 Dez 5 05:07 .local/
-rw-r--r-- 1 root root 140 Abr 19 2012 .profile
drwx------ 2 root root 4096 Dez 8 04:44 .pulse/
-rw------- 1 root root 256 Dez 5 04:47 .pulse-cookie
drwxr-xr-x 2 root root 4096 Dez 8 02:34 .rpmdb/
drwx------ 3 root root 4096 Dez 8 03:05 .synaptic/
root@ubuntu:~#