You are not logged in.

#1 2011-06-23 20:16:01

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Free up space on root disk

Hi!

I have been trying to free up some space on my / partition. I have already used "xdiskusage" to see where the disk space went and I have seen that there is around 4.5Gb space on "permission denied" (although I have run xdiskusage as root user).

Does anybody know how can I free up these 4.5Gb space? Is it safe to free them up?

Thanks!

Offline

#2 2011-06-23 20:20:07

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

Re: Free up space on root disk

Use ncdu -x / as root to see where space is taken.
Use pacman -Qdt to see orphan packages
Use bleachbit (AUR) to recover some
Use cacheclean (AUR) to limit # of old packages
Use pacgraph -c | less to see which packages are largest disk users and ask yourself if you can do without them.  Pacgraph is in [community].


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

Offline

#3 2011-06-23 20:22:34

yungtrizzle
Member
Registered: 2011-04-24
Posts: 139

Re: Free up space on root disk

Pepito, that 4.5GB contains important system libraries, binaries, config files, and the kernel. It's the space a typical Linux install uses. The special permission are for the purpose of protecting an unsuspecting user from breaking the system. If you really want to clean up your disk, concentrate on your home directory.

Offline

#4 2011-06-23 20:46:54

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Thanks graysky!

Here the results:

1. Use ncdu -x / as root to see where space is taken. -> Apparently only 9.9Gb are used and the partition has 14Gb. If I make "df", it shows me only around 750Mb free. There are around 4.3Gb space "lost", just the amount that is shown by xdiskusage as "permission denied"
2. Use pacman -Qdt to see orphan packages -> Some packages are orphan. Can I delete them without any problems? Anyway, it will not give me the 4.3Gb back.
4. I have used pacgraph and I have seen that the largest package is around 300Mb. All of the "big ones" are in use.

My question: can I get the 4.3Gb back?

Thanks again for the quick answer!!!

Offline

#5 2011-06-23 20:49:25

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Free up space on root disk

Is you /var under your root partition? Try cleaning your cache.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#6 2011-06-23 20:50:24

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Hi yungtrizzle!

My home directory is in another partition. It doesn't affect my / partition. But if you say that there are important libraries, I will not try to free up that space.

My / partition is around 14Gb, I never thought it would get full. I work on KDE but I have no other Desktop installed and I only have installed the applications I use (no games, not very big applications). It's amazing how much disk space Linux needs!

Thanks for the info!

Offline

#7 2011-06-23 20:52:51

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Hi Inxsible,

My /var is under / partition, but it "only" takes around 650Mb. How can I clean it? (I already did pacman -Scc if you are referring to that).

Thanks again to you all, guys. You are amazing!!! So fast!!!

Offline

#8 2011-06-23 20:57:10

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

Re: Free up space on root disk

Please post the output of 'df -h'. What filesystem are you using?

Offline

#9 2011-06-23 21:02:53

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Here the output

[root@pedrito arch]# df -h
df: «devpts»: No existe el fichero o el directorio
df: «tmpfs»: No existe el fichero o el directorio
S.ficheros     Tamaño Usado  Disp Uso% Montado en
udev              10M     0   10M   0% /dev
run               10M  216K  9,8M   3% /run
/dev/sda6         15G   14G  798M  95% /
none            1009M   37M  972M   4% /dev/shm
/dev/sda2        304G  196G  109G  65% /media/system
/dev/sda4        102G   88G   14G  87% /media/windows_data
/dev/sdb1        246G  128G  107G  55% /media/Backup
/dev/sdb2        679G  370G  275G  58% /media/multimedia
/dev/sda7         34G   22G   11G  68% /home

the filesystem of / is ext3.

Thanks!

Offline

#10 2011-06-23 21:05:26

Inxsible
Forum Fellow
From: Chicago
Registered: 2008-06-09
Posts: 9,183

Re: Free up space on root disk

df: «devpts»: No existe el fichero o el directorio
df: «tmpfs»: No existe el fichero o el directorio

I do not understand Spanish but that don't sound right.


Forum Rules

There's no such thing as a stupid question, but there sure are a lot of inquisitive idiots !

Offline

#11 2011-06-23 21:07:34

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Sorry... it's spanish but anyway, here the translation...

