fstab & LVM logical volumes
ubuntu prole
ubuntu.prole at gmail.com
Tue Oct 23 12:57:11 UTC 2007
Thanks to all who responded.
Using sudo vol_id /dev/mapper/lvmvolume-archive did display the proper UUID
for the logical volume,
cmnx at maul:/archive$ sudo vol_id /dev/mapper/lvmvolume-archive
[sudo] password for cmnx:
ID_FS_USAGE=filesystem
ID_FS_TYPE=ext3
ID_FS_VERSION=1.0
ID_FS_UUID=6b98eb3f-4d98-479e-b13e-72d012f34a10
ID_FS_UUID_ENC=6b98eb3f-4d98-479e-b13e-72d012f34a10
ID_FS_LABEL=archive
ID_FS_LABEL_ENC=archive
ID_FS_LABEL_SAFE=archive
cmnx at maul:/archive$
And creating a mount point for the logical drive (/archive) allowed me to
put an entry in fstab to automatically mount the drive.
sudo mkdir /archive
sudo mount /dev/mapper/lvmvolume-archive /archive
And the entry in fstab
...
/dev/mapper/lvmvolume-archive /archive ex3 defaults 0 2
With the UUID information I could now change the fstab entry to be:
...
UUID=6b98eb3f-4d98-479e-b13e-72d012f34a10 /archive ex3 defaults 0 2
mark
On 10/22/07, James Macele Jones <macele.jones at gmail.com> wrote:
>
>
> On Mon, 2007-10-22 at 18:04 -0700, Froylan Lapid wrote:
>
> how about using 'fdisk -l' to list the volumes of all your drives and
> instead of mounting it using uuid use the hda, hdb or sda etc... to mount
> it.
>
>
> Except he is not mounting a drive really... he is mounting a fake raid
> array, which under linux is listed as /dev/mapper/*_whatever_*
>
> I'm no expert though...
>
> Another method to see what to mount is like this:
>
> macele at macele-desktop:~$ sudo dmraid -ay
> [sudo] password for macele:
> RAID set "nvidia_ahafefih" already active
> RAID set "nvidia_ahafefih1" already active
> RAID set "nvidia_ahafefih2" already active
> RAID set "nvidia_ahafefih3" already active
> RAID set "nvidia_ahafefih4" already active
> macele at macele-desktop:~$
>
> Obviously nvidia_ahafefih is the device and nvidia_ahafefihX are the
> partitions.
>
> My fstab:
>
> macele at macele-desktop:~$ cat /etc/fstab
> # /etc/fstab: static file system information.
> #
> # <file system> <mount point> <type> <options> <dump> <pass>
> proc /proc proc defaults 0 0
> /dev/mapper/nvidia_ahafefih3 / ext3
> defaults,errors=remount-ro 0 1
> /dev/mapper/nvidia_ahafefih4 none swap sw
> 0 0
> /dev/hda /media/cdrom0 udf,iso9660 user,noauto,exec 0 0
> /dev/hdc /media/cdrom1 udf,iso9660 user,noauto,exec 0 0
> /dev/fd0 /media/floppy0 auto rw,user,noauto,exec 0 0
> macele at macele-desktop:~$
>
> Hope that helps,
> Maceleqq
>
>
>
>
>
>
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
>
--
I don't believe I understand all I know about this.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20071023/d00a5259/attachment.html>
More information about the ubuntu-users
mailing list