Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- xubuntu@xubuntu:~$ sudo fdisk -l
- Disk /dev/sda: 160.0 GB, 160041885696 bytes
- 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 512 bytes
- I/O size (minimum/optimal): 512 bytes / 512 bytes
- Disk identifier: 0x8f038f03
- Device Boot Start End Blocks Id System
- /dev/sda1 * 2048 292923125 146460539 7 HPFS/NTFS/exFAT
- /dev/sda2 292923390 312580095 9828353 5 Extended
- /dev/sda5 292923392 308420607 7748608 83 Linux
- /dev/sda6 308422656 312580095 2078720 82 Linux swap / Solaris
- xubuntu@xubuntu:~$ mkdir /mnt/xubuntu
- mkdir: cannot create directory ‘/mnt/xubuntu’: Permission denied
- xubuntu@xubuntu:~$ sudo mount /dev/sda5 /mnt/xubuntu
- mount: mount point /mnt/xubuntu does not exist
- xubuntu@xubuntu:~$ sudo mkdir /mnt/xubuntu
- xubuntu@xubuntu:~$ sudo mount /dev/sda5 /mnt/xubuntu
- xubuntu@xubuntu:~$ sudo mount -t proc none /mnt/xubuntu/proc
- xubuntu@xubuntu:~$ sudo mount --rbind /sys /mnt/xubuntu/sys
- xubuntu@xubuntu:~$ sudo mkdir /mnt/xubuntu
- mkdir: cannot create directory ‘/mnt/xubuntu’: File exists
- xubuntu@xubuntu:~$ sudo mount /dev/sda5 /mnt/xubuntu
- mount: /dev/sda5 already mounted or /mnt/xubuntu busy
- mount: according to mtab, /dev/sda5 is already mounted on /mnt/xubuntu
- xubuntu@xubuntu:~$ sudo mount -t proc none /mnt/xubuntu/proc
- mount: none already mounted or /mnt/xubuntu/proc busy
- mount: according to mtab, none is already mounted on /mnt/xubuntu/proc
- xubuntu@xubuntu:~$ sudo mount --rbind /sys /mnt/xubuntu/sys
- xubuntu@xubuntu:~$ sudo mount --rbind /dev /mnt/xubuntu/dev
- xubuntu@xubuntu:~$ sudo cp /etc/resolv.conf /mnt/xubuntu/etc/resolv.conf
- xubuntu@xubuntu:~$ sudo chroot /mnt/xubuntu /bin/bash
- root@xubuntu:/# source /etc/profile
- root@xubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement