Date: Thu, 1 Mar 2018 09:58:25 -0500 From: "James B. Byrne" <byrnejb@harte-lyne.ca> To: "tech-lists" <tech-lists@zyxst.net> Cc: freebsd-questions@freebsd.org Subject: Re: usb memory sticj recovery Message-ID: <4a1d519581de35e96e95747ea9336177.squirrel@webmail.harte-lyne.ca> In-Reply-To: <mailman.106.1519905651.47584.freebsd-questions@freebsd.org> References: <mailman.106.1519905651.47584.freebsd-questions@freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, February 28, 2018 13:54, tech-lists wrote: > On 28/02/2018 16:19, James B. Byrne via freebsd-questions wrote: >> I have a usb memory stick whose filesystem FreeBSD will not mount >> because it is 'dirty'. It is dirty because it was removed from the >> FreeBSD host it was connected to. I would would like to recovery >> this >> device if possible but my attempts to do so using fsck and fsck_ffs >> never start because it cannot find a SUPERBLOCK. >> >> newfs -N gives a list of alternate sb location but fsck_ffs will not >> acept them. >> >> Is there any way to manually turn ff the dirt bit and mount the >> device? >> >> > > man 8 mount: > > [...] > > -f > > Forces the revocation of write access when trying to downgrade a > file system mount status from read-write to read-only. Also > forces the R/W mount of an unclean file system (dangerous; use with > caution). This did not succeed. I do not have the exact message any more so I cannot provide the reason stated. > > [...] > > alternatively dd the device to an image and mount the image at /mnt > using mdconfig Also did not work. Messages were: mount -t msdosfs /dev/`mdconfig -f /root/usb_pki_master.img` /mnt mount_msdosfs: /dev/md2: Invalid argument mount -t ext3 /dev/`mdconfig -f /root/usb_pki_master.img` /mnt mount: /dev/md3: Operation not supported by device mount -t ufs /dev/`mdconfig -f /root/usb_pki_master.img` /mnt mount: /dev/md4: Invalid argument -- *** e-Mail is NOT a SECURE channel *** Do NOT transmit sensitive data via e-Mail Do NOT open attachments nor follow links sent by e-Mail James B. Byrne mailto:ByrneJB@Harte-Lyne.ca Harte & Lyne Limited http://www.harte-lyne.ca 9 Brockley Drive vox: +1 905 561 1241 Hamilton, Ontario fax: +1 905 561 0757 Canada L8E 3C3
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?4a1d519581de35e96e95747ea9336177.squirrel>