You are not logged in.

#1 2013-07-18 21:37:51

gr33nbit
Member
Registered: 2013-07-18
Posts: 6

[Solved]Mounting a windows partition. "permission denied".

Hey I have a problem with trying to get my windows partiton to open. It mounts fine and everything but it doesn't open when I try to open the folder or even in terminal.
I am also running xfce4 if that helps idk just trying to give as much info as i can.

here is my lsblk if you want it the windows partition is sda2:

NAME   MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda      8:0    0 465.8G  0 disk 
├─sda1   8:1    0    25G  0 part 
├─sda2   8:2    0 186.3G  0 part /media/OS
├─sda3   8:3    0  14.4G  0 part /
└─sda4   8:4    0 240.1G  0 part /home
sdb      8:16   1   3.6G  0 disk 
└─sdb1   8:17   1   3.6G  0 part 
sr0     11:0    1  1024M  0 rom  
 

As you can see it is mounting correctly and is currently mounted on /media/OS but if I try to open the folder I get greeted by this error.

Failed to open directory "OS".
Permission denied.
 

I tried "sudo cd /media/OS" but it tells me...

sudo :  cd command not found 

I would love it if someone could please help me.

Thanks, gr33nbit.

Last edited by gr33nbit (2013-07-19 06:13:03)

Offline

#2 2013-07-18 21:45:46

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]Mounting a windows partition. "permission denied".

Presumably it is an NTFS partition?


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#3 2013-07-18 21:46:22

gr33nbit
Member
Registered: 2013-07-18
Posts: 6

Re: [Solved]Mounting a windows partition. "permission denied".

Oh sorry yes it is big_smile

Offline

#4 2013-07-18 21:47:07

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,406
Website

Re: [Solved]Mounting a windows partition. "permission denied".

cd is a shell command, you can't prepend sudo to it.

You probably just neet to install ntfs-3g, then unmount and remount the partition to use it.

https://wiki.archlinux.org/index.php/NTFS-3G


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#5 2013-07-18 21:50:32

gr33nbit
Member
Registered: 2013-07-18
Posts: 6

Re: [Solved]Mounting a windows partition. "permission denied".

ntfs-3g was already installed.
also just to make sure I umounted it and then tried to mount it again with

mount /dev/sda2 

and it returned this error :

mount: can't find /dev/sda2 in /etc/fstab

Offline

#6 2013-07-18 21:53:58

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,426
Website

Re: [Solved]Mounting a windows partition. "permission denied".

mount without a mountpoint assumes an entry in fstab; either include one if you want to regularly mount this drive, or create a mountpoint in /media/


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

#7 2013-07-18 22:17:09

gr33nbit
Member
Registered: 2013-07-18
Posts: 6

Re: [Solved]Mounting a windows partition. "permission denied".

Thanks alls fixed.

if anyone wants to know the fix was: create a mount point , and just mount the filesystem to it such as

sudo mkdir /media/OS2 
sudo mount /dev/sda2 /media/OS2

turns out to be pretty simple big_smile

Thanks , gr33nbit.

Offline

#8 2013-07-18 22:39:10

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: [Solved]Mounting a windows partition. "permission denied".

Please remember to mark the thread as solved https://bbs.archlinux.org/viewtopic.php?id=130309

Offline

#9 2013-07-18 23:05:55

WorMzy
Administrator
From: Scotland
Registered: 2010-06-16
Posts: 13,406
Website

Re: [Solved]Mounting a windows partition. "permission denied".

I'm curious how you were mounting it previously. Could you elaborate on that, so that people know what caused the problem to begin with?


Sakura:-
Mobo: MSI MAG X570S TORPEDO MAX // Processor: AMD Ryzen 9 5950X @4.9GHz // GFX: AMD Radeon RX 5700 XT // RAM: 32GB (4x 8GB) Corsair DDR4 (@ 3000MHz) // Storage: 1x 3TB HDD, 6x 1TB SSD, 2x 120GB SSD, 1x 275GB M2 SSD

Making lemonade from lemons since 2015.

Online

#10 2013-07-19 06:12:08

gr33nbit
Member
Registered: 2013-07-18
Posts: 6

Re: [Solved]Mounting a windows partition. "permission denied".

WorMzy wrote:

I'm curious how you were mounting it previously. Could you elaborate on that, so that people know what caused the problem to begin with?


Gladly.

To anyone that finds it important I am using ArchLinux x86_64 and my desktop environment is XFCE4.

Ok so I followed the arch wiki here "https://wiki.archlinux.org/index.php/Xf … le_Devices" on how to set Arch up to auto mount the drives and I installed 'gvfs' and 'udisks' which I thought would auto mount the drives.
turns out it does auto mount the windows partition but for some reason when I try to open it I don't have permission.
so the fix is to create a folder in /media/

sudo mkdir /media/windowsPartition

And then mount the drive manually to that folder like so.

sudo mount /dev/partition_to_mount /media/folder_to_mount_to

Hope this helps big_smile

Last edited by gr33nbit (2013-07-19 06:14:29)

Offline

Board footer

Powered by FluxBB