Find the answer to your Linux question:
Results 1 to 3 of 3
Hi guys, I made the mistake of forgetting to unmount a flash drive before I removed it, and then lost the file I needed, a paper I was working on. ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4

    File recovered, now not opening


    Hi guys,

    I made the mistake of forgetting to unmount a flash drive before I removed it, and then lost the file I needed, a paper I was working on. (I moved it, I didn't copy...stupid)

    Well, I got a file recovery program to go to work on it, and I have the file now, accessible through root, and I've located it in Dolphin as root, however I can't open the file, I think because I'm not logged in as root, just using sudo (Kubuntu, btw). I'm not extremely comfortable navigating the file system through the command line, but I think that's what I need to do to open it with openoffice to recover the content. Can anyone tell me what command I use to open the file with a certain program through the command line?

    Thanks

  2. #2
    Linux Guru Jonathan183's Avatar
    Join Date
    Oct 2007
    Posts
    3,043
    I suggest instead of trying to run openoffice as root you use either chown (to change the file ownership to your regular user) or chmod to change the file access properties to allow your regular user access
    Code:
    man chown chmod
    will give information, and if you open a terminal and cd to the folder with the file in and type
    Code:
    sudo ls -l
    you should get information on the file, who owns it, who can read it etc.

  3. #3
    Just Joined!
    Join Date
    Feb 2009
    Posts
    4
    Thanks a lot. I've been traveling all week, but when I get back I'll try that and see how it works out.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •