You are not logged in.

#26 2018-07-16 18:10:06

Kim Jong-un Stunt Double
Registered: 2016-02-19
Posts: 1,267

Re: Application(s) of the Day

^That's a beautiful login screen, slick-greeter looks nice imho. thank you for the steps.

Just came across a CLI tool to write bootable USBs (if someone does not want to use dd directly). It's called bootiso.

bootiso is a bash script. Features: "A confirmation prompt is displayed before erasing and partitioning USB devices; Inspects the ISO file and choose the best copy mode; Checks if the ISO has the correct mime-type and exists if it doesn't; Makes sure the device you select is actually connected via USB and exits if it's not, preventing any possible system damages; Checks if the selected item is a partition and exits if it is; Handles external command failures; The script itself is linted and validated with shellcheck and formatted with shfmt to ensure code quality."


#27 2018-09-26 07:37:15

From: Nagoya, Japan
Registered: 2015-09-09
Posts: 4,681

Re: Application(s) of the Day


This literally rescued some files off a hard drive that was almost dead, just last week. Bit-perfect. It takes some time, but goes in very carefully, trying not to damage the disk any more, and finally does the job, pretty much automatically.

A web search will come up with plenty of returns from the usual places, but not so much about picking out individual files, which is possible, and sometimes (as in my case) what you want, instead of trying to make a clone of the whole drive.

What I did:
1) Boot off a live system, like BL, on a usb drive so the hard drive isn't used.
2) Make sure at the BIOS screen that the HDD is still recognized, even if flagged as BAD. If not, I think you can only take it to a specialist.
3) In the live system, run 'sudo fdisk -l' to see if the system recognizes the HDD. This is necessary because we need the device path in order to mount it. Usually ddrecue runs on unmounted disks (I think) but to rescue an individual file we need the path.
4) Mount the disk read-only to minimize interference from well-meaning system daemons:
sudo mkdir -p /disk
sudo mount -o ro /dev/sdX /disk
5) Plug in a drive to save the rescued file to, and mount that too, if it isn't automatically done.
6) I found you can run ddrecue default mode with no options, and it did the job:

ddrescue /disk/path/to/important_file /path/to/other/mounted/drive/directory /path/to/other/mounted/drive/directory/mapfile

A copy of important_file should eventually end up in directory/.

Be sure to specify a mapfile name in the third argument (it needn't exist yet) because that lets you re-run the ddrescue command with other options that you might have found on the net and want to try. (I found the --reverse mode seemed to speed it up at one point.) Multiple runs won't overwrite good sections, but gradually build up the file till it reports 100% success. Maybe an hour, maybe a day, and some people reported ddrecue running for months! I got back 20~30GB of data in 2~3 hours.

You can't do a recursive rescue of a directory, though some people suggested running a find command to rescue all the files in a directory. To get a bunch of downloaded music files (after doing the more important stuff) I just used a for loop, something like:

for file in "$src"/*; do [[ -d $file ]] && continue; ddrescue "$file" "$trgt" "$trgt/music_mapfile"; done

I hope you never have to use ddrescue, but I was quite impressed with it.

NOTE: There is another ddrescue (not in Debian) whose command is dd_rescue. I know nothing about that one.

Last edited by johnraff (2018-10-03 03:38:45)

( a boring Japan blog , Japan Links, idle twitterings  and GitStuff )
In case you forget, the rules.


#28 2018-09-26 08:20:17

From: France
Registered: 2017-05-12
Posts: 76

Re: Application(s) of the Day

Really good to know; I hope I'll remember ddrescue exists if I ever have to use it!


#29 2018-10-19 15:04:00

Registered: 2018-09-16
Posts: 105

Re: Application(s) of the Day

I would like to nominate ReText

ReText is a simple but powerful editor for Markdown and reStructuredText markup languages. ReText is written in Python language and works on Linux and other POSIX-compatible platforms.

Im learning how to create my own website/blog etc and this has come in very handy.
I was getting to know atom but i found it slow and a bit too feature rich for my liking. Give me retext and geany any day over atom.

Last edited by S7.L (2018-10-19 15:05:44)

"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate."...Voilà!

~ V


#30 2018-10-19 15:23:18

Registered: 2015-09-29
Posts: 169

Re: Application(s) of the Day

Thanks, grapefruit & ohnonot for the posts about sct! Love it!

Using the Openbox (3.5.2) session of Lubuntu 14.04 LTS but very interested in BL :)


#31 Yesterday 11:52:22

Registered: 2018-09-16
Posts: 105

Re: Application(s) of the Day

Hi again Bunsenlabs.

Finally found a way to read pesky PDF's in better view on my rather small screened smartphone.It is a program run from the terminal called K2pdfopt.What it does is converts PDFs so they are easier to read on small screens (PDF Re flow tool). Ive tried converting pdf's to epub/mobi format using calibre but i just cant figure it out properly so this is the next best thing in my opinion.

Read about it here:

Download and build from source and install here:

Im on arch Linux for now, couldn't find it in Debian stable but it is available in testing/unstable:

The version i built and installed was from the arch aur and it is not a GUI program, not sure if that is the same for the Debian version but i think it is. Anyhow I can now read a PDF file i have been wanting to read without having to squint, hope someone finds this post helpful.

"Voilà! In view, a humble vaudevillian veteran, cast vicariously as both victim and villain by the vicissitudes of Fate."...Voilà!

~ V


Board footer

Powered by FluxBB