现在的位置: 首页 > 综合 > 正文

Accessing a Fedora/CentOS Logical Volume from Ubuntu

2018年05月13日 ⁄ 综合 ⁄ 共 880字 ⁄ 字号 评论关闭

zz

http://www.linux-sxs.org/storage/fedora2ubuntu.html

ERROR:

mount: unknown filesystem type 'LVM2_member'

A while back, I started experimenting with Ubuntu after playing withFedora. I decided to jump to Ubuntu and needed to move data from the Fedora-managed logical volume to Ubuntu. Here's what I did.

  1. Boot Ubuntu.
  2. Install lvm2:
    $ sudo apt-get install lvm2
    
  3. Load the necessary module(s):
    $ sudo modprobe dm-mod
    
  4. Scan your system for LVM volumes and identify in the output the volumegroup name that has your Fedora volume (mine proved to be VolGroup00):
    $ sudo vgscan
    
  5. Activate the volume:
    $ sudo vgchange -ay VolGroup00
    
  6. Find the logical volume that has your Fedora root filesystem (mineproved to be LogVol00):
    $ sudo lvs
    
  7. Create a mount point for that volume:
    $ sudo mkdir /mnt/fcroot
    
  8. Mount it:
    $ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o ro,user
    
  9. Copied my files.

Reference:

1.

About mount:

http://hi.baidu.com/ooppto/item/3ae2c59a03730edc1f4271c7

http://os.51cto.com/art/201003/187514.htm

2

/etc/fstab和etc/mtab文件

抱歉!评论已关闭.