Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
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!


Closed Thread
  Search this Thread
Old 10-23-2017, 02:30 AM   #1
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


Old 10-23-2017, 02:41 AM   #2
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 20,454

Rep: Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860Reputation: 3860
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
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,647
Blog Entries: 13

Rep: Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726Reputation: 4726
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

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:09 PM.

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