Re: FWD: Re: Mounting NetBSD partition on voidlinux

2023-06-22 Thread Matthias Petermann
Hi, On 22.06.23 20:33, Sagar Acharya wrote: I have found the hex addresses of my files and dirs. Is there a program with which I can recursively extract them from raw hex? Thanking you Sagar Acharya https://humaaraartha.in In such cases in the past I had some success with foremost[1]. It

Re: FWD: Re: Mounting NetBSD partition on voidlinux

2023-06-22 Thread Sagar Acharya
I have found the hex addresses of my files and dirs. Is there a program with which I can recursively extract them from raw hex? Thanking you Sagar Acharya https://humaaraartha.in 22 Jun 2023, 20:02 by mar...@duskware.de: > On Thu, Jun 22, 2023 at 04:25:14PM +0200, Sagar Acharya wrote: > >>

Re: Mounting NetBSD partition on voidlinux

2023-06-22 Thread Martin Husemann
On Thu, Jun 22, 2023 at 03:47:27PM +0200, Sagar Acharya wrote: > I need something to repair this ufs2 partition. You did not answer the partitioning questions and it is hard to follow what you are doing and seeing. You can repair it easily with NetBSD's fsck(8). You can analyze it close with

Re: Mounting NetBSD partition on voidlinux

2023-06-22 Thread Sagar Acharya
There is buffer overflow. I just don't get how recovery software like safecopy are victim to this issue. They should sanitize the data before taking an input right? After reading 7% of drive, buffer overflow is detected and safecopy terminates. How do I correct this? They should treat the

Re: Mounting NetBSD partition on voidlinux

2023-06-22 Thread Sagar Acharya
$ smartctl -a -T permissive /dev/sd0a > scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 > >> Terminate command early due to bad response to IEC mode page > === START OF READ SMART DATA SECTION === Current Drive Temperature: 0C Drive Trip Temperature: 0C Error Counter

FWD: Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
Date: 22 Jun 2023, 01:32 From: sagaracha...@tutanota.com To: mar...@duskware.de Subject: Re: Mounting NetBSD partition on voidlinux > As Sir Dice said, I used smartctl -a and I got this > > scsiModePageOffset: response length too short, resp_len=4 offset=4 bd_len=0 > >> Termi

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
https://forums.freebsd.org/threads/fsck-floating-point-exception.80552/ This looks exactly like my current issue. Except that my sd card is 16GB in size! It is scary to see that unresolved even when the greatest of the great pros 'Sir Dice' is involved! Thanking you Sagar Acharya

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Jonathan A. Kollasch
On Wed, Jun 21, 2023 at 02:17:37PM +0200, Sagar Acharya wrote: > I have no clue on the wedges thing. > > dmesg shows these errors while mounting. > > ufs: ufs_fill_super(): fragment size 0 is not a power of 2 > ufs: ufs_fill_super(): fragment size 8192 is too large Linux's ufs driver is

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Martin Husemann
On Wed, Jun 21, 2023 at 08:43:45PM +0200, Sagar Acharya wrote: > $ dkctl sd0 listwedges > /dev/rsd0: no wedges configured > > What are wedges? I get sectors which are 512 bytes long on physical disk. With "dkctl sd0 addwedge " you can use arbitrary "partitions" on disk sd0 without modifying

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Martin Husemann
On Wed, Jun 21, 2023 at 08:39:45PM +0200, Sagar Acharya wrote: > I am on a NetBSD 10 install now after sabotaging my fully good alpine due to > constraints of sd card. The memory card from which I want to retrieve data is > mounted at sd0 > > $ fsck_ffs /dev/sd0a > /dev/rsd0a[1] Floating point

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
$ dkctl sd0 listwedges /dev/rsd0: no wedges configured What are wedges? I get sectors which are 512 bytes long on physical disk. Thanking you Sagar Acharya https://humaaraartha.in 21 Jun 2023, 18:24 by mar...@duskware.de: > On Wed, Jun 21, 2023 at 02:20:25PM +0200, Sagar Acharya wrote: > >>

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
I am on a NetBSD 10 install now after sabotaging my fully good alpine due to constraints of sd card. The memory card from which I want to retrieve data is mounted at sd0 $ fsck_ffs /dev/sd0a /dev/rsd0a[1] Floating point exception (core dumped) fsck_ffs /dev/sd0a $ mount /dev/sd0a /mnt

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Martin Husemann
On Wed, Jun 21, 2023 at 02:20:25PM +0200, Sagar Acharya wrote: > Also, linux doesn't have fsck_ffs and debian had support for ufs in ufsutils > a long time ago. > > I highly recommend that for such cases you have a small standalone source > which can be built for correcting such errors which

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Matthias Petermann
Hi, On 21.06.23 14:20, Sagar Acharya wrote: Also, linux doesn't have fsck_ffs and debian had support for ufs in ufsutils a long time ago. I highly recommend that for such cases you have a small standalone source which can be built for correcting such errors which can perhaps have disklabel,

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
Also, linux doesn't have fsck_ffs and debian had support for ufs in ufsutils a long time ago. I highly recommend that for such cases you have a small standalone source which can be built for correcting such errors which can perhaps have disklabel, fsck_ffs, etc. A user can use it locally!

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
I have no clue on the wedges thing. dmesg shows these errors while mounting. ufs: ufs_fill_super(): fragment size 0 is not a power of 2 ufs: ufs_fill_super(): fragment size 8192 is too large Thanking you Sagar Acharya https://humaaraartha.in 21 Jun 2023, 16:58 by m...@petermann-it.de: > Hi,

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
Kindly cc, I am not subscribed to mailing list.  Thanking you Sagar Acharya https://humaaraartha.in 21 Jun 2023, 15:42 by sagaracha...@tutanota.com: > My NetBSD system has gotten corrupted. How do I mount my NetBSD partition on > voidlinux? > > Is it UFS or FFS? > > Thanking you > Sagar

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Matthias Petermann
Hi, On 21.06.23 12:16, Martin Husemann wrote: On Wed, Jun 21, 2023 at 12:12:35PM +0200, Sagar Acharya wrote: My NetBSD system has gotten corrupted. How do I mount my NetBSD partition on voidlinux? The typical recovery doesn't involve any other OS. If your kernel works and finds the /

Re: Mounting NetBSD partition on voidlinux

2023-06-21 Thread Martin Husemann
On Wed, Jun 21, 2023 at 12:12:35PM +0200, Sagar Acharya wrote: > My NetBSD system has gotten corrupted. How do I mount my NetBSD partition on > voidlinux? The typical recovery doesn't involve any other OS. If your kernel works and finds the / partition you can "boot -sa" and select /rescue/init

Mounting NetBSD partition on voidlinux

2023-06-21 Thread Sagar Acharya
My NetBSD system has gotten corrupted. How do I mount my NetBSD partition on voidlinux? Is it UFS or FFS? Thanking you Sagar Acharya https://humaaraartha.in