LinuxQuestions.org
Review your favorite Linux distribution.
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 06-07-2013, 04:19 AM   #1
nidishady
Member
 
Registered: May 2013
Posts: 31

Rep: Reputation: Disabled
how to mount windows drive in linux


i am new to linux and i have just installed centos 6.4 in my system having dual boot with windows 7..now i would like to access other drives as well and i tried but it said mount the drive...will you please help me how to mount the drive...so that i can accees my files from other drive working through centos6.4.
thank you
 
Old 06-07-2013, 04:24 AM   #2
pan64
Senior Member
 
Registered: Mar 2012
Location: Hungary
Distribution: debian i686 (solaris)
Posts: 4,447

Rep: Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210Reputation: 1210
just google: https://duckduckgo.com/?q=how+to+mou...ux&t=canonical
 
Old 06-07-2013, 04:50 AM   #3
nidishady
Member
 
Registered: May 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
when i hit the command as;;;;;

[root@dhcppc5 ~]# df -h


Filesystem Size Used Avail Use% Mounted on
/dev/sda7 9.7G 660M 8.5G 8% /
tmpfs 3.9G 484K 3.9G 1% /dev/shm
/dev/sda5 388M 65M 303M 18% /boot
/dev/sda10 3.9G 242M 3.5G 7% /home
/dev/sda8 7.7G 2.8G 4.6G 38% /usr
/dev/sda9 3.9G 186M 3.5G 5% /var

{{{{{this is the result}}}}}


now i hit another command -----

[root@dhcppc5 ~]#less /etc/fstab


/etc/fstab
# Created by anaconda on Fri May 31 08:33:34 2013
#
# Accessible filesystems, by reference, are maintained under '/dev/disk'
# See man pages fstab(5), findfs(8), mount(8) and/or blkid(8) for more info
#
UUID=a863c894-51db-4a18-a6db-9d3f7ff730b9 / ext4 defaults 1 1
UUID=0ae4b5fa-fe46-4d0b-bce5-27611f73338f /boot ext4 defaults 1 2
UUID=1719efee-92f7-4bc2-840f-9ccdec775be5 /home ext4 defaults 1 2
UUID=d5f31412-3f0e-48d6-966f-b153970ff9aa /usr ext4 defaults 1 2
UUID=afa599db-0352-452a-a83d-554df4e1d592 /var ext4 defaults 1 2
UUID=a6e2713a-6209-4764-94a5-413e0900b5ed swap swap defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0

(END)

so now how can i mount windows drive here please help me out!!!!
 
Old 06-07-2013, 05:20 AM   #4
nidishady
Member
 
Registered: May 2013
Posts: 31

Original Poster
Rep: Reputation: Disabled
[root@dhcppc5 ~]# mount /dev/sda1 /mnt


mount: unknown filesystem type 'ntfs'


why it is displaying this output here ..please help me
 
Old 06-07-2013, 06:13 AM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Gentoo
Posts: 15,346
Blog Entries: 2

Rep: Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978Reputation: 3978
Install ntfs-3g, then try it with
Code:
mount -t ntfs-3g dev/sda1 /mnt
 
1 members found this post helpful.
Old 06-08-2013, 02:48 PM   #6
mariose
Member
 
Registered: May 2013
Location: South Africa
Distribution: linuxubuntu
Posts: 122
Blog Entries: 2

Rep: Reputation: 4
I could be wrong but shouldn't samba sort out the issue with viewing the ntfs files?
 
Old 06-08-2013, 02:58 PM   #7
johnsfine
Guru
 
Registered: Dec 2007
Distribution: Centos
Posts: 5,044

Rep: Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100Reputation: 1100
Quote:
Originally Posted by mariose View Post
I could be wrong but shouldn't samba sort out the issue with viewing the ntfs files?
I could also be wrong, but I think samba is only for windows shares on a network, not for mounting a local ntfs partition.
 
Old 06-08-2013, 03:10 PM   #8
mariose
Member
 
Registered: May 2013
Location: South Africa
Distribution: linuxubuntu
Posts: 122
Blog Entries: 2

Rep: Reputation: 4
Quote:
Originally Posted by johnsfine View Post
I could also be wrong, but I think samba is only for windows shares on a network, not for mounting a local ntfs partition.
You are very much correct. Just confirmed it.

Thanks nidishady
 
Old 06-09-2013, 12:12 AM   #9
itsgregman
Member
 
Registered: Jan 2008
Location: North Carolina
Distribution: Pclinuxos, Slackware, Mint, Vector
Posts: 127

Rep: Reputation: 26
First make sure ntfs-3g is installed on your system.

Then as root in terminal enter

mkdir /mnt/windows

then open your editor of choice and add to fstab

/dev/sd? /mnt/windows ntfs-3g fmask=111,dmask=000 1 0

Replacing the question mark with your windows drive number. Then reboot and you should have your windows drive mounted.
 
Old 06-09-2013, 01:04 AM   #10
Z038
Member
 
Registered: Jan 2006
Distribution: Slackware
Posts: 786

Rep: Reputation: 157Reputation: 157
Quote:
Originally Posted by itsgregman View Post
Then reboot and you should have your windows drive mounted.
You don't have to reboot. Just issue the command "mount -a" after editing /etc/fstab.
 
  


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
not able to mount windows drive in linux rajiv.patil82 Linux - Software 10 10-04-2010 11:45 PM
Mount windows network drive from Linux perfectpol7 Linux - Networking 6 08-26-2009 07:39 AM
how can i mount from the windows to linux drive. dina3e Linux - Hardware 7 06-08-2008 11:08 PM
How to mount windows shared drive in to the linux nhsarvaiya Linux - Server 1 08-31-2007 10:08 AM
Why can't I mount my Windows hard drive from Linux? axess_denied Linux - Hardware 23 10-23-2006 11:53 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration