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.
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
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
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
--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
This happens where there is no hard drive as well.
IBM System X3250 M3 Server 8GB RAM Intel Xeon x3440 2.53ghz (NO HDD)
$41.99
IBM Server Rack Cabinet 9308-RC4
$209.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6Core 64GB RAM No HDD Server System
$359.99
$4250.00
IBM Power S822 8284-22A 12SFF Power8 3.89GHz 6-Core 64GB RAM No Bezel/HDD Server
$279.99
IBM x3650 M4 Server Intel Xeon E5-2640 (x2) 144GB RAM No HDDs (#4XN7N)
$169.99
IBM BladeCenter HS20 8843 55U Server - 2x Intel Xeon 4GB RAM - NO HDDs
$22.29
COMPLETE IBM 9009 41A ISERIES POWER9 ENTRY LEVEL SERVER FULLY TESTED AND WORKING
$3550.00
IBM System p5 9131-52A 3.5" 4-Bay Server 80P6787 1 CPU 2GB 6 HD CADDIES TAPE BU
$250.00
IBM QRadar xx29 Server 4412Q2A
$209.99