LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-23-2001, 07:16 AM   #1
emperor13
LQ Newbie
 
Registered: Jul 2001
Distribution: SuSE 7.3
Posts: 25

Rep: Reputation: 15
Question Mount command


hello, what is the command to mount the windows partition, so i can be able to view the contents all the time(windows contents) from a shell?

i remember that it is something like

mount /dev/hdc1 mnt/windows

help please!!
 
Old 11-23-2001, 03:42 PM   #2
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Well if you want it mounted everytime you boot you'll wanna put the line in your fstab which is located in the /etc directory. It looks like you know which hdx it is so just put the line into the file. For example:
/dev/hdc1 /mnt/windows vfat [options]

if you just want to use mount, type: mount /dev/hdc1 /mnt/windows That should work in lieu of any options of the mount command you want. Type man mount and read the help, it's nice for explaining exactly what you may or may not want to do. It may be easier also to mount your windows in the root directory for easier access like /dev/hdc1 /win or something easy to get to. It doesn't have to be in mnt. The directory does though, so make sure that's there.
 
Old 11-23-2001, 03:45 PM   #3
taz.devil
Senior Member
 
Registered: Nov 2001
Location: Wa. State
Distribution: Slackware
Posts: 1,261

Rep: Reputation: 45
Quote:
Originally posted by taz.devil
The directory does though, so make sure that's there.
Sorry, I mean the directory wherever you put it like /win. I didn't mean that the dir has to be in mnt.
 
Old 11-25-2001, 02:06 PM   #4
azazil
LQ Newbie
 
Registered: Nov 2001
Location: India
Distribution: RedHat 7.1
Posts: 18

Rep: Reputation: 0
mount a winodws partion

mount -t smbfs -o username=windowsUser,password=windowsPassword //Compname/Sharename /dev/mountpoint


for this to work you will have to share the dir in the windows and use the username and password if required as given. To have it automounted on boot you will have to add a new line to the etc/fstab

//Compname/Sharename /dev/mountpoint smbfs username=windowsUser,password=password,user

this should work as it is working for me.. :-)

rules..
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
changing mount command Blackout_08 Fedora 1 03-06-2005 11:34 PM
Mount Command vishalfirke Linux - Newbie 3 01-28-2005 10:34 AM
About mount command A-Liang Programming 1 11-18-2004 07:26 AM
command mount G_Slackw Linux - Software 6 06-21-2004 11:57 PM
mount command loganwva Linux - Networking 3 09-19-2001 02:27 PM

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

All times are GMT -5. The time now is 05:11 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration