• Re: Confusing file systems when both an old and a newer drive are mount

    From Alan K.@21:1/5 to pinnerite on Wed Feb 5 15:22:57 2025
    XPost: alt.os.linux.mint, alt.os.linux, mageia
    XPost: alt.os.linux.fedora, alt.os.linux.pclinuxos

    On 2/5/25 12:46 PM, pinnerite wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate it.

    Does this strike a chord?



    Disks command in Mint shows all the drives and the /dev for each.
    Also nemo will show you the /dev in tool tips if you hover over the mounted drive in the
    side panel.

    When doing a diff (meld) between two folders (if not too large) I do kinda like Jonathan
    suggested, and I copy one of the folders I compare to the Downloads folder and rename it
    to folder_suspect. Then do a meld and compare, folder vs folder_suspect. Lets me know
    which one I prefer and what is suspect to be better or worse.
    --
    Linux Mint 22.1, Cinnamon 6.4.6, Kernel 6.8.0-52-generic
    Thunderbird 128.6.0esr, Mozilla Firefox 134.0.2
    Alan K.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Monsieur@21:1/5 to pinnerite on Thu Feb 6 11:26:26 2025
    XPost: alt.os.linux.mint, alt.os.linux.fedora

    pinnerite wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate it.

    Does this strike a chord?

    Could it be SpaceFM?

    https://ignorantguru.github.io/spacefm/

    It's available in Mint's software manager

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From wicklowham@21:1/5 to pinnerite on Thu Feb 6 15:15:28 2025
    XPost: alt.os.linux.mint, alt.os.linux.fedora

    On 06/02/2025 14:35, pinnerite wrote:
    On Thu, 6 Feb 2025 11:26:26 +0100
    Monsieur <Monsieur@notreal.invalid> wrote:

    pinnerite wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate it.

    Does this strike a chord?

    Could it be SpaceFM?

    https://ignorantguru.github.io/spacefm/

    It's available in Mint's software manager

    It isn't but it may well do the job.

    Thank you. Alan


    I just installed it in LM : sudo apt install spacefm

    Frank in County Wicklow Ireland

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Alan K.@21:1/5 to pinnerite on Thu Feb 6 13:35:14 2025
    XPost: alt.os.linux.mint, alt.os.linux.fedora

    On 2/6/25 09:35 AM, pinnerite wrote:
    On Thu, 6 Feb 2025 11:26:26 +0100
    Monsieur <Monsieur@notreal.invalid> wrote:

    pinnerite wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate it.

    Does this strike a chord?

    Could it be SpaceFM?

    https://ignorantguru.github.io/spacefm/

    It's available in Mint's software manager

    It isn't but it may well do the job.

    Thank you. Alan


    It's in Mint 22.1 at least.

    --
    Linux Mint 22.1, Cinnamon 6.4.6, Kernel 6.8.0-52-generic
    Thunderbird 128.6.0esr, Mozilla Firefox 134.0.2
    Alan K.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Jasen Betts@21:1/5 to pinnerite on Sun Feb 9 06:11:45 2025
    XPost: alt.os.linux.mint, alt.os.linux, mageia
    XPost: alt.os.linux.fedora, alt.os.linux.pclinuxos

    On 2025-02-05, pinnerite <pinnerite@gmail.com> wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate it.

    Does this strike a chord?

    assuming you don't actually mean /dev/sdb2 which is a block
    device, not a mounted file system.

    Nautilus, has backwards, forwards, bookmarks, and tabs. It's the standard
    GNOME file-manager. For some reason GNOME call it "Files"

    --
    Jasen.
    🇺🇦 Слава Україні

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to Jasen Betts on Sun Feb 9 11:50:53 2025
    XPost: alt.os.linux.mint, alt.os.linux, mageia
    XPost: alt.os.linux.fedora, alt.os.linux.pclinuxos

    On Sun, 09 Feb 2025 01:11:45 -0500, Jasen Betts <usenet@revmaps.no-ip.org> wrote:

    On 2025-02-05, pinnerite <pinnerite@gmail.com> wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate it.

    Does this strike a chord?

    assuming you don't actually mean /dev/sdb2 which is a block
    device, not a mounted file system.

    Nautilus, has backwards, forwards, bookmarks, and tabs. It's the standard GNOME file-manager. For some reason GNOME call it "Files"

    I suspect it is /dev/sdb2 being referred to, for the purpose of making sure it's backed up etc.

    With complicated filesystem layouts, it's easy to forget what is where.

    I vaguely remember a gui file manager that had the device as an optional column. For the
    amount of time I needed it, I considered it a waste of screen space, so didn't use it and don't
    remember which file manager had it.

    I have a file called default.gpfl in my home directory. Assuming I want to find out what
    device it's on ...

    $ stat /home/dave/default.gpfl | grep ^Dev
    Device: 259,11 Inode: 5411522 Links: 1

    To find out what device 259,11 is replace the comma with a colon and preface it with
    "/sys/dev/block/".

    $ ls -l /sys/dev/block/259:11
    lrwxrwxrwx 1 root root 0 Feb 8 19:33 /sys/dev/block/259:11 -> ../../devices/pci0000:00/0000:00:02.4/0000:05:00.0/nvme/nvme1/nvme1n1/nvme1n1p7/

    So it's /dev/nvme1n1p7 that would need to work with to ensure the file /home/dave/default.gpfl was included.

    On my system currently ...
    $ mount|grep nvme1n1p7
    /dev/nvme1n1p7 on /data type ext4 (rw,relatime)

    I didn't put /home on a separate file system in this install when I created it as it was just
    a test installation. I moved it later and replaced it with a symlink ...
    $ ls -l / | grep home
    lrwxrwxrwx 1 root root 10 Dec 14 12:17 home -> /data/home/

    $ mount | grep ' / '
    /dev/ on / type ext4 (rw,relatime)

    With /home having been moved, anyone looking at just the mount command output would
    think files in /home/dave were in nvme1n1p8, not nvme1n1p7.

    This was one of the test installs till my main computer died. I then used my backup to restore
    my data into this install.

    Regards, Dave Hodgins

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From vallor@21:1/5 to dwhodgins@nomail.afraid.org on Sun Feb 9 18:55:36 2025
    XPost: alt.os.linux.mint, alt.os.linux.mageia, alt.os.linux.fedora
    XPost: alt.os.linux.pclinuxos

    On Sun, 09 Feb 2025 11:50:53 -0500, "David W. Hodgins" <dwhodgins@nomail.afraid.org> wrote in <op.21pnq3q6a3w0dxdave@hodgins.homeip.net>:

    On Sun, 09 Feb 2025 01:11:45 -0500, Jasen Betts
    <usenet@revmaps.no-ip.org> wrote:

    On 2025-02-05, pinnerite <pinnerite@gmail.com> wrote:
    I need to be able to identify the partition address and its file
    address, particularly when I have two drives on-line.

    I tried a variety of live devices. Antix was the only one that came
    close.

    But years ago I remember a file manager that would allow the user to
    use a single click to switch the contents of the address line at the
    top from say /home/fred to /dev/sdb2 or back. I could not re-locate
    it.

    Does this strike a chord?

    assuming you don't actually mean /dev/sdb2 which is a block device, not
    a mounted file system.

    Nautilus, has backwards, forwards, bookmarks, and tabs. It's the
    standard GNOME file-manager. For some reason GNOME call it "Files"

    I suspect it is /dev/sdb2 being referred to, for the purpose of making
    sure it's backed up etc.

    With complicated filesystem layouts, it's easy to forget what is where.

    I vaguely remember a gui file manager that had the device as an optional column. For the amount of time I needed it, I considered it a waste of
    screen space, so didn't use it and don't remember which file manager had
    it.

    I have a file called default.gpfl in my home directory. Assuming I want
    to find out what device it's on ...

    $ stat /home/dave/default.gpfl | grep ^Dev Device: 259,11 Inode:
    5411522 Links: 1

    To find out what device 259,11 is replace the comma with a colon and
    preface it with "/sys/dev/block/".

    $ ls -l /sys/dev/block/259:11 lrwxrwxrwx 1 root root 0 Feb 8 19:33 /sys/dev/block/259:11 -> ../../devices/pci0000:00/0000:00:02.4/0000:05:00.0/nvme/nvme1/nvme1n1/
    nvme1n1p7/

    So it's /dev/nvme1n1p7 that would need to work with to ensure the file /home/dave/default.gpfl was included.

    On my system currently ...
    $ mount|grep nvme1n1p7 /dev/nvme1n1p7 on /data type ext4 (rw,relatime)

    I didn't put /home on a separate file system in this install when I
    created it as it was just a test installation. I moved it later and
    replaced it with a symlink ...
    $ ls -l / | grep home lrwxrwxrwx 1 root root 10 Dec 14 12:17 home
    /data/home/

    $ mount | grep ' / '
    /dev/ on / type ext4 (rw,relatime)

    With /home having been moved, anyone looking at just the mount command
    output would think files in /home/dave were in nvme1n1p8, not nvme1n1p7.

    This was one of the test installs till my main computer died. I then
    used my backup to restore my data into this install.

    Regards, Dave Hodgins

    One can also run "df" on the directory in question, and it
    will tell you what the device is:

    _[/srv/Extreme_Pro]_(xxx@lm)🐧_
    $ df .
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 3844518728 862344652 2786808504 24% /srv/Extreme_Pro





    --
    -v

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From David W. Hodgins@21:1/5 to vallor on Sun Feb 9 16:14:22 2025
    XPost: alt.os.linux.mint, alt.os.linux.mageia, alt.os.linux.fedora
    XPost: alt.os.linux.pclinuxos

    On Sun, 09 Feb 2025 13:55:36 -0500, vallor <vallor@cultnix.org> wrote:
    <snip>
    One can also run "df" on the directory in question, and it
    will tell you what the device is:

    _[/srv/Extreme_Pro]_(xxx@lm)🐧_
    $ df .
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 3844518728 862344652 2786808504 24% /srv/Extreme_Pro

    Lol. Thanks. That's one I did not know.

    I now realize I had never bothered using "page down" while viewing the df man page.

    Regards, Dave Hodgins

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From William Unruh@21:1/5 to pinnerite on Thu Feb 13 04:05:33 2025
    XPost: alt.os.linux.mint, alt.os.linux.mageia, alt.os.linux.fedora
    XPost: alt.os.linux.pclinuxos

    On 2025-02-11, pinnerite <pinnerite@gmail.com> wrote:
    On Sun, 09 Feb 2025 16:14:22 -0500
    "David W. Hodgins" <dwhodgins@nomail.afraid.org> wrote:

    On Sun, 09 Feb 2025 13:55:36 -0500, vallor <vallor@cultnix.org> wrote:
    <snip>
    One can also run "df" on the directory in question, and it
    will tell you what the device is:

    _[/srv/Extreme_Pro]_(xxx@lm)🐧_
    $ df .
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sda1 3844518728 862344652 2786808504 24% /srv/Extreme_Pro

    Lol. Thanks. That's one I did not know.

    I now realize I had never bothered using "page down" while viewing the df man page.

    Regards, Dave Hodgins

    My arrangement is not that simple.

    My system is installed on a 1TB nvMe.
    But all my data is on a separate partition on a 2TB hard drive
    /home/Data The backup only has two partitions: Data and Mythtv so
    just rsyncing from /dev/sda to /dev/sdb won't do it.

    You would never rsync from /dev/sda to /dev/sdb. they are not
    directories and files. You would mount /dev/sda1 and /dev/sdb1 say and then rsync between those mounted filesystems. (call them SDA and SDB if you want.)sda and sdb are the whole disk. sda# are partitions on sda where #
    means some number . But you do not have drives sda or sdb You have
    driver /dev/nvme0 and /dev/nvme1 say, with partitions like nvme0n1p2

    Mount the partitions into your root filessytem and then you can rsync
    between those mounted partitions.




    Anyway, running Antix looks like a temporary solution.
    I hope I can organise persistence so that I can save a script toi the flash drive.

    Regards, Alan


    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)