You are not logged in.
Pages: 1
Hello,
I had to reinstall arch and now I have no access to my partitions. No permission to do anything. Please help to fix this because it drives me crazy. I've never had this problem before.
Here is some info.
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x5bbb5bbb
Device Boot Start End Blocks Id System
/dev/sda1 2048 51202047 25600000 83 Linux
/dev/sda2 51202048 102402047 25600000 83 Linux
/dev/sda3 102402048 153602047 25600000 83 Linux
/dev/sda4 153602048 625141759 235769856 5 Extended
/dev/sda5 153604096 204804095 25600000 83 Linux
/dev/sda6 204806144 256006143 25600000 83 Linux
/dev/sda7 256008192 268296191 6144000 83 Linux
/dev/sda8 268298240 625141759 178421760 83 Linux
Disk /dev/sdb: 499.4 GB, 499405291520 bytes
255 heads, 63 sectors/track, 60715 cylinders, total 975400960 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000487a0Last edited by jmak (2012-07-08 18:02:48)
Offline
There's not really any info there that would let someone help you.
What do you try to do that you don't have permission for?
You're just jealous because the voices only talk to me.
Offline
and, it would be helpful if you tell us what the partitions are. we can't tell what the first partition is if we only knew its partition numbers and filesystem.
Last edited by altbdoor (2012-07-08 03:31:30)
Offline
More info here
[mak@(none) ~]$ ls -l /dev/sda8
brw-rw---- 1 root disk 8, 8 Jul 8 03:42 /dev/sda8
[mak@(none) ~]$ ls -l /dev/sda2
brw-rw---- 1 root disk 8, 2 Jul 8 03:42 /dev/sda2
[mak@(none) ~]$ ls -l /dev/sda3
brw-rw---- 1 root disk 8, 3 Jul 8 03:42 /dev/sda3
[mak@(none) ~]$ ls -l /dev/sda4
brw-rw---- 1 root disk 8, 4 Jul 8 03:42 /dev/sda4
[mak@(none) ~]$ ls -l /dev/sda5
brw-rw---- 1 root disk 8, 5 Jul 8 03:42 /dev/sda5
[mak@(none) ~]$ ls -l /dev/sda6
brw-rw---- 1 root disk 8, 6 Jul 8 03:42 /dev/sda6
[mak@(none) ~]$ ls -l /dev/sda7
brw-rw---- 1 root disk 8, 7 Jul 8 03:42 /dev/sda7
[mak@(none) ~]$ ls -l /dev/sda8
brw-rw---- 1 root disk 8, 8 Jul 8 03:42 /dev/sda8
[mak@(none) ~]$
[mak@(none) ~]$ df -T
Filesystem Type 1K-blocks Used Available Use% Mounted on
rootfs rootfs 25528224 4180412 20067812 18% /
dev devtmpfs 3022692 0 3022692 0% /dev
run tmpfs 3058608 360 3058248 1% /run
/dev/sda1 ext4 25528224 4180412 20067812 18% /
shm tmpfs 3058608 96 3058512 1% /dev/shm
tmpfs tmpfs 3058608 8 3058600 1% /tmp
/dev/sdb1 vfat 487461392 36832880 450628512 8% /run/media/mak/5AC5-7E5E
/dev/sr1 udf 681132 681132 0 100% /run/media/mak/WD SmartWare
/dev/sda8 ext3 175559988 131228 166507672 1% /run/media/mak/573d2111-3f8c-47b4-ac25-3b612f0fa2ef
/dev/sda6 ext4 25528224 506612 23741612 3% /run/media/mak/e6c2ce2a-98f8-4d0b-8a86-70edca304f59
/dev/sda5 ext4 25528224 506612 23741612 3% /run/media/mak/3541fd1a-23c2-48d3-8695-cd32342b6fbe
/dev/sda3 ext4 25528224 506612 23741612 3% /run/media/mak/b23dcb55-150b-4198-b271-d536fbd0ad8b
/dev/sda2 ext4 25528224 3024792 21223432 13% /run/media/mak/fb847112-73a0-4b2f-9720-abd24ee4aa9a
[mak@(none) ~]$ I had a disaster and I had to repartition my harddrive. I try to copy back my files that I backed up before on an external harddrive. When try to copy the files, I get the message that I have no perimission to write into those partitions. In other words, I can't restore my files because I have no permission to do that.
Let me know what additional info I should give you.
Offline
What files? Can you paste the exact errors?
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
What files? Can you paste the exact errors?
Files that I backed up earlier, graphic files, text files, pdf files, video files, all kinds.
This is the error message: “The folder "PDF_Files" cannot be copied because you do not have permissions to create it in the destination”.
http://img546.imageshack.us/img546/6348 … ssagev.jpg
Last edited by jmak (2012-07-08 04:52:32)
Offline
Try this command from any terminal
# mount Post the output.
Offline
Try this command from any terminal
# mountPost the output.
[root@(none) ~]# mount
proc on /proc type proc (rw,nosuid,nodev,noexec,relatime)
sys on /sys type sysfs (rw,nosuid,nodev,noexec,relatime)
dev on /dev type devtmpfs (rw,nosuid,relatime,size=3022692k,nr_inodes=755673,mode=755)
run on /run type tmpfs (rw,nosuid,nodev,relatime,mode=755)
/dev/sda1 on / type ext4 (rw,relatime,data=ordered)
devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
shm on /dev/shm type tmpfs (rw,nosuid,nodev,relatime)
tmpfs on /tmp type tmpfs (rw,nosuid,nodev,relatime)
binfmt on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,relatime)
gvfs-fuse-daemon on /home/mak/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000)
/dev/sr1 on /run/media/mak/WD SmartWare type udf (ro,nosuid,nodev,relatime,uid=1000,gid=1000,umask=77,iocharset=utf8,uhelper=udisks2)
/dev/sdb1 on /run/media/mak/5AC5-7E5E type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks2)
/dev/sda8 on /run/media/mak/573d2111-3f8c-47b4-ac25-3b612f0fa2ef type ext3 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda6 on /run/media/mak/e6c2ce2a-98f8-4d0b-8a86-70edca304f59 type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda5 on /run/media/mak/3541fd1a-23c2-48d3-8695-cd32342b6fbe type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda3 on /run/media/mak/b23dcb55-150b-4198-b271-d536fbd0ad8b type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
/dev/sda2 on /run/media/mak/fb847112-73a0-4b2f-9720-abd24ee4aa9a type ext4 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)
[root@(none) ~]# Last edited by jmak (2012-07-08 13:31:09)
Offline
Maybe, when reinstalled, your user had another ID. So you have the 'other' permissions.
If root user haven't problems you can try command 'chown' to test.
Last edited by Alber (2012-07-08 14:12:15)
Because not all of us are native English speakers, try no to use slang or abbreviations, thank you.
Offline
Why are you mounting the partitions under /run/media/? I'm not saying this is wrong - it just looks non-standard to me.
What's in fstab?
Where is /home? Can you copy to your home directory?
What are the permissions and ownership on the directory and file you are trying to copy from and to?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
I have an external usb drive that I only use with my desktop. I change distros often and that leads to problems with permissions. With some distros I can access the drive, others no. When I run into this problem, I do this
#chown -R john:john /path/to/folderI don't know if this is what you're looking for, but I hope it helps.
john
Offline
Why are you mounting the partitions under /run/media/? I'm not saying this is wrong - it just looks non-standard to me.
I haven't touched anything when intalled Arch it configured that way. I don't know why.
What's in fstab?
#
# /etc/fstab: static file system information
#
# <file system> <dir> <type> <options> <dump> <pass>
tmpfs /tmp tmpfs nodev,nosuid 0 0
/dev/sda1 / ext4 defaults 0 1
/dev/sda7 swap swap defaults 0 0Where is /home? Can you copy to your home directory?
What are the permissions and ownership on the directory and file you are trying to copy from and to?
My home directory is where the rest of the system. There is no separate home partition. And I can copy, paste, save into my home directory no problem. It is just the other partitions that don't let me copy, paste ,save or anything.
My previous post shows the pertmissions:
From:
/dev/sdb1 on /run/media/mak/5AC5-7E5E type vfat (rw,nosuid,nodev,relatime,uid=1000,gid=1000,fmask=0022,dmask=0077,codepage=cp437,iocharset=iso8859-1,shortname=mixed,showexec,utf8,errors=remount-ro,uhelper=udisks2)To:
/dev/sda8 on /run/media/mak/573d2111-3f8c-47b4-ac25-3b612f0fa2ef type ext3 (rw,nosuid,nodev,relatime,data=ordered,uhelper=udisks2)But, I can't create any folder or document in /dev/sda8 because those menu items grayed out.
Offline
Here is some info.
Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x5bbb5bbb Device Boot Start End Blocks Id System /dev/sda1 2048 51202047 25600000 83 Linux /dev/sda2 51202048 102402047 25600000 83 Linux /dev/sda3 102402048 153602047 25600000 83 Linux /dev/sda4 153602048 625141759 235769856 5 Extended /dev/sda5 153604096 204804095 25600000 83 Linux /dev/sda6 204806144 256006143 25600000 83 Linux /dev/sda7 256008192 268296191 6144000 83 Linux /dev/sda8 268298240 625141759 178421760 83 Linux Disk /dev/sdb: 499.4 GB, 499405291520 bytes 255 heads, 63 sectors/track, 60715 cylinders, total 975400960 sectors Units = sectors of 1 * 512 = 512 bytes Sector size (logical/physical): 512 bytes / 512 bytes I/O size (minimum/optimal): 512 bytes / 512 bytes Disk identifier: 0x000487a0
That's not the complete output of "sudo fdisk -l".
If you were asking about /dev/sdb, which so happens to have NTFS partitions, install ntfs-3g and reboot.
Because I'm seeing here that you're trying to copy from (or is it to?) the 500 GB drive (sdb, I'm guessing).
PS: Install an icon pack, ffs... Try the faenza-icon-theme from the AUR.
I have made a personal commitment not to reply in topics that start with a lowercase letter. Proper grammar and punctuation is a sign of respect, and if you do not show any, you will NOT receive any help (at least not from me).
Offline
I just found out that if I run nautilus as root, and I navigat to sda8, I can copy, save, create directory into sda8 without problem. It seems the ownership of partition sda8 is the problem.
Can anyone help me how to change the onwership of partition sda8 from root to user.
Thanks.
Offline
When I installed Arch last November, the installation included configuring the system by editing various files, including fstab. Did you skip this step? Your fstab looks like the very minimal version the installer presents you with for editing. You then add whatever partitions etc. you want the system to know about by default and make any changes to the default options you want.
You've given the mount options for the partitions but that's not the same as the ownership/permissions on the folders you are copying from and to. I can't tell what the ownership and permissions are even for the root of /dev/sda8. Presumably this depends on how udisks2 is configured?
What do
ls -l /run/media/mak/5AC5-7E5E
ls -l /run/media/mak/573d2111-3f8c-47b4-ac25-3b612f0fa2ef
idgive?
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Permissions and ownership in an ext{2,3,4} partition is set per file and directory. Read this: http://www.tuxfiles.org/linuxhelp/filepermissions.html
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
When I installed Arch last November, the installation included configuring the system by editing various files, including fstab. Did you skip this step? Your fstab looks like the very minimal version the installer presents you with for editing. You then add whatever partitions etc. you want the system to know about by default and make any changes to the default options you want.
You've given the mount options for the partitions but that's not the same as the ownership/permissions on the folders you are copying from and to. I can't tell what the ownership and permissions are even for the root of /dev/sda8. Presumably this depends on how udisks2 is configured?
What do
ls -l /run/media/mak/5AC5-7E5E ls -l /run/media/mak/573d2111-3f8c-47b4-ac25-3b612f0fa2ef idgive?
This is the output:
[mak@(none) ~]$ ls -l /run/media/mak/5AC5-7E5E
total 32
drwx------ 26 mak mak 16384 Jul 8 04:10 computer_harddrive
drwx------ 7 mak mak 16384 Jun 30 2011 magyarorszag
[mak@(none) ~]$ ls -l /run/media/mak/7428754b-c730-4d54-890d-afacb63e96f0
total 20
drwx------ 2 root root 16384 Jul 8 10:42 lost+found
drwxr-xr-x 2 root root 4096 Jul 8 12:31 test
[mak@(none) ~]$ id
uid=1000(mak) gid=1000(mak) groups=1000(mak),92(audio),95(storage)
[mak@(none) ~]$ Indeed, I skipped the fstab configuration step, as you guessed. Thanks for calling my attention to the importance of that step.
Last edited by jmak (2012-07-08 17:05:31)
Offline
So why not just make a directory and chown it appropriately? You'd need to do that as root but then you could copy everything as your normal user.
More generally, you really need to read up on this stuff. Ownership and permissions are pretty basic and are going to cause you lots of unnecessary headaches if you don't understand them.
In addition to the link fsckd provided, take a look at:
https://wiki.archlinux.org/index.php/Users_and_Groups (users, groups, ownership, permissions etc.)
https://wiki.archlinux.org/index.php/Fstab (fstab configuration and options)
If you didn't follow the beginners' guide when installing, I strongly suggest working through that as a first step:
https://wiki.archlinux.org/index.php/Beginners%27_Guide
You'll end up getting much more frustrated - and spending a lot more time and energy - trying to do things with Linux if you don't get to grips with some of the basics than necessary.
CLI Paste | How To Ask Questions
Arch Linux | x86_64 | GPT | EFI boot | refind | stub loader | systemd | LVM2 on LUKS
Lenovo x270 | Intel(R) Core(TM) i5-7200U CPU @ 2.50GHz | Intel Wireless 8265/8275 | US keyboard w/ Euro | 512G NVMe INTEL SSDPEKKF512G7L
Offline
Thanks cfr and others who helped with their very instructive advises and with the good links.
I've created a new directory as cfr mentioned, with the appropriate user permissions and now it works. I'm already copying my backup files back to the harddrive.
Offline
Pages: 1