[问题]ubuntu挂载不了centos4.5系统的硬盘?

为当前最终发行版之前的所有版本提供支持
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

[问题]ubuntu挂载不了centos4.5系统的硬盘?

#1

帖子 jfnn » 2008-05-23 0:09

原系统centos4.5硬盘160G,不知何原因重启就进不了系统。

重新挂新80G硬盘装ubuntu server 8.04

在ubuntu中挂载硬盘出错,大家帮我看看,急。。

fdisk -l
root@ubuntu:/# fdisk -l

Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0xdcc9dcc9

Device Boot Start End Blocks Id System
/dev/sda1 * 1 1824 14651248+ 7 HPFS/NTFS
/dev/sda2 1825 9729 63496912+ f W95 Ext'd (LBA)
/dev/sda5 1825 3222 11229403+ b W95 FAT32
/dev/sda6 4865 6043 9470286 b W95 FAT32
/dev/sda7 7272 8341 8594743+ 83 Linux
/dev/sda8 9622 9729 867478+ 82 Linux swap / Solaris
/dev/sda9 3223 4789 12586896 83 Linux
/dev/sda10 4790 4864 602406 82 Linux swap / Solaris
/dev/sda11 8342 9560 9791586 83 Linux
/dev/sda12 9561 9621 489951 82 Linux swap / Solaris

Partition table entries are not in disk order

Disk /dev/sdb: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x90909090

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 19457 156183930 8e Linux LVM
df
root@ubuntu:/# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda11 9714412 493388 8731448 6% /
varrun 1033164 40 1033124 1% /var/run
varlock 1033164 0 1033164 0% /var/lock
udev 1033164 68 1033096 1% /dev
devshm 1033164 0 1033164 0% /dev/shm
/dev/sdb1 101086 13083 82784 14% /data1
mount -t ext3 /dev/sdb2 /data2
root@ubuntu:/# mount -t ext3 /dev/sdb2 /data2
mount: wrong fs type, bad option, bad superblock on /dev/sdb2,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
dmesg | tail
root@ubuntu:/# dmesg | tail
[ 43.371335] eth0: no IPv6 routers present
[33251.336241] VFS: Can't find ext3 filesystem on dev sdb.
[33257.723358] kjournald starting. Commit interval 5 seconds
[33257.732538] EXT3 FS on sdb1, internal journal
[33257.732546] EXT3-fs: mounted filesystem with ordered data mode.
[33285.581095] VFS: Can't find ext3 filesystem on dev sdb2.
[33565.427873] VFS: Can't find ext3 filesystem on dev sdb2.
[33678.703531] VFS: Can't find ext3 filesystem on dev sdb2.
[34686.490091] VFS: Can't find ext3 filesystem on dev sdb2.
[35455.381831] VFS: Can't find ext3 filesystem on dev sdb2.
以上是硬盘资料信息,大家帮我看看怎么样才能挂载sdb2,谢谢 QQ:27647737
头像
qiang_liu8183
论坛版主
帖子: 10691
注册时间: 2006-09-10 22:36
来自: 北京
送出感谢: 2 次
接收感谢: 6 次

#2

帖子 qiang_liu8183 » 2008-05-23 3:18

方法没问题,但是挂在/data2下面貌似有些不妥,data2目录建了吗?
看破、放下、自在、随缘、念佛
真诚、清净、平等、正觉、慈悲
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#3

帖子 jfnn » 2008-05-23 11:30

qiang_liu8183 写了:方法没问题,但是挂在/data2下面貌似有些不妥,data2目录建了吗?
我刚接触linux不久,有什么好的方法教我下,/data2建立了
tg8866
帖子: 471
注册时间: 2008-02-01 7:16
送出感谢: 0
接收感谢: 0

#4

帖子 tg8866 » 2008-05-23 11:44

Device Boot Start End Blocks Id System
/dev/sdb1 * 1 13 104391 83 Linux
/dev/sdb2 14 19457 156183930 8e Linux LVM

你这个是LVM

centos 默认分区是
/boot 也就是你这里的 sdb1
/这里是一个LVM分区 就是你这里的 sdb2

你看一下命令:
lvdisplay
里面有什么?

要挂载是要挂载 LV 类似:
mount -t ext3 /dev/vgX/lvXX /mnt

X XX看你情况了。

另要要装一下 lvm2 包。

sudo apt-get install lvm2
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#5

帖子 jfnn » 2008-05-23 12:01

Couldn't find package lvm2
root@ubuntu:~# apt-get install lvm
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lvm
root@ubuntu:~# apt-get install lvm1
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lvm1
root@ubuntu:~# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lvm2
名字是不是改了,我是server 8.04. 已经apt-get upgrade过了。。
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#6

帖子 jfnn » 2008-05-23 12:08

