Results 1 to 7 of 7

Thread: Symlinks

  1. #1
    Member registered user
    Join Date
    Feb 2003
    Location
    Vancouver BC
    Posts
    92

    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

  2. #2
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    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.

  3. #3
    Member registered user
    Join Date
    Feb 2003
    Location
    Vancouver BC
    Posts
    92
    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

  4. #4
    Senior Member registered user
    Join Date
    Mar 2003
    Posts
    872
    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.

  5. #5
    Member registered user
    Join Date
    Feb 2003
    Location
    Vancouver BC
    Posts
    92
    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

  6. #6
    Senior Member registered user
    Join Date
    Nov 2002
    Location
    USA, IL
    Posts
    1,041
    --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.)

    Quote 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.

  7. #7
    Member registered user
    Join Date
    Feb 2003
    Location
    Vancouver BC
    Posts
    92
    This happens where there is no hard drive as well.

Similar Threads

  1. help me understand the symlinks on /ramdisk
    By als in forum Customising & Remastering
    Replies: 2
    Last Post: 03-10-2005, 05:26 PM
  2. help!! ati radeon and symlinks
    By tonycooles in forum General Support
    Replies: 6
    Last Post: 12-19-2004, 01:04 AM
  3. Automount symlinks/Captive
    By jhnphm in forum General Support
    Replies: 0
    Last Post: 08-22-2004, 08:05 AM
  4. Dangling Symlinks
    By Max in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 03-27-2004, 11:43 AM
  5. rc.local and symlinks
    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
  •  


1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE picture

1U Supermicro Server 10 Bay 2x Intel Xeon 3.3Ghz 8C 128GB RAM 480GB SSD 2x 10GBE

$297.00



HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES picture

HP/HPE ProLiant AMD Opteron X3216 APU 16 GB RAM MicroServer Gen 10 NO DRIVES

$299.99



HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 MicroServer Gen8 2.30 GHz 16 GB RAM NO DRIVES

$199.99



HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ* picture

HP ProLiant HSTNS-5151 Micro Server 8GB RAM No Drives/Key/Caddies *READ*

$94.99



SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount picture

SuperMicro Server 505-2 Intel Atom 2.4GHz 8GB RAM SYS-5018A-FTN4 1U Rackmount

$202.49



HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES picture

HP ProLiant Xeon E3-1220L V2 2.30 GHz 16 GB RAM MicroServer Gen8 NO DRIVES

$199.99



Supermicro 5018A-FTN4 Rack Server - Black picture

Supermicro 5018A-FTN4 Rack Server - Black

$125.00



HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon picture

HPE ProLiant MicroServer Gen10 Plus v2 Ultra Micro Tower Server - 1 x Intel Xeon

$846.19



2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL picture

2U 12 Bay SAS3 SuperMicro Server 6028U-TR4T+ W/ X10DRU-i+ Barebone 12 Caddy RAIL

$299.00



Supermicro 2U Server 12 Caddy Bay 3.5 LFF E ATX Storage Chassis SAS2 6GBPS Rail picture

Supermicro 2U Server 12 Caddy Bay 3.5 LFF E ATX Storage Chassis SAS2 6GBPS Rail

$199.00