Mounting an LVM volume

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

 



I want to mount my fedora partition from another disc, here's what I have 
so far:




arrakis ~ #
arrakis ~ # fdisk /dev/hda

The number of cylinders for this disk is set to 9729.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
  (e.g., DOS FDISK, OS/2 FDISK)

Command (m for help): p

Disk /dev/hda: 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/hda1              1        1912    15358108+  83  Linux
/dev/hda2            1913        1925      104422+  83  Linux
/dev/hda3            1926        9729    62685630  8e  Linux LVM

Command (m for help):
Command (m for help): q

arrakis ~ #
arrakis ~ #
arrakis ~ # cat lvm.txt

#load device module
modprobe dm-mod
#change the volumes that exist to active
vgchange -ay
#mount the logical partition
mkdir -p /mnt/VolGroup00/LogVol00
mount /dev/hda3/VolGroup00/LogVol00 /mnt/VolGroup00/LogVol00
arrakis ~ #
arrakis ~ # ./lvm.txt
./lvm.txt: line 5: vgchange: command not found
mount: special device /dev/hda3/VolGroup00/LogVol00 does not exist
      (a path prefix is not a directory)

arrakis ~ #
arrakis ~ # date
Sun Oct  7 00:23:55 PDT 2007
arrakis ~ #
arrakis ~ #


<http://nopaste.info/dc6c513ea0.html>




I don't understand what's wrong with the mount command.  It's pretty much 
a copy/paste from <http://www.fedoraforum.org/forum/archive/index.php/
t-64964.html>



Thanks,

Thufir


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

  Powered by Linux