Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Kernel & Hardware
  • Search

how to mount windows partition(ntfs)?

Kernel not recognizing your hardware? Problems with power management or PCMCIA? What hardware is compatible with Gentoo? See here. (Only for kernels supported by Gentoo.)
Post Reply
Advanced search
14 posts • Page 1 of 1
Author
Message
vito_huang
n00b
n00b
Posts: 53
Joined: Mon Mar 27, 2006 1:04 am

how to mount windows partition(ntfs)?

  • Quote

Post by vito_huang » Thu Mar 30, 2006 2:30 pm

i am new to gentoo, just installed it a day ago, because i dual boot with windows xp, and all my songs are in windows xp's ntfs partition. and i want to mount it so xmms can play the songs. i have search for the forum for instaling ntfs , but not much information tell how to make it working, so can anyone point me some direction on how to mount ntfs partition.

by the way, i am using genkernel all the configure kernel when i install it. and i have try to emerge ntfsprogs, but after finish emerge i can't find some of the tools( after emgerge ntfsprogs, i try to use ntfsmount command, but it said command not found, where doesn ntfsprogs and it's tools installed to????). here is my thought cause i have check filesystems under /proc(cat /proc/filesystems) and there is no ntfs in there, so i think i will need a ntfs driver for kernel first , but i don't know how to find it?( i have look at linux-ntfs.org but the driver for kenerl is for 2.4 kernel and other things are mostly for redhat).
Top
voytas
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Wed Mar 31, 2004 3:01 pm
Location: Poland, Lodz

  • Quote

Post by voytas » Thu Mar 30, 2006 2:37 pm

Code: Select all

mount -t ntfs /dev/hdXY /mnt/DIR
replace XY adn DIR with proper values :)
LAPTOP: ThinkPad T530
Top
vito_huang
n00b
n00b
Posts: 53
Joined: Mon Mar 27, 2006 1:04 am

  • Quote

Post by vito_huang » Thu Mar 30, 2006 3:00 pm

thanx voytas for answering my quesitons.
there is some things that i don't understand, why when i check /proc/filesystems and there is no ntfs in there, but after i mount it i can see ntfs is there? and i have emerge ntfsprogs, why i can't use and tools like ntfsmount etc? one last question, i thought it need ntfs kernel driver to be able to mount ntfs (gentoo come with ntfs support?) , is this means when you do genkernel all, it will compile ntfs modules ?
Top
nadi
Apprentice
Apprentice
User avatar
Posts: 280
Joined: Fri Aug 06, 2004 9:58 am
Location: Norway

  • Quote

Post by nadi » Thu Mar 30, 2006 3:58 pm

why when i check /proc/filesystems and there is no ntfs in there, but after i mount it i can see ntfs is there?
you can automount the NTFS partition with the correct values in the /etc/fstab file (check the gentoo documentation)
Nadi
Top
ashtrash
n00b
n00b
Posts: 40
Joined: Thu Mar 23, 2006 2:11 pm

  • Quote

Post by ashtrash » Thu Mar 30, 2006 4:08 pm

I have question a bit according to this.

I've configured automount for windows-ntfs in fstab, but it always have permission 400 even though i use defaults. I tried to use rw,auto, user,nls=utf, but it still doesn't allow me to read/open or execute it as a common user (still 400). Of course i have in-kernel support for ntfs, ntfs-rw.

So at the moment the windows part looks like that:

Code: Select all

/dev/hda1       /mnt/windows    ntfs    rw,auto,user,nls=utf8   0 0
comparing to very well working usb device:

Code: Select all

/dev/sda1       /mnt/usb        auto    rw,noauto,user,exec,sync        0 0
what am I doing wrong?
Top
vito_huang
n00b
n00b
Posts: 53
Joined: Mon Mar 27, 2006 1:04 am

  • Quote

Post by vito_huang » Thu Mar 30, 2006 4:17 pm

if you want common user to be able to use ntfs, then i think you should set the umask to the value of you want. for example i have:
/dev/sda1 /mnt/windows ntfs user,umask=000 0 0

add more options to fourth colume of your desire.

hope this help
Top
voytas
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Wed Mar 31, 2004 3:01 pm
Location: Poland, Lodz

  • Quote

Post by voytas » Thu Mar 30, 2006 4:47 pm

ashtrash wrote:Of course i have in-kernel support for ntfs, ntfs-rw.
first of all NEVER use ntfs-rw in linux :!:

it'll probably damage ntfs partition

vito_huang:
you need kernel module called ntfs

if U don't see ntfs in /proc/filesystems do

Code: Select all

modprobe ntfs
and look again if still no, you'll have to compile ntfs kernel module :)

you can use an fstab entry like mine:

Code: Select all

/dev/hda2  /mnt/ntfs  ntfs dmask=007,fmask=317,ro  0 0
for more info

Code: Select all

man mount
LAPTOP: ThinkPad T530
Top
ashtrash
n00b
n00b
Posts: 40
Joined: Thu Mar 23, 2006 2:11 pm

  • Quote

