LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat
User Name
Password
Red Hat This forum is for the discussion of Red Hat Linux.

Notices


Reply
  Search this Thread
Old 12-06-2004, 04:22 PM   #1
perturbation
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
mount: Not a directory


I'm using Red Hat Linux 9, and I'm having problems mounting my CD or disk drive. The CD and disk drive both worked when I installed the system; boot disk booted OK, and installation was from CD.
Now that Red Hat is installed, however, it refuses to auto-mount either the disk drive or the CD ROM (data, music, or whatever, it seems to make no difference), and when I try to mount manually from the terminal, I get this:

[root@localhost home]# mount -t iso9660 /dev/cdrom /mnt/cdrom
mount: block device /dev/cdrom is write-protected, mounting read-only
mount: Not a directory

I've seen posts on various other forums from people with what sounds like the exact same problem. I've seen suggestions of a few different permutations on the above mount command. However...

mount /dev/cdrom -t iso9660 /mnt/cdrom
mount /dev/cdrom -t "iso9660" /mnt/cdrom

..both produce the same result.
I've confirmed that /mnt/cdrom is a directory.
My /etc/fstab file looks like this:

[root@localhost home]# more /etc/fstab
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0

I've tried removing "udf" from the /dev/cdrom entry. I get the same result.

All the other threads I've seen for this problem on other forums peter out before a solution is arrived at. But judging from the number of people who apparently experience this, someone must have a solution. Any ideas anyone?

Thanks
 
Old 12-06-2004, 05:25 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985Reputation: 1985
/mnt/cdrom is presumably not a directory, most likely because it doesn't exist.
 
Old 12-06-2004, 09:42 PM   #3
perturbation
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Original Poster
Rep: Reputation: 0
I took the following to mean that /mnt/cdrom is a directory:

[root@localhost cdrom]# pwd
/mnt/cdrom
[root@localhost cdrom]#

My apologies if I'm wrong of that point. Thanks for straightening me out. But do you have ny suggestions to get the CD ROM to mount?
 
Old 12-20-2004, 12:49 PM   #4
newatthis
LQ Newbie
 
Registered: Dec 2004
Posts: 2

Rep: Reputation: 0
Ive got the same exact problem. I looked at my /etc/fstab and everythin looks like it should but I cannot mount my cdrom or my floppy. If anyone has any suggestions I would apreciate it.
 
Old 01-04-2005, 10:06 PM   #5
d.weeks
LQ Newbie
 
Registered: Jan 2005
Location: Australia
Posts: 1

Rep: Reputation: 0
Same problem on Slackware

Has anyone worked out what is going on here?

root@test1:/mnt# mount -o ro -t iso9660 /dev/hdc /mnt/cdrom/
mount: Not a directory

I am running Slackware Linux on common PC hardware with IDE drives.
I can boot from the install CD, but when I try to mount the file system things go bad.

/mnt/cdrom/ is definately a directory, by the way.
 
Old 01-10-2005, 02:35 PM   #6
riluve
Member
 
Registered: Nov 2004
Distribution: CentOS-4
Posts: 142

Rep: Reputation: 15
Well, I wish I could help. I was just thinking when I read this that it doesn't bode well for RedHat Linux or this forum that such a 'common' and 'basic' problem hasn't been addressed.

Just makes me kinda sad
 
Old 06-01-2005, 01:45 PM   #7
brianko
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
I discovered this little gem that might solve your problem:

Disable DMA on your CDROM:

hdparm -d0 -X /dev/hdc

(or whatever device name your drive might be)

This worked on a Slackware 9.1/10.1 install I was trying to do...

--Brian
 
Old 06-02-2005, 04:37 AM   #8
bramhastra
Member
 
Registered: May 2005
Location: India
Distribution: RHEL 4.0
Posts: 136

Rep: Reputation: 15
well according to me default fstab shuld be like this


/dev/hdb5 / ext2 defaults 1 1
/dev/hdb2 /home ext2 defaults 1 2
/dev/hdc /mnt/cdrom iso9660 noauto,ro,user 0 0
/dev/hda1 /mnt/dos/c msdos defaults 0 0
/dev/hdb1 /mnt/dos/d msdos defaults 0 0
/dev/fd0 /mnt/floppy ext2 noauto,user 0 0
/dev/hdb4 none ignore defaults 0 0

none /proc proc defaults
/dev/hdb3 none swap sw



well u can also try to use the command mount -t auto /mnt/cdrom

Last edited by bramhastra; 06-03-2005 at 04:21 AM.
 
Old 06-02-2005, 07:26 PM   #9
brianko
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
The original poster had this to say:

---

mount /dev/cdrom -t iso9660 /mnt/cdrom
mount /dev/cdrom -t "iso9660" /mnt/cdrom

..both produce the same result.
I've confirmed that /mnt/cdrom is a directory.

---

So it doesn't matter what is in /etc/fstab, because that file isn't consulted when attempting a mount command which contains both the device filename and the mountpoint.
 
Old 06-05-2005, 12:21 AM   #10
rajivb
Member
 
Registered: Sep 2004
Location: Bangalore, India
Distribution: Fedora, Ubuntu, WinXP
Posts: 39

Rep: Reputation: 15
i think this problem has nothing to do with /etc/fstab because i have my CD-ROM, CD-RW, floppy drives working right.

/mnt/cdrom is a directory if a cdrom is installed

i don't know why this problem has come but if anybody wants to compare any other data to sort this out , i am always available.
 
Old 06-05-2005, 12:59 AM   #11
brianko
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
Have you tried disabling the DMA as in the previous post?

hdparm -d0 -X /dev/hdc (or whatever your device is...)
 
Old 06-05-2005, 02:20 AM   #12
rajivb
Member
 
Registered: Sep 2004
Location: Bangalore, India
Distribution: Fedora, Ubuntu, WinXP
Posts: 39

Rep: Reputation: 15
i didn't have a problem from the start. It was working right from start brianko.
 
Old 06-05-2005, 08:50 AM   #13
brianko
LQ Newbie
 
Registered: Jun 2005
Posts: 8

Rep: Reputation: 0
My bad, should have followed the thread more closely. I believe we're both in agreement that this problem has nothing to do with /etc/fstab...
 
Old 06-25-2005, 09:19 AM   #14
Ogi
Member
 
Registered: Jun 2004
Location: Belgrade
Distribution: Anything with a bash prompt :P
Posts: 74

Rep: Reputation: 15
I got exactly the same problem, execept that i am trying to mount a loopback filesystem

mount /image.iso /mnt/temp -o loop

gives me exactly the same error. I know that /mnt/temp is a directory.

It is really strange, any tips anyone?

Cheers
 
Old 06-26-2005, 12:47 AM   #15
Khen1950fx
LQ Newbie
 
Registered: Jun 2005
Location: Sacramento
Distribution: Fedora Core 3
Posts: 2

Rep: Reputation: 0
re: mount not a directory

I was getting a "mount not a directory' message. I tried editing /etc/fstab, and I used hdparm---but I still had the same results. I tried a different cd, and then the cdrom mounted. Evidently, the "mount not a directory" message is the result of a bad disk or one with errors. I hope the helps(smile).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 06:03 AM
mount:not a directory. Suse dvd mount problem tzanis Linux - General 8 11-06-2005 11:30 AM
how to mount a directory Johng Linux - General 6 04-21-2005 06:41 AM
mount a directory Magas Slackware 1 08-04-2004 12:05 PM
Mount directory permissions Joe47 Fedora 2 07-13-2004 12:13 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Red Hat

All times are GMT -5. The time now is 07:42 PM.

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