全球主机交流论坛

标题: 请教debian系统下挂载硬盘 [打印本页]

作者: wjhhxl    时间: 2011-1-15 14:20
标题: 请教debian系统下挂载硬盘


很明显 第二块硬盘sdb 没有挂载上去。

Disk /dev/sda: 10.7 GB, 10737418240 bytes
255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x99339933

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          31      248976   83  Linux
/dev/sda2              32        1305    10233405   8e  Linux LVM

Disk /dev/sdb: 10.7 GB, 10737418240 bytes255 heads, 63 sectors/track, 1305 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x8060aa57

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1305    10482381   8e  Linux LVM



请教如何挂载sdb硬盘。
作者: windywinter    时间: 2011-1-15 14:33
mount /dev/sdb1 挂载点
也可以在/etc/fstab里面照葫芦画瓢。
作者: wjhhxl    时间: 2011-1-15 15:03
原帖由 windywinter 于 2011-1-15 14:33 发表
mount /dev/sdb1 挂载点
也可以在/etc/fstab里面照葫芦画瓢。


谢谢!请问我在根目录创建sdb1文件夹,
然后在fstab里这样加一句可以吗?

# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc            /proc           proc    defaults        0       0
/dev/mapper/debian-root /               ext3    errors=remount-ro 0       1
/dev/sda1       /boot           ext2    defaults        0       2
/dev/mapper/debian-home /home           ext3    defaults        0       2
/dev/mapper/debian-swap_1 none            swap    sw              0       0
/dev/hda        /media/cdrom0   udf,iso9660 user,noauto     0       0
/dev/fd0        /media/floppy0  auto    rw,user,noauto  0       0
/dev/sdb1      /sdb1           ext3    defaults        0       2
作者: windywinter    时间: 2011-1-15 15:07
不可以。
/dev/sdb1是LVM的。搞不清楚到底该怎么挂,楼下来。

[ 本帖最后由 windywinter 于 2011-1-15 15:09 编辑 ]
作者: feiyd    时间: 2011-1-15 15:29
1.建vg lv  
2.格式化lv  
3.mount  
三部曲
作者: wjhhxl    时间: 2011-1-15 15:31
原帖由 feiyd 于 2011-1-15 15:29 发表
1.建vg lv  
2.格式化lv  
3.mount  
三部曲


第二块硬盘好像已经格式化了吧。
作者: feiyd    时间: 2011-1-15 15:33
原帖由 wjhhxl 于 2011-1-15 15:31 发表


第二块硬盘好像已经格式化了吧。



只是做好了lvm。
不知道是否已做了lv.看样子是没有做的
所以你得自己来
作者: wjhhxl    时间: 2011-1-15 15:37
网上看了这个教程,http://zhidao.baidu.com/question/172241782.html
但还是没看懂。
作者: wjhhxl    时间: 2011-1-15 15:39
原帖由 feiyd 于 2011-1-15 15:33 发表



只是做好了lvm。
不知道是否已做了lv.看样子是没有做的
所以你得自己来


第二块硬盘完整信息是这样的
   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1        1305    10482381   8e  Linux LVM

Disk /dev/dm-0: 2969 MB, 2969567232 bytes
255 heads, 63 sectors/track, 361 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 390 MB, 390070272 bytes
255 heads, 63 sectors/track, 47 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-1 doesn't contain a valid partition table

Disk /dev/dm-2: 7117 MB, 7117733888 bytes
255 heads, 63 sectors/track, 865 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00000000

Disk /dev/dm-2 doesn't contain a valid partition table
作者: wjhhxl    时间: 2011-1-15 16:44
http://www.ownlinux.cn/install-config/2010/0725/2452.html
我看到了这个教程,很不错,




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