LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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-19-2006, 03:34 PM   #1
dsyebert
LQ Newbie
 
Registered: Aug 2006
Location: San Luis Obispo, CA
Distribution: Suse 10.1
Posts: 27

Rep: Reputation: 15
Access Windows Partitions...


How do I do it from Linux?
 
Old 08-19-2006, 04:12 PM   #2
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
Aren't they mounted per default? - Using Ubuntu, they are. - What's you're distribution, and what have you already tried?
 
Old 08-19-2006, 04:16 PM   #3
dsyebert
LQ Newbie
 
Registered: Aug 2006
Location: San Luis Obispo, CA
Distribution: Suse 10.1
Posts: 27

Original Poster
Rep: Reputation: 15
I'm using Suse 10.1. I don't think they are mounted by default, I cannot see them anywhere. I haven't tried much because I'm new to Linux and don't really know what to try or how to try it.

Thanks
 
Old 08-19-2006, 04:35 PM   #4
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
I'm a newbie, too (newbies are good for Linux ), and I'm using a different distribution than yours. - You might want to post the output of the terminal command
Code:
mount
to let us know which partitions have been mounted. - Thanks, too
 
Old 08-19-2006, 04:39 PM   #5
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
Open a terminal window.
su
(Enter root password)
mkdir /mnt/WinXP
nano /etc/fstab
(Add this line to fstab)
/dev/hda1 /mnt/WinXP ntfs owner,user,ro 0 0
(Save and exit)
Reboot

Notes:
hda1 could be some other number ... hda2, hda3, hda4, ... etc.
If you have a FAT32 partition on Windows that you want to access, the line in fstab would be, /dev/hda1 /mnt/WinXP vfat owner,user,rw 0 0

That should get you started. When you get that working, you'll have additional questions.
 
Old 08-19-2006, 05:13 PM   #6
dsyebert
LQ Newbie
 
Registered: Aug 2006
Location: San Luis Obispo, CA
Distribution: Suse 10.1
Posts: 27

Original Poster
Rep: Reputation: 15
here are my mount results:

/dev/hda6 on / type reiserfs (rw,acl,user_xattr)
proc on /proc type proc (rw)
sysfs on /sys type sysfs (rw)
debugfs on /sys/kernel/debug type debugfs (rw)
udev on /dev type tmpfs (rw)
devpts on /dev/pts type devpts (rw,mode=0620,gid=5)
/dev/hda7 on /home type reiserfs (rw,acl,user_xattr)
/dev/hda1 on /windows/C type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true)
/dev/hda2 on /windows/D type vfat (rw,noexec,nosuid,nodev,gid=100,umask=0002,utf8=true)
securityfs on /sys/kernel/security type securityfs (rw)
/dev/sda5 on /media/MY_WORLD type vfat (rw,noexec,nosuid,nodev,flush,shortname=winnt,utf8,uid=1000)
/dev/sdb1 on /media/DSEYBERT type vfat (rw,nosuid,nodev)

Last edited by dsyebert; 08-19-2006 at 06:12 PM.
 
Old 08-19-2006, 08:00 PM   #7
AwesomeMachine
Senior Member
 
Registered: Jan 2005
Location: USA and Italy
Distribution: Debian testing/sid; OpenSuSE; Fedora
Posts: 1,829

Rep: Reputation: 257Reputation: 257Reputation: 257
If you go to the directory /windows:

cd /windows

and:

ls

Those are your windows drives. Then:

cd D

or:

cd C

will take you into the drive.

ls

will display the contents of the drive.
 
Old 08-19-2006, 09:34 PM   #8
proji
Member
 
Registered: Aug 2006
Location: Essex
Distribution: Peppermint, Ubuntu, Fedora
Posts: 35
Blog Entries: 1

Rep: Reputation: 15
with linux accessing windows partitions, it's important to remember that reading and writing to a fat32 windows partition isn't a problem. NTFS partitions are perfectly readable, however to my knowledge writing is not guaranteed, in so much as it should write, but there is no guarantee that some data won't be lost.

the way i always got around this, was i had a small 5 - 10 gig fat32 partition which i could save things to from linux then access from windows. as i say reading ntfs isn't a problem so transferring from windows folders isn't a problem
 
Old 08-20-2006, 01:19 AM   #9
dsyebert
LQ Newbie
 
