You are not logged in.

#1 2011-07-07 12:28:58

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Mounting an ntfs filesystem without administrative password/root priv

Hi,

I want to access a windows (ntfs) partition (internal hard drive) from arch linux without having to use the root password to access it. I remember being able to access this partition by simply clicking on it and the root password dialog didn't pop up.

I tried to put information in my /etc/fstab so that I can mount or unmount the partition using the terminal but the issue I found is that I can't actually see the partition from my GUI filesystem folders. I think it might have something to do with permissions but I am not sure where to look. I thought it was in gconf-editor but I couldn't find the right settings to make the changes I am looking for.

here are my partitions.. the one I am trying to access is /dev/sda2 but it isn't shown here for some reason.. I can see it in my filesystem dialog but blkid doesn't show any info.

/dev/sda1: LABEL="PQSERVICE" UUID="4D54-C080" TYPE="vfat" 
/dev/sda3: UUID="e9581dad-55f7-4a08-99f0-e0f42f217d54" TYPE="ext4" 
/dev/sda5: UUID="faca0d2d-3ffa-4225-915f-61220ca95c66" TYPE="swap" 
/dev/sda6: UUID="3600519c-10d0-4a8b-b070-2131dfed877f" TYPE="ext4" LABEL="root" 
/dev/sda7: LABEL="home" UUID="aecfc731-d67b-4081-8946-94abb37cb357" TYPE="ext4" 
/dev/sda8: LABEL="home" UUID="4f186834-d875-4846-bad9-706850869a35" TYPE="ext4" 

Offline

#2 2011-07-07 13:27:36

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Mounting an ntfs filesystem without administrative password/root priv

Install ntfs-3g and add something like this to fstab:

UUID=whatevertheuuidofthepartionis /home/youruser/lamewindowsstuff ntfs-3g defaults 0 1

I would just permamount it like that instead of mounting/umounting it everytime you want to access it.


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#3 2011-07-07 13:38:59

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

I can't actually find out what the UUID of the windows partition is...blkid won't actually give me any info on it.

I have ntfs-3g installed though

Offline

#4 2011-07-07 13:48:16

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Mounting an ntfs filesystem without administrative password/root priv

Try using cfdisk to find out the correct device node.

Offline

#5 2011-07-07 14:02:12

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

I can't seem to get that information. I haven't used cfdisk before, do I try to put in something like:

$ cfdisk -P t /dev/sda2

I keep getting error messages

Last edited by rg_arc (2011-07-07 14:09:23)

Offline

#6 2011-07-07 14:05:52

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Mounting an ntfs filesystem without administrative password/root priv

@rg_arc

As root:

cfdisk /dev/sda

Offline

#7 2011-07-07 14:09:32

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

ok I got this message...

$ sudo cfdisk -P t /dev/sda2
Password: 
FATAL ERROR: Bad primary partition 1: Partition ends after end-of-disk
$ 

and also:

 FATAL ERROR: Bad logical partition 6: enlarged logical partitions overlap

Offline

#8 2011-07-07 14:17:17

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

When I put in "mount" I get this info about sda2:

$mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
udev on /dev type devtmpfs (rw,nosuid,relatime,size=10240k,nr_inodes=215934,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,noexec,relatime,size=10240k,mode=755)
/dev/sda6 on / type ext4 (rw,commit=0)
devpts on /dev/pts type devpts (rw,relatime,mode=600,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
fusectl on /sys/fs/fuse/connections type fusectl (rw,relatime)
/dev/sda7 on /home type ext4 (rw,commit=0)
gvfs-fuse-daemon on /home/ricky/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ricky)
/dev/sda2 on /media/ACER type fuseblk (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

Offline

#9 2011-07-07 14:25:36

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Mounting an ntfs filesystem without administrative password/root priv

What happens when you just type "cfdisk /dev/sda" as root?

Last edited by estevao (2011-07-07 14:26:08)

Offline

#10 2011-07-07 14:31:42

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

I get this error message:

FATAL ERROR: Bad logical partition 6: enlarged logical partitions overlap

Offline

#11 2011-07-07 14:44:37

estevao
Member
From: Vitória, ES - Brazil
Registered: 2009-10-13
Posts: 100
Website

Re: Mounting an ntfs filesystem without administrative password/root priv

Well, it appears that you have some partitioning issues in your hard drive. Normally, this type of problem are just solved with a repartitioning of the disk... but I'm not sure if this is your case, maybe you can do some partitioning workaround.

Take a look here: https://bbs.archlinux.org/viewtopic.php?id=68060

Last edited by estevao (2011-07-07 15:27:55)

Offline

#12 2011-07-07 15:01:18

Behemot
Member
Registered: 2010-12-10
Posts: 96

Re: Mounting an ntfs filesystem without administrative password/root priv

I guess you really have some problems with partitions, but what you probably want is automount of partitions under graphics enviroment, right? I know how difficult this is because on the arch wiki, under this sections are neccessary programs not mentioned, you have to search forums and find what to install every time if you forgot it regularly as I do. You need to have installed and running:

udev
dbus
fuse
gvfs (at least for XFCE4)

You also need to start session with ck-launch-session and dbus-launch. Oh and dont forget on /media/ folder with correct permissions (I personaly use 777, it can't harm). Than automounting of storage devices (incl. flash disks, memory card etc.) should work.

Last edited by Behemot (2011-07-07 15:02:41)

Offline

#13 2011-07-07 15:05:37

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Mounting an ntfs filesystem without administrative password/root priv

Behemot, the OP has an internal drive, not a USB key/drive. /etc/fstab can also be used to permanently auto-mount internal drives.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#14 2011-07-07 15:43:11

Behemot
Member
Registered: 2010-12-10
Posts: 96

Re: Mounting an ntfs filesystem without administrative password/root priv

Yes, of course, I do it the same way, but if he does not want to mount it permanently, this way is the right one.

Anyway, you can mount it without UUID, just with the /dev/ path, this is lien from my fstab:

/dev/sda1 /home ntfs-3g defaults,uid=1000,gid=100,umask=0027  0 0

I am personally using this way because I never succeeded even in booting from freshly installed Arch using UUID mounting. Tried on 3 computers now. Wonť you say there is something broken here? I guess problem seems to be in the fact the UUID stuff is reachable after the kernell loads or something like that. Maybe missing module or what. Anyway, this should work automatically at least during installation process, no? Will probably make my own thread when I'll be installing Arch next time somewhere…

Offline

#15 2011-07-07 15:58:36

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Mounting an ntfs filesystem without administrative password/root priv

Behemot wrote:

Tried on 3 computers now. Wonť you say there is something broken here?

Not really. I use UUIDs and I haven't had a single problem. Its probably something that you missed or used the wrong UUID. Could be just about anything.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#16 2011-07-07 16:26:13

Behemot
Member
Registered: 2010-12-10
Posts: 96

Re: Mounting an ntfs filesystem without administrative password/root priv

I did not change anything, just followed the installation process which is pretty automatic. As I said, will open my own thread next time I'll try this again :-)

Offline

#17 2011-07-08 04:43:44

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

thanks for the suggestions I will look through each one thoroughly before I make a decision on what I want to do for auto mounting. I know my partitioning scheme is flawed to some degree and I have already decided to re-install arch linux again reformatting the appropriate partitions so that arch linux is primary again. Its currently on an extended/logical partition which is causing some problems for sure. So I deleted Ubuntu which is where the primary partition was located before and then I am going to re-install and put in my backed up info for arch linux. Hopefully after that I can re-arrange things accordingly and I can use this thread for further tweaking.

I do want to make the internal hard drive to auto mount but I don't want it to be automatically loaded as soon as I turn the computer on... I just need to change the permissions or something to make it work like I want it to.

Thanks, and any further information on this would be great. I am also curious about the thread you want to start Behemot

Offline

#18 2011-07-08 14:01:41

Mr.Elendig
#archlinux@freenode channel op
From: The intertubes
Registered: 2004-11-07
Posts: 4,092

Re: Mounting an ntfs filesystem without administrative password/root priv

rg_arc wrote:

I can't actually find out what the UUID of the windows partition is...blkid won't actually give me any info on it.

I have ntfs-3g installed though

The Wiki wrote:

By-uuid
UUID is a mechanism to give each filesystem a unique identifier. It is designed so that collisions are unlikely. All GNU/Linux filesystems (including swap) support UUID. FAT and NTFS filesystems do not support UUID, but are still listed in /dev/disk/by-uuid with a unique identifier:

$ ls -lF /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Oct 16 10:27 2d781b26-0285-421a-b9d0-d4a0d3b55680 -> ../../sda1
lrwxrwxrwx 1 root root 10 Oct 16 10:27 31f8eb0d-612b-4805-835e-0e6d8b8c5591 -> ../../sda7
lrwxrwxrwx 1 root root 10 Oct 16 10:27 3FC2-3DDB -> ../../sda6
lrwxrwxrwx 1 root root 10 Oct 16 10:27 5090093f-e023-4a93-b2b6-8a9568dd23dc -> ../../sda2
lrwxrwxrwx 1 root root 10 Oct 16 10:27 912c7844-5430-4eea-b55c-e23f8959a8ee -> ../../sda5
lrwxrwxrwx 1 root root 10 Oct 16 10:27 B0DC1977DC193954 -> ../../sdb1
lrwxrwxrwx 1 root root 10 Oct 16 10:27 bae98338-ec29-4beb-aacf-107e44599b2e -> ../../sdb2

As you can see, the FAT and NTFS partitions (fat and windows labels above) have shorter names, but are still listed. The advantage about using the UUID method is that it is less likely that you have name collisions than with labels. The disadvantage is that UUIDs lose any readability advantage.

rb_arc wrote:

I do want to make the internal hard drive to auto mount but I don't want it to be automatically loaded as soon as I turn the computer on...

Why? Imo that's just silly, but if you really want to, just change the polkit settings to allow you to mount the partion.

Last edited by Mr.Elendig (2011-07-08 14:05:18)


Evil #archlinux@libera.chat channel op and general support dude.
. files on github, Screenshots, Random pics and the rest

Offline

#19 2011-07-08 14:04:21

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

AH! I should have seen that earlier... thanks!

Offline

#20 2011-07-09 01:13:57

stryder
Member
Registered: 2009-02-28
Posts: 500

Re: Mounting an ntfs filesystem without administrative password/root priv

AFAIK having arch in a logical partition is not a problem. Unless you can access sda2 in some other os easily I suggest you back up your data and check that partition. To mount as user you can use Thunar with gvfs and dbus and remove the fstab entry for this partition.

Offline

#21 2011-07-09 01:21:22

jorel1981
Member
Registered: 2011-06-28
Posts: 24

Re: Mounting an ntfs filesystem without administrative password/root priv

Hi, if u r using Gnome u can do what says in the following article from the wiki.

https://wiki.archlinux.org/index.php/GN … n_Nautilus

Hope that's helps...


the truth is out there....

Offline

#22 2011-07-15 05:17:34

rg_arc
Member
Registered: 2011-03-20
Posts: 507

Re: Mounting an ntfs filesystem without administrative password/root priv

thanks jorel1981, that was the article I have been searching for.

Offline

#23 2011-08-01 03:42:18

jorel1981
Member
Registered: 2011-06-28
Posts: 24

Re: Mounting an ntfs filesystem without administrative password/root priv

Glad to help... don't forget to add [Solved] to the subject of this topic.

Greetings!


the truth is out there....

Offline

Board footer

Powered by FluxBB