Hi all,
I wonder if there is any possibility to mount NTFS or FAT32 from remote Windows* machine to, let's say, OpenBSD or RedHat??? Like Samba, but reverse.
Thank you all.
Hi all,
I wonder if there is any possibility to mount NTFS or FAT32 from remote Windows* machine to, let's say, OpenBSD or RedHat??? Like Samba, but reverse.
Thank you all.
That is exactly what Samba does -- allows you to mount a Windows drive on a Unix box.
I thought Samba lets you mount Unix drive on the windows box, in other words making Unix drive readable by Windows machines. How about making Windows hard-drive readable by Unix machines. Does Samba do that?
You just need to set the Windows share at the root dir of the partition in question. Under NT/2000 there is an administrative share such as c$, d$, etc.
At the house, I setup the Win98 machines with shares at the root level with names like "c_drive". You can then mount the share with samba and have full access to the drive.
Here is a sample of mounting another machine in the house with samba for full drive access:
FreeBSD:joeuser:/home/joeuser $ su
Password:
FreeBSD:root:/home/joeuser $ mount -t smbfs //targetmachine/c_drive /targetmachine/
Password:
FreeBSD:root:/home/joeuser $ cd /targetmachine/
FreeBSD:root:/targetmachine $ ls -al
total 6023
drwxr-xr-x 1 root wheel 16384 Dec 31 1969 .
drwxr-xr-x 23 root wheel 512 Apr 24 09:15 ..
-rwxr-xr-x 1 root wheel 24 Sep 1 2001 AUTOEXEC.001
-rwxr-xr-x 1 root wheel 72 Nov 12 18:11 AUTOEXEC.BAT
drwxr-xr-x 1 root wheel 16384 Sep 1 2001 BC5
drwxr-xr-x 1 root wheel 16384 Dec 21 14:01 BDE
drwxr-xr-x 1 root wheel 16384 Sep 1 2001 BDE32
-rwxr-xr-x 1 root wheel 56288 Nov 11 16:34 BOOTLOG.PRV
-rwxr-xr-x 1 root wheel 57847 Nov 11 17:54 BOOTLOG.TXT
drwxr-xr-x 1 root wheel 16384 Feb 5 2001 Banshee
drwxr-xr-x 1 root wheel 16384 Apr 4 21:13 CDNOW
drwxr-xr-x 1 root wheel 16384 Oct 31 2001 CHEESE
-rwxr-xr-x 1 root wheel 93890 Apr 23 1999 COMMAND.COM
-rwxr-xr-x 1 root wheel 0 Feb 5 2001 CONFIG.SYS
-rwxr-xr-x 1 root wheel 68748 Jan 1 1997 DETLOG.TXT
drwxr-xr-x 1 root wheel 16384 Feb 5 2001 EPSON
drwxr-xr-x 1 root wheel 16384 Feb 19 2001 FOX
-rwxr-xr-x 1 root wheel 1012 Jan 1 1997 FRUNLOG.TXT
-rwxr-xr-x 1 root wheel 222390 Apr 23 1999 IO.SYS
drwxr-xr-x 1 root wheel 16384 Jan 1 20:11 Images
drwxr-xr-x 1 root wheel 16384 Feb 5 2001 Internet
drwxr-xr-x 1 root wheel 16384 Nov 12 18:11 KPCMS
-rwxr-xr-x 1 root wheel 1047960 Nov 11 17:53 LANCopyFile.txt
-rwxr-xr-x 1 root wheel 118 Nov 11 18:08 LANTest.Log
-rwxr-xr-x 1 root wheel 24576 Nov 11 19:41 LANTest.exe
drwxr-xr-x 1 root wheel 16384 Nov 11 14:21 Lantest
-rwxr-xr-x 1 root wheel 22 Dec 31 1996 MSDOS.---
-rwxr-xr-x 1 root wheel 1676 Jan 1 1997 MSDOS.SYS
drwxr-xr-x 1 root wheel 16384 Dec 21 12:59 Music Videos
drwxr-xr-x 1 root wheel 16384 Feb 5 2001 My Documents
drwxr-xr-x 1 root wheel 16384 Feb 19 2001 My Music
-rwxr-xr-x 1 root wheel 9014 Feb 5 2001 NETLOG.TXT
drwxr-xr-x 1 root wheel 16384 Dec 31 1996 Program Files
drwxr-xr-x 1 root wheel 16384 Feb 5 2001 RECYCLED
FreeBSD:root:/targetmachine $ cd /
FreeBSD:root:/ $ umount /targetmachine/
FreeBSD:root:/ $ cd targetmachine/
FreeBSD:root:/targetmachine $ ls -al
total 4
drwxr-xr-x 2 root wheel 512 Apr 24 09:14 .
drwxr-xr-x 23 root wheel 512 Apr 24 09:15 ..
FreeBSD:root:/targetmachine $
can this be done with AIX (Unix)?
I try this:
mount -t smbfs -o username=foo,password=bar //windows_host/share /temp
(where temp is a directory on the AIX machine)
and get this error:
mount: '-o' 'Directory/File Name' invalid with the '-t' option.
It works perfectly well with Red Hat but for the life of me, I can't figure it out on AIX.
smbfs is either compiled into the Linux kernel, or accessable via a loadable module.
Check the smbmount(8) man page:
http://us2.samba.org/samba/docs/man/smbmount.8.html
Sorry...
Samba is also available for AIX (not just Linux). Check www.samba.org, or get the binaries directly from: Index of /pub/samba/Binary_Packages/AIX