Re: how to mount an lvm (thumb) drive?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 25, 2008 at 2:59 PM, Chris Tyler <chris@xxxxxxxxxxx> wrote:
>
> On Tue, 2008-11-25 at 14:30 -1000, Dave Burns wrote:
>> I have a thumb drive with fedora installed on it. When I plug in the
>> drive, /boot mounts automatically. fdisk -l shows the root partition
>> device is LVM. I would like to mount / by hand at another mount point,
>> but I can't figure out what parameter to give to -t.
>>
>> I don't think I need to do any of that. I just want to mount it. How?
>>
>> Thanks,
>> Dave
>
> I'm assuming you're talking about mounting when booted from another
> device.

No? Not sure what you mean. It's a thumb drive. Plug it into my linux
box. Mount it. That's all.

>This might be helpful:
>
> http://dailypackage.fedorabook.com/index.php?/archives/159-.html

That site does not respond at the moment.

>
> Basically:
>
>  lvm vgscan       # find volume groups
>  lvm vgchange -ay # activate them
>  lvm lvs          # show VGs and LVs
>
> Then you can:
>
>  mount /dev/VG/LV /mntpoint
>  # replace VG and LV appropriately

Here's my try:

[root@cod ~]# lvm vgscan
  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
[root@cod ~]# lvm vgchange -ay
  2 logical volume(s) in volume group "VolGroup00" now active
  2 logical volume(s) in volume group "VolGroup00" now active
[root@cod ~]# lvm lvs
  LV       VG         Attr   LSize   Origin Snap%  Move Log Copy%  Convert
  LogVol00 VolGroup00 -wi-ao 230.66G
  LogVol01 VolGroup00 -wi-ao   1.94G
[root@cod ~]# fdisk -l
[snip]
   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1   *           1          25      200781   83  Linux
/dev/sdc2              26         977     7646940   8e  Linux
LVM[root@cod ~]# mount  /dev/VolGroup00/LogVol01 test2
/dev/mapper/VolGroup00-LogVol01 looks like swapspace - not mounted
mount: you must specify the filesystem type
[root@cod ~]# mount  -t lvm2 /dev/VolGroup00/LogVol01 test2
mount: unknown filesystem type 'lvm2'
[root@cod ~]# mount  -t ext2 /dev/VolGroup00/LogVol01 test2
mount: /dev/mapper/VolGroup00-LogVol01 already mounted or test2 busy
[root@cod ~]# mkdir test4
[root@cod ~]# mount  -t ext2 /dev/VolGroup00/LogVol01 test4
mount: /dev/mapper/VolGroup00-LogVol01 already mounted or test4 busy
[root@cod ~]# mount  -t swap /dev/VolGroup00/LogVol01 test4
mount: unknown filesystem type 'swap'
[root@cod ~]# mount  -t ext3 /dev/VolGroup00/LogVol01 test4
mount: /dev/mapper/VolGroup00-LogVol01 already mounted or test4 busy

I am guessing wildly at the -t parameter, man mount doesn't seem to
mention lvm. I am probably confused about something.

[root@cod ~]# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     238064272  56725108 181339164  24% /
/dev/sda1               194442     26546    157857  15% /boot
tmpfs                  4098712        48   4098664   1% /dev/shm
/dev/sdb1            240308484    191772 227909724   1% /export/cod
/dev/sdc1               194442     18628    165775  11% /media/_boot


Should there perhaps be a /dev/mapper/VolGroup00-LogVol01 in the df output?

Thanks,
Dave

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines

[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux