免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2500 | 回复: 0
打印 上一主题 下一主题

3T大硬盘分区 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-01-22 15:52 |只看该作者 |倒序浏览
Nicky突然出现
3T的大硬盘,fdisk无法分区,他使用了parted,然后用fdisk -t手动改为ext3分区,但是用fdisk -l的时候有如下报错:
WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.
错误报的很清楚,但是有点无从下手,毕竟都是一直用fdisk分区,3T的硬盘身平第一次看见啊。

我这边在远程,对话中也不知道怎么回事,man parted吧

Name
GNU Parted - a partition manipulation program
Synopsis
parted [options] [device [command [options...]...]]
Description
This manual page documents briefly the parted command. Complete documentation is distributed with the package in GNU Info format; see below.
parted is a disk partitioning and partition resizing program. It allows you to create, destroy, resize, move and copy ext2, ext3, linux-swap, FAT, FAT32, and reiserfs partitions. It can create, resize and move Macintosh HFS partitions, as well as detect jfs, ntfs, ufs, and xfs partitions. It is useful for creating space for new operating systems, reorganising disk usage, and copying data to new hard disks.
Options
-h, --help
displays a help message.
-i, --interactive
prompts for user intervention.
-s, --script
never prompt the user.
-v, --version
displays the version.
Commands
[device]
The block device to partition.
[command [options]]
Specifies a command to parted. If no command is given, parted will give you a command prompt. Commands are:
check partition
does a simple check on partition.
cp [source-device] source dest
copies the source partition's filesystem on source-device (or the current device if no other device was specified) to the dest partition on the current device.
help [command]
prints general help, or help on command if specified.
mkfs partition fs-type
make a filesystem fs-type on partition. fs-type can be one of "fat16", "fat32", "ext2", "linux-swap" or "reiserfs".
mklabel label-type
Creates a new disklabel (partition table) of label-type. label-type should be one of "bsd", "dvh", "gpt", "loop", "mac", "msdos", "pc98" or "sun".
mkpart part-type [fs-type] start end
make a part-type partition with filesystem fs-type (if specified), beginning at start and ending at end (in megabytes). fs-type can be one of "fat16", "fat32", "ext2", "HFS", "linux-swap", "NTFS", "reiserfs" or "ufs". part-type should be one of "primary", "logical" or "extended"
mkpartfs part-type fs-type start end
make a part-type partition with filesystem fs-type beginning at start and ending at end (in megabytes)
move partition start end
move partition to start at start and end at end. Note: move never changes the minor number
name partition name
set the name of partition to name. This option works only on Mac, PC98, and GPT disklabels. The name can be placed in quotes, if necessary
print
displays the partition table
quit
exits parted
resize partition start end
resize the filesystem on partition to start at start and end at end megabytes
rm partition
deletes partition
select device
choose device as the current device to edit. device should usually be a Linux hard disk device, but it can be a partition, software raid device or a LVM logical volume if that is necessary
set partition flag state
change the state of the flag on partition to state. Flags supported are: "boot", "root", "swap", "hidden", "raid", "lvm", "lba" and "palo". state should be either "on" or "off"
Reporting Bugs
Report bugs to parted@gnu.org[/email]
>
See Also

fdisk
(8)
,
mkfs
(8)
, The parted program is fully documented in the
info
(1)
format GNU partitioning software manual.
Author
This manual page was written by Timshel Knoll , for the Debian GNU/Linux system (but may be used by others).
REFERENCED BY

addpart
(8),
cfdisk
(8),
delpart
(8),
ntfsresize
(8),
partprobe
(8),
partx
(8),
sfdisk
(8)
注意到里面有个命令段
mklabel label-type
Creates a new disklabel (partition table) of label-type. label-type should be one of "bsd", "dvh", "gpt", "loop", "mac", "msdos", "pc98" or "sun".
这里列出了parted支持的分区表类型
应该知道原因了,新的硬盘分区表类型是gpt的,这在fdisk中不被支持,所以我们将分区表类型改为msdos,然后重新分区,问题解决了。
我在Ubuntu中做了测试,网上有文章说parted不能分出ext3的格式,这在man中也有体现,但是如果了解ext2和ext3的区别,那在格式化的时候偷偷的mkfs.ext3不会有任何问题。
实在无聊啊,怎么大家过年都忙,就我闲了呢,疯了,一会儿翻译文章。


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/29953/showart_469413.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP