LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-15-2002, 06:07 PM   #1
mathfeel
Member
 
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Rep: Reputation: 15
can't mount fs


I login as a normal user...and try to access the floppy...
so I mount /dev/fd0 /mnt/floppy
the result is, "only root can do this"...
I am running RH7.3
I can't believe that a normal user can't even read a floppy or cdrom???
What have I done wrong??? can anyone help???
 
Old 08-15-2002, 06:20 PM   #2
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
The problem is less likely to be that normal users cannot access the floppy. If you try to explicitely mount (i.e. provide both the device and mount-point) a device, then you will probably be given this error. Check your /etc/fstab file to see what permissions have been given to your floppy drive. If they're a bit confusing, post them here and we'll see what we can do for you.
 
Old 08-16-2002, 02:59 AM   #3
mathfeel
Member
 
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
well, this is my fstab:
what should be the setting for /dev/fd0 then???

=========================================================

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
LABEL=/usr /usr ext3 defaults 1 2
/dev/hda9 /home ext2 defaults 1 2
/dev/hda7 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
 
Old 08-16-2002, 03:42 AM   #4
MasterC
LQ Guru
 
Registered: Mar 2002
Location: Salt Lake City, UT - USA
Distribution: Gentoo ; LFS ; Kubuntu ; CentOS ; Raspbian
Posts: 12,613

Rep: Reputation: 69
Add "user" after owner, comma separated. Hopefully that will take care of that annoying problem, and just a "tip". You can mount devices listed in your fstab by simply typing the location of the mount. Example:
To mount your dev/hda9 in /home all you would have to type is:
mount /home

Cool
 
Old 08-16-2002, 03:06 PM   #5
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
I think you can just mount your floppy using
mount /mnt/floppy
 
Old 08-17-2002, 06:39 PM   #6
mathfeel
Member
 
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
I probably did this:
when I was installing redhat 7.3...I didn't put /dev/hda9 to mounting point /home...
so when I finished installing I have to add the line
/dev/hda9 /home....myself...

and I can't seem to mount /home...
fix??
 
Old 08-18-2002, 01:13 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
do you have a directory named /home to mount it in, do you have a file system on hda9, what's the error for

mount /home

also you can use

mount /dev/fd0
or
mount /mnt/floppy
 
Old 08-18-2002, 03:43 PM   #8
Mara
Moderator
 
Registered: Feb 2002
Location: Grenoble
Distribution: Debian
Posts: 9,696

Rep: Reputation: 232Reputation: 232Reputation: 232
Quote:
Originally posted by mathfeel
I probably did this:
when I was installing redhat 7.3...I didn't put /dev/hda9 to mounting point /home...
so when I finished installing I have to add the line
/dev/hda9 /home....myself...

and I can't seem to mount /home...
fix??
During RedHat installation it created a new /home. What you need to do:
1) Log in as root.
2) Rename your current /home (for example to /home_new).
3) Edit /etc/fstab, add there a line:
/dev/hda9 /home ext2 defaults 1 2
Save and exit
4) Create a new /home
mkdir /home

After reboot your old /home should be mounted as /home.
After writing this I've read that you've already added the entry. So just steps 2 and 4 are important.
 
Old 08-21-2002, 09:01 PM   #9
mathfeel
Member
 
Registered: Feb 2002
Distribution: Gentoo
Posts: 95

Original Poster
Rep: Reputation: 15
Here is another problem:
I followed your advise...my floppy seems to mount right now...
but when I switch disk and do:
mount /mnt/floppy
it gives me a message saying /mnt/floppy is already mounted!!
so do I have to explicitly unmount the floppy (and cdrom??) and then mount them again???
is there easier way?...
 
Old 08-21-2002, 10:09 PM   #10
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
you cannot just take out a mounted floppy


before taking out the floppy do this

umount /dev/fd0

or umount /mnt/floppy
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to give not-root user ability to mount devices to any mount point??? jdupre Linux - General 8 02-04-2012 10:03 AM
NFS mount of smb mount of windows share: permission denied problem :( Bagatur Linux - Networking 4 07-07-2009 11:34 AM
mount: unknown filesystem type 'ntfs' when trying to mount windows drive... DiZASTiX Linux - Hardware 12 09-28-2008 07:29 PM
can mount C not D FAT: invalid media value (0x45) mount: wrong fs type, bad option Emmanuel_uk Linux - Newbie 10 11-29-2005 02:47 AM
automount: mount(generic): failed to mount (null) (type iso9660) on /mnt/media/ vasudevadas Slackware 5 10-17-2005 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 03:58 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