Registered: Aug 2006
Location: San Luis Obispo, CA
Distribution: Suse 10.1
Posts: 27

Original Poster
Rep: Reputation: 15
I made the changes to fstab and re-booted but they didn't show up anywhere. The lines dissappeared. Here is what my fstab looks like:

GNU nano 1.3.10 File: /etc/fstab

/dev/hda6 / reiserfs acl,user_xattr 1 1
/dev/hda7 /home reiserfs acl,user_xattr 1 2
/dev/hda1 /windows/C vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda2 /windows/D vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sda1 /windows/E vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/sdb5 /windows/F vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0

I want to access C and D. I see them in the terminal, but not in the file browser in the desktop.

Also, I have no idea where those E and F partitions came from. I click on them on the desktop and get an error "Could not create dbus message" then under "show more details" it just says "mount". Those partitions don't even exist!
 
Old 08-20-2006, 02:00 PM   #10
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
At first glance, that looks fine.

Your file browser (file manager) should be Konqueror. Typing in "/windows/C" in its location bar and pressing Enter should bring up the files. Next, you could bookmark the directory.

Ubuntu's Nautilus file manager has an additional left pane where all the mount points are listed. Not sure if you can make Konqueror; probably, that should be possible.

As for the E and F partitions, they might be small of size. Maybe that's some remaining rest from partitioning the other ones. I would ignore at first if they don't heavily disturb.

Last edited by robbbert; 08-20-2006 at 02:02 PM.
 
Old 08-20-2006, 03:03 PM   #11
dsyebert
LQ Newbie
 
Registered: Aug 2006
Location: San Luis Obispo, CA
Distribution: Suse 10.1
Posts: 27

Original Poster
Rep: Reputation: 15
Okay, I found them. No one told me to look in the Windows folder, haha. I should've realized it back AwesomeMachine said to go there in the terminal.
 
Old 08-20-2006, 06:16 PM   #12
mwade
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.10
Posts: 43

Rep: Reputation: 15
I have a slightly different problem but it relates to this post, I have a windows hard drive (ntfs), storage hard drive (ntfs) and a suse linux 10.1 hard drive (reiserfs). I can read the storage drive from linux but when I try to access the windows drive from linux it says
"Could not enter folder /mnt/WinXP."
(This is after I went through rickh's mounting procedure)
I changed all the access permissions to everyone can read but still no luck. Any ideas?
 
Old 08-21-2006, 12:52 AM   #13
robbbert
Member
 
Registered: Oct 2005
Location: Hannover, Germany
Distribution: Let there be Ubuntu... :o)
Posts: 573

Rep: Reputation: 32
mwade, the first keyword would be "mount".
 
Old 08-21-2006, 01:28 PM   #14
mwade
Member
 
Registered: Aug 2006
Distribution: Ubuntu 8.10
Posts: 43

Rep: Reputation: 15
If you're saying it should be /mount/WinXP then that is incorrect, /mnt/WinXP exists and I can access it as root and read the files but I cannot change access permissions.

chown: changing ownership of `WinXP': Read-only file system
chmod: changing permissions of `WinXP': Read-only file system

I'm pretty stuck at the minute, what am I doing wrong? Thanks.
 
Old 08-21-2006, 01:46 PM   #15
rickh
Senior Member
 
Registered: May 2004
Location: Albuquerque, NM USA
Distribution: Debian-Lenny/Sid 32/64 Desktop: Generic AMD64-EVGA 680i Laptop: Generic Intel SIS-AC97
Posts: 4,250

Rep: Reputation: 61
Assuming this is an ntfs partition ... try changing (in /etc/fstab)
/dev/hda1 /mnt/WinXP ntfs owner,user,ro 0 0 ... to
/dev/hda1 /mnt/WinXP ntfs umask=333,owner,user,ro 0 0
 
  


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
Write access to windows partitions in kubuntu 5.10 badbunny Ubuntu 4 02-07-2006 02:14 PM
Can't access windows partitions jessj SUSE / openSUSE 3 08-29-2005 12:00 AM
can't access my windows partitions!!!!!!! devdas Linux - Newbie 10 07-21-2005 07:57 PM
Is there any way to access my Linux partitions from Windows? zahadumy Linux - Software 3 05-26-2005 10:33 PM
how to access xfs partitions from windows bakwas_internet Linux - General 0 12-07-2004 06:53 AM


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