disk management
来源:互联网 发布:js 判断数组 编辑:程序博客网 时间:2024/06/13 05:52
partition --> format --> mount
disk partition mode
MBR
the main partition is not more than 4
single partition capacity maximum 2TB
GPT
the main partition is not limited
single partition capacity is not limited
** but not suitable for the installation of X86 system.
command:
fdisk -l list partition tables
fdisk <diskname> change partition table (only MBR)
m for help
d delete a partition
n add a new partition
w write table to disk and exit
parted (the first disk is default) change partition table (MBR or GPT)
help print the general help
select [device] choose the device to edit
mklabel [label type] create a new disk label
print display the partition table
mkpart [part-name] [start] [end] make a partition
rm [number] delete partition number
quit exit program
mkfs format disk using specified file system
mkfs.[file system type] [device]
mkfs -t [file system type] [device]
mount partition
the default dir is /mnt
must mount a partition to an existing directory
mount -t [file system type] [device] [directory]
eg. mount -t ext4 /dev/sdb1 /mnt/rt8633 ( * just temporary)
vi /etc/fstab
add this: /dev/sdb1 /mnt/rt8633 ext4 defaults 0 0
( * it will mount the specified device automaticlly after OS is restarted)
swap partition
how to make a swap partition
1. make a normal linux partiton
2. modify hexadecimal code of the partiton type fdisk [device] -> t (change hex code to swap code(L to show all codes))
3. format swap partition mkswap [device]
4. enable swap partition swapon [device] / swapoff [device]
- disk management
- linux disk management
- some commands for disk management
- Disk management,winhex删除磁盘raid信息
- using System.Management; Get CPUID,IP,MACaddress,DISK ID
- using System.Management; Get CPUID,IP,MACaddress,DISK ID
- 14.10 InnoDB Disk IO and File Space Management
- 14.9 InnoDB Disk IO and File Space Management InnoDB Disk 和文件空间管理
- disk
- Renaming a virtual machine disk (VMDK) via the vSphere Management Assistant (vMA) or vSphere CLI (vC
- [3]Horizon: Efficient Deadline-Driven Disk I/O Management for Distributed Storage Systems
- Disk&Memory
- Disk Tree
- IPHONE Disk
- Disk info
- disk dump
- disk utility
- disk recovery
- 如何在mac上搭建GitHub
- LightOJ - 1004 Monkey Banana Problem(DP)
- python学习笔记(七)迭代
- 5.变址寄存器-ESI和EDI寄存器与其用途
- SQL语句优化技术分析
- disk management
- LoadRunner参数化详解
- 怎么修改button切换选中状态的时候背景出现一个小蓝点的问题
- spark小事记
- HDU4607(最大直径 树DP)
- 工作中遇见的问题总结
- SQL中GROUP BY、HAVING操作
- hdoj Minimum Transport Cost 1385 (floyd++路径输出)
- mfc ocx 控件开发需要注意的问题