[root@pedrito arch]# df -h
df: «devpts»: the file or folder doesn't exist
df: «tmpfs»: the file or folder doesn't exist
File system    Size Used  Avail Use% Mounted on
udev              10M     0   10M   0% /dev
run               10M  216K  9,8M   3% /run
/dev/sda6         15G   14G  798M  95% /
none            1009M   37M  972M   4% /dev/shm
/dev/sda2        304G  196G  109G  65% /media/system
/dev/sda4        102G   88G   14G  87% /media/windows_data
/dev/sdb1        246G  128G  107G  55% /media/Backup
/dev/sdb2        679G  370G  275G  58% /media/multimedia
/dev/sda7         34G   22G   11G  68% /home

Thanks again!

Offline

#12 2011-06-23 21:13:55

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

Re: Free up space on root disk

Please post your /etc/fstab.
You can use ncdu to (interactively) find where did your space go.

You can use 'LC_MESSAGES=C' to get the output in English:

LC_MESSAGES=C df -h

Last edited by karol (2011-06-23 21:16:38)

Offline

#13 2011-06-24 11:17:47

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

Re: Free up space on root disk

With regard to

df: «devpts»: the file or folder doesn't exist
df: «tmpfs»: the file or folder doesn't exist

you probably have in your /etc/fstab

# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0

while you should have (the first column changes)

devpts                 /dev/pts      devpts    defaults            0      0
shm                    /dev/shm      tmpfs     defaults            0      0

https://bugs.archlinux.org/task/24309#comment77114 (the last comment)

Offline

#14 2011-06-24 18:54:55

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Hi,

here my /etc/fstab

#
# /etc/fstab: static file system information
#
# <file system>        <dir>         <type>    <options>          <dump> <pass>
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0
none /proc/bus/usb usbfs auto,busgid=108,busmode=0775,devgid=108,devmode=0664 0 0

/dev/sda6              /           ext3    defaults,noatime,nodiratime 0 1

#/dev/cdrom             /media/cd   auto    ro,user,noauto,unhide   0      0
#/dev/dvd               /media/dvd  auto    ro,user,noauto,unhide   0      0
#/dev/fd0               /media/fl   auto    user,noauto             0      0

UUID=A2B26C77B26C51B9  /media/system ntfs-3g auto,uid=1000,gid=users,exec,umask=000 0 1
UUID=56366FC1366FA12B  /media/windows_data ntfs-3g auto,uid=1000,gid=users,exec,umask=000 0 1
#UUID=d22ffdb7-d7b0-4739-87a4-ff3140eb3cba /media/Backup ext3 defaults 0 2
/dev/sdb1             /media/Backup ext3 defaults 0 2
UUID=01f13285-f29a-461e-93fb-814829492935 /media/multimedia ext3 defaults 0 2
/dev/sda7              /home       ext3   defaults,noatime,nodiratime 0 2
/dev/sda5              swap        swap   defaults                  0      0


@karol: I am gonna change the lines with "none" and I will post the result.

Thanks to you all!

Offline

#15 2011-06-24 19:04:54

pepito_20110623
Member
Registered: 2011-06-23
Posts: 29

Re: Free up space on root disk

Hi again,

here the result of "df -h" after changing fstab.
[root@pedrito arch]# df -h
S.ficheros     Tamaño Usado  Disp Uso% Montado en
udev              10M     0   10M   0% /dev
run               10M  216K  9,8M   3% /run
/dev/sda6         15G   14G  860M  95% /
shm             1009M   25M  984M   3% /dev/shm
/dev/sda2        304G  196G  109G  65% /media/system
/dev/sda4        102G   88G   14G  87% /media/windows_data
/dev/sdb1        246G  128G  106G  55% /media/Backup
/dev/sdb2        679G  370G  275G  58% /media/multimedia
/dev/sda7         34G   22G   11G  68% /home

If I run xdiskusage, I still have 4,3Gb missing as "permission denied". Can I get this space back?
Thanks!

Offline

#16 2011-06-26 10:47:57

cahr_g
Member
Registered: 2009-09-24
Posts: 35

Re: Free up space on root disk

may it be inaccessible bad sectors?

Offline

Board footer

Powered by FluxBB