Author Topic: [SOLVED] can't create a new folder in my second partition  (Read 1298 times)

Offline abbydabs

  • Jr. Member
  • **
  • Posts: 14
[SOLVED] can't create a new folder in my second partition
« on: July 13, 2012, 08:09:38 PM »
First timer here,  How can I create a new folder on my second partition.  I can't write to it either.  It says "access denied".  I think it has something to do with root.   If I login using root instead of my user name then I can BUT I have a whole different desktop.
« Last Edit: July 14, 2012, 08:35:01 AM by abbydabs »

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't create a new folder in my second partition
« Reply #1 on: July 13, 2012, 08:23:33 PM »
Welcome to the forum, abbydabs. Your question is vague because it lacks any specific details. Is this second partition on a fixed drive or a removable one? With the partition mounted, post the results of mount command in a terminal. You can do this as normal user. Point out which partition you are referring to. That will determine whether you need to change ownership of the directory or simply change the directory access permissions.

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Online muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: can't create a new folder in my second partition
« Reply #2 on: July 13, 2012, 08:43:15 PM »

can you open the terminal, if you can then open it, type these two commands and paste their output here.

cat /etc/fstab

cat /etc/mtab

if you can write to it as root but not as a normal user then the problem could be with how it is mounted
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline abbydabs

  • Jr. Member
  • **
  • Posts: 14
Re: can't create a new folder in my second partition
« Reply #3 on: July 13, 2012, 08:51:45 PM »
I have a 20 gig drive that I am using to try PCLOS 2012 KDE as a test.   I resized the 20 gig partition down to 13 gigs and created a second partition of 5 gigs that I want to use for data storage.   I hope I can get this to work as I have a 250 gig drive waiting in the wings to give PCLOS a permanent home. 



[curt@localhost ~]$ mount
/dev/sda1 on / type ext4 (rw)
none on /proc type proc (rw)
none on /dev/pts type devpts (rw)
none on /proc/sys/fs/binfmt_misc type binfmt_misc (rw)
/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=500,utf8,shortname=mixed,flush)
/dev/sda3 on /media/disk-1 type ext4 (rw,nosuid,nodev,uhelper=hal)
[curt@localhost ~]$

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't create a new folder in my second partition
« Reply #4 on: July 13, 2012, 08:53:47 PM »
You did not indicate which partition poses the problem.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline abbydabs

  • Jr. Member
  • **
  • Posts: 14
Re: can't create a new folder in my second partition
« Reply #5 on: July 13, 2012, 09:02:34 PM »
My new, 5 gig, second partition is the problem.

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't create a new folder in my second partition
« Reply #6 on: July 13, 2012, 09:06:45 PM »
You did not indicate which partition poses the problem.


And which of these two is it? Is it a removable drive or one that is permanent? The more specific you are, the quicker you can arrive at a solution.

/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=500,utf8,shortname=mixed,flush)
/dev/sda3 on /media/disk-1 type ext4 (rw,nosuid,nodev,uhelper=hal)


Also, please post your /etc/fstab as muungwana suggested.

cat /etc/fstab

Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline abbydabs

  • Jr. Member
  • **
  • Posts: 14
Re: can't create a new folder in my second partition
« Reply #7 on: July 13, 2012, 09:21:48 PM »
I don't know how to make it any plainer.   As I stated in my above post it's a 20 gig drive that now has two partitions.  A 13 gig and a 5 gig.  It is a permanent drive.  The 5 gig is giving me the problem writing to.   


cat /etc/fstab results:

[curt@localhost ~]$ cat /etc/fstab
# Entry for /dev/sda1 :
UUID=0ddf43b4-f230-4d10-bd3d-d5c8b5529b7c / ext4 defaults 1 1
none /proc proc defaults 0 0
# Entry for /dev/sda5 :
UUID=1708ac6d-91d8-4770-8f6f-60a9db1db4cd swap swap defaults 0 0
none /dev/pts devpts defaults 0 0
[curt@localhost ~]$

Online muungwana

  • Hero Member
  • *****
  • Posts: 6254
Re: can't create a new folder in my second partition
« Reply #8 on: July 13, 2012, 09:33:18 PM »

you have two drives,"/dev/sdb1" and "/dev/sdb3"

The only thing we know is that one is 5GB and the other is 13GB and you can not write in one of them.

Which one you can not write to is something you have not said.

I assume the one you can not write to is "/dev/sdb1".

This one has a vfat file system and is mounted with a user with id of 500 as the owner.

how many user accounts do you have in your computer? The first one you have created( the one with uid=500) should be able to read and write to it
.. 3 things are certain in life : death, taxes and software bloat ..
.. tell me something i don't know, something i can use as i struggle to reason with the world around me ..

Offline djohnston

  • PCLinuxOS Tester
  • Hero Member
  • *******
  • Posts: 6227
  • I don't do Windows
