Sponsored Content
Full Discussion: How can I restore a file?
Operating Systems Linux Ubuntu How can I restore a file? Post 302412286 by pludi on Monday 12th of April 2010 07:25:01 AM
Old 04-12-2010
If you mean you removed images from the memory card of your digital camera, then do this:
1) CREATE A BACKUP, NOW!!! To do this, enable the hardware write protection on the card and put it in your computer. Now create an image by using dd:
Code:
sudo dd if=/dev/<carddevice> of=backup.img

You get the carddevice name by looking at the last few lines of the output of dmesg, or by letting the desktop automounter mount the card, and looking at the first column of the output of mount. When you're done, remove the card, and don't touch it till this is over.

2) Create a copy of the backup. One file you'll work on, the other is a save in case something goes wrong and you have to start over.

3) Install recoverjpeg. Should be part of your Ubuntu repositories:
Code:
sudo apt-get install recoverjpeg

4) Run it on the image you've just made:
Code:
recoverjpeg backup.img

This should restore as many JPEGs as possible.
 

10 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

How do I restore the etc/shadow file

removed this from a friends solaris box via telnet. root can not login at this point is there anyway to fix this via telnet. I have one session open that is not root (2 Replies)
Discussion started by: Youngadmin
2 Replies

2. Solaris

tar - restore a file

We use tar for backing up a server. I need to restore just one file from this backup. Anyone know the syntax? (2 Replies)
Discussion started by: frustrated1
2 Replies

3. Linux

how can i restore a deleted file

I am a relatively new linux user.would like to know how to undo a deleted file (2 Replies)
Discussion started by: wojtyla
2 Replies

4. AIX

4.3.3 restore from file

I had a hard drive fail and am trying to restore a system backup from a file I created about two years ago. At the time I did not have a tape device to use nor a writeable CD drive so I just backed up the machine to a NFS drive. When I created the backup, I used it to set up another machine with... (8 Replies)
Discussion started by: SeanU
8 Replies

5. UNIX for Dummies Questions & Answers

How to restore splitted DD file

I backup a file to tape by using "dd", since the size is too large it took two tape for the backup, the question is how to restore the said file? The "dd" doesn't ask me insert next tape while restoration. (3 Replies)
Discussion started by: coolmans
3 Replies

6. AIX

mksysb restore - Wrong OS level for restore

Hi all, I am still working on my mksysb restore. My latest issue is during an alt_disk_install from tape I got the following error after all the data had been restored. 0505-143 alt_disk_install: Unable to match mksysb level 5.2.0 with any available boot images. Please correct this... (0 Replies)
Discussion started by: pobman
0 Replies

7. Shell Programming and Scripting

restore deleted file

I accidently deleted the files from linux machine. How to restore back the files. (1 Reply)
Discussion started by: sandy1028
1 Replies

8. Solaris

restore kernel file

Hi iam new to solaris .if any file lost in kernel how can we retrive that.any one can help me. Thank you for ur reply (3 Replies)
Discussion started by: sivajerripothul
3 Replies

9. UNIX for Dummies Questions & Answers

restore cpio file

Hi, under unix aix , i had to put a catostrophic patch from an editor ... i had first made a cpio backup connected root cd /application find . –print | cpio –ocvBm > /sauvegarde/sauvegarde.cpio Does someone know the command to restore my cpio backup ? thanks in advandce to everyone ... (7 Replies)
Discussion started by: bzh35
7 Replies

10. SCO

File system restore

Hello, I have a big trouble with SCO Open Server. After improper shutdown the file system has damaged. I can see the partitions as volume sizes with divvy command, but the labels are missing (boot, root, etc), so I can not address them when using fsck command. Is there any chance to restore the... (2 Replies)
Discussion started by: ikonoma
2 Replies
restorefont(1)							Svgalib User Manual						    restorefont(1)

NAME
restorefont - save or restore the SVGA font for textmode. SYNOPSIS
restorefont {-r|-w} filename DESCRIPTION
The font used by SVGA when in textmode is written to or restored from filename using the vga_gettextfont(3) and vga_puttextfont(3) func- tions. FILE FORMAT
The VGA font file filename has the following format: Offset: 0 - 31 Character 0 ... ... 8164 - 8195 Character 255 Each row of a character bitmap is stored as a byte (8 pixels). The space that is left from the 32-byte buffer for each character is ignored, e.g. a 16 line font uses only offsets 0 - 15 of each character. Linux textmode screen resolutions: 80x25 16 line font 400 scanlines 80x28 14 line font 400 scanlines 80x50 8 line font 400 scanlines The font sizes and resolutions of extended textmodes depend on the video card type and BIOS: 132x25 14 line font 350 scanlines (ugly) 132x25 16 line font 400 scanlines 132x43 8 line font 350 scanlines (use fix132x43 to fix/improve) 132x50 8 line font 400 scanlines Using a font that has less lines per character than the textmode works, but the characters are smaller. Using a font that is bigger than the textmode font results in the bottom part of characters being cut off. The svgalib distribution contains sample fonts with 8, 14 and 16 line characters in the files utils/font8, utils/font14, and utils/font16. The convfont (1) program can be used to convert fonts straightforwardly stored character-after-character (i.e. each character only uses 8/14/whatever bytes), to the 32-byte per character format that restorefont requires. The purpose of this program is usually to recover from a crashed console due to an svgalib, Xfree or other program bug. First save the state of the SVGA card when on a text console. After the crash restore this state. The savetextmode(1) and textmode(1) script makes this procedure very easy. The national/fontpak packages, which include kernel patches, allow different textmode fonts to be used in different virtual consoles. These have been superseded by the kbd package (in the kernel since ages). See the setfont(8) utility of the kbd package as a starting point. Recent kernels support up to 2 fonts with 512 chars each. Recent versions of svgalib take this into account and extend the size of the datafile accordingly. OPTIONS
-w filename write the font to the file filename. -r filename restore the font from the file filename. SEE ALSO
svgalib(7), vgagl(7), libvga.config(5), setfont(8), vga_gettextfont(3), vga_puttextfont(3), dumpreg(1), convfont(1), fix132x43(1), restore- textmode(1), restorepalette(1), runx(1), savetextmode(1), setmclk(1), textmode(1). AUTHOR
This manual page was edited by Michael Weller <eowmob@exp-math.uni-essen.de>. The exact source of the referenced utility as well as of the original documentation is unknown. It is very likely that both are at least to some extent are due to Harm Hanemaayer <H.Hanemaayer@inter.nl.net>. Occasionally this might be wrong. I hereby asked to be excused by the original author and will happily accept any additions or corrections to this first version of the svgalib manual. Svgalib (>;= 1.2.11) 2 Aug 1997 restorefont(1)
All times are GMT -4. The time now is 10:36 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy