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.
HITACHI HUS724040ALA640 4TB 7200RPM 64MB SATA 6.0Gb/s 3.5" HARD DRIVE ZERO HOURS
$52.00
HGST Ultrastar DC HC520 12TB SATA 6Gb 256MB 3.5" Enterprise HDD- HUH721212ALE601
$79.99
Seagate ST8000NM0055 8TB 7200RPM 256MB SATA 6.0 Gb/s 3.5" Enterprise Hard Drive
$34.34
Western Digital WD4000FYYZ RE 4TB 7200 RPM 64MB Cache SATA 6Gb/s 3.5" Hard Drive
$24.11
Seagate ST12000NM0127 12TB 256MB 7200RPM 3.5" SATA 6.0Gb/s Enterprise Hard Drive
$93.99
CISCO A03-D1TBSATA 1TB 7.2K 6G 2.5INCH SATA HDD
$9.00
WD Ultrastar DC HC530 14TB SATA 6G 3.5" 7200RPM Enterprise HDD - WUH721414ALE604
$110.00
Seagate ST12000NM0127 12TB SATA 6Gb/s 256MB 7200RPM 3.5" Enterprise Hard Drive
$99.99
Seagate ST1000VM002 1TB 64MB SATA6Gb/s 3.5" (Low Power) Hard Drive -PC, CCTV DVR
$24.99
Western Digital DC HC320 Ultrastar 8TB 7200RPM SATA HD, HUS728T8TALE6L4, 0B36404
$99.00