Advertisement
Guest User

Untitled

a guest
Jun 25th, 2014
215
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.84 KB | None | 0 0
  1. xubuntu@xubuntu:~$ sudo fdisk -l
  2.  
  3. Disk /dev/sda: 160.0 GB, 160041885696 bytes
  4. 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
  5. Units = sectors of 1 * 512 = 512 bytes
  6. Sector size (logical/physical): 512 bytes / 512 bytes
  7. I/O size (minimum/optimal): 512 bytes / 512 bytes
  8. Disk identifier: 0x8f038f03
  9.  
  10. Device Boot Start End Blocks Id System
  11. /dev/sda1 * 2048 292923125 146460539 7 HPFS/NTFS/exFAT
  12. /dev/sda2 292923390 312580095 9828353 5 Extended
  13. /dev/sda5 292923392 308420607 7748608 83 Linux
  14. /dev/sda6 308422656 312580095 2078720 82 Linux swap / Solaris
  15. xubuntu@xubuntu:~$ mkdir /mnt/xubuntu
  16. mkdir: cannot create directory ‘/mnt/xubuntu’: Permission denied
  17. xubuntu@xubuntu:~$ sudo mount /dev/sda5 /mnt/xubuntu
  18. mount: mount point /mnt/xubuntu does not exist
  19. xubuntu@xubuntu:~$ sudo mkdir /mnt/xubuntu
  20. xubuntu@xubuntu:~$ sudo mount /dev/sda5 /mnt/xubuntu
  21. xubuntu@xubuntu:~$ sudo mount -t proc none /mnt/xubuntu/proc
  22. xubuntu@xubuntu:~$ sudo mount --rbind /sys /mnt/xubuntu/sys
  23. xubuntu@xubuntu:~$ sudo mkdir /mnt/xubuntu
  24. mkdir: cannot create directory ‘/mnt/xubuntu’: File exists
  25. xubuntu@xubuntu:~$ sudo mount /dev/sda5 /mnt/xubuntu
  26. mount: /dev/sda5 already mounted or /mnt/xubuntu busy
  27. mount: according to mtab, /dev/sda5 is already mounted on /mnt/xubuntu
  28. xubuntu@xubuntu:~$ sudo mount -t proc none /mnt/xubuntu/proc
  29. mount: none already mounted or /mnt/xubuntu/proc busy
  30. mount: according to mtab, none is already mounted on /mnt/xubuntu/proc
  31. xubuntu@xubuntu:~$ sudo mount --rbind /sys /mnt/xubuntu/sys
  32. xubuntu@xubuntu:~$ sudo mount --rbind /dev /mnt/xubuntu/dev
  33. xubuntu@xubuntu:~$ sudo cp /etc/resolv.conf /mnt/xubuntu/etc/resolv.conf
  34. xubuntu@xubuntu:~$ sudo chroot /mnt/xubuntu /bin/bash
  35. root@xubuntu:/# source /etc/profile
  36. root@xubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement