Latest Linux and Unix Posts

Using testdisk in linux can recover files from bad sectors hard driver

Wow nice video..
For data recovey I usually us Testdisk,foremost or Scalpel in linux
Autopsy or FTK

I wonder if you watched the video and heard the advice not to buy the Deepstar unit but find a shop that would connect it and push the button? That way it's not thousands of bucks.

I find a lot of folk are still not backing up what they can't lose. I see 1TB drives for under 39USD and recovery of what you can't lose costs hundreds. Backups are cheap, recovery is time consuming, not always do it yourself and costly. Usually it takes a big loss for folk to figure this out.

More videos about recovery at:

In my town we have those 300 dollar data recovery shops. They have those deepspar units.

DeepSpar is wonderful because it can recover data from bad sector not just skip it but the problem is it's very expensive!

I was unclear. As a rule I don't duplicate the web but share what I'm using and am looking into. That is, I want what I write to be unique and not what you can google. If you want to lookd into ddrescue and bad sector workarounds, check that google I gave above.

But another nod to Deepspar's nearly automatic fixer for drives that delay to register or read badly. Watch that video about it.

Thanks again for answer
The problem is there drive letter for WD unable to detect in windows but shown in Diskmanagment as unallocated disk but in linux show it
I try to reover it unallocate partition with sevral powerful tools but got error becsue of badsector so my solution is just use linux to take an image on WD har driver with bad sector!
So I don't know should I use dd (dd if=/dev/old_disk of=image_file conv=noerror) or ddrescue?
ddrescue take very long time?or mybe there is ddrescue command that save my time!

@tony, I think it is an answer. Over the past few years I've been seeing a lot of iffy drives and been looking for reasons and methods to get the data out.

I forgot to mention another common tool we use. RECUVA. Free and plenty of tutorials on the web.

Adding with edit: I didn't mention anything from

It was really very interesting but it was not answer for my question!

You have asked some very interesting questions plus using the name of a character in a series which is why I wrote that. does note metadata in .wav files but also notes that apps have been confused at times when you do that.

I have to write that I would not count on metadata to work in .wav files. You can try but I think this is an area you have to test and see how it turns out.

Yes I'm a FLAC user, if it's a song I really love then .wav is my preference but I prefer most of my music library to be .flac, as such I like to shop for music at

Sorry to be one of your favorite humans.

Why yes it can. And small world I just found a tool via Linustechtips that tackles that issue.

Watch and see what it is at

You may not want to buy that tool but there are data recovery shops that have it.

I have 500GB WD my passport with bad sector, I try to take disk imaging for forensics investigation with ddrescue but ddrescue was very slowly, is it really take 131d 22h?
Is there any command or way that I can use to speed up ddrescue and just take 8 to 10 hours?
I will appreciate your help.

root@lab:/home/lab/Desktop# ddrescue -d -r 3 /dev/sdc1 WD.dd wd.log
GNU ddrescue 1.22
     ipos:    4980 kB, non-trimmed:        0 B,  current rate:       0 B/s
     opos:    4980 kB, non-scraped:        0 B,  average rate:   57915 B/s
non-tried:  500068 MB,  bad-sector:        0 B,    error rate:       0 B/s
  rescued:    4980 kB,   bad areas:        0,        run time:      1m 25s
pct rescued:    0.00%, read errors:        0,  remaining time:    131d 22h
                              time since last successful read:          0s
Copying non-tried blocks... Pass 1 (forwards)^C

I have to write I think that's how those other apps function. Very few apps agree on what to do with meta data. I see this also is answered "No" and maybe at

The maybe is for the file types MP3, OGG but not FLAC. Even plugins don't fix this one.

So are you a FLAC user?

This may not be the best room to post this in but I didn't see any room that really jumped out at me for this, and since I'm doing all this on Linux desktop it made sense. I'm having trouble placing the meta data (artists, album, title) for a .wav song that I have. Through using three different programs I'm gettin different results. I can open the file in Rythmbox and select properties for the song and I can see the text fields for all the formentioned meta data above, thie fields all say 'Unknown' and the text fields aren't grayed out or anything but Rythmbox still will not allow me to change any of the meta data, clicking in any of those fields and typing yields nothing. I was able to change the meta data using VLC but VLC is the only application that sees the changed meta data, Rythmbox, Media Player, and my handeld digital music player all see null or Unknown for the meta data. Any ideas on what's going on? Thanks.

commented: "One of my favorite humans." +15

@J, back to armbian developers or their forum to find out if they plan support.

For friendlycore "eflasher" will work(I have tried that).But for armbian it is not detecting the eMMC.

It appears they have their own tool chain. I'm only working the Raspberry's for now but here's the Wiki about their own tools.

I have a NanoPi Neo Core with eMMC..I have installed armbian os from "" to sd card and tried the "Armbian configuration utility" and "nand-sata-install" to install os to eMMC. But it is showing "there are no targets..please check your drives."..If we give "fdisk -l" command it is not detecting the eMMC.

How to solve this issue??

If you want to talk distros talk about debian/ubuntu. Almost everyone know those. The others are rare. The best one for newbies is Linux Mint. The best one for computer hackers is Kali. IT people like parrot also.

I agree. You need to explain your question.

That said, "Linux" is a big topic with use being from very small embedded boards, servers, user workstations and what else. The topic is so broad that not only what Linux is being used for matters but what distro you are using along with what issue or topic you want to breach.

Methinks you are going to have to explain that question, as it isn't immediately clear what it is you are asking.

what is the full forum on LINUX?

The best layout for french is the BÉPO layout. Install it and switch the layout everytime you want to type in French.

OK, here's the deep dive on how all this works. Keep this link handy as I bet you'll have to go back from time to time.

I'd start small with just one change for the key you want to alter or add, then fix the rest one by one.

My OS is Linux Mint.

My number 1 choice would be to create my own layout but start by coping that from a current layout and then just make the changes I want. Have no idea where to start with this but it would be great if I could figure that out. In the meantime, the current layout I have selected is working it's just a little bit of a pain. And I looked at that keyboard you posted, I am actually considering it. I tend to do a lot of the usualy on my computer like facebook, emails, etc... and I like to play around with coding so French is a minority of what I need on my computer, I might be able to use that keyboard as long as it doesn't interfer and make everything else I do on the computer harder.

Hi Lewashby, I was pleasantly surprised a while back that I could plug in two keyboards via USB and both worked. Sitll had to select a keyboard layout but hey, progress.

To edit the existing keyboard layout I think we'll have to get into the exact OS in use. But I'm sure folk have written much on editing layouts or creating one from new (which I think would be a pain.)

Maybe you could use some old fashioned idea like a macro for the hard to get to characters?

No, I'm not wanting to create my own custom hardware keyboard. I use a standard keyboard but I can change the layout from the keyboard menu, there are some pretty simple ways of allowing you to type other romance language characters (mostly the same letters but with accents) with just a few extra key presses. I found one that's working 'English (UK, extended WinKeys), I'm able to type in all the French characters I need. It's working but some of the accents are a little easier to get to than others, some are a pain.

Don't want to go that far. I use my keyboard for a lot more than typing in French and going as far as plugging up a French keyboard would be overkill and a pain to work with. I would either have to make it work and leave it plugged up, change the keyboard everytime I wanted to do something different, or get a KVM, and I want less not more wire under my desk.

Anyway, I did find one that works it would just be nice if there was a way I could create my own custom keyboard layout. keyboardLayout.jpg

This request is bizarre. You want to type French characters, but you don't want a French keyboard? So you want o create your own custom keyboard that... what? has a US layout for alphabetics but puts accented characters?... where?
I really don't understand why you can't simply install a standard French keyboard to type in French. And what do you mean by "completely messes up my keys unusably". I switch between UK and French all the time and my keys aren't messed up.

Is this Mint or Windows? Also, if you want the real deal, go get a French keyboard. It is different. for example shows the AZERTY keyboard.

Doing this with just layouts would be annoying to most French. Look at that keyboard. It has the characters you were asking about.
There are also stickers for those that have a laptop.

There are also a lot of priors about adding and switching layouts. Example:

Linux Mint

So I'm trying to learn French but I'm running into some complications when it comes to finding a good keyboard layout. Here are the layouts that I've tried so far:

English (US)
English (international Alt Gr dead keys)
English (UK, international with dead keys)
English (UK, extended WinKeys)

So far all have fallen short of what I need. I think only one of these listed above will allow me to type in the French c with a tail character ç. Most of the rest allow áéíóú, the problem here is that most of these accents are going the wrong way. Spanish uses these more, they're going from bottom left to top right where as most French accents go from bottom right to top left. Also, some the the keyboard layouts that allow these vowel accents that are going the wrong way will also not always contain the ç character. I'm really not interested in any solution that would force me to copy/past, drag/drop, or select these special character from a menu, I need to be able to type them on the fly. Does anyone know if there's a way to create a custom keyboard layout? Is they something that can be downloaded and installed online? And choosing a French keyboard layout is going way to far as it completely messes up my keys unusably. Thanks.