fdisk添加分区引起的Linux Error: 22: Invalid argument

王朝学院·作者佚名  2016-05-27
窄屏简体版  字體: 小  |  中  |  大  |  超大  

fdisk添加分区引起的linux Error: 22: Invalid argument 2014-10-24 11:45 by 潇湘隐者, ... 阅读, ... 评论, 收藏, 编辑 在Linux服务器(虚拟机)上使用fdisk添加分区、格式化分区后,遇到了Linux Error: 22: Invalid argument错误,操作步骤如下所示

[root@Oracle-server ~]# echo "- - -" > /sys/class/scsi_host/host0/scan

[root@oracle-server ~]# fdisk -l

Disk /dev/sda: 584.6 GB, 584646328320 bytes

255 heads, 63 sectors/track, 71079 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sda1 * 1 19441 156151808 83 Linux

Partition 1 does not end on cylinder boundary.

/dev/sda2 19441 44937 204796672 83 Linux

Partition 2 does not end on cylinder boundary.

/dev/sda3 44937 57685 102398336 83 Linux

Partition 3 does not end on cylinder boundary.

/dev/sda4 57685 71080 107595584 5 Extended

Partition 4 does not end on cylinder boundary.

/dev/sda5 57685 70433 102398336 83 Linux

/dev/sda6 70433 70949 4144768 82 Linux swap

/dev/sda7 70949 71080 1052288 83 Linux

Disk /dev/sdb: 146.1 GB, 146156158976 bytes

2 heads, 24 sectors/track, 5947109 cylinders

Units = cylinders of 48 * 512 = 24576 bytes

Device Boot Start End Blocks Id System

/dev/sdb1 3 5947064 142729472 83 Linux

Disk /dev/sdc: 107.3 GB, 107374182400 bytes

255 heads, 63 sectors/track, 13054 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System

/dev/sdc1 1 13054 104856223+ 83 Linux

Disk /dev/sdd: 85.8 GB, 85899345920 bytes

255 heads, 63 sectors/track, 10443 cylinders

Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/sdd doesn't contain a valid partition table

[root@oracle-server ~]# fdisk /dev/sdd

Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel

Building a new DOS disklabel. Changes will remain in memory only,

until you decide to write them. After that, of course, the PRevious

content won't be recoverable.

The number of cylinders for this disk is set to 10443.

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)

Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)

Command (m for help): m

Command action

a toggle a bootable flag

b edit bsd disklabel

c toggle the dos compatibility flag

d delete a partition

l list known partition types

m print this menu

n add a new partition

o create a new empty DOS partition table

p print the partition table

q quit without saving changes

s create a new empty Sun disklabel

t change a partition's system id

u change display/entry units

v verify the partition table

w write table to disk and exit

x extra functionality (experts only)

 
 
免责声明:本文为网络用户发布,其观点仅代表作者个人观点,与本站无关,本站仅提供信息存储服务。文中陈述内容未经本站证实,其真实性、完整性、及时性本站不作任何保证或承诺,请读者仅作参考,并请自行核实相关内容。
 
© 2005- 王朝網路 版權所有 導航