Mounting Windows' NTFS on [Open]Solaris x86/x64

The steps outlined in this blog post are derived from the Miscellaneous filesystem support for OpenSolaris on x86 web page. I just added few examples to illustrate the steps to mount a partition with NTFS filesystem that exists on the external hard drive (in this case, it is a Seagate FreeAgent external hard drive).

Step-by-Step instructions to mount NTFS filesystem on [Open]Solaris

  1. Install the packages : FSWpart and FSWfsmisc.

  2. Find the logical device name for the NTFS partition. -l option of the rmformat command lists all removable devices along with their device names.

    
    # rmformat -l   
    Looking for devices...
         1. Logical Node: /dev/rdsk/c1t0d0p0
            Physical Node: /pci@0,0/pci-ide@1f,1/ide@1/sd@0,0
            Connected Device: MATSHITA UJDA750 DVD/CDRW 1.60
            Device Type: DVD Reader
    	Bus: IDE
    	Size: 
    	Label: 
    	Access permissions: 
         2. Logical Node: /dev/rdsk/c2t0d0p0
            Physical Node: /pci@0,0/pci1179,1@1d,7/storage@1/disk@0,0
            Connected Device: Seagate  FreeAgentDesktop 100F
            Device Type: Removable
    	Bus: USB
    	Size: 953.9 GB
    	Label: 
    	Access permissions: 
    
    
  3. Identify the NTFS partition on the external disk with the help of fdisk
    
    # fdisk /dev/rdsk/c2t0d0p0
                 Total disk size is 60800 cylinders
                 Cylinder size is 32130 (512 byte) blocks
    
                                                   Cylinders
          Partition   Status    Type          Start   End   Length    %
          =========   ======    ============  =====   ===   ======   ===
              1                 IFS: NTFS         0  60800    60801    100
    
    SELECT ONE OF THE FOLLOWING:
       1. Create a partition
       2. Specify the active partition
       3. Delete a partition
       4. Change between Solaris and Solaris2 Partition IDs
       5. Exit (update disk configuration and exit)
       6. Cancel (exit without updating disk configuration)
    Enter Selection: 6
    #
    
    

    In this example, partition #1 i.e., c2t0d0p1 has the NTFS filesystem.

  4. Mount the NTFS partition just like mounting an UFS filesystem using the mount command. Use the argument ntfs to the command line option -F. Since the filesystem was mounted in a slightly different way than the conventional way, use /usr/bin/xlsmounts to see the detailed mount table information.

    
    # mount -F ntfs /dev/dsk/c2t0d0p1 /mnt
    
    # /usr/bin/xlsmounts
      PHYSICAL DEVICE                 LOGICAL DEVICE      FS    PID         ADDR Mounted on
    /dev/dsk/c2t0d0p1              /dev/dsk/c2t0d0p1    ntfs   6755  127.0.0.1:/ /mnt
    
    # ls /mnt
    expForSun.dmp             MySQL5.1                   RECYCLER
    medium-64-bit             $RECYCLE.BIN               System Volume Information
    
    

    Notice the 127.0.0.1:/ under ADDR column in the output of xlsmounts. NTFS mount uses userland NFSv2 server to access the filesystems on raw partitions. That is why the mount was shown as NFS client mounted from 127.0.0.1:/

  5. To unmount the NTFS filesystem, use /usr/bin/xumount. Solaris standard umount command unmounts the filesystem but does not terminate the background NFS server process.

    
    # /usr/bin/xumount /mnt
    
             - OR -
    
    # /usr/bin/xumount /dev/dsk/c2t0d0p1
    
    

Check the Miscellaneous filesystem support for OpenSolaris on x86 page and Moinak Ghosh's blog post Mount and Access NTFS and Ext2FS from Solaris x86 for the rest of the fine details.

Comments:

Dear engineer:
When I mount to ntfs filesystem on solaris10,message:"operation not applicable to FSType ntfs" what is meaning?
how do solve it?
thank you

li

Posted by guang li on July 15, 2009 at 05:49 PM PDT #

I have done Step-by-Step instructions to mount NTFS filesystem on solaris10,but error message"mount: operaton not applicable to FSType ntfs". So please if there is an any way to do tell me how to do
or if you need more details I will do better expl..

li

Posted by guang li on July 16, 2009 at 01:41 PM PDT #

@guang li
Maybe You should download and install FSWpart.tar.gz and FSWfsmisc.tar.gz first before you're gonna mount the hard drive.

I've doing this on my WD portable external hard drive, and there's no problem, it works well.

Posted by The Petarung on November 07, 2009 at 09:06 PM PST #

Well described.Thx a lot!

Posted by yir15s on August 01, 2010 at 09:53 AM PDT #

i am trying to mount my ntfs usb drive.i have tried this once and failed.by rmformat i get this..
rizwan@riz-pc:~# rmformat
Looking for devices...
1. Logical Node: /dev/rdsk/c7t0d0p0
Physical Node: /pci@0,0/pci-ide@2,5/ide@0/sd@0,0
Connected Device: MATSHITA DVD-RAM UJ-860S 1.00
Device Type: DVD Reader/Writer
Bus: IDE
Size: <Unknown>
Label: <Unknown>
Access permissions: <Unknown>
2. Logical Node: /dev/rdsk/c8t0d0p0
Physical Node: /pci@0,0/pci1043,1197@3,3/storage@8/disk@0,0
Connected Device: Generic- xD/SDMMC/MS/Pro 1.00
Device Type: <Unknown>
Bus: USB
Size: <Unknown>
Label: <Unknown>
Access permissions: <Unknown>
and the funny thing is that when i plug a bootable usb drive,it works fine ,and also memory card works fine..
help me out plz..

Posted by rizvikhan on September 04, 2010 at 11:18 AM PDT #

I can to mount the external hard disk, but I have the write problem on this disk. When I can to copy a file on this disk, I the following error :
cp: cannot create [FILE] : Read-only file system.

Can you help me ?

Posted by guest on December 07, 2011 at 01:34 AM PST #

The FSWpart and FSWfsmisc links are dead. Can anyone upload them and share the links, please?

Posted by guest on March 14, 2012 at 08:02 PM PDT #

Re: ntfs disk partition mount onto a Opensolaris FS.

Sorry but you fix fails because the two pkg are now missing:
Install the packages : FSWpart and FSWfsmisc.

Has any body got another offering?

Thanks SEanS

Posted by guest on July 07, 2012 at 07:06 AM PDT #

Hey Giri,
Your post is what I need exactly, but the first file is not downloadable. Could you have a minute to email the first file (FSWpart.tar.gz) to me at marcus.zou@gmail.com?
Much Appreciated!
Marcus
Feb-11-2013

Posted by Marcus on February 11, 2013 at 04:40 AM PST #

Marcus, looks like the following blog post has downloadable links to those two FSW packages.

http://aminsblog.wordpress.com/2012/05/22/mount-ntfs-in-solaris-11/

Posted by Giri Mandalika on February 11, 2013 at 06:54 AM PST #

Post a Comment:
  • HTML Syntax: NOT allowed
About

Benchmark announcements, HOW-TOs, Tips and Troubleshooting

Search

Archives
« April 2014
SunMonTueWedThuFriSat
  
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
   
       
Today