免费注册 查看新帖 |

Chinaunix

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

format看到硬盘中少一个分区! [复制链接]

论坛徽章:
1
水瓶座
日期:2014-09-16 14:50:41
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-09-18 12:51 |只看该作者 |倒序浏览
PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit

论坛徽章:
1
水瓶座
日期:2014-09-16 14:50:41
2 [报告]
发表于 2012-09-18 12:52 |只看该作者
7分区不见了,怎么创建或者怎么复原?{:3_185:}

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
3 [报告]
发表于 2012-09-18 14:57 |只看该作者
你把 format的信息 和分区print 的信息贴出来看一下

论坛徽章:
1
水瓶座
日期:2014-09-16 14:50:41
4 [报告]
发表于 2012-09-18 15:56 |只看该作者
bash-3.2# format
Searching for disks...done


AVAILABLE DISK SELECTIONS:
       0. c1t0d0 <SUN300G cyl 46873 alt 2 hd 20 sec 625>
          /pci@0/pci@0/pci@2/scsi@0/sd@0,0
       1. c1t1d0 <HITACHI-H106030SDSUN300G-A2B0-279.40GB>
          /pci@0/pci@0/pci@2/scsi@0/sd@1,0
Specify disk (enter its number): 1
selecting c1t1d0
[disk formatted]


FORMAT MENU:
        disk       - select a disk
        type       - select (define) a disk type
        partition  - select (define) a partition table
        current    - describe the current disk
        format     - format and analyze the disk
        repair     - repair a defective sector
        label      - write label to the disk
        analyze    - surface analysis
        defect     - defect list management
        backup     - search for backup labels
        verify     - read and display labels
        inquiry    - show vendor, product and revision
        volname    - set 8-character volume name
        !<cmd>     - execute <cmd>, then return
        quit
format> p


PARTITION MENU:
        0      - change `0' partition
        1      - change `1' partition
        2      - change `2' partition
        3      - change `3' partition
        4      - change `4' partition
        5      - change `5' partition
        6      - change `6' partition
        select - select a predefined table
        modify - modify a predefined partition table
        name   - name the current table
        print  - display the current table
        label  - write partition map and label to the disk
        !<cmd> - execute <cmd>, then return
        quit
partition> p
Current partition table (original):
Total disk sectors available: 585921082 + 16384 (reserved sectors)

Part      Tag    Flag     First Sector         Size         Last Sector
  0        usr    wm                34      279.39GB          585921082   
  1 unassigned    wm                 0           0               0   
  2 unassigned    wm                 0           0               0   
  3 unassigned    wm                 0           0               0   
  4 unassigned    wm                 0           0               0   
  5 unassigned    wm                 0           0               0   
  6 unassigned    wm                 0           0               0   
  8   reserved    wm         585921083        8.00MB          585937466



1号盘!没有7分区!

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
5 [报告]
发表于 2012-09-18 16:16 |只看该作者
你 format -e 选择磁盘1 ,然后 label  把信息贴出来

论坛徽章:
1
2015年辞旧岁徽章
日期:2015-03-03 16:54:15
6 [报告]
发表于 2012-09-18 17:57 |只看该作者
回复 4# 充满光的瞳孔

如果没猜错的话,你的磁盘打上的是EFI标签,如果要显示到正常的VTOC标签的话(有8个分区的),执行:

1 # format -e

2 选择1号磁盘;

3 format>label

4 format> label
[0] SMI Label
[1] EFI Label
Specify Label type[1]: 0
SMI label是VTOC标签,EFI label 是EFI标签,这里选择 SMI

5 退出 format>q

*要注意的是,改变了标签类型,磁盘的数据就会丢了





   

论坛徽章:
20
申猴
日期:2013-09-12 19:39:05狮子座
日期:2014-07-20 21:19:51寅虎
日期:2014-08-16 18:37:47水瓶座
日期:2014-10-15 18:58:25天蝎座
日期:2015-01-22 18:19:15NBA常规赛纪念章
日期:2015-05-04 22:32:032015亚冠之胡齐斯坦钢铁
日期:2015-06-03 11:28:502015亚冠之吉达阿赫利
日期:2015-09-19 12:41:47午马
日期:2013-09-18 14:36:40戌狗
日期:2013-09-18 14:44:39处女座
日期:2013-09-24 17:46:41CU十二周年纪念徽章
日期:2013-10-24 15:41:34
7 [报告]
发表于 2012-09-19 09:01 |只看该作者
如楼上所说,使用 SMI Label

论坛徽章:
3
2015年辞旧岁徽章
日期:2015-03-03 16:54:15操作系统版块每日发帖之星
日期:2016-01-21 06:20:00操作系统版块每日发帖之星
日期:2016-08-11 06:20:00
8 [报告]
发表于 2012-10-11 16:56 |只看该作者
好奇害死猫啊
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP