Liunx 不用LVM 83分区 扩展根目录
Posted
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Liunx 不用LVM 83分区 扩展根目录相关的知识,希望对你有一定的参考价值。
[[email protected] ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 863G 405G 413G 50% /
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
[[email protected] ~]# fdisk -l
Disk /dev/sda: 1429.3 GB, 1429365115904 bytes
255 heads, 63 sectors/track, 173777 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 1033 8193150 82 Linux swap / Solaris
/dev/sda3 1034 173777 1387566180 83 Linux
[[email protected] ~]# fdisk /dev/sda
The number of cylinders for this disk is set to 173777.
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: 1429.3 GB, 1429365115904 bytes
255 heads, 63 sectors/track, 173777 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 1033 8193150 82 Linux swap / Solaris
/dev/sda3 1034 173777 1387566180 83 Linux
Command (m for help): d
Selected partition 3
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 3
First cylinder (1-652, default 1):
Using default value 1
Last cylinder, +cylinders or +size{K,M,G} (1-652, default 652): +4G
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
[[email protected] ~]# resize2fs /dev/sda3 1300G
resize2fs 1.39 (29-May-2006)
Filesystem at /dev/sda3 is mounted on /; on-line resizing required
Performing an on-line resize of /dev/sda3 to 340787200 (4k) blocks.
The filesystem on /dev/sda3 is now 340787200 blocks long.
[[email protected] ~]# df -h
文件系统 容量 已用 可用 已用% 挂载点
/dev/sda3 1.3T 405G 790G 34% /
/dev/sda1 99M 12M 83M 13% /boot
tmpfs 3.9G 0 3.9G 0% /dev/shm
以上是关于Liunx 不用LVM 83分区 扩展根目录的主要内容,如果未能解决你的问题,请参考以下文章