Disclaimer

The views expressed on this blog are my own and do not necessarily reflect the views of my employer.

Monday, April 28, 2008

Mount NTFS partitions in solaris

Today I mount my ntfs partitions in my solaris system (presently I am using solaris express developer edition 9/07). [ This method is also applicable for SXDE 1/08 and OpenSolaris 2008.05 ]. Here I am giving you a step by step instruction for the process :

1) Install the FSWpart package

Download : Click here.
Uncompress: gunzip -c FSWpart.tar.gz | tar xvf -
Install: pkgadd -d . FSWpart

2) Install the FSWfsmisc package

Download : Click here.
Uncompress: gunzip -c FSWfsmisc.tar.gz | tar xvf -
Install: pkgadd -d . FSWfsmisc

3) execute the following to identify your ntfs partitions , then press 6.

#fdisk /dev/rdsk/c1d0p0

I got a result like :

Total disk size is 14593 cylinders
Cylinder size is 16065 (512 byte) blocks

Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 IFS: NTFS 0 3186 3187 22
2 Active Solaris2 3187 7132 3946 27
3 IFS: NTFS 10320 14592 4273 29
4 EXT-DOS 7133 10319 3187 22


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
#


note the digits before IFS: NTFS. In my system c1dop1 and c1d0p3 were ntfs partitions.

4) Make a mount point.

#mkdir /mnt/windowsa
(and #mkdir /mnt/windowsb)


5) execute the following command according to your partition no.

#mount -F ntfs -o ro /dev/dsk/c1d0p1 /mnt/windowsa
(and #mount -F ntfs -o ro /dev/dsk/c1d0p3 /mnt/windowsb)

6) This step is optional. you may perform this step if you want to mount a partition
during system startup.

#gedit /etc/vfstab

Now you need to add one line for each partition in the end of this file :

/dev/dsk/c1d0p1 - /mnt/windowsa ntfs - yes -
(and /dev/dsk/c1d0p3 - /mnt/windowsb ntfs - yes -)


Click here if you want to mount ntfs partitions of an external usb device.

Click here to check out official documentation.

Also check out how to Mount NTFS / Ext2 / Ext3 / FAT 16 / FAT 32 in Solaris from Pradhap's blog.

18 comments:

  1. Hi
    I'm a newbie trying to install Solaris 10.
    I have a USB 2.0 Mass Storage Device with three NTFS partitions on it. Is it possible for you to help me out installing it on my system. I need a step by step procedure if you need any info please update the blog, I will be keeping an eye on it.

    Thanks

    ReplyDelete
  2. Please help me to understand your query :

    1) You want to install solaris 10 in a USB storage device which presently have 3 NTFS partitions.

    2) You have already installed solaris in a system and now you want to mount a usb storage device and access 3 NTFS partitions from your solaris system.

    Please tell me which situation is true for you.

    ReplyDelete
  3. Hi Ritwik,

    Wonderful, thanks for the instant reply. I have already installed Solaris 10, I want to access the three NTFS partitions which are on a separate drive USB 2.0 Mass Storage Device from my Solaris 10 system.

    As you can see it's the second situation mentioned by you.

    Thanks again, hope to see your reply soon.

    ReplyDelete
  4. Very Good Tutorial.
    Thank You Very Much.

    Unfortunately I can't copy large files like DVD images. Sometimes I don't see all directory's.

    My conclusion is that this package need some more work.
    I have decided to abandon transfer of important files by this method because I don't trust it entirely.

    ReplyDelete
  5. I think, There is other way to view easily your partition..

    # /usr/bin/prtpart /dev/rdsk/c1d0p0 -ldevs
    It will show following output,

    Fdisk information for device /dev/rdsk/c1d0p0

    ** NOTE **
    /dev/dsk/c1d0p0 - Physical device referring to entire physical disk
    /dev/dsk/c1d0p1 - p4 - Physical devices referring to the 4 primary partitions
    /dev/dsk/c1d0p5 ... - Virtual devices referring to logical partitions

    Virtual device names can be used to access EXT2 and NTFS on logical partitions

    /dev/dsk/c1d0p1 IFS: NTFS
    /dev/dsk/c1d0p2 Solaris x86
    /dev/dsk/c1d0p3 IFS: NTFS
    /dev/dsk/c1d0p4 WIN95 Extended(LBA)
    /dev/dsk/c1d0p5 IFS: NTFS


    hope this help..

    Thanks

    Partha

    ReplyDelete
  6. Are you sure /usr/bin/prtpart exists in solaris ? May I know which build you are using ? I didn't find it.

    ReplyDelete
  7. here is the content of pkgmap file FSWpart

    : 1 214
    1 i copyright 125 10406 1155742416
    1 i pkginfo 325 25937 1155742431
    1 f none usr/bin/prtpart 0755 root bin 1678 4573 1155137172
    1 f none usr/bin/prtpart.bin 0755 root bin 70244 19721 1154955309
    1 f none usr/share/src/prtpart.c 0644 root root 28599 51681 1155741007


    i think, moinak da changed the old package, i will ask him, and let u know..

    ReplyDelete
  8. Hello Ritwik

    Hoping you can help me with a situation

    I recently installed Opensolaris and i was able to instal USB nic Card, took me a lot of trouble, then was able to mount a usb device (memory stick 2G) with FAT format, now I'm trying to install this same USB stick but with NTFS format, i'd followed your steps but get i the middle with
    # mount -F ntfs /dev/rdsk/c4t0d0s2 /usb/NTFS
    mount: Operation not aplicable to TSType ntfs

    What it is happening?
    Can you help?
    Thanks

    ReplyDelete
  9. u install openSolaris or using from Live media??

    ReplyDelete
  10. @ Anonymous

    I will suggest you to create the ntfs partition by using gparted (you can download it from the following location : http://gparted.sourceforge.net/download.php)
    Would you please retry and let me know the result .
    TIA, -R.

    ReplyDelete
  11. Hi,
    I am running Solaris 10 as VMware on my windows 2003 m/c.
    I want to access the windows drive in solaris run time. I can access those using samba GUI. But I want those get mounted.
    smbfs and cifs are not found in my solaris 10.

    If you have any idea.
    Please help me.

    ReplyDelete
  12. Thanks for this writeup. I was just trying to mount an ntfs partition in Solaris Express 2010.11 and I noticed that there is an ntfsprogs pkg installed, but I don't think it comes with any mount ability like the fsmisc pkg. I didn't see how to use the existing ntfsprogs utilities, so I installed fsmisc and I was able to mount it. :)

    ReplyDelete
  13. Hi, does this work with solaris 10 x86 ? if not what is the solution to mount NTFS usb device on solaris10

    ReplyDelete
  14. Mount success but i cannot write data to the mount point.

    bash-3.00# mount -F ntfs /dev/rdsk/c6t0d0p0 /mnt/win/
    bash-3.00# mkdir //mnt/win/a
    mkdir: Failed to make directory “/mnt/win/a”; Read-only file system

    please help

    ReplyDelete
  15. Yes, you need ntfs-3g to get write access. Please see -
    http://blogs.oracle.com/rslee/entry/mount_ntfs_partion_on_solaris

    ReplyDelete
  16. @ Muhammed Basheer, I think it should work on S10, but I didn't try by myself. Please give it a try. If you face any issue please let me know. Thanks !

    ReplyDelete