Operating System - Linux
1751954 Members
4803 Online
108783 Solutions
New Discussion юеВ

mounting Windows drive to Linux

 
Yong Shiuh Rong
Frequent Advisor

mounting Windows drive to Linux

How to mount a Windows drive to Linux?
6 REPLIES 6
Darren Chambers
New Member

Re: mounting Windows drive to Linux

Try smbmount.
man smbmount should give you all the info you need.
Linux Rocks
Punithan
Advisor

Re: mounting Windows drive to Linux

hi

1st check that your samba is runing...

//system/share /dest/mount smbfs username=user,pasword=pass 0 0

Same format as every other line.



The source being:
//NTMachine/Share

Destination path:
/mnt/YourMountPath

File System Type:
'smb' of 'smbfs'
(This was introduced by the Samba sources into the kernel years ago. I remember having to grab kernel patches from Samba and recompiling kernels to do this! Once upon a time, you had to use the tools 'smbmount' and 'smbumount' in order to do what you can now do with 'mount -tsmbfs -ousername=blah //machine/share /mount/pint'. This sill uses the 'smbmount' commands in the background, but they don't have to be used explicitly any more)

Options field:
username=WindowsUser,password=UserPassword
(There are of course more options, these are outlined in 'man smbmount')

The last two are the same as always (outlined in 'man fstab').

System Engineer
Balaji N
Honored Contributor

Re: mounting Windows drive to Linux

smbmount is used when you have windows filesystem shared on a another machine and you want to mount it on a local machine.

in this case, you just need to mount the filesystem.

1. fdisk -l

this will list all the partition names and the partition type (Device and System Columns).

2. ensure that the partition type (also the filesystem type) is compiled in your kernel.

cat /proc/filesystems.

3. If it is a fat filesystem, then by default it is supported. if it is an ntfs file system, you need to either recompile your kernel with the support enabled, or install an rpm (assuming an RPM based system ) from here
http://linux-ntfs.sourceforge.net/

4. after this, just mount the filesystem

mount /dev/ /mnt/

pls revert if you need more help.

hth
-balaji (back after a training.)
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.
James Wilson_5
Frequent Advisor

Re: mounting Windows drive to Linux

Balaji,

No coffee yet? smbmount is normally used for mounting "remote" filesystems running on a windows machine.

fat,vfat and ntfs is used on "local" file systems -no?



Sergejs Svitnevs
Honored Contributor

Re: mounting Windows drive to Linux

1) Create a directory under Linux that will link to your Windows drive/partition:
# mkdir /mnt/win
2) Mount your Windows drive and link it to this new directory under Linux (Windows disk in this example is /dev/hda1):
Win98/ME:
# mount -t vfat /dev/hda1 /mnt/win
WinNT/Win2000/WinXP:
mount -t ntfs /dev/hda1 /mnt/win

Regards,
Sergejs


Balaji N
Honored Contributor

Re: mounting Windows drive to Linux

hi james,

yes did have coffee and am relaxed.

but the initial thought i had after reading the question was that he wanted mount a windows dirve which meant a local windows drive. had it been a remote box, he might have told windows share.

but it is how u interpret.

good day.
-balaji (me off to home)
Its Always Important To Know, What People Think Of You. Then, Of Course, You Surprise Them By Giving More.