Operating System - Linux
1753797 Members
7769 Online
108799 Solutions
New Discussion юеВ

How to access a window pc from linux

 
Guna_2
Regular Advisor

How to access a window pc from linux

Dear all,

I am having smb in linux. but how should i access a windows pc frm linux other than ftp.


If any one knows pls tell me.

Rgds&Thanx
Guna
5 REPLIES 5
C├йdric MELLON
Honored Contributor

Re: How to access a window pc from linux

Hi, this should work fine :

1)Get the windows username/password
2)On linux create the required mount point:
mkdir -p /mnt/ntserver
3)Munt the windows share like this :
mount -t smbfs -o username=pouet,password=tagada //my_windows/share /mnt/ntserver

Hope that will helps,
Cedric.
wooot wooot wooot !!!
diamond
New Member

Re: How to access a window pc from linux

hi Guna,
you can mount the windows file in linux.
First checkout in which device your windows files are present.
Just do "cat /etc/grub.conf".

See the device name that will boot the windows, something like /dev/hda5,or /dev/hda6 ...etc.
This is the device name for windows
Use that device name while mounting.
First create dir

# mkdir /mnt/C
then mount that device on that dir using mount command.

# mount -t fstype device dir
Eg:
# mount -t vfat /dev/hda5 /mnt/C

-t for temparory mounting.

if you want to do permanent mounting
edit /etc/fstab and add the following..
in my eg:

/dev/hda5 /mnt/C vfat defaults 0 0

and then save that file.This will do mount the windows file while loading.
You can unmount that device .
# umount /dev/hda5
Suppose if you have D,E dir in windows, you can mount that device also,
Just check ... hda6,hda7..etc.
Example:
# mkdir D
# mount -t vfat /dev/hda6 /mnt/D
I think this will works for you.

Regards,
sharath
John Guster
Trusted Contributor

Re: How to access a window pc from linux

Diamond,

The subject is mount window's share to linux.It seems confusing from your input:
1. mount -t , t here means type of the file system, not temporary unless we miss things here.
2. there is no authentication in your input, does that mean any share from window can be pulled to linux?

can you tell what environment provide you these input?
Srimalik
Valued Contributor

Re: How to access a window pc from linux

you can use rdesktop in linux to access the windows PC.

you can also specify the folders on the linux machine which are to be shared during the session.(you will see them as network drives on the windows pc)

For more details and downloads

http://www.rdesktop.org/
http://sourceforge.net/projects/rdesktop/

cheers
abandon all hope, ye who enter here..
Tony Berry
Valued Contributor

Re: How to access a window pc from linux

Cedric has the most concise, and applicable, answer, but one thing to note: when you specify the password on the command line, it goes into your .bash_history file and could be maliciously used. If you leave off the password, it will prompt you for it before mounting. This will, of course, break any silent operations (start-up, scripts, etc.) so be aware of this caveat.

Example: mount -t smbfs -o username=pouet //my_windows_pc_name/share_name /mnt/ntserver
Unix is boss.