View Source

h2. How to Access Files From Other File Systems

You can access files from different types of file systems when using ZFS just like other POSIX file systems. One of the best ways to access other file system types is by using NFS if the other file system is located on a system that has an NFS server running. For example, you can access files from an EXT2 file system, if the other system is running an NFS server. The best way to access files from a NTFS file system on a Windows systems is by using the Solaris CIFS service.

Most CDs and DVDs are formatted to the ISO 9660 standard, which is portable, so they can be mounted automatically by the Open Solaris volume management service. After the media is mounted, you can access the files or directories as if they were mounted locally on the system.

h5. Before You Begin

To complete this procedure, you need:
* OpenSolaris release
* Removable media inserted
* Files located on an NFS server

h5. Steps

Select one of the following ways to access files from removable media or from a UFS file system.
# Access files on removable media in the following ways:
#* From the GNOME File Manager.
## When a CD or DVD is inserted, a CD graphic icon pops up on your desktop.
## If you click the graphic icon, your file browser opens with the files and directories visible from the removable media. You can access the files on the media in the file browser just like you would if the files were in your home directory.
#* From the command line.
## *List the contents of the /media directory.*
{code}
$ ls /media
playlist_cd
{code}
## *Access or copy the files from the CD just like you would from another other directory.*
{code}
$ cp /media/playlist_cd/track_1 /export/home/otto/music
{code}
# Access files from a remote UFS file system by using the NFS service. ZFS is the default file system in the OpenSolaris release but you can access files from a remote UFS file system by using NFS as in previous Solaris releases. You can mount the file system explicitly or use the automount service.
#* *Manually mount the remote file system to access the files.*
For example:
{code}
# mount -F nfs system-name:/old_files /mnt
{code}
## *Access the files from the remotely mounted file system.*
{code}
# ls /mnt
file.1 file.2
{code}
## *Copy the files to the appropriate location.*
{code}
# cp /mnt/file.1 /export/home/otto/
{code}
#* *Use the NFS automounter service to access the files.*
## *Access the files by using the automounted resource.*
{code}
$ ls /net/system-name/old_files
file.1 file.2
{code}
## *Copy the files to the appropriate location.*
{code}
$ cp /net/system-name/old_files/file.1 /expoort/home/otto/
{code}

h5. Related Topics

* [How to Find Available CIFS Shares | http://wikis.sun.com/display/OpenSolarisInfo/How+to+Find+Available+CIFS+Shares]
* [How to Mount an NFS File System |http://wikis.sun.com/display/OpenSolarisInfo/How+to+Mount+an+NFS+File+System]



The individuals who post here are part of the extended Sun Microsystems community and they might not be employed or in any way formally affiliated with Sun Microsystems. The opinions expressed here are their own, are not necessarily reviewed in advance by anyone but the individual authors, and neither Sun nor any other party necessarily agrees with them.

Copyright 1994-2009 Sun Microsystems, Inc.
Powered by Atlassian Confluence
Sun Guidelines on Public Discourse Privacy Policy Terms of Use Trademarks Site Map Employment Investor Relations Contact