扩展后执行fdisk -l查看是否成功
[root@localhost
~
]# fdisk
-
l
Disk
/
dev
/
sda:
16.1
GB,
16106127360
bytes
255
heads,
63
sectors
/
track,
1958
cylinders
Units
=
cylinders of
16065
*
512
=
8225280
bytes
Device Boot Start End Blocks Id System
/
dev
/
sda1
*
1
6
48163
+
83
Linux
/
dev
/
sda2
7
515
4088542
+
83
Linux
/
dev
/
sda3
516
1239
5815530
83
Linux
/
dev
/
sda4
1240
1305
530145
5
Extended
/
dev
/
sda5
1240
1305
530113
+
82
Linux swap
/
Solaris
可见sda已经扩展成为16G,但是没分配给文件系统
继续执行fdisk /dev/sda进行新建磁盘
[root@localhost
~
]# fdisk
/
dev
/
sda
The number of cylinders
for
this
disk
is
set
to
1958
.
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): n
No free sectors available
前面执行fdisk -l的时候明明最后才是1305柱面,而且应该有1958柱面,为什么说没有空闲的扇区。
再看看fdisk -l执行结果,原来是/dev/sda5分配了作为swap分区,找到原因了就容易解决。
1.关闭swap分区 # swapoff /dev/sda5
2.删除sda4和sda5.
[root@localhost
~
]# fdisk
/
dev
/
sda
The number of cylinders
for
this
disk
is
set
to
1958
.
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): d
Partition number (
1
-
5
):
5
Command (m
for
help): d
Partition number (
1
-
5
):
4
3.建立扩展分区4,建立分区sda5,写入
Command (m
for
help): n
Command action
e extended
p primary partition (
1
-
4
)
e
Selected partition
4
First cylinder (
1240
-
1958
,
default
1240
):
Using
default
value
1240
Last cylinder or
+
size or
+
sizeM or
+
sizeK (
1240
-
1958
,
default
1958
):
Using
default
value
1958
Command (m
for
help): n
First cylinder (
1240
-
1958
,
default
1240
):
Using
default
value
1240
Last cylinder or
+
size or
+
sizeM or
+
sizeK (
1240
-
1958
,
default
1958
):
Using
default
value
1958
Command (m
for
help): w
The partition table has been altered
!
其他扩容继续参照网上的教程。
分享到:
相关推荐
对linux分区不熟悉的以及对linux目录结构不了解的初学者可以看一下,非常详细,如有错误请多多包涵!
linux下磁盘分区详解
EXTEND分区的NUMBER OF SECTORS=本分区的 ENDING LOCATION (换算为SECTORS)-本分区的RELATIVE SECTORS。 下面是某116M硬盘(参数为CYLINDER=760 HEAD=8 SECTOR=39)共分有: C盘(DOS引导盘)大小为40M,DOS扩充盘...
使用虚拟机时发现磁盘空间不够了,需要挂载一个磁盘以供继续使用,但是磁盘不是添加就可以使用的,还需要进行挂载。 一、添加磁盘 添加加新硬盘重启服务器 添加完之后就可以重启机器了,如果你机器是开启的,进入...
建立一个普通的Linux分区(主分区、逻辑分区均可) fdisk /dev/sdb Command (m for help): p Disk /dev/sdb: 8589 MB, 8589934592 bytes 255 heads, 63 sectors/track, 1044 cylinders, total 16777216 sectors ...
Linux磁带备份,所以我先添加一块硬盘,并相应的建立分区,格式化,然后挂载使用。下面看我操作的步骤: 1.先用Fdisk -l 来查看当前状态下磁盘情况 [root@aaaa ~]# fdisk -l Disk /dev/sda: 300.0 GB, ...
versions of linux ! SYS_SIZE 是要加载的节数(16 字节为1 节)。0x3000 共为 1 2 3 4 5 6 0x7c00 0x0000 0x90000 0x10000 0xA0000 system 模块 代码执行位置线路 0x90200 ! 0x30000 字节=192 kB(上面Linus 估算...
此资料阐述了进行Linux开发时学习内核的方法
挂u盘之前,运行命令cat /proc/partitions,看看现在系统中有哪些分区。插上u盘以后,再次运行上述命令,看看多出来什么分区(通常是sda1,由于我是在虚拟机下装的,所以是sdb1). 1) 插入U盘 2) 输入 fdisk -l /dev/...
Linux的硬盘识别: 一般使用”fdisk -l”命令可以列出系统中当前连接的硬盘 设备和分区信息.新硬盘没有分区信息,则只显示硬盘大小信息. 1.关闭服务器加上新硬盘 2.启动服务器,以root用户登录 3.查看硬盘信息 #...
linux挂载NTFS分区移动硬盘2010-09-23 16:35CentOS 挂载NTFS分区移动硬盘 1.uname -r 查看当前的linux内核版本. [root@localhost Desktop]# uname -r 2.6.18-128.el5 2.去http://www.linux-ntfs.org/下载与内核版本...
With millions of deployments in all market sectors, blue chip companies trust FreeRTOS because it is professionally developed, strictly quality controlled, robust, supported, free to use in commercial...
Linux swapoff命令 Linux swapoff命令用于关闭系统交换区(swap area)。 swapoff实际上为swapon的符号连接,可用来关闭系统的交换区。 语法swapoff [设备] 参数: -a 将/etc/fstab文件中所有设置为swap的设备关闭 -h...
Advanced Linux 3D graphics programming Chapter 1 Basic Linux 3D Graphics Concepts ..................1 2D Graphics Fundamentals ......................................1 3D Graphics Fundamentals ...........
The automotive industry is currently undergoing key technological transformations, as more and more vehicles are connected to the Internet and to each other, and advance toward higher automation ...
255 heads, 63 sectors/track, 1305 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 1305 10482381 5 Extended /dev/sdb5 1 366 2939832 83 ...
不同类别工作被自动化手段代替的可能性 非常有意思的分析
Addressable sectors per track in CHS translation: 63 Addressable sectors in CHS translation: 16514064 Addressable size in CHS translation: 8455200768 bytes Advanced PIO modes supported: 3 DMA ...
The name Lustre is a portmanteau of Linux and cluster. The project aims to provide a file system for clusters of tens of thousands of nodes with petabytes of storage capacity, without compromising ...
64 heads, 32 sectors/track, 20480 cylinders Units = cylinders of 2048 * 512 = 1048576 bytes Device Boot Start End Blocks Id System /dev/sdb1 1 1908 1953776 83 Linux /dev/sdb2 1909 3816 1953792 83 ...