Score:0

How to mount an LVM formatted hard drive connected through a USB adapter?

mx flag

What would be the standard directory to create for an external hard LVM hard drive?

nicholas@mordor:~$ 
nicholas@mordor:~$ ls /dev/mapper
control  vgubuntu-root  vgubuntu-swap_1
nicholas@mordor:~$ 
nicholas@mordor:~$ sudo lvs
  LV     VG       Attr       LSize   Pool Origin Data%  Meta%  Move Log Cpy%Sync Convert
  root   vgubuntu -wi-a----- <73.07g                                                    
  swap_1 vgubuntu -wi-a----- 980.00m                                                    
nicholas@mordor:~$ 
nicholas@mordor:~$ ls /dev/sdb
/dev/sdb
nicholas@mordor:~$ 
nicholas@mordor:~$ sudo vgscan
  Found volume group "vgubuntu" using metadata type lvm2
nicholas@mordor:~$ 
nicholas@mordor:~$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:    22.04
Codename:   jammy
nicholas@mordor:~$ 

And how would such a drive be mounted?

Is it automatically:

$ sudo vgchange -ay VolGroup00

and then:

$ sudo mount /dev/VolGroup00/LogVol00 /mnt/fcroot -o ro,user

I would want it writable, so I would think to exchange ro above for rw. But where did VolGroup00 come from? I tried running vgscan with a higher verbosity without useful result.

Context and some condensed explanation of the workings of LVM appreciated.

additional data:

nicholas@mordor:~$ 
nicholas@mordor:~$ sudo lvscan
  ACTIVE            '/dev/vgubuntu/root' [<73.07 GiB] inherit
  ACTIVE            '/dev/vgubuntu/swap_1' [980.00 MiB] inherit
nicholas@mordor:~$ 

I believe this might be termed "importing into the volume group" but am not certain.

I sit in a Tesla and translated this thread with Ai:

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.