Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

I want to reach the Windows drives under Linux...How can i do that?

Posted on 2008-10-08
9
Medium Priority
?
311 Views
Last Modified: 2012-05-05
I want to go to my C: drive and edit some files under Linux...
Windows is XP SP3 C:->NTFS

I want to reach the Windows drives under Linux...How can i do that?

I mean, is there a command to do that or what?

Best regards...
0
Comment
Question by:jazzIIIlove
  • 2
  • 2
  • 2
  • +3
9 Comments
 
LVL 45

Accepted Solution

by:
sunnycoder earned 800 total points
ID: 22668948
Hello jazzIIIlove,

mount -t ntfs /dev/hda1 /mnt/win

http://www.reallylinux.com/docs/toptip3.shtml  -- check this first
http://gentoo-wiki.com/HOWTO_Mount_Windows_partitions_(DOS,_FAT,NTFS)  -- this one is more detailed with kernel options etc.

man mount

Regards,
sunnycoder
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 480 total points
ID: 22668997
0
 
LVL 96

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 80 total points
ID: 22669385
I would be cautious... I've not yet heard of a truly safe way of editing files on NTFS partitions under linux.  Reading partitions, is fine, but if you need to edit, before enabling write using whatever NTFS driver may exist, I would suggest you create a FAT partitions or use an external drive to save alternate versions of files to that you can then access from Windows.
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 
LVL 31

Assisted Solution

by:rid
rid earned 520 total points
ID: 22673401
Well, caution is a good thing, but I have no problems with read/write access to NTFS partitions under Ubuntu; I use the function regularly with mail store for Thunderbird common to both Linux and windows (on the same machine), on the windows partition. It's been working OK for 6 months. I DO make backups regularly, just like I would have done running windows only... I do suspect that odd file name characters MIGHT be able to mess things up, or too long paths/filenames, but I haven't run into that, yet.
/RID
0
 
LVL 8

Assisted Solution

by:eager
eager earned 120 total points
ID: 22679770
leew --

NTFS support for writing in Linux used to be problematic in the past, as you say.  It appears to be stable and fully functional in recent releases.  
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 22694560
sunnycoder:
you are right but also i want to modify the files and directories there...When i executed below, yes i can see the ntfs file system, no i cannot modify the file system under linux...
mount -t ntfs /dev/hda1 /mnt/win

Yes, this works of course after creating win directory under /mnt...But the directory system becomes readonly...You may say, recompile your kernel...Out of question...:)

from your gentoo link:
I modifies fstab...(of course not hda1 in my machine)
/dev/hda1  /mnt/ntfs  ntfs  defaults  0 0

no use...
omarfarid:
<<http://www.justlinux.com/nhf/Filesystems/Mounting_smbfs_Shares_Permanently.html

<from the link>
mount -t smbfs //servername/sharename /mountdirectory -o username=mywindowsusername,password=mywindowspassword

//servername/sharename refers to the name of the Windows computer and the name of the share.
/mountdirectory refers to the directory you use as the mount point on the Linux workstation. It can be any directory as long as the user executing the command has rights to it.

Whether you need to supply a username and password depends on what type of security you have on the Windows share. If you have a share created with no password on it, you shouldn't need to provide a username and password. If the share happens to be on a Windows NT server that is part of a domain, you would need to provide a domain login name and password.
</from the link>

ok...i got it but to execute mount -t smbfs  command, i think i need to install a samba server under my linux...and i think i need to connect to this local server as a client...Your link show this but i cannot completely understand the command...Can you give me an example?

<<http://learnlinux.tsf.org.za/courses/build/net-admin/ch08s02.html

I am new to Linux and will i have to configure smbf.conf file after the installation?

leew:
ok...i consider this..

rid and eager:
thanks for the info...
0
 
LVL 31

Assisted Solution

by:rid
rid earned 520 total points
ID: 22694678
To mount a local hard drive windows partition, I don't think samba is the way to go. The suggested additions to fstab should do. However, in my case I set <type> to auto and I have the entry "users" in the <options> column, to allow ordinary users suitable access. The line is:

/dev/sda1    /mnt/windrive-c    auto     users   0  0

and that seems to work OK for me. This is an Ubuntu 8.04 system with win XP on NTFS as the other possible boot option.
/RID
0
 
LVL 12

Author Comment

by:jazzIIIlove
ID: 22694985
to clarify the issue more,

I first installed Linux Pardus then I had partitioned the disk with GParted and then installed Microsoft Windows...
0
 
LVL 40

Assisted Solution

by:omarfarid
omarfarid earned 480 total points
ID: 22695050
I don't think that you need Samba server installed on linux to be able to access the windows share. Try providing a valid username and password on the domain while connecting to the share
0

Featured Post

Get your Conversational Ransomware Defense e‑book

This e-book gives you an insight into the ransomware threat and reviews the fundamentals of top-notch ransomware preparedness and recovery. To help you protect yourself and your organization. The initial infection may be inevitable, so the best protection is to be fully prepared.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
The purpose of this article is to demonstrate how we can use conditional statements using Python.
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
Suggested Courses
Course of the Month8 days, 21 hours left to enroll

876 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question