You are not logged in.

#1 2014-05-30 15:58:09

tfcata
Member
Registered: 2013-02-04
Posts: 25

[SOLVED]Permission issue on EXT3 partitions

I recently upgraded Windows in my dual boot system. Since this erased GRUB, I used Ubuntu's live CD to restore it. The plan was subsequently I can boot into arch and install the arch version of GRUB thus restore the system. I'm doing this because I don't have an arch installation CD at this moment.

However, although I was able to boot arch after installing Ubuntu's GRUB, I can't login into X. At first I thought this was related to .xinitrc so I dropped back to console and tried to edit it. Then Vim complaint that the disk was full. Here's where the strange things started, du -f shows that there is 0% available space on all my EXT3 partitions, however not all of the 1K-blocks are used.

Moreover, I cannot create or edit any file in my home partition as normal user, but as root I can still do it. I was able to create empty files by 'touch' command. And I was able to perform normal operations on my NTFS partitions as normal user. This looks like a permission issue but I can't figure out what went wrong.

So far I've looked into these places:

AppArmor is not running.
fstab remains untouched, same as before.
All partitions are mounted with 'defaults' option in fstab.
Kernel boot option seems ok, specifically UUID on the boot command line matches with real ones.
inodes are not used up.

Any ideas?

Last edited by tfcata (2014-06-12 01:36:04)

Offline

#2 2014-05-30 16:06:29

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [SOLVED]Permission issue on EXT3 partitions

If du is reporting a full partition you'll need to delete some content, no?  As root, change the premissions of /home/YOURUSER so your user can read/write to it.  You'll need to know your username and group.  Use `chown -R name:group /home/YOURUSER` for that.  Post the output of `df -h` and indicate which partition is causing the problems.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#3 2014-05-31 02:27:41

tfcata
Member
Registered: 2013-02-04
Posts: 25

Re: [SOLVED]Permission issue on EXT3 partitions

Here's the output, the problematic partitions are / and /home:

Filesystem      Size  Used Avail Use% Mounted on
/dev/sda3        15G   14G     0 100% /
dev             1.5G     0  1.5G   0% /dev
run             1.5G  508K  1.5G   1% /run
tmpfs           1.5G     0  1.5G   0% /dev/shm
tmpfs           1.5G     0  1.5G   0% /sys/fs/cgroup
tmpfs           1.5G  4.0K  1.5G   1% /tmp
/dev/sda2        12G   10G  1.1G  91% /media/xp
/dev/sda6        63G   60G     0 100% /home

The strange thing is that used space is less than the disk size, yet it reports the disk is used up.

The permission of my home folder is ok.

Last edited by tfcata (2014-05-31 02:28:12)

Offline

#4 2014-05-31 09:26:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,600
Website

Re: [SOLVED]Permission issue on EXT3 partitions

If it isn't a permissions issue, I recommend using a util like ncdu (as root) from a live environment to see why you're out of space.  Perhaps all inodes are used.  In any case, you need to free-up some space either by copying files out or deleting them.


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#5 2014-05-31 10:57:54

Head_on_a_Stick
Member
From: London
Registered: 2014-02-20
Posts: 7,763
Website

Re: [SOLVED]Permission issue on EXT3 partitions

tfcata wrote:

The strange thing is that used space is less than the disk size, yet it reports the disk is used up.

Maybe the filesystem size has been reduced & it's not filling the partition...
Have a look at the resize2fs command; use something like:

# resize2fs /dev/sda3 15G

&

# resize2fs /dev/sda6 63G

See man resize2fs for more wink

Offline

#6 2014-06-12 01:35:35

tfcata
Member
Registered: 2013-02-04
Posts: 25

Re: [SOLVED]Permission issue on EXT3 partitions

Sorry for the delayed answer.

It turned out that the file system quota was reached. tune2fs did the trick.

I'll mark this as solved.

Offline

Board footer

Powered by FluxBB