Post by ashtrash » Thu Mar 30, 2006 10:40 pm

Masks don't change anything...

Actually reading ntfs works - but only under root, so support works fine. I can force 755 permissions under root, but:
1. It must be done with -r (it takes time)
2. It doesn't work on all files.
So there must be something that doesn't allow fstab to change permissions of hda1... But what? :?
Top
voytas
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Wed Mar 31, 2004 3:01 pm
Location: Poland, Lodz

  • Quote

Post by voytas » Fri Mar 31, 2006 8:43 am

ashtrash wrote:Masks don't change anything...

Actually reading ntfs works - but only under root, so support works fine. I can force 755 permissions under root, but:
1. It must be done with -r (it takes time)
2. It doesn't work on all files.
So there must be something that doesn't allow fstab to change permissions of hda1... But what? :?
reading is fine, just don't try writing...
for writing look for captive (in portage)
I told you to read man mount:
Mount options for ntfs
iocharset=name
Character set to use when returning file names. Unlike VFAT, NTFS suppresses names that contain unconvertible characters. Deprecated.
nls=name
New name for the option earlier called iocharset.
utf8
Use UTF-8 for converting file names.
uni_xlate=[0|1|2]
For 0 (or `no' or `false'), do not use escape sequences for unknown Unicode characters. For 1 (or `yes' or `true') or 2, use vfat-style 4-byte escape sequences starting with ":". Here 2 give a little-endian encoding and 1 a byteswapped bigendian encoding.
posix=[0|1]
If enabled (posix=1), the file system distinguishes between upper and lower case. The 8.3 alias names are presented as hard links instead of being suppressed.
uid=value, gid=value and umask=value
Set the file permission on the filesystem. The umask value is given in octal. By default, the files are owned by root and not readable by somebody else
uid and gid is what you want
LAPTOP: ThinkPad T530
Top
ashtrash
n00b
n00b
Posts: 40
Joined: Thu Mar 23, 2006 2:11 pm

  • Quote

Post by ashtrash » Fri Mar 31, 2006 11:36 am

Thought manual was 4 vito_huang.

Anyway it doesn't help...
Top
voytas
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Wed Mar 31, 2004 3:01 pm
Location: Poland, Lodz

  • Quote

Post by voytas » Fri Mar 31, 2006 11:47 am

ashtrash wrote:Thought manual was 4 vito_huang.

Anyway it doesn't help...
so you still have a problem :?:
tell me exactly what it is...
LAPTOP: ThinkPad T530
Top
ashtrash
n00b
n00b
Posts: 40
Joined: Thu Mar 23, 2006 2:11 pm

  • Quote

Post by ashtrash » Fri Mar 31, 2006 12:16 pm

I have windows automatically mouted in fstab, but it mounts without any permissions. I thougth it is 400 but as I see in Properties for /mnt/windows in kde I see it is 000. on chmod i get this msg:

Code: Select all

chmod 644 /mnt/windows/
chmod: changing permissions of `windows/': Read-only file system
That's strange, because i have enabled rw in kernel (which of course from now I won't try to use). After this chmod nothing changes... weird, because some time ago it was changing permissions (but also only for reading).

At the moment my fstab windows line looks like that:

Code: Select all

/dev/hda1	/mnt/windows	ntfs	ro,auto,user,nls=utf8,gid=410,umask=0555	0 0
Where 410 is id of group windows to which my user belong. I'm totally confused now with all these attributes. Theoretically defaults should enable reading for me but it doesn't. It's also said, that option user is required, but adding it doesn't help. Neither does umask=755 nor gid=410. What more can I do? :?
Top
voytas
Apprentice
Apprentice
User avatar
Posts: 203
Joined: Wed Mar 31, 2004 3:01 pm
Location: Poland, Lodz

  • Quote

Post by voytas » Fri Mar 31, 2006 12:48 pm

ashtrash wrote:

Code: Select all

chmod 644 /mnt/windows/
chmod: changing permissions of `windows/': Read-only file system
that will never work, forget it
ashtrash wrote:At the moment my fstab windows line looks like that:

Code: Select all

/dev/hda1	/mnt/windows	ntfs	ro,auto,user,nls=utf8,gid=410,umask=0555	0 0
Where 410 is id of group windows to which my user belong. I'm totally confused now with all these attributes. Theoretically defaults should enable reading for me but it doesn't. It's also said, that option user is required, but adding it doesn't help. Neither does umask=755 nor gid=410. What more can I do? :?
user is not needed, but you can experiment with umask, try different values, some time ago i had sam proble and found a sollution by experimenting with umask...
LAPTOP: ThinkPad T530
Top
ashtrash
n00b
n00b
Posts: 40
Joined: Thu Mar 23, 2006 2:11 pm

  • Quote

Post by ashtrash » Sun Apr 09, 2006 9:15 pm

:lol:

Don't understand why it is as it is... but to have permissions like 555 for ntfs partition U have to set umask to 222. Funny :D

voytas: Thanks for advice to test umask values.
Top
Post Reply

14 posts • Page 1 of 1

Return to “Kernel & Hardware”

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