LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-26-2005, 07:42 PM   #1
flyboy320
LQ Newbie
 
Registered: Jan 2002
Posts: 15

Rep: Reputation: 0
Rename a dos file - how to?


I have installed zipslack on my old laptop (p133), using dos and my laplink cable to transfer the files from my XP desktop to the laptop (no cd-rom drive). Everything has gone good so far, but now I have run into a snag.

I have transfered some files over (using DOS and my laplink) to the laptop, but since they were xfered over in DOS, the filenames have been changed (they were more than 8 characters long). I noticed when I look at them when running zipslack, they also have a * at the end of the filename.

I have tried the mv command to change the names, but it still only lets me change the name to 8 chars long, and theyu still have a * at the end.

Is there any way around this, as I need to change the names back to the long ones so i can install some packages....
 
Old 07-26-2005, 08:05 PM   #2
tuxrules
Senior Member
 
Registered: Jun 2004
Location: Chicago
Distribution: Slackware64 -current
Posts: 1,144

Rep: Reputation: 56
don't know about the 8 char file names but are you saying that your file names look something like this:

Quote:
abcxyz.doc*
If that's the case, then it looks like the permissions are set to executable.

you can try this

Code:
 chmod -x abcxyz.doc
and see what happens...

Tux,
 
Old 07-26-2005, 08:12 PM   #3
alienDog
Member
 
Registered: Apr 2004
Location: Europe
Distribution: Debian, Slackware
Posts: 505

Rep: Reputation: 46
I believe this has to do with mount options of the filesystem, or rather the filesystem type. DOS filesystems can be mounted under Linux in several different ways. You should mount the filesystem as VFAT (I think) to use long filenames.

--Edit--

Also chmod has no effect with FAT filesystems, the file permissions for them are set when the filesystem is mounted. See man mount.

Last edited by alienDog; 07-26-2005 at 08:16 PM.
 
Old 07-26-2005, 08:13 PM   #4
kencaz
Senior Member
 
Registered: Mar 2005
Location: Las Vegas, NV
Distribution: Mandriva Slackware FreeBSD
Posts: 1,468

Rep: Reputation: 48
If you transfered the files using a DOS version below 7.0 then you would not be able to xfr with long filename... Maybe 6.22 had it but I don't remember... Either way... use MSDOS 7.0 or higher for your xfrs...

KC
 
  


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
How can i Rename file? Khmer Linux - Newbie 4 10-21-2005 09:09 AM
File rename script jjwl89 Linux - General 1 03-14-2005 07:28 PM
rename file with a pattern sujith_deva Programming 7 12-16-2004 08:39 PM
How do I rename a file? Thaidog Linux - Newbie 5 10-10-2003 11:28 PM
How to rename a file? juanb Linux - General 4 03-19-2003 12:20 PM


All times are GMT -5. The time now is 05:27 AM.

Main Menu
Advertisement
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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration