Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Installing Gentoo
  • Search

mount ntfs partition in fstab

Having problems with the Gentoo Handbook? If you're still working your way through it, or just need some info before you start your install, this is the place. All other questions go elsewhere.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

mount ntfs partition in fstab

  • Quote

Post by FcukThisGame » Sun Jan 15, 2006 1:30 am

I want to mount my ntfs partition on hda4 in fstab so that I can back up my windows files before I reinstall it.

I know this much...

Code: Select all

<fs>             <mountpoint>      <type>   <opts>  <dump/pass>
/dev/hda4      /mnt/windows        ntfs          ???            ?  ?


EDIT: fixed typo
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
Section_8
l33t
l33t
User avatar
Posts: 637
Joined: Sat May 22, 2004 5:20 am

  • Quote

Post by Section_8 » Sun Jan 15, 2006 1:35 am

This is mine. I mount it read only because I don't trust Linux updating it.

Code: Select all

/dev/hda1               /mnt/windows/win2k      ntfs    ro,uid=root,umask=000,noauto    0 0
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Sun Jan 15, 2006 1:38 am

Hi.

You can use a line as simple as

Code: Select all

/dev/hda4      /mnt/windows        ntfs          noauto      0 0
However, you're likely to want to use the uid, gid and or umask settings with an NTFS drive. Assuming that you want to give write access to user user_a and read access to group group_b, you should use

Code: Select all

/dev/hda4      /mnt/windows        ntfs          users,uid=user_a,gid=group_b,umask=750      0 0
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Sun Jan 15, 2006 1:48 am

For now, I don't need anything fancier than defaults with write permission, just need to back up my windows system that I ruined moving around to install gentoo. I'll need to copy my music and whatnot back to my NTFS partition once I reinstall windows.
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Sun Jan 15, 2006 1:52 am

jmbsvicetto wrote:Hi.

However, you're likely to want to use the uid, gid and or umask settings with an NTFS drive. Assuming that you want to give write access to user user_a and read access to group group_b, you should use

Code: Select all

/dev/hda4      /mnt/windows        ntfs          users,uid=user_a,gid=group_b,umask=750      0 0
Okay, only things that confuse me is the group thing, and the umask value. As far as the group thing, say I want read permission to everyone, but only write to root, then I'd need:

Code: Select all

/dev/hda4      /mnt/windows        ntfs          users,uid=root,gid=???,umask=750      0 0
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Sun Jan 15, 2006 2:26 am

It seems that you're still new to UNIX/LINUX file permissions. You define file permissions in Linux with a sequence of 3 octal numbers as XYZ. The X permissions apply to the user, the Y to the group and the Z to the world - which means everyone else. So, when you have 750 permissions it means the user can read, write and execute, the group can read and execute and everyone else can't read, write or execute.
Therefore, if you want user_a to read, write and execute, whilst everyone else can only read and execute, you should use:

Code: Select all

/dev/hda4      /mnt/windows        ntfs          users,uid=user_a,umask=755      0 0
In this case you're not setting the gid as you don't need to and are allowing the user to read, write and execute, whilst everyone else can only read and execute. The execute permission is important because on UNIX/LINUX you need it to browse through a dir. If we used umask=744, everyone else would see the contents of the root of the NTFS partition, but would be unable to browse through the disk.
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Sun Jan 15, 2006 4:01 am

yeah, I don't know enough about linux file permissions. I'll try to read up on them in the near future.

Thanks for all the help.
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
Tamsco
Guru
Guru
User avatar
Posts: 313
Joined: Wed Aug 04, 2004 9:16 pm
Location: dmse.mit.edu

  • Quote

Post by Tamsco » Sun Jan 15, 2006 5:20 am

If you don't care about permissions you could just use

Code: Select all

/dev/hda4      /mnt/windows        ntfs          defaults      0 0
If you get your problem solved put a [SOLVED] in the title!
Is OpenOffice still compiling?!
Top
jmbsvicetto
Bodhisattva
Bodhisattva
User avatar
Posts: 4735
Joined: Wed Apr 27, 2005 4:33 pm
Location: Angra do Heroísmo (PT)

  • Quote

Post by jmbsvicetto » Sun Jan 15, 2006 6:51 am

Tamsco wrote:If you don't care about permissions you could just use

Code: Select all

/dev/hda4      /mnt/windows        ntfs          defaults      0 0
If I'm not mistaken, that will make the partition accessible only by root. I think he might prefer

Code: Select all

/dev/hda4      /mnt/windows        ntfs          users,umask=777      0 0
which will allow all users to change the data on the ntfs partition.

:idea: 2000
Jorge.

Your twisted, but hopefully friendly daemon.
AMD64 / x86 / Sparc Gentoo
Help answer || emwrap.sh
Top
FcukThisGame
l33t
l33t
User avatar
Posts: 776
Joined: Wed Apr 20, 2005 10:01 pm
Location: /lost+found

  • Quote

Post by FcukThisGame » Sun Jan 15, 2006 5:28 pm

Using 775, data transfers still won't go, saying that it's a read-only filesystem.
Sysadmin by trade, geek by choice

DESKTOP:
i7-3770K|8800GTS-512|32GB|1x256GB SSD|4x1TB|HD/BDROM|1920x1200+1680x1050
Win8 Pro w/ Hyper-V|Server 2012 VM|Ubuntu VM|Gentoo VM

TABLET: Samsung Ativ 700t
i5-3317U|4GB|128GB SSD|1920x1080 Touch
Win8
Top
_tony_
n00b
n00b
User avatar
Posts: 42
Joined: Thu Sep 08, 2005 11:12 am
Contact:
Contact _tony_
Website

  • Quote

Post by _tony_ » Sun Jan 15, 2006 7:22 pm

saying that it's a read-only filesystem
Are you compile kernel with ntfs write support?
data transfers still won't go
Linux NTFS module does not fully support write to ntfs partition. It can not create new files, only change existing.
Top
Po0ky
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 142
Joined: Thu Apr 21, 2005 1:13 pm
Location: Belgium
Contact:
Contact Po0ky
Website

  • Quote

Post by Po0ky » Mon Jan 16, 2006 7:23 am

umask is a mask value...
So if you want a partition to be mounted with permissions set 777 you need to use umask=000.
-- I'll eat it--
Top
Post Reply

12 posts • Page 1 of 1

Return to “Installing Gentoo”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic