Eek! Oops! - Printable Version +- Linux-Noob Forums (https://www.linux-noob.com/forums) +-- Forum: Linux Noob (https://www.linux-noob.com/forums/forum-3.html) +--- Forum: How Do I? (https://www.linux-noob.com/forums/forum-60.html) +--- Thread: Eek! Oops! (/thread-763.html) |
Eek! Oops! - popkernal - 2008-12-24 Hello all, I'd like to start this off by saying I apologize for making my first post such a cry for help, but that is really what it is. This being "linux-noob", I hope you are used to it to the extent of helping.. haha. I'm currently working on a laptop, booted into a live linux cd (slackware based distrib). I have a NTFS drive mounted as /mnt/mswin, and my goal is to bring a file local to that file system into my home folder so I can email it, put it on a USB key, whatever. I am convinced this hard drive is about to crap the bed, and who's laptop it is needs this one file - thats it. I know I formatted the mv command wrong, but here is what I did = Code: ~# cd /mnt (The file I need to get is 'george\ washington.wps') Code: My Documents # mv george\ washington.wps /desktop (The file is gone. Where is it!? I typed in that command wrong!) And I can't find the right file through any relevant search I can try: Code: / # find / -name george* Please help me out... =\ Eek! Oops! - anyweb - 2008-12-25 where is this /Desktop exaclty ? i tried to recreate your setup here on my Fedora box but could not make it fail.... see here Quote:[anyweb@localhost ~]$ dirDesktop Download Music Public Templates Videos Eek! Oops! - Dungeon-Dave - 2008-12-26 My guess is that by using "move" you've renamed it to "desktop" under the root directory. Try: ls -ld /desk* Also, note that "find" requires metacharacters to be escaped to the shell, eg: Code: / # find / -name "george*" The reason being: if you have a file called "georgenia.txt" in the current directory, then the shell would expand: Code: find / -name george* to: Code: find / -name georgenia.txt .. and then try looking for that file exactly. Safer to "hide" them from the shell, so that the shell passes it as a parameter to the "find" command untainted. Eek! Oops! - hybrid - 2008-12-27 Further to previous responses, judging by this command: Code: mv george\ washington.wps /desktop I'd suggest that the george washington.wps file is now copied and is a file called desktop right at the root of your filesystem. You can now copy it back somewhere sensible: Code: cp /desktop "/mnt/mswin/Documents and Settings/Owner/george washington.wps" That should get you back where you started! Eek! Oops! - popkernal - 2008-12-31 Hey guys, I really appreciate the help. I thought email notifications were turned on, and I haven't received anything, so I haven't even read your replies until now. This laptop is booting up right now and I'll go through what you have suggested and let you know. Thanks so much! Hopefully it really is /desktop. *Smacks self on forehead* Eek! Oops! - popkernal - 2008-12-31 Okay, so I may have created myself a new problem. When I gave up when searching failed, and shut down the computer, the live linux obviously went bye bye. If it were infact in / , I renamed it and moved it off of the hard drive on to the logical partition (correct?), and then destroyed it upon shutdown. Oops. Eek! Oops! - hybrid - 2008-12-31 Quote:Okay, so I may have created myself a new problem. Unfortunately, you are correct. You moved it to the live installation in memory, which was destroyed on shutdown. I'm afraid that if you don't have a backup, there's nothing you can do... :( Eek! Oops! - popkernal - 2009-01-01 Oh well. The lady has already considered it a lost cause, so I'll move on. In other news, I am typing this from Ubuntu. Freshly installed on my desktop (dual booting XP SP2). It doesn't get along very well with my Macbook. Where to start where to start.. haha. Thanks for the help. Eek! Oops! - anyweb - 2009-01-01 well at least the email part works, i signed up to this thread to test that it works and i got an email Quote:Topic Subscription Reply Notification ( linux-noob.com/forums )From: linux-noob.com/forums (admin@linux-noob.com) cheers anyweb |