LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 07-11-2006, 07:02 PM   #1
fof3
Member
 
Registered: Nov 2003
Distribution: Debian - Lenny
Posts: 174

Rep: Reputation: 30
mount: Not a directory


I tried to mount /cdrom and got:
'mount: Not a directory'

drwxrwsr-x 2 root cdrom 1.0K 2006-07-11 18:08 cdrom

hebrews:/$ file cdrom/
cdrom/: setgid directory

/etc/fstab
<file sys> /dev/cdrom
<mount point> /cdrom
<type> <options>
iso9660 ro,user,noauto
<dump> <pass>
0 0
 
Old 07-11-2006, 07:08 PM   #2
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
Is that your whole fstab? I hope not, but if you have it set up like that it's no wonder it isn't working.

Here is my entry for the cdrom from my fstab:

Code:
/dev/hdc                /mnt/cdrom      auto            noauto,user,ro0 0
Regards,

Alunduil
 
Old 07-11-2006, 07:18 PM   #3
fof3
Member
 
Registered: Nov 2003
Distribution: Debian - Lenny
Posts: 174

Original Poster
Rep: Reputation: 30
No.
I had tried changing hdc to cdrom.

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
#/dev/sda3 / ext2 errors=remount-ro 0 1

/dev/sdb2 / ext2 errors=remount-ro 0 1

#/dev/sda2 /boot ext2 defaults 0 0

/dev/sdb1 /boot ext2 defaults 0 0

proc /proc proc defaults 0 0

/dev/fd0 /floppy auto user,noauto,rw 0 0

#/dev/hdc /cdrom iso9660 ro,user,noauto 0 0
/dev/cdrom /cdrom iso9660 ro,user,noauto 0 0


#/dev/sda6 /var ext3 defaults 0 2
/dev/sdb5 /var ext3 defaults 0 2

#/dev/sda7 /usr ext3 defaults 0 2
/dev/sdb6 /usr ext3 defaults 0 2

#/dev/sda8 /home ext3 defaults 0 2
/dev/sdb7 /home ext3 defaults 0 2

none /proc/bus/usb usbfs defaults 0 0
 
Old 07-11-2006, 07:51 PM   #4
fof3
Member
 
Registered: Nov 2003
Distribution: Debian - Lenny
Posts: 174

Original Poster
Rep: Reputation: 30
I found the problem.
I was trying to mount a disk that contained encrypted system back-up data. I tried mounting an old back-up disc, and there was no problem. I redid the backup on a new disk; and now mount works fine.
 
Old 07-11-2006, 07:52 PM   #5
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What is the output of
Code:
ls /cdrom
?

Regards,

Alunduil
 
Old 07-11-2006, 07:53 PM   #6
alunduil
Member
 
Registered: Feb 2005
Location: San Antonio, TX
Distribution: Gentoo
Posts: 684

Rep: Reputation: 62
What timing my post had, anyway I'm glad you got it figured out.

Regards,

Alunduil
 
Old 07-11-2006, 07:59 PM   #7
drkstr
Senior Member
 
Registered: Feb 2006
Location: Seattle, WA: USA
Distribution: Slackware 11.0
Posts: 1,191

Rep: Reputation: 45
I'm not positive, but maybe it doesn't like having the gid bit set on the directory? As a test, try removing it and creating a regular directory and see if it helps.

regards,
...drkstr

Last edited by drkstr; 07-11-2006 at 08:05 PM.
 
  


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
mount.cifs - mount error 20 = Not a directory da_kidd_er Linux - Networking 10 10-16-2008 01:55 PM
Apache Directory Listing Of NFS Mount, cannot view directory list via apache luqmana Linux - Networking 2 12-19-2005 07:03 AM
mount:not a directory. Suse dvd mount problem tzanis Linux - General 8 11-06-2005 12:30 PM
mount: Not a directory perturbation Red Hat 14 06-26-2005 01:47 AM
mount a directory Magas Slackware 1 08-04-2004 01:05 PM


All times are GMT -5. The time now is 02:33 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration