[英]Linux extended disk
disks on vmware (/dev/sda) was extended (it is RHEL5, can't use lvm) from 20G to 40G .. if I use fdisk /dev/sda I can create /dev/sda7, but this partition have just 2G, why the partition have just 2G and how I fix it ? vmware (/dev/sda) 上的磁盘从 20G 扩展到 40G(它是 RHEL5,不能使用 lvm).. 如果我使用 fdisk /dev/sda 我可以创建 /dev/sda7,但是这个分区只有 2G ,为什么分区只有 2G 以及我如何修复它? thanks
谢谢
I tried:我试过:
fdisk /dev/sda and create /dev/sda7
df -Th
...
/dev/sda2 ext3 6.8G 6.0G 478M 93% /
/dev/sda7 ext3 2.0G 36M 1.9G 2% /home
fdisk -l
Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 * 1 131 1052226 83 Linux
/dev/sda2 132 1045 7341705 83 Linux
/dev/sda3 1046 1567 4192965 82 Linux swap / Solaris
/dev/sda4 1568 2610 8377897+ 5 Extended
/dev/sda5 1568 2089 4192933+ 83 Linux
/dev/sda6 2090 2350 2096451 83 Linux
/dev/sda7 2351 2610 2088418+ 83 Linux
used also parted:使用也分开:
Number Start End Size Type File system Flags
1 32.3kB 1078MB 1077MB primary ext3 boot
2 1078MB 8595MB 7518MB primary ext3
3 8595MB 12.9GB 4294MB primary linux-swap
4 12.9GB 21.5GB 8579MB extended
5 12.9GB 17.2GB 4294MB logical ext3
6 17.2GB 19.3GB 2147MB logical ext3
19.3GB 21.5GB 2139MB Free Space
21.5GB 42.9GB 21.5GB Free Space
Warning: You requested a partition from 21.5GB to 42.9GB.
The closest location we can manage is 21.5GB to 21.5GB. Is this still acceptable to you?
Yes/No? no
(parted) mkpart
Partition type? [logical]?
File system type? [ext2]? ext3
Start? 22G
End? 40G
Warning: You requested a partition from 22.0GB to 40.0GB.
The closest location we can manage is 21.5GB to 21.5GB. Is this still acceptable to you?
Yes/No? no
(parted)
problem is I can't resize more than 2G问题是我不能调整超过 2G 的大小
type:类型:
parted /dev/sd?分开/dev/sd?
(parted) print free (分开)免费打印
Number Start End Size Type File system Flags编号开始结束大小类型文件系统标志
32.3kB 1049kB 1016kB Free Space 32.3kB 1049kB 1016kB 可用空间
1 1049kB 1075MB 1074MB primary ext3 1 1049kB 1075MB 1074MB 主 ext3
2 1075MB 2149MB 1074MB primary ext3 2 1075MB 2149MB 1074MB 主 ext3
3 2149MB 3222MB 1074MB primary ext3 3 2149MB 3222MB 1074MB 主 ext3
4 3222MB 7443MB 4221MB extended 4 3222MB 7443MB 4221MB 扩展
5 3223MB 4297MB 1074MB logical ext3 5 3223MB 4297MB 1074MB 逻辑 ext3
6 4298MB 5372MB 1074MB logical ext3 6 4298MB 5372MB 1074MB 逻辑 ext3
7 5373MB 5897MB 524MB logical ext3 7 5373MB 5897MB 524MB 逻辑 ext3
5897MB 7443MB 1546MB Free Space 5897MB 7443MB 1546MB 可用空间
7443MB 8590MB 1147MB Free Space 7443MB 8590MB 1147MB 可用空间
(parted) resizepart 4 (分开)调整大小第 4 部分
End?结尾? [7443MB]?
[7443MB]? 8590MB
8590MB
(parted) print free (分开)免费打印
Number Start End Size Type File system Flags编号开始结束大小类型文件系统标志
32.3kB 1049kB 1016kB Free Space 32.3kB 1049kB 1016kB 可用空间
1 1049kB 1075MB 1074MB primary ext3 1 1049kB 1075MB 1074MB 主 ext3
2 1075MB 2149MB 1074MB primary ext3 2 1075MB 2149MB 1074MB 主 ext3
3 2149MB 3222MB 1074MB primary ext3 3 2149MB 3222MB 1074MB 主 ext3
4 3222MB 8590MB 5368MB extended 4 3222MB 8590MB 5368MB 扩展
5 3223MB 4297MB 1074MB logical ext3 5 3223MB 4297MB 1074MB 逻辑 ext3
6 4298MB 5372MB 1074MB logical ext3 6 4298MB 5372MB 1074MB 逻辑 ext3
7 5373MB 5897MB 524MB logical ext3 7 5373MB 5897MB 524MB 逻辑 ext3
5897MB 8590MB 2693MB Free Space 5897MB 8590MB 2693MB 可用空间
(parted) quit (分开)退出
now I resized extended partition现在我调整了扩展分区的大小
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.