On Tue, Jan 27, 2009 at 9:49 AM, iman habibi <iman.habibi at gmail.com>
wrote:
> Dear support
> when i connect my external usb dvdrom to the sparc machine which has
> installed solaris 10u6 based zfs file system,,it return this error:
>
> bash-3.00# mount /dev/dsk/c1t0d0s0 /dvd/
> Jan 27 11:08:41 global ufs: NOTICE: mount: not a UFS magic number (0x0)
> mount: /dev/dsk/c1t0d0s0 is not this fstype
>
>
On Solaris, by default mount assumes that the file system type to be mounted
is UFS.
Basically, when mounting anything other than UFS, you need to specify what
it is. The two exceptions are:
a) When the vfstab can give information about what file system type to
expect, or
b) When using zfs mount (which only mounts zfs file systems)
So essentially you need to specify the file system type on the mount
command, like this:
mount -F hsfs -r /dev/dsk/c1t0d0s0 /dvd/
The -r is for read-only.
You can also (optionally) add a line to your /etc/vfstab file, like this:
/dev/dsk/c1t0d0s0 - /dvd hsfs - no ro
With this in place you can then mount the disk using:
mount /dvd
(It will learn the device, read-only flag, and the file system type from
/etc/vfstab automatically)
Of course I am wondering why you don''t use the auto-mounter.
There are of course other things you could do. You could change the
"default" file system type in /etc/default/fs, but that is not
recommended.
You could write a little "script" to mount disks. etc etc etc.
For more info, read "man mount" and "man vfstab"
Cheers
_Johan
--
Any sufficiently advanced technology is indistinguishable from magic.
Arthur C. Clarke
My blog: http://initialprogramload.blogspot.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL:
<http://mail.opensolaris.org/pipermail/zfs-discuss/attachments/20090127/9454e1d4/attachment.html>