parted is a partition editing utility that allows you to create GUID partitions and then create file systems on those partitions.
Using gdisk you can create partitions but you cannot create file systems with it.
The gdisk utility allows you to define and change various different GUID partition
configurations. The configurations are only saved in memory until you are ready to
commit them to disk.
The fdisk utility allows you to do the same thing, but only with MBR partitions.
The parted utility writes the configuration to disk immediately as you define it.
There is no guidpart utility.
lvscan is a Logical Volume Manager (LVM) command that scans all known volume
groups or all supported LVM block devices in the system for logical volumes. LVM
provides an alternative method to manage partitions on a Linux system. LVM gives
a system administrator more flexibility in allocating storage on a system.
You would enter lvcreate -L 2T -n video home to create a logical volume named
video in the home volume group and give it 2 TB of disk space. The syntax used
with the lvcreate command is: lvcreate -L [size] -n [new volume name] [volume
lvcreate -L 2T -n home video
lvcreate -L 2T -n video home
volcreate -L 2T -n video home
createlv -L 2T -n video home
After your logical volumes have been created, you need to create file systems on
them and then mount them:
• You create a file system using mkfs, just as with traditional partitions. Use the
following syntax: mkfs –t file_system /dev/ volume_group / logical_volume
• You mount a logical volume using the mount command, just as you would to
mount file systems on traditional partitions. Use the following syntax: mount –t
file_system /dev/ volume_group / logical_volume / mount_point
Add them to a volume group and mount the group in the file system.
Give them descriptive names and allocate space to them.
Create file systems on the volumes and mount them.
Scan for logical volumes and extend them.
You would enter pvcreate /dev/sdc to initialize a physical volume on the third
hard disk for later use by LVM.
The directory to which a device or partition is attached is called the mount
• Mount points use the partitions represented by device files located in the /dev
directory; however, partitions must be mounted before use.
• Always mount volumes and other storage devices to empty directories.
Mounting a volume to a directory that contains data makes the data inaccessible.
• The /mnt and /media directories (depending on the system configuration) are
directories that contain mount points specifically for external storage devices
(e.g., CD-ROM drives, floppy drives, magnetic tape drives).
Mount points use the partitions represented by device files located in the /lib directory.
/mnt is a directory that contains mount points for temporarily mounted file systems.
The /home directory must be attached to the system with a mount point before use.
Mount points should always be empty directories.
When mounting a device and partition you specify the /dev directory and the
device and partition you want to mount and then the mount point to mount the
The correct format of mount is what to mount and the mount point . Devices are
always in the /dev directory. There is no /dsk directory. Partitions on hard drives
mount /dev/sdc1 /mnt/newdisk
mount /dsk/sdc_first /mnt/newdisk
mount /sdc1 /mnt/newdisk
mount /dev/sdc /mnt/newdisk
mount /mnt/newdisk /dev/sdc1
The files for devices are always stored in /dev according to the
The FHS does not define the directories /local/dev , /opt/dev or /devices for
storing device files.
Use umount to unmount a device. You can specify the device, /dev/sdb2 , or the
mount point /mnt/temp .
There are no utilities called unmount or dismount in Linux.
Use the mount command with no arguments to show all the current mount points.
df will also show which file systems are mounted to what points.
The command fsck is used to check file systems but does not show the mount
points. There are no commands called mounts , mntchk or mntfs .
The command mount -a forces a reread of the entries in the /etc/fstab file and
makes the settings active.
You can create an unlimited amount of logical partitions on an extended partition.
An extended partition is an optional partition that does not have an operating
system installed on it and thus is not bootable. Extended partitions can be further
subdivided into an unlimited amount of logical drives. There can be a maximum of
one extended partition on a single hard disk drive.
The /var directory contains data files that change constantly. Standard
• /var/mail holds e-mail in boxes
• /var/spool holds files waiting for processing, such as print jobs or scheduled
• /var/www holds www or proxy cache files
There can be a maximum of four primary partitions on a single hard disk drive. A
partition is a logical division of a storage device associated with a hard disk drive.
A primary partition is one that is used to store the operating system. Primary
• Can hold operating system boot files.
• Cannot be further subdivided into logical drives.
• Can be formatted.
選擇要在Apple App Store上查看的Topgrade應用程序。