can't mount windows partition
Brian Bobowski
bbobowski at cogeco.ca
Thu Dec 2 01:44:30 PST 2004
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
More information about the freebsd-questions
mailing list