Re: can't create a new folder in my second partition
« Reply #9 on: July 13, 2012, 09:41:15 PM »
The 5 gig is giving me the problem writing to.  

It still doesn't answer the previous question.

And which of these two is it?

/dev/sdb1 on /media/disk type vfat (rw,nosuid,nodev,uhelper=hal,uid=500,utf8,shortname=mixed,flush)
/dev/sda3 on /media/disk-1 type ext4 (rw,nosuid,nodev,uhelper=hal)


And the fstab you posted only shows your root partition,

# Entry for /dev/sda1 :
UUID=0ddf43b4-f230-4d10-bd3d-d5c8b5529b7c / ext4 defaults 1 1


and your swap partition:

# Entry for /dev/sda5 :
UUID=1708ac6d-91d8-4770-8f6f-60a9db1db4cd swap swap defaults 0 0


I am guessing you are referring to /dev/sda3 mounted as /media/disk-1 because /dev/sdb1 is a FAT partition and includes uid=500, which would normally give your first user access to the partition.

I am simply asking you which partition you are referring to. "The 5 gig is giving me the problem writing to." does not identify which of the listed partitions that is.

EDIT: muungwana has already said what I've been asking all along. Thank you, muungwana.
Bare metal                           VBox
AMD Athlon 7750 Dual-Core    Single core
4GiB RAM                              1GiB RAM
nVidia GeForce FX 5200          64MB video
LXDE 32bit                            KDE 64bit

Registered Linux User #416378

Offline abbydabs

  • Jr. Member
  • **
  • Posts: 14
Re: can't create a new folder in my second partition
« Reply #10 on: July 13, 2012, 10:41:08 PM »
I'm sorry but this is tough for me trying to follow what you guys are referring to as this is my first try at Linux.  I had to look up as to what /dev/sdb1 and /dev/sda3 were.   They are equal to "C, D, E" partitions in Windows.  So I installed a program using synaptic called "Gparted".   It showed those partitions (sdb1 and sda3) plus some other things I'll have to learn.  It says the file system is ext4 for both partitions.  It shows the 5 gig partition as /dev/sda3 the one I can't write to.  I captured a screenshot of the Gparted window but I don't see how to attach it here.    Guys, I don't know what else to say.  I took a 20 gig drive and created two partitions on it.  A 13 gig and a 5 gig. I installed PCLOS on the 13 gig partition.  So, let's just call it "quits".  You don't have to reply anymore.  I probably didn't partition it right and it's confusing you and I don't know enough to make it clear.  Thanks for trying.  I'll use that 250 gig drive for Win 8.

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: can't create a new folder in my second partition
« Reply #11 on: July 13, 2012, 11:37:07 PM »
Post the results of this command:     
Quote
df
     

Offline abbydabs

  • Jr. Member
  • **
  • Posts: 14
Re: can't create a new folder in my second partition
« Reply #12 on: July 13, 2012, 11:52:16 PM »
The results of df:

curt@localhost ~]$ df
Filesystem            Size  Used Avail Use% Mounted on
/dev/sda1              14G  3.0G  9.4G  25% /
/dev/sda3             4.8G  1.4G  3.5G  28% /media/disk-1
[curt@localhost ~]$

Offline Neal ManBear

  • Administrator
  • Super Villain
  • *****
  • Posts: 15847
  • LXDE! Coffee, Bacon and Cheesecake!
Re: can't create a new folder in my second partition
« Reply #13 on: July 14, 2012, 12:17:05 AM »
So then /dev/sda3 is your 5GB partition.     

Open your file manager > navigate to / (in dolphin, click Root in the left side menu / in PCManFM click the toolbar up-arrow twice) > look for /dev/sda3 > right-click the folder > choose Properties > in the Properties pane, click the Permissions tab > under Ownership (dolphin) who is User? who is group? >> (PCManFM) top 2 lines - Owner? Group?     

This is all gui. It should be easy to do.     
Not being a windows user, I can't tell you if there is something similar in windows. So far as I know, windows has no exact equivalents to Linux tools/apps.     

Offline Just17

  • PCLinuxOS Tester
  • Super Villain
  • *******
  • Posts: 10686
  • MLUs Forever!
Re: can't create a new folder in my second partition
« Reply #14 on: July 14, 2012, 02:12:19 AM »
Small correction if I read this properly .....  not that it matters now ....

Quote
look for /dev/sda3

In the filesystem it will show at its mount point ........

/dev/sda3    4.8G  1.4G  3.5G  28% /media/disk-1

So it is there the Properties will be found.

Those properties can be changed by the administrator (root) to allow the user full access.

MLUs rule the roost!

Linux XPS 3.4.38-pclos1.bfs  64 bit
Intel Core2 Quad CPU Q9450 @ 2.66GHz
4 GB RAM
MCP51 High Def Audio
GeForce GTX 550 Ti
PHILIPS  ‎DVD+-RW DVD8701
‎Logitech ‎BT Mini-Receiver
Afatech DTT