lvdisplay
root@ubuntu:~# lvdisplay
The program 'lvdisplay' is currently not installed. You can install it by typing:
apt-get install lvm2
-bash: lvdisplay: command not found
root@ubuntu:~# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lvm2
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#7

帖子 jfnn » 2008-05-23 13:59

同志们,help。。。。在线等。。。QQ:27647737
头像
windwiny
帖子: 2254
注册时间: 2007-03-13 17:26
送出感谢: 0
接收感谢: 1 次

#8

帖子 windwiny » 2008-05-23 14:02

QQ上等。。。。。你狠



sudo vgscan
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#9

帖子 jfnn » 2008-05-23 14:14

root@ubuntu:~# vgscan
The program 'vgscan' is currently not installed. You can install it by typing:
apt-get install lvm2
-bash: vgscan: command not found
root@ubuntu:~# apt-get install lvm2
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Couldn't find package lvm2
lvm2怎么装??输入什么命令都不行呢??
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#10

帖子 jfnn » 2008-05-23 14:36

兄弟们,不好意思,查了半天,机房没有设置DNS,现在装上lvm2了
root@ubuntu:/# lvdisplay
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID pPkwSB-FdDE-0GoR-nBbA-n3uj-QH33-0oMWsq
LV Write Access read/write
LV Status NOT available
LV Size 146.97 GB
Current LE 4703
Segments 1
Allocation inherit
Read ahead sectors 0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID aDZITE-Lq5E-TFlY-jVF2-OBhD-pntI-HorqDA
LV Write Access read/write
LV Status NOT available
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#11

帖子 jfnn » 2008-05-23 14:37

windwiny 写了:QQ上等。。。。。你狠



sudo vgscan
root@ubuntu:/# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#12

帖子 jfnn » 2008-05-23 14:44

root@ubuntu:/# mount -t ext3 /dev/VolGroup00/LogVol01 /data2
mount: special device /dev/VolGroup00/LogVol01 does not exist
root@ubuntu:/# mount -t ext3 /dev/VolGroup00/LogVol00 /data2
mount: special device /dev/VolGroup00/LogVol00 does not exist
兄弟们,帮我下,按你们的方法走,已经差不多了,等你们哦。。
tg8866
帖子: 471
注册时间: 2008-02-01 7:16
送出感谢: 0
接收感谢: 0

#13

帖子 tg8866 » 2008-05-23 15:07

找软件方法:
apt-cache search 软件关键字

看你已经装上了lvm2了吧。

打:lvdisplay

查看
ls /dev/vg* 找到相关的。
jfnn
帖子: 18
注册时间: 2008-05-12 11:53
送出感谢: 0
接收感谢: 0

#14

帖子 jfnn » 2008-05-23 15:31

tg8866 写了:找软件方法:
apt-cache search 软件关键字

看你已经装上了lvm2了吧。

打:lvdisplay

查看
ls /dev/vg* 找到相关的。
lvdisplay
root@ubuntu:/dev# lvdisplay
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
/proc/misc: No entry for device-mapper found
Is device-mapper driver missing from kernel?
Failure to communicate with kernel device-mapper driver.
Incompatible libdevmapper 1.02.20 (2007-06-15)(compat) and kernel driver
--- Logical volume ---
LV Name /dev/VolGroup00/LogVol00
VG Name VolGroup00
LV UUID pPkwSB-FdDE-0GoR-nBbA-n3uj-QH33-0oMWsq
LV Write Access read/write
LV Status NOT available
LV Size 146.97 GB
Current LE 4703
Segments 1
Allocation inherit
Read ahead sectors 0

--- Logical volume ---
LV Name /dev/VolGroup00/LogVol01
VG Name VolGroup00
LV UUID aDZITE-Lq5E-TFlY-jVF2-OBhD-pntI-HorqDA
LV Write Access read/write
LV Status NOT available
LV Size 1.94 GB
Current LE 62
Segments 1
Allocation inherit
Read ahead sectors 0
ls /dev/v*
root@ubuntu:/dev# ls /dev/v*
/dev/vcs /dev/vcs2 /dev/vcs4 /dev/vcs6 /dev/vcsa1 /dev/vcsa3 /dev/vcsa5
/dev/vcs1 /dev/vcs3 /dev/vcs5 /dev/vcsa /dev/vcsa2 /dev/vcsa4 /dev/vcsa6
没有vg开头的
tg8866
帖子: 471
注册时间: 2008-02-01 7:16
送出感谢: 0
接收感谢: 0

#15

帖子 tg8866 » 2008-05-23 16:38

/dev/VolGroup00/LogVol00
没有这个的话,重起一下。

有个命令的,不过忘记了。

找到了:命令:
sudo partprobe
回复

回到 “老旧版本支持”