Chinaunix首页 | 论坛 | 博客
  • 博客访问: 597221
  • 博文数量: 95
  • 博客积分: 1573
  • 博客等级: 上尉
  • 技术积分: 1030
  • 用 户 组: 普通用户
  • 注册时间: 2011-12-23 10:46
个人简介

hello world!

文章分类

全部博文(95)

文章存档

2014年(1)

2013年(44)

2012年(50)

分类: LINUX

2012-12-25 08:47:15

#fdisk -l
[root@localhost /]
# fdisk -l
Disk /dev/sda: 36.7 GB, 36778545152 bytes
255 heads, 63 sectors/track, 4471 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot      Start         End      Blocks   Id System
/dev/sda1   *           1          13      104391   83 Linux
/dev/sda2              14        2463    19679625   83 Linux
/dev/sda3            2464        3949    11936295   83 Linux
/dev/sda4            3950        4471     4192965    5 Extended
/dev/sda5            3950        4471     4192933+ 82 Linux swap / Solaris
Disk /dev/sdb: 73.4 GB, 73407868928 bytes
255 heads, 63 sectors/track, 8924 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot      Start         End      Blocks   Id System
/dev/sdb1   *           1        8924    71681998+ 8e Linux LVM
Disk /dev/sdc: 36.7 GB, 36703934464 bytes
255 heads, 63 sectors/track, 4462 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot      Start         End      Blocks   Id System
/dev/sdc1   *           1          13      104391   83 Linux
/dev/sdc2              14        4462    35736592+ 8e Linux LVM
[root@localhost /]# pvs
PV         VG         Fmt Attr PSize PFree 
/dev/sdb1             lvm2 --   68.36G 68.36G
/dev/sdc2 VolGroup00 lvm2 a-   34.06G 32.00M

sdc2就是我要挂接的
[root@localhost /]
# vgscan
Reading all physical volumes. This may take a while...
Found volume group "VolGroup00" using metadata type lvm2

[root@localhost /]# lvscan
inactive            '/dev/VolGroup00/LogVol00' [32.09 GB] inherit
inactive           '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
可以看到新修改的VolGroup00是inactive状态

[root@localhost /]# vgchange -a y 
2 logical volume(s) in volume group "VolGroup00" now active
[root@localhost /]# lvscan
ACTIVE            '/dev/VolGroup00/LogVol00' [32.09 GB] inherit
ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
好了,现在可以挂载了

[root@localhost /]# mount -t ext3 /dev/VolGroup00/LogVol00 /d1

在创建LV时出现的错误
/proc/misc: No entry for device-mapper found Is device-mapper driver missing from kernel?Failure to communicate with kernel device-mapper driver.
解决:modprobe dm-mod


[root@localhost ~]# fdisk -l

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

Device Boot      Start         End      Blocks   Id  System
/dev/hdc1   *           1        1309    10514511    c  W95 FAT32 (LBA)
/dev/hdc2            1310        3274    15783862+   7  HPFS/NTFS
/dev/hdc3            3275        9729    51849787+   f  W95 Ext'd (LBA)
/dev/hdc5            3275        9729    51849756    7  HPFS/NTFS

Disk /dev/hdd: 80.0 GB, 80060424192 bytes
255 heads, 63 sectors/track, 9733 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot      Start         End      Blocks   Id  System
/dev/hdd1   *           1          13      104391   83  Linux
/dev/hdd2              14         144     1052257+  82  Linux swap / Solaris
/dev/hdd3             145        9733    77023642+  83  Linux
[root@localhost ~]# mkdir /mnt/myhdc5
[root@localhost ~]# mount -t ntfs-3g /dev/hdc5 /mnt/myhdc5
[root@localhost ~]# mkdir /mnt/myhdc1
[root@localhost ~]# mount -t vfat /dev/hdc1 /mnt/myhdc1

转自:http://blog.csdn.net/lampsunny/article/details/7414444 
阅读(2010) | 评论(0) | 转发(0) |
0

上一篇:fedora 17安装KVM

下一篇:gdm 3 定制

给主人留下些什么吧!~~