Advertisement

Mounting In Linux

Started by February 19, 2002 10:01 PM
37 comments, last by Vegadam 22 years, 11 months ago
Wekkm sense I am not very sure what I am supposed to do, and it gave me a rather long messege after words, I will stop with this post. Sorry for waisting space.

quote: Original post by Vegadam
Wekkm sense I am not very sure what I am supposed to do, and it gave me a rather long messege after words, I will stop with this post. Sorry for waisting space.



Don''t quit posting because I was a bit harsh. The problem is that you''re not providing enough informations. In order to help you, it would be useful to know what kind of system you''re running, (uname -a), the commands you typed to mount the CD and the error messages.

For instance, I have multiple ideas of what could be wrong here, and without more precisions, it''s hard to tell. It could be that the /mnt/cdrom directory does not exist on your system (either create it or use another mount point). Maybe the CD is using MS Joliet (sp?) extensions and that needs to be supported in the kernel. You could also be typing the wrong command .

If you can''t mount it as root with "mount /dev/hdc -t iso9660 /mnt/cdrom", the drive might be 1) empty 2) broken 3) both, or the /mnt/cdrom doesn''t exist. Or you have no support in the kernel for iso9660 (doubtful), etc.

That''s why the error messages would help a lot.

So now make sure that the directory you''re trying to mount in (/mnt/cdrom) exists ("file /mnt/cdrom" must be a directory or a link to a directory) and/or try to provide more informations.
Advertisement
Ok, I will give you the error messege, but I need to know how to copy in the command shell (if I can) it will be alot easier to tell you the messege if I could just Copy and Paste.

Ok, I went into mnt/cdrom. Then I typed mount /mnt/cdrom mount:I could not determine the filesystem type, and none was specified.

For future reference: just highlight the text and then middle click into the text area in your browser. Assuming you meant that you typed mount /mnt/cdrom and that you don''t have /mnt/cdrom in your /etc/fstab then you need to type mount /dev/whatever /mnt/cdrom. If it still doesn''t detect the filesystem type on its own, give it some help: mount -t iso9660 /dev/whatever /mnt/cdrom.

Ok, I still dont know how to copy text, And this is what happend when I typed, mount /dev/cdroms/cdrom0 (That is the location) it said it could not find that in ect/ftab or ect/mtab. So should I tell it to mount the address fstab has?

Advertisement
You didn''t read my post completely. I asked you to try giving it both the device and the path, not just the device.

Ok, this is what I did and this is what happend (Im sorry, but I am still a newbie, so I wasnt excactly sure what you ment when you said Give it both Device and Path)
This is what happens when I say /mnt/cdrom:
[vegadam@localhost cdrom]$ mount /mnt/cdrom
/dev/hdc: Input/output error
mount: I could not determine the filesystem type, and none was specified
This is what I think you told me to do:
[vegadam@localhost cdrom]$ mount -t iso9660 /dev/hdc /mnt/cdrom auto user, iocharset=iso8859-1,umask=0,exec,codepage=850,ro,noauto 0 0/mnt/cdrom
mount: only root can do that
So I go into root and do it, and this is what it does:

[root@localhost root]# mount -t iso9660 /dev/hdc /mnt/cdrom auto user, iocharset=iso8859-1,umask=0,exec,codepage=850,ro,noauto 0 0/mnt/cdrom
Usage: mount -V : print version
mount -h : print this help
mount : list mounted filesystems
mount -l : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
mount -a [-t|-O] ... : mount all stuff from /etc/fstab
mount device : mount device at the known place
mount directory : mount known device here
mount -t type dev dir : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
mount --bind olddir newdir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using -L label or by uuid, using -U uuid .
Other options: [-nfFrsvw] [-o options].
For many more details, say man 8 mount .




When I typed ls -l /dev/cdrom it said: lr-xr-xr-x 1 root root 16 Feb 21 14:33 (in red Bgcolor it said) /dev/cdrom -> ../cdroms/cdrom0
does the lr-xr-xr-x 1 root root have something to do with permisions that could be fucking this thing up?



Edited by - vegadam on February 21, 2002 10:49:06 PM

Edited by - vegadam on February 21, 2002 10:56:42 PM
You''re confused . You''re using the fstab text for mount instead of the text we meant for mount . Here''s some exact text (based upon what I''ve read of your last attempt, assuming it''s all correct ) that should work as root:
mount -t iso9660 /dev/hdc /mnt/cdrom

Now, to make it so that you can mount the drive as any user you should add this to the bottom of your /etc/fstab file (you must add this as root):
/dev/hdc /mnt/cdrom iso9660 user,noauto,ro,defaults 0 0

After that''s in fstab you can type:
mount /mnt/cdrom

As any user and it should work.

Ok, that gave me diferent output, but still no go.I think there is something wrong with my restrictions, but then again, I diont know much about Linux. When I did what you said, this is what it said:
[root@localhost /]# mount -t iso9660 /dev/hdc /mnt/cdrom
mount: block device /dev/hdc is write-protected, mounting read-only
mount: wrong fs type, bad option, bad superblock on /dev/hdc,
or too many mounted file systems

Dont know what that means. Also, I dont think I can write in fstab, I go in the terminal and type cd /etc/fstab, and it says no directory,if I go through the windows, it will let me view it, but not edit it. Im sorry for all of this, and thank you all for your help thus far..

This topic is closed to new replies.

Advertisement