LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   External Hard drive (https://www.linuxquestions.org/questions/linux-hardware-18/external-hard-drive-613019/)

fofire 01-11-2008 11:38 PM

External Hard drive
 
Hi guys,

Thanks for your answers in advance.

I just got a new WD Passport (250 GB) and I was transfered my data over (in Windows). Then later on I decided to transfer some mp3's over on to the external hard drive. When I did that for some reason it copied the files into the main directory and it seems as if all the data I had originally transfered over had disappeared.

However in both windows and Linux it accounts for the space of the transfered files although it doesnt show the data . . . anybody have a clue what might be going on . . . I didnt by accident hide those files and click on the do not show hidden files button.

Any clue what I should do . . . like I said this is brand new.

Fofire

deepumnit 01-11-2008 11:43 PM

Quote:

Originally Posted by fofire (Post 3019759)
When I did that for some reason it copied the files into the main directory and it seems as if all the data I had originally transfered over had disappeared.
Fofire

How does this matter? Where us the main directory? Please ensure clarity. ALso, put in more details like the file system etc.

deepumnit 01-11-2008 11:43 PM

Quote:

Originally Posted by fofire (Post 3019759)
When I did that for some reason it copied the files into the main directory and it seems as if all the data I had originally transfered over had disappeared.
Fofire

How does this matter? Where is the main directory? Please ensure clarity. Also, put in more details like the file system etc.

jschiwal 01-11-2008 11:51 PM

How did you copy the files? Did you maybe copy multiple files to a single file using the dos copy command?

what command did you use to copy the files to the disk? Look at the long listing and see if there is a large file present. Could you maybe have copied them to a subdirectory by mistake?

You could use the "find" command to locate files above a certain size.
find /media/externaldrive/ -type f -size +6M

To the kernel, a directory is a text file. Its size increases with the number of files copied there, so you could try to locate a subdirectory with a large number of files based on the directories size:

find /media/externaldrive/ -type d -size +30K

The sizes I chose are just examples. I also made up the name of the mount point since you didn't indicate that info.

fofire 01-12-2008 11:42 PM

Quote:

Originally Posted by jschiwal (Post 3019773)
How did you copy the files? Did you maybe copy multiple files to a single file using the dos copy command?

what command did you use to copy the files to the disk? Look at the long listing and see if there is a large file present. Could you maybe have copied them to a subdirectory by mistake?

You could use the "find" command to locate files above a certain size.
find /media/externaldrive/ -type f -size +6M

To the kernel, a directory is a text file. Its size increases with the number of files copied there, so you could try to locate a subdirectory with a large number of files based on the directories size:

find /media/externaldrive/ -type d -size +30K

The sizes I chose are just examples. I also made up the name of the mount point since you didn't indicate that info.

I did a simple copy paste within windows.

As for the file system type its fat 32.

thanks for the help

deepumnit 01-13-2008 04:38 AM

You yourself must be able to deliver the solution. Just check if the files are hidden :) Thats all I can say! Also, just make sure that you safely unmount the drive before removing it. If you remove it without unmounting it, the data may not be written at all!

jschiwal 01-13-2008 05:38 PM

Look at the results of:
find /media/<mount-point>/ -type f -name "*.mp3"

It sounds like the files that you can't find are all mp3's and you hadn't copied mp3's previously.


All times are GMT -5. The time now is 01:02 PM.