LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Closed Thread
  Search this Thread
Old 10-23-2017, 02:30 AM   #1
Grabby
Member
 
Registered: Feb 2016
Posts: 69

Rep: Reputation: Disabled
Mounting a partition as a raw filesystem and searching for strings


I have a disk partition which was originally a Btrfs filesystem and got partially overwritten by mistake by a UFS filesystem.

I want to mount this partition as read-only, in the hope of recovering from it as much data as possible.

Since the first GBs of the partition were overwritten, there is no hope of being able to mount it as BTRFS, so my only chance is mounting it as raw data and searching for specific strings.

Since I am a newbie at Linux, I don't know how to do it.

Could you please provide instructions on how to:

1. mount a partition as a raw filesystem with the READ ONLY attribute

2. search the mounted partition for specific strings -- and possibly getting this command to dump the search results into a text file

Thanks

--Grabby
 
Old 10-23-2017, 02:41 AM   #2
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
You would be better off restraining yourself to one thread - that way you're more likely to get less conflicting advice.
 
Old 10-23-2017, 07:11 AM   #3
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,882
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Please post your thread in only one forum. Posting a single thread in the most relevant forum will make it easier for members to help you and will keep the discussion in one place. This thread is being closed because it is a duplicate.
 
  


Closed Thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Searching for Strings Thermoman Linux - Newbie 9 03-11-2015 04:50 PM
Mounting Compressed Filesystem for Audio Raw Data? kktsuri Linux - Software 6 01-28-2014 04:57 PM
[SOLVED] Searching and replacing strings in a file with strings in other files xndd Linux - Newbie 16 07-29-2010 02:40 PM
Mounting a "raw" filesystem that has information on it Predatorian Linux - Hardware 5 09-10-2008 05:20 AM
Searching files for strings tmoorman Linux - Software 4 01-08-2004 01:46 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration