LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Cant make new folder or copy paste in my newly created partition (https://www.linuxquestions.org/questions/linux-newbie-8/cant-make-new-folder-or-copy-paste-in-my-newly-created-partition-869122/)

institopper 03-17-2011 04:27 AM

Cant make new folder or copy paste in my newly created partition
 
I just maked an ext4 partition by the help of gparted. Ubuntu is my only OS no dual boot. Using Ubuntu Maverick
The problem is partition must be open as root to do any work else it wont even allow me to open file,create folder,cut copy paste or anything.

hausmasta 03-17-2011 04:46 AM

Do directories on that partition have correct permissions that allow users other than root to read/write?

Soadyheid 03-17-2011 04:47 AM

Welcome to LQ!
Have you formatted and mounted your new partition? You will be unable to use it untill you have added it to your filesystem. You'll also have to add it to fstab to have it mounted each time you boot.

Play Bonny! :hattip:

institopper 03-17-2011 05:11 AM

tell me how
 
thanx frnds but plz tell how to do the aforementioned task
I had formatted it in ext4 filesystem and mounted it too.
Any user can mount it but problem lies as i mentioned above. tell me how to add to fstab

hausmasta 03-17-2011 06:03 AM

What's the output of
Code:

mount
? Is the partition listed?

institopper 03-17-2011 06:57 AM

output of mount
 
mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/rahul/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=rahul)
/dev/sda4 on /media/sda4 type ext4 (rw,noexec,nosuid,nodev)
/dev/sda3 on /media/sda3 type ext4 (rw,noexec,nosuid,nodev)

none on /proc/fs/vmblock/mountPoint type vmblock (rw)
/dev/sdc1 on /media/TARANJOT type vfat (rw,nosuid,nodev,uhelper=udisks,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush)

yep partitions are listed. i have written in bold that portion. i.e. sda3 and sda4

Inkit 03-17-2011 08:13 AM

Hi institopper,
The solution is actually quite simple. When you format a new partition, by default it is assigned to root as the owner. You will therefore have to change the permissions to allow other users to read and write.
Open terminal and type in "sudo nautilus" without the quotes. your system will ask for the admin password. type it in and a window will open. go to whichever partition you created newly. If you are not able to browse using the computer icon on top, go to filesystem > media and you should find your partition there. right click on it and click on permissions at the very bottom and another window should open. go to permissions and change the owner to your ID and close.
I don't know if I've been clear enough but you should be able to access your partition now. Just remember one thing. when you are in root be careful not to delete any files because if you do, and the file is a system required file you have just screwed your system.

institopper 03-17-2011 10:24 AM

Thanks
 
It worked like a charm
thanx!!

Inkit 03-17-2011 08:13 PM

Glad I could be of help. Just one thing though, could you edit your initial post and put solved in front of it. It'll tell others if you still have the problem or not.

Dahliar Ananda 07-13-2011 10:05 PM

Quote:

Originally Posted by Inkit (Post 4293779)
Hi institopper,
The solution is actually quite simple. When you format a new partition, by default it is assigned to root as the owner. You will therefore have to change the permissions to allow other users to read and write.
Open terminal and type in "sudo nautilus" without the quotes. your system will ask for the admin password. type it in and a window will open. go to whichever partition you created newly. If you are not able to browse using the computer icon on top, go to filesystem > media and you should find your partition there. right click on it and click on permissions at the very bottom and another window should open. go to permissions and change the owner to your ID and close.
I don't know if I've been clear enough but you should be able to access your partition now. Just remember one thing. when you are in root be careful not to delete any files because if you do, and the file is a system required file you have just screwed your system.

Thanks,it Works :)


All times are GMT -5. The time now is 08:10 PM.