LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 03-19-2009, 06:24 PM   #1
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Rep: Reputation: 16
Question Accessing windows files when dual booted


Hey guys, I got another one for ya.
How would a guy go about accessing his C: drive on windows when booted onto ubuntu? i'm currently dual booting ubuntu and windows (still transitioning out of windows)

So far I've devised a limited work around by either:
1. Using dropbox which lets me sync a limited amount of my files.
or less clever and more laborous
2. Using a flashdrive... (not very convenient when you gotta log out of one and into another, then back into the one you wanna use again.)

I was wondering if there was a more efficient method I could implement to gain access to the files between these 2 operating systems?
 
Old 03-19-2009, 06:49 PM   #2
pljvaldez
LQ Guru
 
Registered: Dec 2005
Location: Somewhere on the String
Distribution: Debian Wheezy (x86)
Posts: 6,094

Rep: Reputation: 271Reputation: 271Reputation: 271
Make a directory for the mount point and give it read-write permissions
Code:
mkdir /mnt/C
chmod a+rw /mnt/C
Then edit the /etc/fstab file and add the following
Code:
/dev/sda1 /mnt/C ntfs-3g defaults,users,noexec,umask=000 0 0
Change /dev/sda1 to whatever the windows partition is (you can find it by doing fdisk -l and looking for the partition that says NTFS). Then you can just type mount /mnt/C.

Some of the above commands might need to be run as the root user or using sudo. If you google for your distribution name and ntfs you'll probably come up with a step by step guide pretty quickly.

Last edited by pljvaldez; 03-19-2009 at 06:51 PM.
 
Old 03-19-2009, 07:05 PM   #3
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,397
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
You probably have ntfs-3g.

Start by reading the man page:
Code:
man ntfs-3g
Then, when you need some help, come back here with the output from:
Code:
su -c '/sbin/fdisk -l'
This will allow someone to help you produce the proper incantations to mount your NTFS partition.

--- rod.
 
Old 03-20-2009, 04:36 PM   #4
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Original Poster
Rep: Reputation: 16
nevermind

Last edited by cynicalpsycho; 03-20-2009 at 04:46 PM. Reason: thought it gave me a problem but did not.
 
Old 03-20-2009, 06:01 PM   #5
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by pljvaldez View Post
Make a directory for the mount point and give it read-write permissions
Code:
mkdir /mnt/C
chmod a+rw /mnt/C
Then edit the /etc/fstab file and add the following
Code:
/dev/sda1 /mnt/C ntfs-3g defaults,users,noexec,umask=000 0 0
Change /dev/sda1 to whatever the windows partition is (you can find it by doing fdisk -l and looking for the partition that says NTFS). Then you can just type mount /mnt/C.

Some of the above commands might need to be run as the root user or using sudo. If you google for your distribution name and ntfs you'll probably come up with a step by step guide pretty quickly.
i'm good until i get to the etc/fstab part... my problem is I don't know how to execute/edit it in the command line... and when I use the GUI it says I don't have proper permission to access it...
How to I gain access/edit it?
 
Old 03-20-2009, 06:11 PM   #6
elsheepo
Member
 
Registered: Feb 2008
Location: Los Angeles
Distribution: Slackware-current
Posts: 86

Rep: Reputation: 19
Code:
sudo gedit /etc/fstab
for more information on gedit
Code:
man gedit

Last edited by elsheepo; 03-20-2009 at 06:13 PM.
 
Old 03-20-2009, 06:20 PM   #7
glidermike
Member
 
Registered: Nov 2005
Location: Toronto Canada
Distribution: Debian
Posts: 90

Rep: Reputation: 15
The easy way!

either with synaptic or apt-get install disk-manager,also install any ntfs and fuse progs you might find useful (some of these will be automatically installed as dependencies)Then bring up disk-manager, it will ask you some simple questions and if you are not sure just follow the defaults and you will have read-write to your windows partitions.They will be auto -mounted on your desktop!
Good luck!
 
Old 03-20-2009, 06:26 PM   #8
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Original Poster
Rep: Reputation: 16
To conclude this post, Here's a tutorial on how to mount your windows drive when dual booted through Ubuntu!
http://www.arsgeek.com/2006/11/01/ub...-with-ntfs-3g/

Works quite well I must say
 
Old 03-20-2009, 06:27 PM   #9
cynicalpsycho
Member
 
Registered: Mar 2009
Location: America
Distribution: Debian/Arch
Posts: 134

Original Poster
Rep: Reputation: 16
Quote:
Originally Posted by elsheepo View Post
Code:
sudo gedit /etc/fstab
for more information on gedit
Code:
man gedit
you rock! thanks!
 
Old 03-20-2009, 06:42 PM   #10
elsheepo
Member
 
Registered: Feb 2008
Location: Los Angeles
Distribution: Slackware-current
Posts: 86

Rep: Reputation: 19
np just trying to give back to the community that trained me
 
  


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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Accessing windows files Rohan Sharma Linux - Newbie 13 01-12-2007 08:09 AM
problem accessing windows files the1wraith Linux - Networking 19 11-02-2005 12:35 PM
problem in viewing files in windows partition when booted on redhatlinux 9 gssnathan Red Hat 1 07-24-2004 07:25 AM
Accessing Windows Files jd300 Linux - Newbie 15 09-27-2003 09:21 AM
Accessing Windows files redhatnoob Linux - Distributions 5 08-11-2003 01:15 AM


All times are GMT -5. The time now is 01:32 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration