How can I search for file across non-working partitions (in Linux)?

Status
Not open for further replies.

tazarbm

Elite Member
Executive VIP
Jr. VIP
Joined
Oct 28, 2020
Messages
11,662
Reaction score
14,619
Guys, if you are good with Linux, can you please help me by sharing commands that I can use to locate a file on one of my non-working mounted devices?

I have 2 SSDs and 1 HDD mounted in my computer. Until some weeks ago, SSD 1 was the SSD that contained my operating system (Linux Mint), but apparently this SSD had gone to shits (I can't boot into it anymore), so now I'm using a different SSD as my main disk.

So, with SSD 1 being bricked I was forced to start fresh with another SSD (let's say SSD 2) that I purchased 3-4 months ago, and I have re-installed on this new SSD most of the stuff that I was using on SSD 1, except for games (which I don't care about at the moment) and the bookmarks of the Brave browser that I used on SSD 1 and which - by the way - I don't even know if those bookmarks even exists on SSD 1 since I don't usually make backups of my stuff, so it's possible that the old bookmarks don't even exist anymore, but I still want to import them into this new SSD :D

Anyway, I did search for files containing the word "bookmarks", via the File Manager, but nothing was found. And now I'm left with trying to find the file by using Terminal commands since I have no idea what else to try.

So, my question is: can any of you that's familiar with Linux tell me how I can search for files on partitions / devices that are not accessible anymore? Please note that I can still access all of the content that exists on the faulty SSD, via the File Manager (even though the SSD is bricked probably, it still mounts and can be accessed just fine via the FM), but the problem is that the FM can't find any files containing the word "bookmarks" and I find it extremely hard to believe that such files don't exist since I remember to have seen files named "bookmarks" many times before when I used the faulty SSD. So, there still has to be at least 1 file that contains the word "bookmarks", it's just that FM can't find such files anymore, so now I'm putting all of my hopes into the Terminal since this thing seems to be able to create magic in Linux...

And yes, I did google it (I used google, startpage and ecosia, but none of them were successful) but we all know what garbage google serves nowadays, so it's no surprising that I couldn't find the right line of code that I need to use. I did find a few things in google, but none of them worked, and I'm not surprised since I would probably have to change the destination first, and then input the function for finding files. I don't know, I'm just assuming stuff based on what it feels logical to me, but I don't know, Linux already makes me pull my hairs out....
 
Turuturumtumtumtum... Idk what I read even. Your drive is bricked or it works? I'm so confused.
It doesn't work (I can't boot into it anymore), but it's still detected by Linux that's installed onto other devices that are connected to this computer

to be honest, I don't care about that SSD anymore as I've already moved everything to the new SSD (except for those bloody bookmarks)... I mean, it would be nice to recover it if not much headache, but otherwise I'm not going to stress over it. It's just those few 100s bookmarks that are the problem because I use them daily...

But I appreciate the references, the first one already looks interesting, I'll check them out if I don't find a simpler solution :)
 
in home folder of SSD1: check to show hidden files:

it should be here:
~/.config/BraveSoftware/Brave-Browser/
I already checked, but it's not in there. But I did find something called "bookmarks" as you can see in the 1st image below, but I can't do anything with this "bookmarks" file (I can't copy-paste it, I can't move it, I can't import it into Brave... I couldn't even open it normally, I had to force-opened it into Brave browser, and you can see in screenshot 2 that the bookmarks are there, but I don't recognize the code in this file, so I don't know what to do with it / how to convert it into .html since that's the extension that Brave needs to import bookmarks)

So, as you can see in the first image, the path to that file is different to where Brave should normally save the bookmarks and my assumption for why this happens is because I have mounted the HOME folder onto a different partition (yes, I did partition the SSD while formatting it even though the pros have told me that there's no need to do this with Linux, but Linux confuses me so I still chose the option that I'm familiar with after using Windows for nearly 40 years...)

And, as you can also see in the first image, there are 2 "bookmarks" files in there, and they're exactly what I need, but as I said above, they can't be tampered with in any way, so I have no use for them. That's why I'd like to use the Terminal to try and locate a bookmarks.html file (if it exists) because only that file can be used to import the bookmarks...

00.jpeg


And here's how the bookmarks file looks like in browser, and how all of this code is completely useless to me since I don't know lick about programming, so I don't know how to convert this file into .html format (yes, I did try saving the file as bookmarks.html but it didn't work :p )

1.jpg
 
I already checked, but it's not in there. But I did find something called "bookmarks" as you can see in the 1st image below, but I can't do anything with this "bookmarks" file (I can't copy-paste it, I can't move it, I can't import it into Brave... I couldn't even open it normally, I had to force-opened it into Brave browser, and you can see in screenshot 2 that the bookmarks are there, but I don't recognize the code in this file, so I don't know what to do with it / how to convert it into .html since that's the extension that Brave needs to import bookmarks)

So, as you can see in the first image, the path to that file is different to where Brave should normally save the bookmarks and my assumption for why this happens is because I have mounted the HOME folder onto a different partition (yes, I did partition the SSD while formatting it even though the pros have told me that there's no need to do this with Linux, but Linux confuses me so I still chose the option that I'm familiar with after using Windows for nearly 40 years...)

And, as you can also see in the first image, there are 2 "bookmarks" files in there, and they're exactly what I need, but as I said above, they can't be tampered with in any way, so I have no use for them. That's why I'd like to use the Terminal to try and locate a bookmarks.html file (if it exists) because only that file can be used to import the bookmarks...

View attachment 424819


And here's how the bookmarks file looks like in browser, and how all of this code is completely useless to me since I don't know lick about programming, so I don't know how to convert this file into .html format (yes, I did try saving the file as bookmarks.html but it didn't work :p )

View attachment 424821
Jeez can't you just copy that file to the same directory on new system?
 
Jeez can't you just copy that file to the same directory on new system?
I already said that it can't be copied, moved, etc...

But funny thing... I just copy-pasted all of the contents of that file onto the contents of this new browser and it bloody worked. Unbelievable how stupid some people (ME <-- ) can be :(

Anyway, tanks everyone who's helped!
 
Status
Not open for further replies.
Back
Top