how to mount an lvm (thumb) drive?

Chris Tyler chris at tylers.info
Wed Nov 26 01:39:15 UTC 2008


On Tue, 2008-11-25 at 15:27 -1000, Dave Burns wrote:
> On Tue, Nov 25, 2008 at 2:57 PM, Dario Nievas <nievasdario at gmail.com> wrote:
> > could you please provide the output of:
> > "pvscan"
> > "lvscan"
> > "vgscan"
> >
> 
> lvm pvscan;lvm lvscan;lvm vgscan
>   PV /dev/sdc2   VG VolGroup00   lvm2 [7.28 GB / 32.00 MB free]
>   PV /dev/sda2   VG VolGroup00   lvm2 [232.62 GB / 32.00 MB free]
>   Total: 2 [239.91 GB] / in use: 2 [239.91 GB] / in no VG: 0 [0   ]
>   ACTIVE            '/dev/VolGroup00/LogVol00' [230.66 GB] inherit
>   ACTIVE            '/dev/VolGroup00/LogVol01' [1.94 GB] inherit
>   Reading all physical volumes.  This may take a while...
>   Found volume group "VolGroup00" using metadata type lvm2
>   Found volume group "VolGroup00" using metadata type lvm2
> 
> 
> > If you were able to see and activate the VG, it shouldn't be harder than
> > "mount /dev/<vgname>/<logvolname>  /mnt/anymountpoint
> 
> It demands -t.

This usually indicates that there is no recognized filesystem on the
block device (i.e., wrong or empty block device).

> [root at cod ~]# mount  /dev/VolGroup00/LogVol01 test2
> /dev/mapper/VolGroup00-LogVol01 looks like swapspace - not mounted
> mount: you must specify the filesystem type

I'm guessing that both the USB drive and your system have VolGroup00 as
the volume group name, which is causing confusion. Try renaming one of
them using vgrename (carefully :-)

(We really should improve the default naming scheme for VGs).

-Chris




More information about the fedora-list mailing list