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.
Dell OptiPlex 3060 MICRO DESKTOP PC COMPUTER I5 8TH GEN UP TO 32GB UP TO 2TB M.2
$295.00
HP Workstation Z640 2x Xeon E5-2623V3 32GB Ram 2x256GB SSD Quadro K420 NO OS GA
$154.98
Intel Core i7-13700KF - 13th Gen Raptor Lake 16-Core (8P+8E) Desktop CPU Proc...
$269.99
New HP 24" All In One Desktop Computer 11th Gen i3 Up To 32GB RAM 2TB SSD Win 11
$419.99
Intel - Core i7-12700K Desktop Processor 12 (8P+4E) Cores up to 5.0 GHz Unloc...
$214.99
*New Sealed* Intel Core i9-12900K Processor 16 (8P+8E) Cores 5.2 GHz LGA 1700
$259.99
Intel - Core i9-13900K 13th Gen 24 cores 8 P-cores + 16 E-cores 36M Cache, 3 ...
$459.99
Intel Xeon E5-2667 V2 LGA 2011 3.3GHz 8 Core 130W 25MB 8GT/s CPU Processor
$14.99
Dell 15.6" NVIDIA Gaming Laptop - Intel Quad Core i7 64GB RAM 2TB SSD Windows 11
$446.00
Dell 5500 15.6" Touch Light Gaming Laptop Intel Core i5 4.10GHz 64GB RAM 2TB SSD
$399.00