2009.06 and NTFS (rw)

I now blog the thrid time on NTFS mount on opensolaris. The reason is that on my last entry I got feedback that at some point in time it didn't work anymore with a special ntfs-3g version or with sth on opensolaris. As I couldn't verify that exactly I had now the chance as I installed my laptop newly with 2009.06 to reinstall and record the steps.

Let me remark two things

  • it was really straight forward if you meet the requirements and follow instructions
  • 2009.06 is a great enhancement compared to 2008.11 so many compliments to everybody who contributed

Requirements:

optional it makes sense (not necessary for NTFS-3G) to have the GNU tools and gnome-common-dev installed.

While Sun Studio Express, SUNWonbld, gnome-common-dev and also the GNU tools can easily be installed by the Package Manager (either GUI or CLI) you need to do following for the rest of the installation

FUSE: http://www.opensolaris.org/os/project/fuse/Documentation/Installation/
NTFS-3G: http://www.ntfs-3g.org

mkdir fuse
cd fuse
hg clone ssh://anon-AT-hg.opensolaris-DOT-org/hg/fuse/libfuse
hg clone ssh://anon-AT-hg.opensolaris-DOT-org/hg/fuse/fusefs
ls
cd libfuse/
export PATH=/opt/SunStudioExpress/bin/:/usr/bin/:/usr/sfw/bin/:/opt/onbld/bin/i386/:$PATH
/usr/ccs/bin/make
pfexec /usr/ccs/bin/make install
pfexec /usr/ccs/bin/make pkg
ls
cd ../fusefs/kernel/
/usr/ccs/bin/make
pfexec /usr/ccs/bin/make install
pfexec /usr/ccs/bin/make pkg
cd ..
ls
cd fusefs/kernel/
pfexec /usr/sbin/pkgadd -d packages SUNWfusefs
pfexec /usr/sbin/pkgadd -d packages ../../libfuse/packages SUNWlibfuse
pfexec /usr/sbin/pkgadd -d ../../libfuse/packages SUNWlibfuse
cd $HOME/Downloads/ntfs-3g-2009.4.4
./configure
make
pfexec make install
pfexec /usr/ccs/bin/make pkg

#may be you need sth else I've Windows 7 installed on the other partition p2 is the hidden windows partition p3 is the productive windows environment

pfexec ntfs-3g /dev/dsk/c8t0d0p3 /windows
cd /windows
ls



Kommentare:

Hi,
you spoke about something related to windows 7 to mount the ntfs drive. Could you explain in detail how to mount windows 7 drive and more over I could not find one more partition by doing fdisk. Is there any way to do that or should i have to reinstall everything.

Gesendet von srikalyan am Juni 23, 2009 at 05:23 PM MESZ #

Thank you so much. It's very helpful to me.

However, I have a question: How can we mount extended partition with ntfs-3g? Below is mine

# /usr/bin/prtpart

Fdisk information for device /dev/rdsk/c8d0p0

Block Size : 512 bytes
Controller : ide
Disk : cmdk
Capacity : 149 GB

# start block # nblocks startCylSecHd endCylSecHd OSType
1: 0000000063 0081931437 0/ 1/ 1 ff/ff/fe IFS: NTFS
2: 0081931500 0040965750 ff/ff/fe ff/ff/fe Solaris x86
3: 0122897250 0189679455 ff/c1/ 0 ff/ff/fe WIN95 Extended(LBA)

# start block # nblocks startCylSecHd endCylSecHd OSType
5: 0000000063 0020482812 ff/c1/ 1 ff/ff/fe IFS: NTFS
0: 0020482875 0169196580 ff/c1/ 0 ff/ff/fe DOS Extended

# start block # nblocks startCylSecHd endCylSecHd OSType
6: 0000000063 0169196517 ff/c1/ 1 ff/ff/fe IFS: NTFS

With above info, I can easily mount primary NTFS partition:
# pfexec ntfs-3g /dev/dsk/c8d0p1 /mnt/Vista/

However, I can't mount NTFS extended partition
# pfexec ntfs-3g /dev/dsk/c8d0p6 /mnt/Private/
ntfs-3g: Failed to access volume '/dev/dsk/c8d0p6': No such file or directory

ntfs-3g 2009.4.4 external FUSE 27 - Third Generation NTFS Driver

Copyright (C) 2005-2007 Yura Pakhuchiy
Copyright (C) 2006-2009 Szabolcs Szakacsits
Copyright (C) 2007-2009 Jean-Pierre Andre
Copyright (C) 2009 Erik Larsson

Usage: ntfs-3g [-o option[,...]] <device|image_file> <mount_point>

Options: ro (read-only mount), remove_hiberfile, uid=, gid=,
umask=, fmask=, dmask=, streams_interface=.
Please see the details in the manual (type: man ntfs-3g).

Example: ntfs-3g /dev/sda1 /mnt/windows

Ntfs-3g news, support and information: http://ntfs-3g.org

Thanks

Gesendet von Le Duy Khanh am Juli 07, 2009 at 06:24 AM MESZ #

Hi srikalyan,
sorry for late answer - to find out your partition you have to run

format -> and than fd within the format
then you see all your partitions
in my case it is
Total disk size is 19457 cylinders
Cylinder size is 16065 (512 byte) blocks

Cylinders
Partition Status Type Start End Length %
========= ====== ============ ===== === ====== ===
1 Other OS 0 191 192 1
2 IFS: NTFS 191 216 26 0
3 IFS: NTFS 216 6564 6349 33
4 Active Solaris2 6565 19456 12892 66

so I know that Partition 2 and Partion 3 are NTFS - 1 is the boot partition with Grub on it 2 is the hidden Windows partion for whatever MS need that and 3 is my windows productive partition.

Gesendet von Gerhard am September 28, 2009 at 09:57 AM MESZ #

Hi Le Duy Khanh,

you've c8t0d0p1 - you missed the t0 in your mount command

Gesendet von Gerhard am September 28, 2009 at 10:00 AM MESZ #

Senden Sie einen Kommentar:
  • HTML Syntax: Ausgeschaltet
About

blincks and hints around my work

Search

Categories
Archives
« April 2014
MoDiMiDoFrSaSo
 
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
    
       
Heute
Friends
News

No bookmarks in folder

Blogroll

No bookmarks in folder