Linux磁盘挂载操作手册

  1. 1、下载文档前请自行甄别文档内容的完整性,平台不提供额外的编辑、内容补充、找答案等附加服务。
  2. 2、"仅部分预览"的文档,不可在线预览部分如存在完整性等问题,可反馈申请退款(可完整预览的文档不适用该条件!)。
  3. 3、如文档侵犯您的权益,请联系客服反馈,我们会尽快为您处理(人工客服工作时间:9:00-18:30)。

Linux磁盘挂载操作手册

文章目录

一、挂载单个分区小于2T的分区

二、挂载单个分区大于2T的分区

一、挂载单个分区小于2T的分区

1.查看系统当前分区情况

命令df –h

实例:

[211.139.10.178_Y1025_16:09:31]

Last login: Fri Oct 26 00:01:51 2012 from e10-3

E10-3:~ # df -h

Filesystem Size Used Avail Use% Mounted on

/dev/sda2 40G 4.7G 33G 13% /

devtmpfs 12G 144K 12G 1% /dev

tmpfs 3.9G 100K 3.9G 1% /dev/shm

/dev/sda1 479M 72M 383M 16% /boot

/dev/sda5 869G 201M 824G 1% /home

/dev/sr0 2.9G 2.9G 0 100% /media/SLES-11-SP1-DVD-x86_64.0432..001

2.查看系统当前硬盘分区情况

命令:fdisk –l

E10-3:~ # fdisk -l

Disk /dev/sda: 999.0 GB, 998999326720 bytes

255 heads, 63 sectors/track, 121454 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00004cb7

Device Boot Start End Blocks Id System

/dev/sda1 * 1 63 506016 83 Linux

/dev/sda2 64 5284 41937682+ 83 Linux

/dev/sda3 5285 6328 8385930 82 Linux swap / Solaris

/dev/sda4 6329 121454 924749595 f W95 Ext'd (LBA)

/dev/sda5 6329 121452 924733498+ 83 Linux

Disk /dev/sdb: 999.0 GB, 998999326720 bytes

255 heads, 63 sectors/track, 121454 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00000000

Disk /dev/sdb doesn't contain a valid partition table

Disk /dev/sdc: 4994.0 GB, 4993981612032 bytes

255 heads, 63 sectors/track, 607150 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk identifier: 0x00000000

Disk /dev/sdc doesn't contain a valid partition table

3.创建新的硬盘分区

命令: fdisk /dev/sdb

注:这里的/dev/sdb是具体一个硬盘,此参数可改成fdisk –l显示的硬盘的序号。

实例:

E10-3:~ # fdisk /dev/sdb

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel with disk identifier 0xd3f0a6aa.

Changes will remain in memory only, until you decide to write them.

After that, of course, the previous content won't be recoverable.

The number of cylinders for this disk is set to 121454.

There is nothing wrong with that, but this is larger than 1024,

and could in certain setups cause problems with:

1) software that runs at boot time (e.g., old versions of LILO)

2) booting and partitioning software from other OSs

(e.g., DOS FDISK, OS/2 FDISK)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m

Command action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delet

e a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

Command (m for help): n

Command action

e extended

p primary partition (1-4)

e

相关文档
最新文档