LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
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 08-16-2008, 03:31 AM   #1
ditto1958
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Rep: Reputation: 0
Accessing files from Windows Partition


I have a laptop set up with Kubuntu and XP as a dual boot. My question is this: when I boot using Kubuntu, is there a way that I can see and access files that are on the Windows partition? For example, if I want to use the Open Office word processor, but I want to work on a file that is on the Windows partition, how can I get to it?
 
Old 08-16-2008, 03:35 AM   #2
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
You need to mount your Windows partition. If you don't know what the partition is "called" (e.g. /dev/hda1), then run "sudo fdisk -l" (that's a lowercase L) and you'll see a list of partitions with their filesystem types. You'll want to add an entry for your Windows partition to your /etc/fstab file so that it's mounted on boot. You'll probably want to read the man pages for mount and fstab ("man mount" and "man fstab", respectively).
 
Old 08-16-2008, 05:42 AM   #3
ditto1958
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Thank you. I don't know if I exactly understand how to do it, but now at least I know what I need to do.
 
Old 08-16-2008, 06:15 AM   #4
GlennsPref
Senior Member
 
Registered: Apr 2004
Location: Brisbane, Australia
Distribution: Devuan
Posts: 3,657
Blog Entries: 33

Rep: Reputation: 283Reputation: 283Reputation: 283
Hi, look for your windows partition under /mnt using a file manager like konqueror (kde) or something else.

The mnt directory is generally where you'll find other harddisks (not linux).

You may not have write privige/access to that drive if it is ntfs format(windows), but there is a way around this.

See how you go, Glenn
 
Old 08-16-2008, 09:03 AM   #5
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
Code:
# /etc/fstab: static file system information.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
proc /proc proc defaults 0 0
# /dev/sda4
UUID=7dbdaa36-0707-4871-98b2-69cfb4400a9c / ext3 nouser,relatime,errors=remount-ro,atime,auto,rw,dev,exec,suid 0 1
# /dev/sda1
UUID=8be2778b-9c81-4844-bdf2-cc669273db94 none swap sw 0 0
/dev/scd0 /media/cdrom0 udf,iso9660 user,utf8,atime,noauto,rw,dev,exec,suid 0 0
/dev/sda3 /storage vfat defaults,umask=000,uid=1000,gid=100,auto,rw,user 0 2
this a copy, for your perusal, of my fstab file. (k)ubuntu works with drive id's (UUID=7dbdaa36-0707-4871-98b2-69cfb4400a9c for example) which i find a little hard to interpret, but it works just as easy with '/dev/sdxy' (where x represents which physical drive and y represents the partition number).

the windows drive that I want to access in linux is called /dev/sda3

I created a folder in the root partition in a terminal with the following command: sudo mkdir /storage

the line in fstab that mounts this drive during boot with full access is:
Code:
/dev/sda3 /storage vfat defaults,umask=000,uid=1000,gid=100,auto,rw,user 0 2
this may be a security issue for some with regards to the fact that any user on the system can access and modify files on this system, but in most cases this it is what many of us home users want.

the syntax of fstab is not too hard to understand but i am no expert in this:

Code:
# <file system> <mount point>   <type>  <options>       <dump>  <pass>
where: 'filesystem' is the physical location of the drive

'mount point' is the folder you assign in which you can see the contents of this drive (you may use the already existing /mnt folder if you like)

'type' is the filesysystem type, in my case vfat (fat32) (never tried this with ntfs, though)

'options' is probably the most important one with regards to accessibility and i just copy that whole bit (defaults,umask=000,uid=1000,gid=100,auto,rw,user) over whatever ubuntu places there to make it work for me (like i said i am no expert may someone else can fill you in on this a bit better)

'dump' i have no idea

'pass' if set to 0 then the filesystem will never be checked for errors (if i am not mistaking), the next option is 1 but that may only be used for the root partition, and the last option is 2 and that should be assigned to the rest of the drives in the system that are mounted through fstab so they get periodically checked (every 30 mounts or so)

hope you can be creative with this and make yourself a nice fstab file

Last edited by wabbalee; 08-16-2008 at 09:06 AM.
 
Old 08-16-2008, 08:32 PM   #6
ditto1958
LQ Newbie
 
Registered: Aug 2008
Posts: 12

Original Poster
Rep: Reputation: 0
Wow, that was easy. I used Dolphin, found the partition and a window came up that said I couldn't mount the drive unless I entered my password. I entered it, clicked "ok," and it appeared.
 
Old 08-18-2008, 09:10 AM   #7
wabbalee
Member
 
Registered: Oct 2006
Location: brisbane - australia
Distribution: ubuntu
Posts: 335

Rep: Reputation: 38
Can you create and delete on it, without being the superuser i mean?
 
  


Reply



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
Problems Accessing Files on ext3 Partition from Windows America's Sweetheart Linux - Desktop 6 08-21-2008 01:58 PM
Accessing files on the Windows Partition from Linux sci0x Linux - Software 6 03-21-2004 02:34 PM
Accessing files on my Windows partition darktalon96 Linux - Newbie 4 01-09-2004 10:23 AM
accessing windows partition from linux partition dave bean Linux - Newbie 19 10-15-2003 04:39 AM
Accessing files on another partition pyr0ph0r1c Linux - Newbie 21 08-29-2003 04:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:03 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
Open Source Consulting | Domain Registration