OK First of all, it sounds like your data is not in jeopardy, just
temporarily slightly inaccessible.  What was your working directory when you
typed 'ln -s /var/ftp/pub/mp3 mp3' ?

Then, yeah rm the bad symlink.
If you get a warning like "mp3 is a directory" or "directory not empty" then
don't do that again :) and skip to the 'umount' command below.

Let's assume the mp3 mount point is in your /etc/fstab file.  If it
automatically mounts at boot time then this is probably the case.  If not,
or if you are unsure, then do this: 'mount' and look for the line with
/var/ftp/pub/mp3
It should look like this:
/dev/hda3 on /var/ftp/pub/mp3
Make a note of the /dev/xxxx part.

OK If the rm symlink thing worked 'ls' and see if the other mp3 dir is still
there.  If it is, see if the files are still in it.
If it is not there then mkdir mp3, and if the files aren't there, don't
panic yet.
Then (in either case) type 'umount /var/ftp/pub/mp3' and it should unmount
it.
To check, type 'mount' with no parameters to check which devices/filesystems
are mounted and where.  The line that said /dev/xxxx on /var/ftp/pub/mp3
before should be gone.
If it is NOT now listed then remount it with 'mount /var/ftp/pub/mp3'  The
mount command will only work like that if that filesystem is listed in the
fstab.  If that doesn't work then try 'mount -t auto /dev/xxxx
/var/ftp/pub/mp3' and that should fix it.

Let me know how(/if) it works :)

        George

-----Original Message-----
From: Robert Allen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 26, 2001 4:58 PM
To: [EMAIL PROTECTED]
Subject: ln -s /mountpoint /badlink


i think i made a bad mistake.

i was trying to make a link from my /var/www/html folder named mp3 so that
/var/www/html/mp3 would point to /var/ftp/pub/mp3 which is a mount point for
my 30 gig drive.

i did ln -s /var/ftp/pub/mp3 mp3
which, i beleive, overwrote the mountpoint with a bad symlink.

i can't cd to /var/ftp/pub/mp3, i just get an error: Too many levels of
symbolic links

i would like access to my drive again.  any thoughts?

can i just rm the link and mkdir the new folder again?  how do i get the new
folder to point to all that it contained before ( > 20 GB of mp3s )

funny thing.  i have smb running and i can get to \\mybox\ftp which is the
share folder /var/ftp/pub/. from my windoz box i can cd to mp3 and see the
files, which seems promising.

i think the first thing i'll do is back up through the windows box while i
have access to the files.  since i don't have a backup now.

thanks,
rob

_________________________________________________________________
Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp

Reply via email to