全球主机交流论坛

标题: 重装系统如何恢复传统挂载分区? [打印本页]

作者: polar    时间: 2012-10-31 09:13
标题: 重装系统如何恢复传统挂载分区?
本帖最后由 polar 于 2012-10-31 10:16 编辑

  1. [root@CentOS62 ~]# fdisk -l

  2. Disk /dev/sda: 10.7 GB, 10737418240 bytes
  3. 255 heads, 63 sectors/track, 1305 cylinders
  4. Units = cylinders of 16065 * 512 = 8225280 bytes
  5. Sector size (logical/physical): 512 bytes / 512 bytes
  6. I/O size (minimum/optimal): 512 bytes / 512 bytes
  7. Disk identifier: 0x000a6d14

  8.    Device Boot      Start         End      Blocks   Id  System
  9. /dev/sda1   *           1          64      512000   83  Linux
  10. Partition 1 does not end on cylinder boundary.
  11. /dev/sda2              64        1306     9971712   8e  Linux LVM

  12. Disk /dev/sdb: 42.9 GB, 42949672960 bytes
  13. 255 heads, 63 sectors/track, 5221 cylinders
  14. Units = cylinders of 16065 * 512 = 8225280 bytes
  15. Sector size (logical/physical): 512 bytes / 512 bytes
  16. I/O size (minimum/optimal): 512 bytes / 512 bytes
  17. Disk identifier: 0x9a39387a

  18.    Device Boot      Start         End      Blocks   Id  System
  19. /dev/sdb4               1        5221    41937651   83  Linux

  20. Disk /dev/mapper/vg_centos62-lv_root: 8095 MB, 8095006720 bytes
  21. 255 heads, 63 sectors/track, 984 cylinders
  22. Units = cylinders of 16065 * 512 = 8225280 bytes
  23. Sector size (logical/physical): 512 bytes / 512 bytes
  24. I/O size (minimum/optimal): 512 bytes / 512 bytes
  25. Disk identifier: 0x00000000

  26. Disk /dev/mapper/vg_centos62-lv_root doesn't contain a valid partition table

  27. Disk /dev/mapper/vg_centos62-lv_swap: 2113 MB, 2113929216 bytes
  28. 255 heads, 63 sectors/track, 257 cylinders
  29. Units = cylinders of 16065 * 512 = 8225280 bytes
  30. Sector size (logical/physical): 512 bytes / 512 bytes
  31. I/O size (minimum/optimal): 512 bytes / 512 bytes
  32. Disk identifier: 0x00000000

  33. Disk /dev/mapper/vg_centos62-lv_swap doesn't contain a valid partition table

  34. Disk /dev/sdc: 10.7 GB, 10737377280 bytes
  35. 255 heads, 63 sectors/track, 1305 cylinders
  36. Units = cylinders of 16065 * 512 = 8225280 bytes
  37. Sector size (logical/physical): 512 bytes / 512 bytes
  38. I/O size (minimum/optimal): 512 bytes / 512 bytes
  39. Disk identifier: 0x000a6d14

  40.    Device Boot      Start         End      Blocks   Id  System
  41. /dev/sdc1   *           1          64      512000   83  Linux
  42. Partition 1 does not end on cylinder boundary.
  43. /dev/sdc2              64        1306     9971712   8e  Linux LVM

  44. Disk /dev/sdd: 42.9 GB, 42949017600 bytes
  45. 255 heads, 63 sectors/track, 5221 cylinders
  46. Units = cylinders of 16065 * 512 = 8225280 bytes
  47. Sector size (logical/physical): 512 bytes / 512 bytes
  48. I/O size (minimum/optimal): 512 bytes / 512 bytes
  49. Disk identifier: 0x9a39387a

  50.    Device Boot      Start         End      Blocks   Id  System
  51. /dev/sdd4               1        5221    41937651   83  Linux
  52. [root@CentOS62 ~]#
复制代码
[attach]37512[/attach]

[attach]37513[/attach]

原来没重装系统的时候已经挂载好了.

dev/sdb4   /disk2   挂载到disk2这个目录.

现在重装系统了. 只格式第一个分区.   现在要恢复dev/sdb4   /disk2 原来的第二个分区的硬盘. 怎么挂载不了?



提示这个错误



[root@CentOS62 ~]# mount  /dev/sdb4  /disk2
mount: mount point /disk2 does not exist
[root@CentOS62 ~]#


请教大家啊.重装系统后,如何恢复原来的挂载分区?

作者: Maser    时间: 2012-10-31 09:16
提示: 作者被禁止或删除 内容自动屏蔽
作者: polar    时间: 2012-10-31 09:30
Maser 发表于 2012-10-31 09:16
resize2fs /dev/VolGroup00/LogVol00

CS5测试过,要原来挂载过重装没有格挂载盘


[root@CentOS62 ~]# resize2fs /dev/VolGroup00/LogVol00
resize2fs 1.41.12 (17-May-2010)
open: 没有那个文件或目录 打开/dev/VolGroup00/LogVol00时
[root@CentOS62 ~]#
[root@CentOS62 ~]#

作者: Maser    时间: 2012-10-31 09:32
提示: 作者被禁止或删除 内容自动屏蔽
作者: polar    时间: 2012-10-31 09:35
Maser 发表于 2012-10-31 09:32
从新来过

小夜,赵容的博客都有

重新来过.会格式化掉原来的数据的 小夜地址多少
作者: polar    时间: 2012-10-31 09:43
怎么恢复嘛
作者: polar    时间: 2012-10-31 10:09
请教大家啊.重装系统后,如何恢复原来的挂载分区?
作者: polar    时间: 2012-10-31 12:48
请教大家啊.重装系统后,如何恢复原来的挂载分区?
作者: 落霞孤鹜    时间: 2012-10-31 12:54
本帖最后由 落霞孤鹜 于 2012-10-31 12:56 编辑

mkdir /disk2 然后挂载
作者: 单手摘月    时间: 2012-10-31 12:56
提示: 作者被禁止或删除 内容自动屏蔽
作者: polar    时间: 2012-10-31 13:04
落霞孤鹜 发表于 2012-10-31 12:54
mkdir /disk2 然后挂载

谢谢你, 我爱你们.
作者: polar    时间: 2012-10-31 13:07
单手摘月 发表于 2012-10-31 12:56
mkdir /disk2。。。。

谢谢你. 我爱你们.




欢迎光临 全球主机交流论坛 (https://fd.vvwvv.eu.org/) Powered by Discuz! X3.4