LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 06-15-2008, 09:52 AM   #1
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Rep: Reputation: 32
Saving files in my win partitions.


I want to be able to save files in win partitions. I have two win partitions. A NTFS one and the other which is fat32.

How can I enable this?

Thanks!
Glore2002.-
 
Old 06-15-2008, 10:02 AM   #2
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738Reputation: 738
Have you tried mounting the partitions? Most modern distros will support NTFS and I think basically ALL Linuces support FAT32.

Personally, I prefer keeping all data in shared ext3 partitions. When I use Windows (rarely), I access the ext3 partitions using the ext2fsd driver.
 
Old 06-15-2008, 03:00 PM   #3
T3slider
Senior Member
 
Registered: Jul 2007
Distribution: Slackware64-14.1
Posts: 2,366

Rep: Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835Reputation: 835
Slackware 12.1 includes ntfs-3g and FUSE by default, so you can mount NTFS partitions. Do a search in the forums for "ntfs-3g" and you should find plenty of information. As for the FAT32 partition, that should be a no-brainer. See `man mount` and `man fstab` for more information.
 
Old 06-16-2008, 12:10 AM   #4
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
I'll post a couple of sample lines for you to chew on. These are actually what I use in one of my systems.
A sample FAT32 fstab entry
Code:
/dev/hdb3        /mnt/MEDIA       vfat        defaults,gid=102,umask=007,utf8			1	0
FAT32 = vfat
I have a special group called crossover (gid 102) that I allow to have full perms to certain partitions such as this one.
The umask makes all the perms rwx for owner (root) and group (crossover) with no perms for others.
owner, user, and uid are also useful options to look into.

A sample NTFS fstab entry
Code:
/dev/hda1	/mnt/Windows		ntfs-3g		defaults,noauto,gid=102,umask=007	0	0
Similar to the last, but NTFS = ntfs-3g and as said before uses NTFS-3G (which makes use of fuse).

I choose not to have my Windows partition mounted automatically, so noauto is used.

Do keep in mind that NTFS-3G does not allow you to set sane perms for Windows! Any new files you create will have perms for 'Everyone'. If this matters to you (ie. its a shared computer), my suggestion to you is to set perms on the main folder(s) of the partition in Windows and then have the files and folders underneath inherit perms. Using a methodology like this you can still have some sane permissions in Windows for a shared computer.
 
Old 06-16-2008, 08:30 AM   #5
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Here my fstab

Hello back!
This is how my /etc/fstab looks like:

Code:
/dev/sda6        swap             swap        defaults         0   0
/dev/sda3        /                ext3        defaults         1   1
/dev/sda4        /home            ext3        defaults         1   2
/dev/sda1        /ntfs-c          ntfs-3g     umask=000        1   0
/dev/sda5        /fat32-d         vfat        defaults         1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
This is not a shared computer (just my computer at home). So, there exist two users: Root and my user. I want to let both full access to win partitions.

I don't have any floppy disk. So, can I comment that line?
Thanks.
Glore2002.-

Last edited by glore2002; 06-16-2008 at 08:34 AM.
 
Old 06-16-2008, 11:25 AM   #6
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
Quote:
Originally Posted by glore2002 View Post
Hello back!
This is how my /etc/fstab looks like:

Code:
/dev/sda6        swap             swap        defaults         0   0
/dev/sda3        /                ext3        defaults         1   1
/dev/sda4        /home            ext3        defaults         1   2
/dev/sda1        /ntfs-c          ntfs-3g     umask=000        1   0
/dev/sda5        /fat32-d         vfat        defaults         1   0
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro  0   0
/dev/fd0         /mnt/floppy      auto        noauto,owner     0   0
devpts           /dev/pts         devpts      gid=5,mode=620   0   0
proc             /proc            proc        defaults         0   0
tmpfs            /dev/shm         tmpfs       defaults         0   0
This is not a shared computer (just my computer at home). So, there exist two users: Root and my user. I want to let both full access to win partitions.

I don't have any floppy disk. So, can I comment that line?
Thanks.
Glore2002.-
Yes, you can just comment out or delete the floppy line, but it doesn't hurt anything being there either.

umask=000, as you have on your ntfs-c partition will give rwx perms to everyone. dmask and fmask can be used to mask perms on directories and files, respectively.

Really, you just need to go through the options in man mount and see what you want (particularly under the -o option section and the Mount options for fat section).

Since the computer is just for your I suggest using the uid option for your FAT32/NTFS mounts.

Also make sure you created your mount point directories (/fat32-d /ntfs-c) before using them. It is standard to place them under /mnt, but you can put them pretty much where ever you like.
 
Old 06-16-2008, 11:31 AM   #7
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 3,671

Rep: Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973Reputation: 973
here's my FAT32 entries on my fstab:
Code:
/dev/hda5        /mnt/win_d       vfat        defaults,user,umask=0,rw         1   0
/dev/hda6        /mnt/win_e       vfat        defaults,user,umask=0,rw         1   0
 
Old 06-16-2008, 12:04 PM   #8
glore2002
Member
 
Registered: Mar 2007
Location: Buenos Aires, Argentina.
Distribution: Debian Lenny AMD64
Posts: 506

Original Poster
Rep: Reputation: 32
Solved!

Thank you!

umask=000 did the trick. Now I can access my win partitions.

Glore2002.-
 
Old 06-16-2008, 01:14 PM   #9
shadowsnipes
Senior Member
 
Registered: Sep 2005
Distribution: Slackware
Posts: 1,442

Rep: Reputation: 71
Quote:
Originally Posted by glore2002 View Post
Thank you!

umask=000 did the trick. Now I can access my win partitions.

Glore2002.-
I'm glad you are happy with it You can share more than data by the way. You can share things such as platform independent binaries (java programs, dos programs with dosbox, roms, etc). You can also share your firefox profile, thunderbird mail, and other stuff between Windows and Linux.
 
  


Reply

Tags
fat32, fstab, ntfs


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
An absolutely new novice. Saving data from a win xp os wbhadfield LinuxQuestions.org Member Intro 1 02-25-2008 10:46 PM
vsftpd not list files when viewed from deifferent win machine win ftp application in anuj_sharma25 Linux - Newbie 2 11-23-2005 12:08 AM
Win XP not saving / uploading (or even downloading) profiles to / from samba PDC systemparadox Linux - Networking 4 05-10-2005 03:01 PM
Can I copy Files to my win partitions in Knoppix 3.1 deadlyquantizer Linux - Newbie 1 09-16-2004 05:00 PM
Errors When I copied Win files from Lin back to Win! dougp25 Linux - General 2 09-15-2004 06:03 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 09:25 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