Advertisement
Guest User

Untitled

a guest
Feb 3rd, 2011
218
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 1.48 KB | None | 0 0
  1. To run a command as administrator (user "root"), use "sudo <command>".
  2. See "man sudo_root" for details.
  3.  
  4. ubuntu@ubuntu:~$ sudo fdisk -l
  5.  
  6. Disk /dev/sda: 500.1 GB, 500107862016 bytes
  7. 255 heads, 63 sectors/track, 60801 cylinders
  8. Units = cylinders of 16065 * 512 = 8225280 bytes
  9. Sector size (logical/physical): 512 bytes / 512 bytes
  10. I/O size (minimum/optimal): 512 bytes / 512 bytes
  11. Disk identifier: 0x000dd8c2
  12.  
  13.    Device Boot      Start         End      Blocks   Id  System
  14. /dev/sda1   *           1       42210   339051792   83  Linux
  15. /dev/sda2           42211       54223    96494390+   f  W95 Ext'd (LBA)
  16. /dev/sda3           54224       54236      102400    7  HPFS/NTFS
  17. /dev/sda4           54236       60802    52736000    7  HPFS/NTFS
  18. /dev/sda5           42211       46926    37881238+  83  Linux
  19. /dev/sda6           47310       54223    55536672   83  Linux
  20. /dev/sda7           46927       47309     3076416   82  Linux swap / Solaris
  21.  
  22. Partition table entries are not in disk order
  23. ubuntu@ubuntu:~$ sudo chroot /media/disk/
  24. root@ubuntu:/# grub-install /dev/sda
  25. /usr/lib/grub/grub-mkconfig_lib: 38: cannot create /dev/null: Permission denied
  26. /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
  27. root@ubuntu:/# sudo chroot /media/disk/
  28. chroot: cannot change root directory to /media/disk/: No such file or directory
  29. root@ubuntu:/# sudo chroot /media/disk-2/
  30. chroot: cannot change root directory to /media/disk-2/: No such file or directory
  31. root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement