Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Eek! Oops!
#1

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
mnt #  mkdir mswin
mnt #  mount -t ntfs-3g /dev/sda1 mswin -o force
mnt #  ls
floppy/ hdc/ live/ mswin/ sda1/
mnt #  cd mswin/Documents\ and\ Settings/Owner/My\ Documents/
My Documents #  ls
My\ Music/  RCT3/  desktop.ini*  meagan\ story.wps*  tm.xlr*
george\ washington.wps*




 

(The file I need to get is 'george\ washington.wps')

 



Code:
My Documents #  mv george\ washington.wps /desktop
My Documents #  ls
My\ Music/  RCT3/  desktop.ini*  meagan\ story.wps*  tm.xlr*




 

 

(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*
/ # find / -name *.wps
/ # find / -name /desktop   (haha)




 

Please help me out... =\

Reply
#2

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

Documents f10 Pictures Screenshot.png test

[anyweb@localhost ~]$ cd test

[anyweb@localhost test]$ mkdir test2

[anyweb@localhost test]$ cd test2

[anyweb@localhost test2]$ mkdir test3

[anyweb@localhost test2]$ ls

test3

[anyweb@localhost test2]$ touch "george\ washington.wps"

[anyweb@localhost test2]$ ls

george\ washington.wps test3

[anyweb@localhost test2]$ mv george\\\ washington.wps /Desktop

mv: cannot stat `/Desktop/george\\ washington.wps': Permission denied

[anyweb@localhost test2]$ cd /Desktop/

bash: cd: /Desktop/: Permission denied

[anyweb@localhost test2]$ ls /Desktop

ls: cannot open directory /Desktop: Permission denied

[anyweb@localhost test2]$ mkdir Desktop

[anyweb@localhost test2]$ mv george\\\ washington.wps /Desktop

mv: cannot stat `/Desktop/george\\ washington.wps': Permission denied

[anyweb@localhost test2]$ ls

Desktop george\ washington.wps test3

[anyweb@localhost test2]$
Reply
#3

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*"
/ # find / -name "*.wps"
/ # find / -name "/desktop"




 

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.

Reply
#4

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!

Reply
#5

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*

Reply
#6

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.

Reply
#7

Quote: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.
 

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... :(

Reply
#8

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.

Reply
#9

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)

Sent: 31 December 2008 23:35:05

To: anyweb@hotmail.com

 

anyweb,

 

hybrid has just posted a reply to a topic that you have subscribed to titled "Eek! Oops!".

 

The topic can be found here:

https://www.linux-noob.com/forums/index.php...view=getnewpost

 

There may be more replies to this topic, but only 1 email is sent per board visit for each subscribed topic. This is

to limit the amount of mail that is sent to your inbox.

 

Unsubscribing:

--------------

 

You can unsubscribe at any time by logging into your control panel and clicking on the "View Topics" link.

 

Regards,

 

The linux-noob.com/forums team.

https://www.linux-noob.com/forums/index.php
 

cheers

anyweb

Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)