Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- a187@ubuntu:~$ fdisk -l
- a187@ubuntu:~$ fdisk -l
- a187@ubuntu:~$ sudo fdisk -l
- [sudo] password for a187:
- WARNING: GPT (GUID Partition Table) detected on '/dev/sda'! The util fdisk doesn't support GPT. Use GNU Parted.
- Disk /dev/sda: 3000.6 GB, 3000591900160 bytes
- 256 heads, 63 sectors/track, 363376 cylinders, total 5860531055 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk identifier: 0x2d3cb0bc
- Device Boot Start End Blocks Id System
- /dev/sda1 1 4294967295 2147483647+ ee GPT
- Partition 1 does not start on physical sector boundary.
- WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
- Disk /dev/sdb: 3000.6 GB, 3000592982016 bytes
- 256 heads, 63 sectors/track, 363376 cylinders, total 5860533168 sectors
- Units = sectors of 1 * 512 = 512 bytes
- Sector size (logical/physical): 512 bytes / 4096 bytes
- I/O size (minimum/optimal): 4096 bytes / 4096 bytes
- Disk identifier: 0x38f1359e
- Device Boot Start End Blocks Id System
- /dev/sdb1 1 4294967295 2147483647+ ee GPT
- Partition 1 does not start on physical sector boundary.
- Disk /dev/sdc: 300.1 GB, 300067970560 bytes
- 240 heads, 63 sectors/track, 38761 cylinders, total 586070255 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: 0xba0d8800
- Device Boot Start End Blocks Id System
- /dev/sdc1 2048 586067967 293032960 7 HPFS/NTFS/exFAT
- Disk /dev/sdd: 40.0 GB, 40019582464 bytes
- 240 heads, 63 sectors/track, 5169 cylinders, total 78163247 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: 0xa301a301
- Device Boot Start End Blocks Id System
- /dev/sdd1 * 206848 78157945 38975549 7 HPFS/NTFS/exFAT
- a187@ubuntu:~$ sudo mount /dev/sda1
- mount: can't find /dev/sda1 in /etc/fstab or /etc/mtab
- a187@ubuntu:~$ sudo man mount
- a187@ubuntu:~$ sudo mkdir /dev/sda1
- mkdir: cannot create directory `/dev/sda1': File exists
- a187@ubuntu:~$ sudo mkdir /mnt/
- mkdir: cannot create directory `/mnt/': File exists
- a187@ubuntu:~$ sudo mkdir /mnt/sda1
- a187@ubuntu:~$ sudo mount /dev/sda1 /mnt/sda1
- mount: you must specify the filesystem type
- a187@ubuntu:~$ man mount
- a187@ubuntu:~$ sudo mount -t /dev/sda1 /mnt/sda1
- Usage: mount -V : print version
- mount -h : print this help
- mount : list mounted filesystems
- mount -l : idem, including volume labels
- So far the informational part. Next the mounting.
- The command is `mount [-t fstype] something somewhere'.
- Details found in /etc/fstab may be omitted.
- mount -a [-t|-O] ... : mount all stuff from /etc/fstab
- mount device : mount device at the known place
- mount directory : mount known device here
- mount -t type dev dir : ordinary mount command
- Note that one does not really mount a device, one mounts
- a filesystem (of the given type) found on the device.
- One can also mount an already visible directory tree elsewhere:
- mount --bind olddir newdir
- or move a subtree:
- mount --move olddir newdir
- One can change the type of mount containing the directory dir:
- mount --make-shared dir
- mount --make-slave dir
- mount --make-private dir
- mount --make-unbindable dir
- One can change the type of all the mounts in a mount subtree
- containing the directory dir:
- mount --make-rshared dir
- mount --make-rslave dir
- mount --make-rprivate dir
- mount --make-runbindable dir
- A device can be given by name, say /dev/hda1 or /dev/cdrom,
- or by label, using -L label or by uuid, using -U uuid .
- Other options: [-nfFrsvw] [-o options] [-p passwdfd].
- For many more details, say man 8 mount .
- a187@ubuntu:~$
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement