免费注册 查看新帖 |

Chinaunix

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

关于新加硬盘问题? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2008-04-25 15:54 |只看该作者 |倒序浏览
按照本站中一篇文章进行增加硬盘,可是在格式化后显示的文件system和原来系统中硬盘分区的system不同,不知道是怎么回事?


   Device Boot      Start         End      Blocks                 Id  System
/dev/sda1   *           1          13      104391                 83  Linux
/dev/sda2              14         204     1534207+             82  Linux swap / Solaris
/dev/sda3             205        4028    30716280            83  Linux
/dev/sda4            4029       17849   111017182+       5   Extended
/dev/sda5            4029       17849   111017151         83  Linux

Disk /dev/sdb: 300.0 GB, 300000000000 bytes
255 heads, 63 sectors/track, 36472 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks                  Id  System
/dev/sdb1               1       36472   292961308+          42  SFS


提示:sda是原系统中的硬盘,sdb是后来新增加的硬盘最后一项system是不相同的,后增加的为sfs,这正确吗?

分区过程如下:

[root@localhost ~]# fdisk /dev/sdb1
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 36471.
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): n
Command action
   e   extended
   p   primary partition (1-4)
e
Partition number (1-4): 1
First cylinder (1-36471, default 1):
Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-36471, default 36471):
Using default value 36471

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.

WARNING: Re-reading the partition table failed with error 22: Invalid argument.
The kernel still uses the old table.
The new table will be used at the next reboot.
Syncing disks.


格式化命令:mkfs.ext3 /dev/sdb1

对linux不是很熟悉,各位兄弟帮忙see see ~~不胜感谢!
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP