Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 11-19-2005, 07:21 AM   #1
LQ Newbie
Registered: Nov 2005
Posts: 13

Rep: Reputation: 0
Tilde name shortening

I have installed several versions of slackware and keep finding that file names are truncated using the ~ (tilde?) character +1 ie all file names longer that (5?) letters are shortened to ***~1.** . Is there any way of forcing linux/Xwindows to use full filenames? Thanks.
Old 11-19-2005, 08:56 AM   #2
Alien Bob
Slackware Contributor
Registered: Sep 2005
Location: Eindhoven, The Netherlands
Distribution: Slackware
Posts: 6,448

Rep: Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628Reputation: 3628
Do you mount your Windows drives as FAT filesystems? You should mount them as type "vfat". The MSDOS display limits of 8.3 filenames will go away.

Old 11-19-2005, 09:38 AM   #3
LQ Newbie
Registered: Nov 2005
Posts: 13

Original Poster
Rep: Reputation: 0
Setup does not ask what file type to use, it just says there are dos drives, and what name it should give. I am reluctant to go into fdisk on these files, in case of corrupting existing windows filesystems on a multiop setup.
Anyway, why should Linux care what dos systems are mounted when it is dealing with its own files in its own filesystem (ext3)? Is the conclusion I should not mount dos drives and then the problem goes away?
Old 11-19-2005, 11:24 AM   #4
Registered: Apr 2005
Location: Havant, Hampshire, UK
Distribution: Slamd64, Slackware, PS2Linux
Posts: 465

Rep: Reputation: 44
The name shortening occurs under ext3 formatted drives? Are you certain?

You misunderstand, I think. Mounting the drive is not the same as formatting the drive.

The solution may be to go into the file /etc/fstab (file system table) and modify the lines relating to your Windows mount points, change the "auto", to "vfat" as below. That might help.

/dev/hdd   /mnt/windrive    vfat        default        0   0
Otherwise we will need some more information about your setup to help you sort out the problem!

- Piete.
Old 11-19-2005, 02:36 PM   #5
Senior Member
Registered: May 2004
Distribution: Slackware 14.2 64-bit with multilib
Posts: 2,308

Rep: Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613Reputation: 613
Hrmm, well I have vfat set for my fat32 partition, and my floppy, and when I look through my fat32 mount the filenames are not truncated, but on my floppy it is...

