Solved

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

Posted on 2008-10-08
9
240 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 200 total points
Comment Utility
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 120 total points
Comment Utility
0
 
LVL 95

Assisted Solution

by:Lee W, MVP
Lee W, MVP earned 20 total points
Comment Utility
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
 
LVL 31

Assisted Solution

by:rid
rid earned 130 total points
Comment Utility
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
Free Trending Threat Insights Every Day

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

 
LVL 8

Assisted Solution

by:eager
eager earned 30 total points
Comment Utility
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
Comment Utility
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 130 total points
Comment Utility
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
Comment Utility
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 120 total points
Comment Utility
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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 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

Need Help in Real-Time?

Connect with top rated Experts

8 Experts available now in Live!

Get 1:1 Help Now