Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-17 Thread Rich Pieri
On Fri, 17 May 2024 22:48:33 -0400 "Dale R. Worley" wrote: > Unfortunately for (1) there seems to be no way to shrink an XFS > filesystem, so if you haven't accidentally got at least 1 MiB or so > free after the filesystem, there's little that you can do. See e.g. The tools on GNU Parted CD mig

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-17 Thread Dale R. Worley
> From: "Dale R. Worley" > In principal, it can be done by: (1) using the right utility to shrink > the filesystem enough to leave space for the GPT, (2) copying the > filesystem "further" into the disk by that amount (which mostly has to > be done *in reverse* to not lose data, so it can't be d

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-16 Thread Jerry Feldman
For backups, I prefer snapshot backups such as rsnapshot or Back in time, both use rsync underneath so duplicates are simply hard links -- Jerry Feldman Boston Linux and Unix http://www.blu.org On Thu, May 16, 2024, 2:17 PM Steve Litt wrote: > Kent Borg said on Wed, 15 May 2024 16:21:24 -0700

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-16 Thread Kent Borg
On 5/16/24 11:15, Steve Litt wrote: The first time, yes. After that, using rsync for the backups takes only a few minutes, depending on how many files have changed since the last rsync. I am a big fan of rsync. I particularly like the "--link-dest" feature: files in the source that are unchang

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-15 Thread Rich Pieri
I'm coming into this rather late since I'd somehow been unsubscribed for the past month or so. Anywho... What does the command "blkid /dev/sdX" say? If the device is partitioned then it should return the partition type (PTTYPE): /dev/sda: PTUUID="2d5ed796-ad53-4317-a7bc-2e0ad85d90d1" PTTYPE="gpt"

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-15 Thread Jerry Feldman
One thing you can do is to set up a new partition table. Doing that does not erase. Formatting does overwrite data. But, I would practice with a thumb driver. On Wed, May 15, 2024 at 7:22 PM Kent Borg wrote: > On 5/15/24 15:44, John Abreau wrote: > > my other disks were close > > to full when I

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-15 Thread Kent Borg
On 5/15/24 15:44, John Abreau wrote: my other disks were close to full when I purchased the 18TB disk. To back it up, I'd need to purchase yet another disk Indeed. I once heard as a metaphor* that a circus needs at least two elephants, because if one dies, it will require the second elephant

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-15 Thread John Abreau
Not sure why we're still beating this dead horse, but that's just not the case. When I formatted the drive, I formatted sdx1. It's not a matter of opinion, nor is it a subject for voting to decide what happened. The 18TB disk is the largest disk I own, and all my other disks were close to full wh

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-15 Thread Dale R. Worley
> From: John Abreau > I have an 18TB external hard drive that recently suffered a loss. When I > first set it up, I formatted it as a single partition with an xfs > filesystem. >From the messages, I tend to agree with Gregory Galperin that you accidentally formatted sdx rather than sdx1, and the

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-09 Thread John Abreau
On Thu, May 9, 2024 at 12:27 PM Gregory Galperin wrote: > ... > if you run [g]parted and it still shows no partitions, are you sure you > ever had a partition on this drive, rather than having created the > filesystem on the whole drive in the first place? e.g. do you have fstab > entries from t

Re: [Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-09 Thread John Abreau
I just checked with "journalctl -xe" after another unsuccessful attempt to mount the drive, and found a duplicate UUID error. A quick google search of the error message yielded the solution: I ran "sudo xfs_admin -U generate /dev/sdf" and was then able to mount /dev/sdf successfully. I'm not thri

[Discuss] Recovering a corrupted usb hard drive with XFS

2024-05-08 Thread John Abreau
I have an 18TB external hard drive that recently suffered a loss. When I first set it up, I formatted it as a single partition with an xfs filesystem. Yesterday I was trying to figure out how to export it via nfs, and during one of my attempts I used "mount --bind" to mount it under /export. Late