Advertisement
Guest User

Untitled

a guest
Aug 3rd, 2012
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.14 KB | None | 0 0
  1. a187@ubuntu:~$ fdisk -l
  2. a187@ubuntu:~$ fdisk -l
  3. a187@ubuntu:~$ sudo fdisk -l
  4. [sudo] password for a187:
  5.  
  6. WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
  7.  
  8.  
  9. Disk /dev/sda: 3000.6 GB, 3000591900160 bytes
  10. 256 heads, 63 sectors/track, 363376 cylinders, total 5860531055 sectors
  11. Units = sectors of 1 * 512 = 512 bytes
  12. Sector size (logical/physical): 512 bytes / 4096 bytes
  13. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  14. Disk identifier: 0x2d3cb0bc
  15.  
  16. Device Boot Start End Blocks Id System
  17. /dev/sda1 1 4294967295 2147483647+ ee GPT
  18. Partition 1 does not start on physical sector boundary.
  19.  
  20. WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
  21.  
  22.  
  23. Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
  24. 256 heads, 63 sectors/track, 363376 cylinders, total 5860533168 sectors
  25. Units = sectors of 1 * 512 = 512 bytes
  26. Sector size (logical/physical): 512 bytes / 4096 bytes
  27. I/O size (minimum/optimal): 4096 bytes / 4096 bytes
  28. Disk identifier: 0x38f1359e
  29.  
  30. Device Boot Start End Blocks Id System
  31. /dev/sdb1 1 4294967295 2147483647+ ee GPT
  32. Partition 1 does not start on physical sector boundary.
  33.  
  34. Disk /dev/sdc: 300.1 GB, 300067970560 bytes
  35. 240 heads, 63 sectors/track, 38761 cylinders, total 586070255 sectors
  36. Units = sectors of 1 * 512 = 512 bytes
  37. Sector size (logical/physical): 512 bytes / 512 bytes
  38. I/O size (minimum/optimal): 512 bytes / 512 bytes
  39. Disk identifier: 0xba0d8800
  40.  
  41. Device Boot Start End Blocks Id System
  42. /dev/sdc1 2048 586067967 293032960 7 HPFS/NTFS/exFAT
  43.  
  44. Disk /dev/sdd: 40.0 GB, 40019582464 bytes
  45. 240 heads, 63 sectors/track, 5169 cylinders, total 78163247 sectors
  46. Units = sectors of 1 * 512 = 512 bytes
  47. Sector size (logical/physical): 512 bytes / 512 bytes
  48. I/O size (minimum/optimal): 512 bytes / 512 bytes
  49. Disk identifier: 0xa301a301
  50.  
  51. Device Boot Start End Blocks Id System
  52. /dev/sdd1 * 206848 78157945 38975549 7 HPFS/NTFS/exFAT
  53. a187@ubuntu:~$ sudo mount /dev/sda1
  54. mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
  55. a187@ubuntu:~$ sudo man mount
  56. a187@ubuntu:~$ sudo mkdir /dev/sda1
  57. mkdir: cannot create directory `/dev/sda1': File exists
  58. a187@ubuntu:~$ sudo mkdir /mnt/
  59. mkdir: cannot create directory `/mnt/': File exists
  60. a187@ubuntu:~$ sudo mkdir /mnt/sda1
  61. a187@ubuntu:~$ sudo mount /dev/sda1 /mnt/sda1
  62. mount: you must specify the filesystem type
  63. a187@ubuntu:~$ man mount
  64. a187@ubuntu:~$ sudo mount -t /dev/sda1 /mnt/sda1
  65. Usage: mount -V : print version
  66. mount -h : print this help
  67. mount : list mounted filesystems
  68. mount -l : idem, including volume labels
  69. So far the informational part. Next the mounting.
  70. The command is `mount [-t fstype] something somewhere'.
  71. Details found in /etc/fstab may be omitted.
  72. mount -a [-t|-O] ... : mount all stuff from /etc/fstab
  73. mount device : mount device at the known place
  74. mount directory : mount known device here
  75. mount -t type dev dir : ordinary mount command
  76. Note that one does not really mount a device, one mounts
  77. a filesystem (of the given type) found on the device.
  78. One can also mount an already visible directory tree elsewhere:
  79. mount --bind olddir newdir
  80. or move a subtree:
  81. mount --move olddir newdir
  82. One can change the type of mount containing the directory dir:
  83. mount --make-shared dir
  84. mount --make-slave dir
  85. mount --make-private dir
  86. mount --make-unbindable dir
  87. One can change the type of all the mounts in a mount subtree
  88. containing the directory dir:
  89. mount --make-rshared dir
  90. mount --make-rslave dir
  91. mount --make-rprivate dir
  92. mount --make-runbindable dir
  93. A device can be given by name, say /dev/hda1 or /dev/cdrom,
  94. or by label, using -L label or by uuid, using -U uuid .
  95. Other options: [-nfFrsvw] [-o options] [-p passwdfd].
  96. For many more details, say man 8 mount .
  97. a187@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement