本帖最后由 amo 于 2012-9-3 15:09 编辑
原来的VPS因为挂载错误无法启动 vps商fsck完了也不能启动 现在他新开了个vps 把原来的两个分区挂载上去了 原来的分区1有数据库 分区2盘有网站文件 求简单操作方法吧原来的分区1、 分区2文件都放在现在的分区2(现在的分区2挂载到/yingpan下),因为早上VPS母鸡出问题 之前挂载的也出问题了,后来我有挂载错了,现在主机商不给管了,。。。- [root@MyVPS~]# fdisk -l
- Disk /dev/xvdb: 21.4 GB, 21474836480 bytes
- 255 heads, 63 sectors/track, 2610 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Disk /dev/xvdb doesn't contain a valid partition table
- Disk /dev/xvda: 10.7 GB, 10737418240 bytes
- 255 heads, 63 sectors/track, 1305 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/xvda1 * 1 13 104391 83 Linux
- /dev/xvda2 14 1044 8281507+ 8e Linux LVM
- /dev/xvda3 1045 1305 2096482+ 8e Linux LVM
- Disk /dev/xvdc: 21.4 GB, 21474836480 bytes
- 255 heads, 63 sectors/track, 2610 cylinders
- Units = cylinders of 16065 * 512 = 8225280 bytes
- Device Boot Start End Blocks Id System
- /dev/xvdc3 1 2610 20964793+ 83 Linux
复制代码- [root@MyVPS ~]# df -hal
- Filesystem Size Used Avail Use% Mounted on
- /dev/mapper/VolGroup00-LogVol00
- 9.3G 1.2G 7.7G 13% /
- proc 0 0 0 - /proc
- sysfs 0 0 0 - /sys
- devpts 0 0 0 - /dev/pts
- /dev/xvda1 99M 29M 66M 31% /boot
- tmpfs 257M 0 257M 0% /dev/shm
- none 0 0 0 - /proc/sys/fs/binfmt_misc
- sunrpc 0 0 0 - /var/lib/nfs/rpc_pipefs
复制代码 求达人指导。。
自己摸索了下。吧新vps的 dev/xvdb挂在了/yingpan下,吧原来的/dev/xvdc3 挂载在home1 现在打开home1看不到文件
|