LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-19-2002, 06:25 AM   #1
Freeman
LQ Newbie
 
Registered: Jan 2002
Posts: 11

Rep: Reputation: 0
mounting files


can anyone tell me how can i mount files from windows to linux ?
i got half way through to:
on terminal
ls /mnt/windowsc.
i got list of files, let say " linux manuals" folder

but i could not go any further. can any one tell me how mount the folder?

thanks guys

Last edited by Freeman; 01-19-2002 at 06:33 AM.
 
Old 01-19-2002, 06:35 AM   #2
Lazarus
Member
 
Registered: Dec 2001
Location: Kent in UK
Distribution: Fedora 2
Posts: 170

Rep: Reputation: 30
There is a program smbmount a part of samba that can do this.
Here is a script I use here.

#!/bin/sh
#
if [ -z $1 ]; then
echo " "
echo "type something like:-"
echo " "
echo "mountsmb work/cdrom /cdrom"
echo " "
echo " work is the machine name and /cdrom the mount point"
echo " "
exit
fi
#
mount -t smbfs //$1 $2 -o guest
#

work is the name of my win98 pc and cdrom the share name of the cdrom!. You need to set up file sharing in windows.
You need the file system sbmfs enabled in your kernel.

Hope this gets you started
 
Old 01-19-2002, 09:54 AM   #3
Thymox
Senior Member
 
Registered: Apr 2001
Location: Plymouth, England.
Distribution: Mostly Debian based systems
Posts: 4,368

Rep: Reputation: 64
But that is only if you want to connect to a Windows machine on your network. If you want to mount file locally on your harddisk, then you need to look at your fstab file.

Basically, the command mount will let you mount any medium on any directory that already exists. /mnt/windowsc is a good place. You will first need to know where your windows C 'drive' is (the partition number). Type this fdisk -l. This will list your partitions and their types. Find the first partition that is fat32 (or vfat) and type this mount /dev/hd?? /mnt/windowsc -t vfat. The /dev/hd?? bit is what you got from doing the fdisk bit.

The file /etc/fstab allows you to mount partitions/networks/devices with a lot more ease. You should go man mount and man fstab for more info.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Mounting an ISO image from a CD different than mounting from HD? NoTiG Linux - Software 4 08-03-2005 04:40 PM
Gnome 2.6 Right click mounting and the mounting system Acetylcholine Linux - Hardware 0 07-25-2004 07:34 AM
Mounting HDD vs. Mounting Filesystem snailophone Linux - Hardware 4 08-12-2003 11:00 AM
Mounting mounting extended partition and its Logical drives desbyleo Linux - Newbie 10 02-18-2002 03:13 PM
mounting Cybergod1983 Linux - General 1 10-08-2001 03:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:34 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration