I have copy of Fedora 29 on another drive in this computer and I would like to access the home partition on it from this Fedora 31 system. I can mount the drive /dev/sda2 and do lvscan, one of the few lv commands I have in my noes from 2011. I usually select standard partitions when installing to avoid this sort on confusion, I don't know why I have this one lvm system but it is there and it still boots if I want it, however it would be convenient to be able to see the file directly without shutting down and booting the other system from the boot menu.
I have mounted /dev/sda2 at /media/test and done lvscan and found that I can do:
[root@Workstation-1 bobg]# ls -al /dev/fedora_localhost-live/home lrwxrwxrwx. 1 root root 7 Mar 26 05:16 /dev/fedora_localhost-live/home -> ../dm-1
but I don't know how to list "home" on the lvm, is it possible and how?
Bob
make a directory say "/mnt/home" and then do mount /dev/fedora_localhost-live/home /mnt/home
Then handle it like a normal directory.
On Thu, Mar 26, 2020 at 10:43 AM Bob Goodwin bobgoodwin@fastmail.us wrote:
I have copy of Fedora 29 on another drive in this computer and I would like to access the home partition on it from this Fedora 31 system. I can mount the drive /dev/sda2 and do lvscan, one of the few lv commands I have in my noes from 2011. I usually select standard partitions when installing to avoid this sort on confusion, I don't know why I have this one lvm system but it is there and it still boots if I want it, however it would be convenient to be able to see the file directly without shutting down and booting the other system from the boot menu.
I have mounted /dev/sda2 at /media/test and done lvscan and found that I can do:
[root@Workstation-1 bobg]# ls -al /dev/fedora_localhost-live/home lrwxrwxrwx. 1 root root 7 Mar 26 05:16 /dev/fedora_localhost-live/home -> ../dm-1
but I don't know how to list "home" on the lvm, is it possible and how?
Bob
-- Bob Goodwin - Zuni, Virginia, Fedora Linux-31 XFCE _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
On 2020-03-26 12:34, Roger Heflin wrote:
make a directory say "/mnt/home" and then do mount /dev/fedora_localhost-live/home /mnt/home
Then handle it like a normal directory.
° All I am able to do is: mount /dev/sda2 /media/test and then # cd /dev/fedora_localhost-live/
That gets: [root@Workstation-1 fedora_localhost-live]# ls -al total 0 drwxr-xr-x. 2 root root 100 Mar 26 05:16 . drwxr-xr-x. 21 root root 4380 Mar 26 05:17 .. lrwxrwxrwx. 1 root root 7 Mar 26 12:58 home -> ../dm-1 lrwxrwxrwx. 1 root root 7 Mar 26 05:16 root -> ../dm-0 lrwxrwxrwx. 1 root root 7 Mar 26 05:16 swap -> ../dm-2
And that produces:
[root@Workstation-1 fedora_localhost-live]# ls -al home -> ../dm-1 ls: cannot access '-': No such file or directory
I think I will give up on this tack. It just tends to justify my avoiding LVM and the complexity it adds which I don't need or want. I will boot F28 and save the 'home' files somewhere where I can get them, perhaps a usb drive or my nsf server,
Thank you for the help, Bob
On Thursday, March 26, 2020 1:39:13 PM EDT Bob Goodwin wrote:
lrwxrwxrwx. 1 root root 7 Mar 26 12:58 home -> ../dm-1
This indicates that the file "home" is a synbolic reference to the file (or directory) "../dm-1".
[snip]
[root@Workstation-1 fedora_localhost-live]# ls -al home -> ../dm-1 ls: cannot access '-': No such file or directory
That command just redirected ls's stdout to the /dm-1 file or directory. The file you want is ../dm-1 -- not "home -> ../dm-1". The shell parses that as 'home' and '-' and then "sees" ">" as a redirect stdout.
In lvm context this dm-1 is a magic device-mapper device/file that sets up a block-mapping to the underlying device that allows access to the blocks of the specific lv in the correct order (in this case home). It really acts just like /dev/sda1 does if there is a filesystem directly on /dev/sda1.
On Thu, Mar 26, 2020 at 1:41 PM Garry T. Williams gtwilliams@gmail.com wrote:
On Thursday, March 26, 2020 1:39:13 PM EDT Bob Goodwin wrote:
lrwxrwxrwx. 1 root root 7 Mar 26 12:58 home -> ../dm-1
This indicates that the file "home" is a synbolic reference to the file (or directory) "../dm-1".
[snip]
[root@Workstation-1 fedora_localhost-live]# ls -al home -> ../dm-1 ls: cannot access '-': No such file or directory
That command just redirected ls's stdout to the /dm-1 file or directory. The file you want is ../dm-1 -- not "home -> ../dm-1". The shell parses that as 'home' and '-' and then "sees" ">" as a redirect stdout.
-- Garry T. Williams
users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
you should be able to do exactly this: mkdir -p /mnt/home mount /dev/fedora_localhost-live/home /mnt/home cd /mnt/home ls -l
On Thu, Mar 26, 2020 at 12:41 PM Bob Goodwin bobgoodwin@fastmail.us wrote:
On 2020-03-26 12:34, Roger Heflin wrote:
make a directory say "/mnt/home" and then do mount /dev/fedora_localhost-live/home /mnt/home
Then handle it like a normal directory.
° All I am able to do is: mount /dev/sda2 /media/test and then # cd /dev/fedora_localhost-live/
That gets: [root@Workstation-1 fedora_localhost-live]# ls -al total 0 drwxr-xr-x. 2 root root 100 Mar 26 05:16 . drwxr-xr-x. 21 root root 4380 Mar 26 05:17 .. lrwxrwxrwx. 1 root root 7 Mar 26 12:58 home -> ../dm-1 lrwxrwxrwx. 1 root root 7 Mar 26 05:16 root -> ../dm-0 lrwxrwxrwx. 1 root root 7 Mar 26 05:16 swap -> ../dm-2
And that produces:
[root@Workstation-1 fedora_localhost-live]# ls -al home -> ../dm-1 ls: cannot access '-': No such file or directory
I think I will give up on this tack. It just tends to justify my avoiding LVM and the complexity it adds which I don't need or want. I will boot F28 and save the 'home' files somewhere where I can get them, perhaps a usb drive or my nsf server,
Thank you for the help, Bob
-- Bob Goodwin - Zuni, Virginia, Fedora Linux-31 XFCE _______________________________________________ users mailing list -- users@lists.fedoraproject.org To unsubscribe send an email to users-leave@lists.fedoraproject.org Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/ List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines List Archives: https://lists.fedoraproject.org/archives/list/users@lists.fedoraproject.org
On 2020-03-26 14:42, Roger Heflin wrote:
you should be able to do exactly this: mkdir -p /mnt/home mount /dev/fedora_localhost-live/home /mnt/home cd /mnt/home ls -l
° Yes, that worked. DF shows: /dev/mapper/fedora_localhost--live-home 860G 25G 792G 3% /mnt/home And I can list the contents as I desired.
Thanks for providing the solution. 25G I don't need to save all of that so accessing it that way is my best option/
Thanks, Bob
On 2020-03-26 14:42, Roger Heflin wrote:
you should be able to do exactly this: mkdir -p /mnt/home mount /dev/fedora_localhost-live/home /mnt/home cd /mnt/home ls -l
° Yes, that worked. DF shows: /dev/mapper/fedora_localhost--live-home 860G 25G 792G 3% /mnt/home And I can list the contents as I desired.
Thanks for providing the solution. 25G I don't need to save all of that so accessing it that way is my best option/
Thanks, Bob