DebianThis forum is for the discussion of Debian Linux.
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
There's something I'm not understanding about symlinking to a directory that's causing my files to disappear. I've partitioned my hard disk for purposes of keeping data and the OS separate. My intention was to make symlinks in my home directory to other directories so that I can type (for example) ~/sounds instead of /mnt/sda5/sounds, but it will still physically store everything in ~/sounds on my data partition. I tried to do this by first creating /mnt/sda5/sounds, and then typing (from my home directory):
ln -s /mnt/sda5/sounds sounds
This seemed to work, but then I noticed that ~/sounds and /mnt/sda5/sounds actually had different files in them! Apparently when I saved or copied a file, it would go to one or the other, but not both. Then when I poked around more, one set of files seemed to overrule the other, and the other set of files just disappeared. (This has happened to me twice now, the second time while I was in the process of trying to back everything up.)
I read the man and info pages for ln but still can't figure out what's going on. Anyone else had this problem? Or is ln just not the proper tool for linking to directories?
Running a Debian-compatible HD install of Knoppix 4.0 (only way I could figure out to install to SATA) with 2.6.12 kernel.
Thank you! My missing files reappeared when I unmounted /mnt/sda5. So Linux was actually saving sda5's files to sda1 when sda5 wasn't mounted? How do I keep it from doing that? Have it automatically mount sda5 at boot?
Delete /mnt/sda5/sounds when sda5 is not mounted. Remount /mnt/sda5. Now whenever the sound directory is not there, you know it is not mounted. You could add a line to your /etc/fstab
/dev/sda5 /mnt/sda5 ext3 defaults 0 0
to ensure that it is mounted at boot.