-
Symlinks
Knoppix follows symlinks very oddly!
touch 1
echo "1" >> 1
ln -s 1 2
echo "2> >> 2
cat 1
1
2
ls -la:
1
2 -> 1
That works fine, but `vi 2` then make a change, then save (:w!) and your symlink is no longer there:
ls -la:
1
2
The same set of operations done in Slackware keeps the symlink from 1 to 2. In knoppix, there are now 2 different files.
So, what do I have to do to make Knoppix 'listen' to the symlinks. I don’t' know if this is a debian, or a Knoppix thing. I assume it's a knoppix 'feature' though.
Any help is appreciated.
- Ambrose
-
Senior Member
registered user
sounds like an vi feature. Most likely, vi remove the old file(thus the link) and create a real file.
I would suggest to use another editor and see if the same occurs. The cat >> operation suggest that the fs/kernel should be ok.
-
I actually discovered this while using a symlink from /mnt/hda1/etc/passwd -> /etc/passwd
When I added a user, the symlink was gone.
Of couse all other related symlink'd files were changed as well (shadow, group, etc)
Which leads me to believe it is a Knoppix thing. Also, this does not happen in Slackware.
- Ambrose
-
Senior Member
registered user
by add user, you mean using the command 'adduser' ? If that is the case, there must be something wrong with the kernel/fs. Could be the 2.4.21 thingy. I choose to skip this particular version as it seems to do more harm than good, based on what I read on the kernel.org mailing list.
-
uname -a
Linux esper.fqdn 2.4.20-xfs #1 SMP Mit Mär 26 15:37:36 CET 2003 i686 unknown unknown GNU/Linux
-
Senior Member
registered user
--I have found that some different distros can use *very* different versions of the same commands, like ' ln ', ' ls ', ' mkisofs ' and the like. Even ' ps ' can be different in some cases. Also could be different symlink handling depending on what filesystem you're using (ext2, ext3, reiserfs, et al.)

Originally Posted by
garyng
sounds like an vi feature. Most likely, vi remove the old file(thus the link) and create a real file.
I would suggest to use another editor and see if the same occurs. The cat >> operation suggest that the fs/kernel should be ok.
-
This happens where there is no hard drive as well.
Similar Threads
-
By als in forum Customising & Remastering
Replies: 2
Last Post: 03-10-2005, 05:26 PM
-
By tonycooles in forum General Support
Replies: 6
Last Post: 12-19-2004, 01:04 AM
-
By jhnphm in forum General Support
Replies: 0
Last Post: 08-22-2004, 08:05 AM
-
By Max in forum Hdd Install / Debian / Apt
Replies: 0
Last Post: 03-27-2004, 11:43 AM
-
By Ambrose in forum Hdd Install / Debian / Apt
Replies: 3
Last Post: 05-14-2003, 01:12 AM
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules

Fanxiang 1/2/5/10Pcs 2.5'' SATA SSD Lot 1TB 2TB 4TB 512GB 256GB TLC Internal SSD
$755.99

Samsung SSD Solid State Drive MZ-VL25120 512GB
$54.99

ON SALE TURBOLINK EVO 4TB V-HAND SSD 2.5 SATA III Internal Solid State Drive
$199.99

PNY CS900 250GB 2.5" Internal SSD (SSD7CS900-250-RB)
$31.00

SAMSUNG SSD 512GB 500GB 480GB 256GB 250GB 240GB SSD 2.5 Solide State Drive 6Gbps
$40.99

Samsung 860 EVO 250GB, SATA III, 2.5" Internal Solid State Drive - Black
$29.00

Crucial 2TB P3 Plus NVMe PCIe 4.0 M.2 Laptop Desktop Internal SSD CT2000P3PSSD8
$199.00

256GB mSATA SSD DRIVE MIXED BRAND TESTED WORKING
$23.50

Toshiba THNSN81Q92CSE 1920GB SATA 2.5 Solid State Drive
$199.00

Western Digital Blue 3D NAND 250GB 2.5" SATA III Internal SSD - WDS250G2B0A
$29.99