LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 02-13-2005, 05:52 AM   #1
jpotex
LQ Newbie
 
Registered: Feb 2005
Location: Sweden, Sundsvall.
Distribution: Slackware 10 (Linux 2.6.10)
Posts: 4

Rep: Reputation: 0
mount: Too many levels of symbolic links (SOLVED)


I've been trying to solve a mount problem for some days now, and I've realized that I can't do it without any help from someone who knows linux and slackware better than me.

When I'm trying to mount my cdrom, I recieve "mount: Too many symbolic links" back. I've checked /dev/cdrom up and it's symlinked to itself, which is a bit of a problem as I don't know where to point it so it'll work properly. And I figured that my problem must be in that symlink.

So, what can I do to fix this problem? My line in /etc/fstab is:
/dev/cdrom /mnt/cdrom iso9660 noauto,users,umask=0222,ro 0 0

Last edited by jpotex; 02-13-2005 at 08:12 AM.
 
Old 02-13-2005, 06:00 AM   #2
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

/dev/cdrom should _not_ be linked to itself, but to the device that represents the cdrom.

Don't know if you emulate scsi or use an ide device. dmesg | grep CD should give you that info, sr0 being scsi, hdX being ide.

/dev/cdrom should be linked to /dev/sr0 (when emulating scsi) or /dev/hdX (X being c,d or whatever your cdrom is attached to).

Take a look here too:

http://www.tldp.org/HOWTO/CDROM-HOWTO/

Hope this gets you going again.

Last edited by druuna; 02-13-2005 at 06:01 AM.
 
Old 02-13-2005, 06:05 AM   #3
jpotex
LQ Newbie
 
Registered: Feb 2005
Location: Sweden, Sundsvall.
Distribution: Slackware 10 (Linux 2.6.10)
Posts: 4

Original Poster
Rep: Reputation: 0
root@sarah:/dev# dmesg | grep CD
hdc: SAMSUNG CD-R/RW DRIVE SW-224B, ATAPI CD/DVD-ROM drive
hdc: ATAPI 40X CD-ROM CD-R/RW drive, 2048kB Cache, DMA
Uniform CD-ROM driver Revision: 3.20
root@sarah:/dev#

I've tried symlink it to /dev/hdc with "ln -s /dev/hdc cdrom", but then I recieved "mount: wrong fs type, bad option, bad superblock on /dev/cdrom, or too many mounted file systems" instead of the previous message when I type "mount /mnt/cdrom".

EDIT: I don't know if it's related to this in a way that I can solve my problem, but it work perfectly fine if I use "mount -t iso9660 /dev/hdc /mnt/cdrom" when trying to mount.

Last edited by jpotex; 02-13-2005 at 06:17 AM.
 
Old 02-13-2005, 06:24 AM   #4
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Looks like this is a cdrom and dvd player, your fstab line should be different:

/dev/cdrom /mnt/cdrom auto noauto,users,umask=0222,ro 0 0

A dvd has a different fs then the cdrom does.

Also: Did you set/unset the correct options in the kernel and recompile?

This link could help you setting up cd/dvd (you need the IDE CD-writer section)

http://www.nl.linuxfromscratch.org/b...riteutils.html

The kernel parameters for your DVD should be something like this:

Block devices
Packet writing on CD/DVD media: Y or M
File Systems
UDF filesystems support (read only): Y
UDF write support (DANGEROUS) Y <== ONLY WHEN YOU HAVE A DVD R/W!)

Hope this isn't too complicated, you don't state your level of experience. If this is going to be your first kernel compile, make sure you read the howto's and on-line info (probably available from linuxquestions as well).

If you need help with that: Just ask.

edit
You gave some extra info while I was typing, guess the kernel compile part is ok Don't know about the DVD part....

Last edited by druuna; 02-13-2005 at 06:26 AM.
 
Old 02-13-2005, 07:23 AM   #5
jpotex
LQ Newbie
 
Registered: Feb 2005
Location: Sweden, Sundsvall.
Distribution: Slackware 10 (Linux 2.6.10)
Posts: 4

Original Poster
Rep: Reputation: 0
People use to say that everything isn't what it looks like. I don't have a DVD-player or recorder.

About those two pages you've linked to. I can't find anything that help me solve the real problem with mount (read 1st and 3rd message).
 
Old 02-13-2005, 07:36 AM   #6
sybille
Member
 
Registered: Dec 2004
Location: France
Posts: 41

Rep: Reputation: 15
What happens if you edit /etc/fstab so that it reads as follows:

/dev/hdc /mnt/cdrom iso9660 noauto,users,umask=0222,ro 0 0

I don't think it's a symlink problem, but instead that your fstab file doesn't start from the right device (/dev/hdc).
 
Old 02-13-2005, 07:49 AM   #7
druuna
LQ Veteran
 
Registered: Sep 2003
Posts: 10,532
Blog Entries: 7

Rep: Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405Reputation: 2405
Hi,

Quote:
People use to say that everything isn't what it looks like. I don't have a DVD-player or recorder.
Strange, dmesg does identify it as a cdrom dvd player.... But you know best what is (and isn't) installed/possibel.

Quote:
About those two pages you've linked to. I can't find anything that help me solve the real problem with mount (read 1st and 3rd message).
The links a gave are for setting up cd/dvd including kernel parameters. You edited your post while I was typing a reply. Ignore the URL's, they won't solve your (mount) problem. The links are usefull if you want to burn cd's, you need scsi emulations for that.
 
Old 02-13-2005, 08:00 AM   #8
jpotex
LQ Newbie
 
Registered: Feb 2005
Location: Sweden, Sundsvall.
Distribution: Slackware 10 (Linux 2.6.10)
Posts: 4

Original Poster
Rep: Reputation: 0
Spoke to a friend of mine and he showed me his lines in /etc/fstab. It seems like the only problem was "umask=0222". When I removed that, it worked perfectly fine with mounting cdrom. Maybe umask isn't needed on cdrom.

Thanks for all the help anyway.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
two many levels of symbolic links walkant Linux - Software 3 07-14-2004 11:05 AM
Two many levels of symbolic links walkant Linux - Software 1 07-10-2004 09:14 AM
two many levels of symbolic links walkant Linux - Software 1 07-10-2004 08:54 AM
Too many levels of symbolic links Inexactitude Linux - Newbie 4 10-10-2003 06:09 PM
Can't mount CDROM: "Too many levels of symbolic links" wycolorado Linux - Newbie 10 08-15-2003 10:56 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 02:49 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration