You cannot change a partition into an extended one or vice versa Delete it first
IT Cannot or an One you delete Change
2023-09-14 08:57:54 时间
在Linux扩展LVM时,使用fdisk创建分区时,在磁盘上新建扩展分区(逻辑分区),修改分区格式,指定分区类型为8e时,报错“You cannot change a partition into an extended one or vice versa Delete it first.”。 具体操作如下所示:
The number of cylinders for this disk is set to 5221.
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/sdc: 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
Command (m for help): n
Command action
e extended
p primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-5221, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-5221, default 5221):
Using default value 5221
Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 8e
You cannot change a partition into an extended one or vice versa
Delete it first.
Command (m for help): n
Command action
l logical (5 or over)
p primary partition (1-4)
l
First cylinder (1-5221, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-5221, default 5221):
Using default value 5221
Command (m for help): t
Partition number (1-5): 1
Hex code (type L to list codes): 8e
You cannot change a partition into an extended one or vice versa
Delete it first.
Command (m for help): p
Disk /dev/sdc: 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/sdc1 1 5221 41937651 5 Extended
/dev/sdc5 1 5221 41937619+ 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table.
Syncing disks.
其实出现这个错误,是因为分区号(Partition number)号弄错了(因为必须保留1-4这4个数字给主分区和扩展分区使用,所以逻辑分区的数字必须从5开始)。赤裸裸的要被鄙视啊! 按照下面操作即可解决问题。
潇湘隐者 网名潇湘隐者/潇湘剑客、英文名Kerry,兴趣广泛,广泛涉猎,个性随意,不善言辞。执意做一名会写代码的DBA,混迹于IT行业
相关文章
- 延时摄影Lapse It Time Lapse Pro v2.4
- 记录IT笔记的工具
- 【错误记录】Groovy 注入方法报错 ( Cannot add new method [hello] for arguments [[]]. It already exists )
- WordPress Sphere 相关日志插件:Sphere It Plugin
- ORA-22327: cannot change a type to NOT INSTANTIABLE if it has dependent tables ORACLE 报错 故障修复 远程处理
- ORA-22876: this user-defined type is not allowed or it cannot be used in this context ORACLE 报错 故障修复 远程处理
- ORA-27479: Cannot string “string.string” because other objects depend on it ORACLE 报错 故障修复 远程处理
- ORA-28061: This object cannot have a data redaction policy defined on it. ORACLE 报错 故障修复 远程处理
- ORA-26925: cannot configure outbound server “string” with capture “string” because it is not using apply-state checkpoint ORACLE 报错 故障修复 远程处理
- ORA-54020: Virtual column expression cannot be changed because it is a subpartitioning column ORACLE 报错 故障修复 远程处理
- If You Dream of Oracle Make It a Reality!(iforacle)
- 实现IT职场晋升 Oracle资格认证给你带来新机遇(oracle资格认证)
- 探索Oracle技术,开启IT发展新方向!(oracle方向)
- 推动 IT 转型的三大法宝
- 迎战“大数据” IT部门五大预备策略
- 达内Linux培训:开启IT新世界之旅(达内linux培训怎么样)
- 题突破Oracle六大面试题,轻松跨入IT行业(oracle六大面试)
- IT知识库掌握Oracle数据库必备技能(it知识库oracle)
- Oracle大放异彩,让IT业新风起(oracle一把梭)
- Oracle 9i 硬件升级助力IT发展(oracle9i310)
- 银行云化的纵深改造:金融IT基础设施的最高优先级