LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Rename a dos file - how to? (https://www.linuxquestions.org/questions/linux-newbie-8/rename-a-dos-file-how-to-347092/)

flyboy320 07-26-2005 06:42 PM

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

tuxrules 07-26-2005 07:05 PM

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,

alienDog 07-26-2005 07:12 PM

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.

kencaz 07-26-2005 07:13 PM

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


All times are GMT -5. The time now is 06:23 AM.