A sample listing of my fat32 partition under linux
slackuser@slacker:~$ ls /fat32
06\ -\ LONELY\ ROLLING\ STAR.mp3*               kde/
3do/                                            kernel/*                             lbreakout2-2.5.2.tar.gz*
5715-TuxSplash.tar.gz*                          libdvdcss-1.2.8-i686-2jto.tgz**           linuxsettings/
6547-sub_zero.tar.gz*                           logs/
Allowed_Email_Adresses.txt*                     loveseeker.txt*
BitTorrent-4.0.4.tar.gz*                        lunarimages/*                                   macossounds/
Disclaimer.doc*                                 mainpageye.jpg*
Eric\ Crapton.m3u*                              math/
Fai\ Light.pls*                                 mos/
Japan-A-Radio.pls*                              mozilla-win32-1.7.8-installer.exe*
Jenny.txt*                                      mugu\ marauder/
Jump\ Drive/                                    novus\ ordo\ seclorum.jpg*
My\ Shared\ folder/                             ntlogo.gif*
NeroBurnRightsInstaller.exe*                    oglroids.tar*
NovusOrdoSeclorum.jpg*                          parted-1.6.11-i486-1.tgz*
Programming/                                    pdf/
RadioParadise.pls*                              peng-movie.4.gif*
Recycled/                                       penguin-icons-1.0.tgz**                                   pics/
SingASimpleSongFullVid.swf*                     powertweak-0.99.5.tar.gz*
Slackware\ Graphics\ and\ Link\ Banners.htm*    proftpd-1.2.10.tar.gz*
Slackware\ Graphics\ and\ Link\ Banners_files/  pspbrwse.jbf*
Slackware10.0\ Security/                        quicktimealt146.exe*
Solaris/                                        regina.txt*
Test_2_to_5_Permission_Slips_M1414.doc*         rootcolour*
Thunderbird\ Setup\ 1.0.2.exe*                  sierpinski.tar*
Trillian.Pro.v2.013.Cracked-ACME/               slackbook-2.0.pdf*
[savefile]050615201459_Sausage_-_By_Mike.mp3*   slackdvdinstructions.txt*
[savefile]050615203514_Peroum_Is_Poor_Guy.mp3*  slackpkg-1.2.2-noarch-4.tgz*
aimicons/                                       slackware-basics10.1.pdf*
allstars_0000.png*                    *
allstars_0001.png*                              sounds/
animaniacs/                                     spam_encoded_in_base64/
beetle11.wav*                                   sproing.tar*
blender/                                        streamtuner-0.99.99.tar.gz*
bookmarks.html*                                 streamtuninstall.log*
bootsect.lnx*                                   supertux-0.1.2-setup.exe*
bootsplash-3.1-i486-12pcx.tgz*                  tailmessage.txt*
bs_1.doc*                                       temp2/
buddy.txt*                                      tinydistros/
buttheadjeebus.png*                             tuxmad.bmp*
cd1.gif*                                        tuxracer-0.61-i486-3jw.tgz*
celestia-1.3.2.tar.gz*                          tuxracer-win32-0.61a/
celestia-win32-1.3.2.exe*             *
cldpen01.exe*                                   tuxvacation.bmp*
corn.jpg*                                       tuxvacation2.bmp*
death.mp3*                                      untitled.txt*
djquesodiablo.jpg*                              wallpapers/
dmesg.txt*                                      weirdsong.txt*
email/                                          wgens211/
energybliss.jpg*                                winampxmmsskins.tar.gz*
eye.jpg*                                        windowsttf/
fall_course_syllabus.doc*                       xdesktopwaves-1.3.tar.gz*
fonts*                                          xmms-musepack-1.00.tar.gz*
fortunes/                                       xmmsplugins/
fortunes.tar.gz*                                xpm/
fractals/                                       yahoo.txt*
gaim-extprefs-0.5.tar.gz*                       zsnes/
galculator-1.2.5.tar.bz2*                       zsnes142src.tar.gz*
gens-rc2.tar.gz*                                zsnesw142/* **
And this is my floppy...
slackuser@slacker:~$ ls /mnt/floppy
3dolog~1/      grades/        method~1.txt*  picture.cs*    testqu~1.txt**  linux_~1.txt*  mp/            script~1.txt*
and this is what I have for fstab...
/dev/hda3        swap             swap        defaults                  0   0
/dev/hda2        /                reiserfs    defaults                  1   1
/dev/hda1        /ntfs            ntfs        ro,users,umask=000        0   0
/dev/hda4        /fat32           vfat        rw,users,umask=000        0   0
/dev/dvdrom      /mnt/dvdrom      iso9660     noauto,users,ro           0   0
/dev/sr0         /mnt/cdrw        iso9660     noauto,users,ro           0   0
/dev/sda1        /mnt/cpflash     vfat        noauto,users,rw           0   0
/dev/sdb1        /mnt/flashdrive  vfat        noauto,users,rw           0   0
/dev/fd0         /mnt/floppy      auto        noauto,users,rw           0   0
devpts           /dev/pts         devpts      gid=5,mode=620            0   0
proc             /proc            proc        defaults                  0   0
Old 11-21-2005, 01:44 AM   #6
Registered: Jan 2004
Location: Los Angeles
Distribution: Slack64 14.1
Posts: 565

Rep: Reputation: 37
That looks like the floppy you have the files on was originally formatted with FAT.

Old 11-21-2005, 03:55 AM   #7
Senior Member
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,232

Rep: Reputation: 299Reputation: 299Reputation: 299
see it changing

/dev/fd0 /mnt/floppy auto noauto,users,rw 0 0


/dev/fd0 /mnt/floppy vfat noauto,users,rw 0 0

changes anything


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
Shortening Network timeout on Boot... morrolan Linux - Software 3 09-14-2005 03:00 PM
editor saves duplicate file with tilde after it smaudlin Red Hat 2 12-29-2004 04:37 PM
Backup "tilde" files jrdioko Linux - Newbie 2 09-03-2004 01:41 PM
tilde in X nva Linux - General 2 06-30-2003 11:12 AM
Filenames with tilde rovoreed Programming 2 08-08-2001 04:53 PM

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

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