Sysop: | Amessyroom |
---|---|
Location: | Fayetteville, NC |
Users: | 23 |
Nodes: | 6 (0 / 6) |
Uptime: | 49:42:59 |
Calls: | 583 |
Files: | 1,138 |
Messages: | 111,301 |
I need some help to re-communicate with a lost partition.
Davey wrote:
I need some help to re-communicate with a lost partition.
A tool which I've only ever used once, but it saved the day, is gpart
(not gparted) which stands for GuessPARTition
<https://manpages.ubuntu.com/manpages/trusty/man8/gpart.8.html>
possibly also
<http://thewalter.net/stef/software/scrounge/>
I need some help to re-communicate with a lost partition.
I have a large partition, on an SSD, for the storage of videos
and some document files. It was called m2SSD, and always came up on
Files, GNOME Commander, etc, as an option, which could be navigated to,
and accessed.
Recently, I noticed that it was not appearing as an option, and I
could not access it through any of the normal routes. 'Disks' showed it
still in existence, but with no label, only 'Partition 2', on
/dev/sda2. It had no mount point, which made some sense. GParted
basically confirmed this, identifying it also as /dev/sda2.
I used 'Disks' to give it a name, again 'm2SSD', and it now shows as
such in 'Disks'. I then tried to edit the Mount Point, and whatever
happened, it took me hours to finally get back to where I was just
before. 'Disks' now shows it to be mounted at: Filesystem Root. GParted
says that its mountpoint is: /,/var/snap/firefox/common/host-hunspell,
which means nothing to me and navigating to /var/snap/firefox/common/host-hunspell shows only four files, none of
them mentioning m2SSD. The same for it in Filesystem Root, I can find no mention of it there.
So it is still there, somewhere, but I can't access it.
Davey <davey@example.invalid> wrote:
I need some help to re-communicate with a lost partition.
I have a large partition, on an SSD, for the storage of videos
and some document files. It was called m2SSD, and always came up on
Files, GNOME Commander, etc, as an option, which could be navigated
to, and accessed.
Recently, I noticed that it was not appearing as an option, and I
could not access it through any of the normal routes. 'Disks'
showed it still in existence, but with no label, only 'Partition
2', on /dev/sda2. It had no mount point, which made some sense.
GParted basically confirmed this, identifying it also as /dev/sda2.
I used 'Disks' to give it a name, again 'm2SSD', and it now shows as
such in 'Disks'. I then tried to edit the Mount Point, and whatever happened, it took me hours to finally get back to where I was just
before. 'Disks' now shows it to be mounted at: Filesystem Root.
GParted says that its mountpoint is: /,/var/snap/firefox/common/host-hunspell, which means nothing to me
and navigating to /var/snap/firefox/common/host-hunspell shows only
four files, none of them mentioning m2SSD. The same for it in
Filesystem Root, I can find no mention of it there.
So it is still there, somewhere, but I can't access it.
First check if it shows up in your desktop file manager and if it
allows you to mount it from there.
Otherwise, in terminal type 'mount' and look for it in the list.
That list is rather polluted with Squashfs/NSFS mounts from snap, so
you could do:
mount | grep -v squashfs | grep -v nsfs
to try to filter them out, or:
mount | grep sd
to look for anything with 'sd' in the name (will pick up some
irrelevant stuff but also show you any USB/SATA partitions like sda2)
Of course, if it's not mounted it won't show up. In which case, look
in /etc/fstab to see if there's any record of it there.
Theo
On 26 Aug 2025 13:31:27 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Davey <davey@example.invalid> wrote:
I need some help to re-communicate with a lost partition.
I have a large partition, on an SSD, for the storage of videos
and some document files. It was called m2SSD, and always came up on Files, GNOME Commander, etc, as an option, which could be navigated
to, and accessed.
Recently, I noticed that it was not appearing as an option, and I
could not access it through any of the normal routes. 'Disks'
showed it still in existence, but with no label, only 'Partition
2', on /dev/sda2. It had no mount point, which made some sense.
GParted basically confirmed this, identifying it also as /dev/sda2.
I used 'Disks' to give it a name, again 'm2SSD', and it now shows as
such in 'Disks'. I then tried to edit the Mount Point, and whatever happened, it took me hours to finally get back to where I was just before. 'Disks' now shows it to be mounted at: Filesystem Root.
GParted says that its mountpoint is: /,/var/snap/firefox/common/host-hunspell, which means nothing to me
and navigating to /var/snap/firefox/common/host-hunspell shows only
four files, none of them mentioning m2SSD. The same for it in
Filesystem Root, I can find no mention of it there.
So it is still there, somewhere, but I can't access it.
First check if it shows up in your desktop file manager and if it
allows you to mount it from there.
No it doesn't, and I know it used to.
Otherwise, in terminal type 'mount' and look for it in the list.
$ mount: Extract: {/dev/sda2 on / type ext4
(rw,relatime,errors=remount-ro) securityfs on /sys/kernel/security type securityfs (rw,nosuid,nodev,noexec,relatime)}
That list is rather polluted with Squashfs/NSFS mounts from snap, so
you could do:
mount | grep -v squashfs | grep -v nsfs
to try to filter them out, or:
mount | grep sd
This was the best of all.
~$ mount | grep sd
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro)
cgroup2 on /sys/fs/cgroup type cgroup2 (rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
/dev/sda2 on /var/snap/firefox/common/host-hunspell type ext4 (ro,noexec,noatime,errors=remount-ro)
So it found the /var/snap/~~~-hunspell location, whatever that is.
I have no idea what cgroup2 is, either.
I think your drive is not /dev/sda at all. Try:
sudo dmesg | grep sd
and see if it's appearing with another letter. If it's in a motherboard M.2 slot or in a Thunderbolt adapter you might also try:
sudo dmesg | grep nvm
Theo <theom+news@chiark.greenend.org.uk> writes:
I think your drive is not /dev/sda at all. Try:
sudo dmesg | grep sd
and see if it's appearing with another letter. If it's in a
motherboard M.2 slot or in a Thunderbolt adapter you might also try:
sudo dmesg | grep nvm
I would start with lsblk; it will tell you what drives are actually
attached, what partitions they have, and where they are moutned (if anywhere).
Davey <davey@example.invalid> wrote:
On 26 Aug 2025 13:31:27 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Davey <davey@example.invalid> wrote:No it doesn't, and I know it used to.
I need some help to re-communicate with a lost partition.
I have a large partition, on an SSD, for the storage of videos
and some document files. It was called m2SSD, and always came up on
Files, GNOME Commander, etc, as an option, which could be navigated
to, and accessed.
Recently, I noticed that it was not appearing as an option, and I
could not access it through any of the normal routes. 'Disks'
showed it still in existence, but with no label, only 'Partition
2', on /dev/sda2. It had no mount point, which made some sense.
GParted basically confirmed this, identifying it also as /dev/sda2.
I used 'Disks' to give it a name, again 'm2SSD', and it now shows as
such in 'Disks'. I then tried to edit the Mount Point, and whatever
happened, it took me hours to finally get back to where I was just
before. 'Disks' now shows it to be mounted at: Filesystem Root.
GParted says that its mountpoint is:
/,/var/snap/firefox/common/host-hunspell, which means nothing to me
and navigating to /var/snap/firefox/common/host-hunspell shows only
four files, none of them mentioning m2SSD. The same for it in
Filesystem Root, I can find no mention of it there.
So it is still there, somewhere, but I can't access it.
First check if it shows up in your desktop file manager and if it
allows you to mount it from there.
Otherwise, in terminal type 'mount' and look for it in the list.$ mount: Extract: {/dev/sda2 on / type ext4
(rw,relatime,errors=remount-ro) securityfs on /sys/kernel/security type
securityfs (rw,nosuid,nodev,noexec,relatime)}
That appears to be the root fs of the system you are currently booted into. ie either there's an OS on m2SSD and you booted into it, or there's another drive on /dev/sda2 and you're booted into that, and m2SSD is somewhere else.
--- Synchronet 3.21a-Linux NewsLink 1.2That list is rather polluted with Squashfs/NSFS mounts from snap, soThis was the best of all.
you could do:
mount | grep -v squashfs | grep -v nsfs
to try to filter them out, or:
mount | grep sd
~$ mount | grep sd
/dev/sda2 on / type ext4 (rw,relatime,errors=remount-ro)
cgroup2 on /sys/fs/cgroup type cgroup2
(rw,nosuid,nodev,noexec,relatime,nsdelegate,memory_recursiveprot)
/dev/sda2 on /var/snap/firefox/common/host-hunspell type ext4
(ro,noexec,noatime,errors=remount-ro)
So it found the /var/snap/~~~-hunspell location, whatever that is.
I have no idea what cgroup2 is, either.
cgroups are a containerisation feature. The above is likely a 'bind mount', which allows you to mount one part of the filesystem tree at another place. That's a red herring for your purposes.
I think your drive is not /dev/sda at all. Try:
sudo dmesg | grep sd
and see if it's appearing with another letter. If it's in a motherboard M.2 slot or in a Thunderbolt adapter you might also try:
sudo dmesg | grep nvm
Theo
NVMe "disks" are names /dev/nvme0n1p1 (As an example) p = partition, n is first NVMe disk/strip.
So I agree that /dev/sda2 is the second partition on a SATA disk.
Gordon <Gordon@leaf.net.nz> wrote:
NVMe "disks" are names /dev/nvme0n1p1 (As an example) p =
partition, n is first NVMe disk/strip.
Except if they're in USB adapters, when they turn into /dev/sd*
But when they're in Thunderbolt adapters they remain as /dev/nvme*
Those two can look physically identical (some adapters even do both protocols) but since Thunderbolt is more expensive an adapter is
probably USB unless you know otherwise.
So I agree that /dev/sda2 is the second partition on a SATA disk.
Or a USB disc.
Theo
On 28 Aug 2025 10:47:37 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Gordon <Gordon@leaf.net.nz> wrote:
NVMe "disks" are names /dev/nvme0n1p1 (As an example) p =
partition, n is first NVMe disk/strip.
Except if they're in USB adapters, when they turn into /dev/sd*
But when they're in Thunderbolt adapters they remain as /dev/nvme*
Those two can look physically identical (some adapters even do both protocols) but since Thunderbolt is more expensive an adapter is
probably USB unless you know otherwise.
So I agree that /dev/sda2 is the second partition on a SATA disk.
Or a USB disc.
Theo
Ok. Going back to basics.
I ran GParted, and it found this:
1. /dev/nvme0n1p1 /boot/efi ext4 953/695/259 (Size/Used/Unused GiB).
This I have always assumed is my working partition.
2. sda:
/dev/sda1 EFI System Partition fat32 /boot/efi 512/13/499
/dev/sda2 m2SSD ext4 953/871/82 This I believe is my video files
partition.
For completeness, there is also a USB HDD that I keep for incremental
.doc and Spreadsheet files. All looks good there.
I went to my desktop PC, which has no additional memory, and it shows
one /dev/nvme01p1 (very small) and one /dev/nvme01p2, which makes
sense as a boot partition and a working partition. The latter has no
Name, but has the same Mount point as mentioned earlier for the
laptop, ie: var/snap/firefox/common/host-hunspell.
Back to this later, life intrudes.
On Thu, 28 Aug 2025 12:44:36 +0100
Davey <davey@example.invalid> wrote:
On 28 Aug 2025 10:47:37 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Gordon <Gordon@leaf.net.nz> wrote:
NVMe "disks" are names /dev/nvme0n1p1 (As an example) p =
partition, n is first NVMe disk/strip.
Except if they're in USB adapters, when they turn into /dev/sd*
But when they're in Thunderbolt adapters they remain as /dev/nvme*
Those two can look physically identical (some adapters even do
both protocols) but since Thunderbolt is more expensive an
adapter is probably USB unless you know otherwise.
So I agree that /dev/sda2 is the second partition on a SATA
disk.
Or a USB disc.
Theo
Ok. Going back to basics.
I ran GParted, and it found this:
1. /dev/nvme0n1p1 /boot/efi ext4 953/695/259 (Size/Used/Unused GiB).
This I have always assumed is my working partition.
2. sda:
/dev/sda1 EFI System Partition fat32 /boot/efi 512/13/499
/dev/sda2 m2SSD ext4 953/871/82 This I believe is my video files
partition.
For completeness, there is also a USB HDD that I keep for
incremental .doc and Spreadsheet files. All looks good there.
I went to my desktop PC, which has no additional memory, and it
shows one /dev/nvme01p1 (very small) and one /dev/nvme01p2, which
makes sense as a boot partition and a working partition. The latter
has no Name, but has the same Mount point as mentioned earlier for
the laptop, ie: var/snap/firefox/common/host-hunspell.
Back to this later, life intrudes.
Correction: In the last paragraph, the references should be: nvme0n1p1
and nvme0n1p2.
Theo <theom+news@chiark.greenend.org.uk> writes:
I think your drive is not /dev/sda at all. Try:
sudo dmesg | grep sd
and see if it's appearing with another letter. If it's in a
motherboard M.2 slot or in a Thunderbolt adapter you might also try:
sudo dmesg | grep nvm
I would start with lsblk; it will tell you what drives are actually
attached, what partitions they have, and where they are moutned (if anywhere).
On Thu, 28 Aug 2025 12:46:13 +0100
Davey <davey@example.invalid> wrote:
On Thu, 28 Aug 2025 12:44:36 +0100
Davey <davey@example.invalid> wrote:
On 28 Aug 2025 10:47:37 +0100 (BST)
Theo <theom+news@chiark.greenend.org.uk> wrote:
Gordon <Gordon@leaf.net.nz> wrote:
NVMe "disks" are names /dev/nvme0n1p1 (As an example) p =
partition, n is first NVMe disk/strip.
Except if they're in USB adapters, when they turn into /dev/sd*
But when they're in Thunderbolt adapters they remain as
/dev/nvme*
Those two can look physically identical (some adapters even do
both protocols) but since Thunderbolt is more expensive an
adapter is probably USB unless you know otherwise.
So I agree that /dev/sda2 is the second partition on a SATA
disk.
Or a USB disc.
Theo
Ok. Going back to basics.
I ran GParted, and it found this:
1. /dev/nvme0n1p1 /boot/efi ext4 953/695/259 (Size/Used/Unused
GiB). This I have always assumed is my working partition.
2. sda:
/dev/sda1 EFI System Partition fat32 /boot/efi 512/13/499
/dev/sda2 m2SSD ext4 953/871/82 This I believe is my video
files partition.
For completeness, there is also a USB HDD that I keep for
incremental .doc and Spreadsheet files. All looks good there.
I went to my desktop PC, which has no additional memory, and it
shows one /dev/nvme01p1 (very small) and one /dev/nvme01p2, which
makes sense as a boot partition and a working partition. The
latter has no Name, but has the same Mount point as mentioned
earlier for the laptop, ie: var/snap/firefox/common/host-hunspell.
Back to this later, life intrudes.
Correction: In the last paragraph, the references should be:
nvme0n1p1 and nvme0n1p2.
Some more information from GParted on the laptop:
Partition nvme0n1p1 is not mounted. Hmmm.
/dev/sda1 and /dev/sda2 are both mounted.
So it does indeed look as though I am not working from the partition I thought I was.
The fstab from February had: UUID=0c5b5565-c6d0-48bb-878d-9c31721df408
on /dev/sda2.
Also: /boot/efi was UUID=CA01-E287 was on /dev/sda1 during
installation.
Current GParted shows UUID=0c5b5565-c6d0-48bb-878d-9c31721df408 in
partition /dev/sda2 and named m2SSD mounted on /./var/snap/firefox/common/host-hunspell.
It looks as though there has been a swap somewhere.