LinuxQuestions.org
Help answer threads with 0 replies.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices

Reply
 
Search this Thread
Old 04-13-2004, 11:48 AM   #1
pgajeski21
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Rep: Reputation: 0
file get renamed when copied to external hard drive


I have a Western Digital External Harddrive USB 2.0 i have entry in the fstab file to mount it. The drive mounts fine. When i try to copy a file to the Western Digital External Harddrive USB 2.0 the file gets renamed.
Example: AAAAA.txt becomes aaaaa.txt
 
Old 04-13-2004, 01:51 PM   #2
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"I have a Western Digital External Harddrive USB 2.0 i have entry in the fstab file to mount it. The drive mounts fine. When i try to copy a file to the Western Digital External Harddrive USB 2.0 the file gets renamed.
Example: AAAAA.txt becomes aaaaa.txt "

This may be caused by the file system on the Western Digital External Harddrive. Some file systems can only support simple file names. What file system type are you using on the Western Digital External Harddrive?


-------------------------
Steve Stites
 
Old 04-13-2004, 02:23 PM   #3
pgajeski21
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
the drive comes preformatted as vfat
 
Old 04-13-2004, 02:38 PM   #4
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"the drive comes preformatted as vfat"

Maybe Linux thinks that the drive only supports the old DOS 8.3 name format. Try creating a long name like:
mammys.little.babies.like.shortning.bread
and see what name is actually created on the hard drive.

Check what file system type that it is mounted as with the mount command:
mount

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 04-13-2004, 05:43 PM   #5
pgajeski21
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
The drive is mounted as vfat in the fstab file.
I created to long file names on the harddrive they both worked fine. When i do a mkdir AAAA it makes it aaa but i can access AAA fine. When i copy that dir make to the linux box need to access as aaa. Same thhin happens when file are copied. I was thinking about reformatting the drive as ntfs??

paul
 
Old 04-13-2004, 06:18 PM   #6
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"I was thinking about reformatting the drive as ntfs??"

I don't know anything about ntfs so I don't know if that will fix the problem or not.

You could check to see if the problem is in the mkdir command. Use mkdir to create BBBB on your Linux hard drive. Check to make sure that it is BBBB and not bbbb. Then cp BBBB to the vfs drive and check to see whether it is named BBBB or bbbb. If cp copies the name correctly then the problem is in the mkdir command. If BBB changes to bbbb then the problem has something to do with the way Linux handles vfat directories.

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 04-14-2004, 08:59 AM   #7
pgajeski21
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
I just plugged the drive into a windows box and everthing displays fine.
i am at my wits end.
 
Old 04-14-2004, 10:13 AM   #8
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"the drive comes preformatted as vfat"

Can you use Windows to check whether the drive was really preformatted as vfat or was it preformatted ntfs?

___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
Old 04-14-2004, 01:20 PM   #9
pgajeski21
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
i reformatted the drive as ntfs. that was a no go
Linux did not like that.
 
Old 04-14-2004, 01:54 PM   #10
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
"i reformatted the drive as ntfs. that was a no go
Linux did not like that."

Try having Linux format the drive as vfat and see if both Linux and Windows will accept that.

--------------------------
Steve Stites
 
Old 04-15-2004, 10:20 AM   #11
pgajeski21
LQ Newbie
 
Registered: Apr 2004
Posts: 6

Original Poster
Rep: Reputation: 0
this is going to sound bad but,

HOW do i do that???


paul
 
Old 04-15-2004, 10:33 AM   #12
jailbait
Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Wheezy, Debian Jessie
Posts: 7,530

Rep: Reputation: 178Reputation: 178
You use the mkfs.vfat command against an umounted drive. So, supposing that your usb hard drive is /dev/scd0 then you would use the following commands:

umount /dev/scd0
mkfs.vfat /dev/scd0

See:
man mkfs


___________________________________
Be prepared. Create a LifeBoat CD.
http://users.rcn.com/srstites/LifeBo...home.page.html

Steve Stites
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Installing grub to external USB hard drive for later use as internal hard drive dhave Linux From Scratch 2 12-10-2005 08:48 AM
Can LFS be copied from 1 hard drive to another after the build? rblythe Linux From Scratch 3 06-18-2005 11:40 AM
copied hard drive install not completely recognized theFez Linux - Hardware 2 05-14-2005 10:41 AM
External Hard Drive Device File?/?? indrid Linux - Hardware 2 03-16-2004 02:13 PM
XS Drive II external USB hard drive/card reader max74 Linux - Hardware 7 10-21-2003 10:41 PM


All times are GMT -5. The time now is 05:33 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration