Advertisement
Guest User

Untitled

a guest
May 15th, 2012
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.65 KB | None | 0 0
  1. ubuntu@ubuntu:~$ sudo sudo fdisk /l
  2. fdisk: unable to open /l: No such file or directory
  3. ubuntu@ubuntu:~$ sudo fdisk /l
  4. fdisk: unable to open /l: No such file or directory
  5. ubuntu@ubuntu:~$ sudo fdisk -l
  6.  
  7. Disk /dev/sda: 160.0 GB, 160041885696 bytes
  8. 255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
  9. Units = sectors of 1 * 512 = 512 bytes
  10. Sector size (logical/physical): 512 bytes / 512 bytes
  11. I/O size (minimum/optimal): 512 bytes / 512 bytes
  12. Disk identifier: 0x0001d05b
  13.  
  14. Device Boot Start End Blocks Id System
  15. /dev/sda1 * 63 51202047 25600992+ c W95 FAT32 (LBA)
  16. /dev/sda2 51202048 102402047 25600000 83 Linux
  17. /dev/sda3 102402048 312580095 105089024 5 Extended
  18. /dev/sda5 102404096 306419711 102007808 7 HPFS/NTFS/exFAT
  19. /dev/sda6 306421760 312580095 3079168 82 Linux swap / Solaris
  20. ubuntu@ubuntu:~$ sudo mount /dev/sda2
  21. mount: can't find /dev/sda2 in /etc/fstab or /etc/mtab
  22. ubuntu@ubuntu:~$ sudo mount /dev/sda2 mnt
  23. mount: mount point mnt does not exist
  24. ubuntu@ubuntu:~$ sudo mount /dev/sda1 mnt
  25. mount: mount point mnt does not exist
  26. ubuntu@ubuntu:~$ sudo mount /dev/sda1 /mnt
  27. ubuntu@ubuntu:~$ sudo mount -- bind /dev /mnt/dev
  28. Usage: mount -V : print version
  29. mount -h : print this help
  30. mount : list mounted filesystems
  31. mount -l : idem, including volume labels
  32. So far the informational part. Next the mounting.
  33. The command is `mount [-t fstype] something somewhere'.
  34. Details found in /etc/fstab may be omitted.
  35. mount -a [-t|-O] ... : mount all stuff from /etc/fstab
  36. mount device : mount device at the known place
  37. mount directory : mount known device here
  38. mount -t type dev dir : ordinary mount command
  39. Note that one does not really mount a device, one mounts
  40. a filesystem (of the given type) found on the device.
  41. One can also mount an already visible directory tree elsewhere:
  42. mount --bind olddir newdir
  43. or move a subtree:
  44. mount --move olddir newdir
  45. One can change the type of mount containing the directory dir:
  46. mount --make-shared dir
  47. mount --make-slave dir
  48. mount --make-private dir
  49. mount --make-unbindable dir
  50. One can change the type of all the mounts in a mount subtree
  51. containing the directory dir:
  52. mount --make-rshared dir
  53. mount --make-rslave dir
  54. mount --make-rprivate dir
  55. mount --make-runbindable dir
  56. A device can be given by name, say /dev/hda1 or /dev/cdrom,
  57. or by label, using -L label or by uuid, using -U uuid .
  58. Other options: [-nfFrsvw] [-o options] [-p passwdfd].
  59. For many more details, say man 8 mount .
  60. ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
  61. mount: mount point /mnt/proc does not exist
  62. ubuntu@ubuntu:~$ sudo mount --bind /proc/mnt/proc
  63. mount: can't find /proc/mnt/proc in /etc/fstab or /etc/mtab
  64. ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
  65. mount: mount point /mnt/proc does not exist
  66. ubuntu@ubuntu:~$ sudo mount /dev/sda2 mnt
  67. mount: mount point mnt does not exist
  68. ubuntu@ubuntu:~$ sudo mount /dev/sda2 /mnt
  69. ubuntu@ubuntu:~$ sudo mount --bind /proc /mnt/proc
  70. ubuntu@ubuntu:~$ sudo mount --bind /sys /mnt/sys
  71. ubuntu@ubuntu:~$ sudo chroot /mnt
  72. root@ubuntu:/# grub-install /dev/sda
  73. /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
  74. root@ubuntu:/# mount /dev/sda2 /boot
  75. mount: special device /dev/sda2 does not exist
  76. root@ubuntu:/# grub-install /dev/sda2
  77. /usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).
  78. root@ubuntu:/#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement