Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 02 Dec 2004 04:42:38 -0500
From:      Brian Bobowski <bbobowski@cogeco.ca>
To:        Rizal Ferdiyan <rizal@arc.itb.ac.id>
Cc:        freebsd-questions@freebsd.org
Subject:   Re: can't mount windows partition
Message-ID:  <41AEE38E.6090201@cogeco.ca>
In-Reply-To: <Pine.BSF.4.50L0.0412021147210.48560-100000@arc.itb.ac.id>
References:  <41A6FD07.1020900@adelphia.net> <8292450b04113010165bc95e74@mail.gmail.com> <Pine.BSF.4.50L0.0412021147210.48560-100000@arc.itb.ac.id>

next in thread | previous in thread | raw e-mail | index | archive | help
Rizal Ferdiyan wrote:

>hello ;
>my name rizal from indonesia, I have a problem. My partition windows
>(FAT
>32) can't mount
>in freebsd. My partition in /dev/ad0s1 and /dev/ad0s2. I have been try
>write"mount -t msdosfs /dev/ad0s1(ad0s2) /mnt/win1(ad0s1) and
>mount_msdosfs /node " but it don't work. Please help me and sorry for my
>bad english.
>
>thank you.
>  
>
Please provide the error text and the output of "uname -a" if this 
doesn't work, but...

Are you certain that it's a FAT32 disk and not an NTFS? Windows XP, for 
instance, can use the NTFS file system(my Home edition does by default).

That said, there is a problem with your mount syntax. That or I can't 
figure out exactly what you're typing.

I don't know which of your disk partitions is which. I'm going to give 
examples as though /dev/ad0s1 is the Windows partition and /dev/ad0s2 is 
the FreeBSD slice; in /dev, such a slice would show up with letters 
after the "slice" number to indicate the FreeBSD partition, such as 
/dev/ad0s2a, ad0s2c, ad0s2d... etc. (I believe b is not currently used, 
left open for convention; a is for the / partition; and c is swap. This 
is all convention, but it's convention the FreeBSD installer's 
auto-partition option in fdisk would adhere to.)

Anyway, if the Windows partition is indeed /dev/ad0s1, make sure 
/mnt/win1 exists and try the following as root:

mount -r -t msdosfs /dev/ad0s1 /mnt/win1

This will attempt to mount the device read-only, which may at least be a 
stepping stone. If this doesn't work, you can also try using NTFS(just 
in case), thus:

mount -r -t ntfs /dev/ad0s1 /mnt/win1

If either works, then you will be able to:

mount -uw /mnt/win1

and update the already-mounted filesystem to read-write.

If you can get this working, Mr Kevin Smith has given an excellent 
example of how to place an entry into your /etc/fstab file. In fact, it 
might be easier to put that entry in /etc/fstab and then simply type:

mount -a

to automatically mount the unmounted entries in the fstab.

If this doesn't work, please post the exact error text and what you 
typed to receive it. Also, the output of "ls /dev/ad*" may be helpful, 
and as I mentioned above, "uname -a" never is amiss.

-BB



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?41AEE38E.6090201>