Typically, one would define their mount points in the file-system table. On Linux systems, it exists almost universally as the
/etc/fstab file, and entries in this file are usually mounted automatically via automount (if available).
Just append a new entry to this file with the proper device location, desired mount point, and the corresponding parameters with which you would like to mount the device.
If you do not wish to have it automatically mounted, then you can ignore everything above. :P
The basic syntax for mounting and unmounting are:
Code:
mount [[device] or [mount-location]]
and
Code:
umount [[device] or [mount-location]]
So
Code:
mount /dev/sda /mnt -o offset=32256
should technically work, barring any incorrect parameters.
You should create a folder inside your
/mnt directory to act as the mount point (e.g.
/mnt/sda or whatever you want to call it!) rather than mounting to
/mnt directly.
There are some small details you may be overlooking (not to sound condescending, but these things are easily overlooked):
- Make sure you have privileges to mount volumes (I believe there is an option that can be used in /etc/fstab along the lines of 'user' or 'nouser'), or
- mount the volume as root
- Make sure the the desired mount point exists (e.g. if you want to mount at /mnt/music, make sure that the 'music' folder exists in the '/mnt' directory).
Here's [tuxfiles.org] a simple guide that might be of help.
Just curious, what type of file system are you trying to mount?
.Colin