You are not logged in.

#1 2009-07-18 15:34:40

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Can't mount internal NTFS

I know this is a very much answered question, but I can't seem to mount my internal NTFS. It's not as if there's an error message. Simply nothing happens. Here's my hal.conf

<!DOCTYPE busconfig PUBLIC
 "-//freedesktop//DTD D-BUS Bus Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
<busconfig>

  <!-- This configuration file specifies the required security policies
       for the HAL to work. -->

  <!-- Only root or user hal can own the HAL service -->
  <policy user="hal">
    <allow own="org.freedesktop.Hal"/>
  </policy>
  <policy user="root">
    <allow own="org.freedesktop.Hal"/>
  </policy>

  <!-- Allow anyone to invoke methods on the Manager and Device interfaces -->
  <policy context="default">
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Introspectable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.DBus.Properties" />

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Manager"/>

    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.CPUFreq"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.DockStation"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KillSwitch"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.KeyboardBacklight"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Leds"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.LightSensor"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Storage.Removable"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
    <allow send_destination="org.freedesktop.Hal"
           send_interface="org.freedesktop.Hal.Device.WakeOnLan"/>

  </policy>

 <policy group="power">
   <allow send_interface="org.freedesktop.Hal.Device.SystemPowerManagement"/>
   <allow send_interface="org.freedesktop.Hal.Device.LaptopPanel"/>
 </policy>

 <policy group="storage">
   <allow send_interface="org.freedesktop.Hal.Device.Volume"/>
   <allow send_interface="org.freedesktop.Hal.Device.Volume.Crypto"/>
 </policy>


</busconfig>

I've tried the wiki, but it's just not helping. On the side, I would like to just say that such a simple thing shouldn't be needing such tedious fixes. It should just work. Doesn't matter if it's arch or ubuntu. Installing ntfs-3g should just make it work. Just my 2c

Last edited by zephyrus17 (2009-07-18 15:37:07)

Offline

#2 2009-07-18 15:36:23

gapo
Member
From: Where the wind takes me
Registered: 2009-01-30
Posts: 46
Website

Re: Can't mount internal NTFS

ermm ... do you want to correct HAL or is mounting by any way OK for you ?


How I'm learning linux : If it ain't broken, fix it until it is. Then start over again.
....................................................................................................
Gapo the flow

Offline

#3 2009-07-18 15:37:43

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: Can't mount internal NTFS

I would prefer HAL, since HAL is supposedly the 'best' way for it, right?

Offline

#4 2009-07-18 16:09:01

gapo
Member
From: Where the wind takes me
Registered: 2009-01-30
Posts: 46
Website

Re: Can't mount internal NTFS

Starting from the basic are u sure hal is up and running i.e. hald .
If it is running then restart it ... it helped me once.

Also, while HAL is the easy way ... it is not essentially the best . Nothing beats

sudo mount -t ntfs-3g <device name for eg. /dev/sda4 > < mountpoint for eg. /mnt >

Also you can add an entry in the fstab as it is an internal partition.


How I'm learning linux : If it ain't broken, fix it until it is. Then start over again.
....................................................................................................
Gapo the flow

Offline

#5 2009-07-18 16:12:05

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: Can't mount internal NTFS

Yeah. hal is in my daemons. So is fam.

I've added

/dev/sda2 /media/Data ntfs-3g defaults 0 0

to by fstab but that just gives me permission denied. And I supposed to create the folder /media/Data first and the give myself permissions to it?

Offline

#6 2009-07-19 10:22:10

gapo
Member
From: Where the wind takes me
Registered: 2009-01-30
Posts: 46
Website

Re: Can't mount internal NTFS

Yes, you have to do that also.  I think this is the prob.

Anyway, if that doesn't work

The default settings is equivalent to rw,suid,dev,exec,auto,nouser,async


'nouser' refers to only root can mount.
So, let us try 'user'.

/dev/sda2 /media/Data ntfs-3g rw,suid,dev,exec,auto,user,async 0 0

Also have a look at this
http://wiki.archlinux.org/index.php/HAL … ite_access


How I'm learning linux : If it ain't broken, fix it until it is. Then start over again.
....................................................................................................
Gapo the flow

Offline

#7 2009-07-19 10:45:09

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Can't mount internal NTFS

zephyrus17 wrote:

Yeah. hal is in my daemons. So is fam.

I've added

/dev/sda2 /media/Data ntfs-3g defaults 0 0

to by fstab but that just gives me permission denied. And I supposed to create the folder /media/Data first and the give myself permissions to it?

I did on my system:

# mkdir /media/data
# chown user:usergroup /media/data

My /etc/fstab line looks like this and everything works fine on my system

LABEL=Data    /media/data       ntfs-3g defaults,noatime        0       0

You can replace the 'LABEL=Data' line w/ /dev/sda2 or whatever


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#8 2009-07-19 12:40:12

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: Can't mount internal NTFS

I've done

# chown gary:users /media/Data

and here's my fstab:

/dev/sda2 /media/Data ntfs-3g rw,suid,dev,exec,auto,user,async 0 0

Still won't let me unmount it.
"Cannot unmount volume You are not privileged blah blah. Details: umount: only root can unmount"

Then after a few seconds, "DBus error org.freedesktop.DBus.Error.NoReply: Did not receive a reply......"

I've looked at the HAL wiki. Even tried the "last resort", but didn't work.

(It seems to me that somewhat, the newer HAL is worse than the older ones or even no HAL. And that arch seems to be going towards less ease of setting up. Urgh)

Last edited by zephyrus17 (2009-07-19 12:53:25)

Offline

#9 2009-07-19 14:04:47

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Can't mount internal NTFS

Which user and how are you attempting to mount it?  Did you add your user to /etc/sudoer for mount/umount if doing it via a normal user?  Show me the output of:

# mount -t ntfs-3g /dev/sda2 /media/Data

CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#10 2009-07-19 14:09:07

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: Can't mount internal NTFS

which user? myself, of course. I'm mounting it via fstab.
I have "gary    ALL=(ALL) ALL" in visudo

the output is:
ntfs-3g-mount: mount failed: Device or resource busy

I think it's logical since I've already set it to automatically mount upon start up.

Another problem has risen, hotplugging won't work. :S

Offline

#11 2009-07-19 14:40:55

gapo
Member
From: Where the wind takes me
Registered: 2009-01-30
Posts: 46
Website

Re: Can't mount internal NTFS

start dbus first

sudo /etc/rc.d/dbus start

How I'm learning linux : If it ain't broken, fix it until it is. Then start over again.
....................................................................................................
Gapo the flow

Offline

#12 2009-07-19 14:47:57

zephyrus17
Member
Registered: 2008-06-15
Posts: 323

Re: Can't mount internal NTFS

Ahhh.. here's a problem as well. The computer immediately crashes out of X when I do that. Every single time. And because nvidia still haven't fixed their borked logout problem, it means I have to do a ctrl-alt-del

Offline

#13 2009-07-19 17:52:33

rwd
Member
Registered: 2009-02-08
Posts: 664

Re: Can't mount internal NTFS

<snip>

Last edited by rwd (2009-07-19 17:54:50)

Offline

#14 2009-07-20 14:30:39

gapo
Member
From: Where the wind takes me
Registered: 2009-01-30
Posts: 46
Website

Re: Can't mount internal NTFS

hmmm ... can you post/check the output

dmesg | less

How I'm learning linux : If it ain't broken, fix it until it is. Then start over again.
....................................................................................................
Gapo the flow

Offline

Board footer

Powered by FluxBB