linux分区步骤:
fdisk /dev/sda #以/dev/sda为例,请参考自己实际机器情况
进入fdisk分区界面,然后按n键新建分区。
选择是主分区还是逻辑分区,选l表示逻辑分区。
接下来是分区大小,起始柱面,选择默认就可以了,按enter键。
结束柱面,可以写+80M。
这样一个分区就创建好了。
然后按t键修改分区信息。
选择你刚才新建的分区,如果不清楚,可以按p键查看分区。
把分区ID号改为8e。
然后按w键保存分区表,这样就写入内核了。
[root@station7 ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 9726.
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)
Command (m for help): p #查看分区
Disk /dev/sda: 80.0 GB, 80000000000 bytes
255 heads, 63 sectors/track, 9726 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 3837 30716280 8e Linux LVM
/dev/sda3 3838 4098 2096482+ 82 Linux swap / Solaris
/dev/sda4 4099 9726 45206910 5 Extended
/dev/sda5 4099 4160 497983+ 83 Linux
/dev/sda6 4161 4285 1004031 8e Linux LVM
/dev/sda7 4286 4287 16033+ 83 Linux
/dev/sda8 4288 4350 506016 fd Linux raid autodetect
/dev/sda9 4351 4413 506016 fd Linux raid autodetect
Command (m for help): n #创建分区
First cylinder (4414-9726, default 4414):
Using default value 4414
Last cylinder or +size or +sizeM or +sizeK (4414-9726, default 9726): +80M #指定大小
Command (m for help): t #修改分区类型
Partition number (1-10): 10 #选择分区
Hex code (type L to list codes): 8e #分区类型名称
Changed system type of partition 10 to 8e (Linux LVM)
Command (m for help): w #保存退出
The partition table has been altered!
Calling ioctl() to re-read partition table.
WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.
[root@station7 ~]# partprobe #同步分区表
首先你要写清楚你是什么 版本的 linux
其次 你这么做用 来干什么,什么目的?
虽然我会的 不多。