You are not logged in.

#1 2009-02-15 23:43:34

Trevorofmolino
Member
Registered: 2008-07-24
Posts: 37

root partition full (solved)

My root partition is full, but it contains a lot of /home and its directories and files. I set aside a larger partition for /home so that documents,music,photos and general linux programs (not Arch) would be put there so that root should not fill up. Why does /home and some of its files go on root? and can I move themwithout messing things up (like having (ARCH) know where they are without having to link them manually? My root is sdb3 and home is sdb4. I gave root 9.7G and home 136G.

Last edited by Trevorofmolino (2009-02-17 12:04:31)

Offline

#2 2009-02-15 23:58:25

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: root partition full (solved)

Have you actually mounted sdb4 as /home on  your system?
Are you sure that it's /home that's filling up and not /usr and /var?

Post your fstab (/etc/fstab) if you're not sure that sdb4 is mounted as /home.
You can check the size of each directory in / by running "du -hs /*" as root.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#3 2009-02-15 23:59:03

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

Re: root partition full (solved)

you must have not mounted the correct partition as home during the installation process.

EDIT : Too late

Last edited by Inxsible (2009-02-15 23:59:22)


Forum Rules

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

Offline

#4 2009-02-16 02:11:38

Trevorofmolino
Member
Registered: 2008-07-24
Posts: 37

Re: root partition full (solved)

For /etc/sfatb I have
none                   /dev/pts      devpts    defaults            0      0
none                   /dev/shm      tmpfs     defaults            0      0


/dev/sr0 /mnt/cdrom   iso9660   ro,user,noauto,unhide   0      0
/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
/dev/sdb1 /boot ext2 defaults 0 1
/dev/sdb2 swap swap defaults 0 0
/dev/sdb3 / ext3 defaults 0 1
/dev/sdb4 /home ext3 defaults 0 1
/dev/sda1 /home/svr ext2 defaults 0 1
/dev/sda2 /home/group linux defaults 0 1
#/dev/sda3 /backup linux defaults 0 1
/dev/sdc1 /mnt/usb auto noauto,users 0 0
/dev/sdd1 /mnt/usb auto noauto,users 0 0
I had to comment out sda3 because it has a short read reading journal superblock I will work on that after I get the main harddrive root partition and files taken care of.
Running du -hs /* I get
/boot 8.2M
/etc 36M
/home 24G
/lib 79M
/opt 652M
/root 1.1G
/sbin 14M
/usr 3.9G
/var 3.7G  all the rest are less than 1M each

Offline

#5 2009-02-16 02:47:45

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: root partition full (solved)

  9.7 GB (sdb3)
- 1.1 GB (/root)
- 3.9 GB (/usr)
- 3.7 GB (/var)
- 652 MB (/opt)
--------
  372 MB

/home has nothing to do with it. You've underestimated how much space you need for /root & etc.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#6 2009-02-16 03:20:01

fukawi2
Ex-Administratorino
From: .vic.au
Registered: 2007-09-28
Posts: 6,237
Website

Re: root partition full (solved)

/root is very big. And I'd almost put money on it that /var is so big because of your pacman cache (/var/cache/pacman). You can clean that out by running pacman -Sc and see how much that frees up. If you need more space after that, pacman -Scc will clear out everything from the cache.

Offline

#7 2009-02-16 03:56:45

Trevorofmolino
Member
Registered: 2008-07-24
Posts: 37

Re: root partition full (solved)

My sda drrive is 160G. If I repartition it to boot 40M,swap 5G, root 15G, var 10G and home the rest can I move the corresponding directories from one drive to the other? or will I have to reinstall everything and move the documents and other info from home to the other drive?  After everything is moved should I repartition the other drive or can I delete everyting from the partitions and rename them for backups?

Offline

#8 2009-02-16 04:12:54

Xyne
Forum Fellow
Registered: 2008-08-03
Posts: 6,965
Website

Re: root partition full (solved)

You should be able to copy everything from each partition with "cp -a", but you'll have to update your fstab (or at least double-check) to make sure that you set the right devices. Back everything up though just in case something goes wrong.

I would also recommend that you look up LVM in the wiki and on google. If you leave boot as a physical partition and then put your other partitions on LVM, you won't have to repartition the entire disk later if you need to resize partitions again.


My Arch Linux Stuff • Forum Etiquette • Community Ethos - Arch is not for everyone

Offline

#9 2009-02-16 17:56:41

Trevorofmolino
Member
Registered: 2008-07-24
Posts: 37

Re: root partition full (solved)

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


/dev/sr0 /mnt/cdrom   iso9660   ro,user,noauto,unhide   0      0
/dev/dvd /mnt/dvd   udf   ro,user,noauto,unhide   0      0
#/dev/sdb1 /boot ext2 defaults 0 1
#/dev/sdb2 swap swap defaults 0 0
#/dev/sdb3 / ext3 defaults 0 1
/dev/sdb4 /home ext3 defaults 0 1
/dev/sda1 /boot ext2 defaults 0 1
/dev/sda2  swap swap defaults 0 1
/dev/sda3  /var ext3 defaults 0 1
/dev/sda4 /   ext3 defaults 0 1
/dev/sdc1 /mnt/usb auto noauto,users 0 0
/dev/sdd1 /mnt/usb auto noauto,users 0 0

I used the install disk to auto format sda using sda1 for boot with 50M, sda2 for swap with 4g, sda3 for var with 15g, and sda4 for / with the rest abt 140G. When I check with fdisk -l /dev/sda I  see that it matches. But when I check with df -h I get that
sda4 is 9.7G with 100% used
swap is 1014M
sdb4 is 136G  /home
sda1 is 54M with 894K used as /boot
sda3 is 15G with 281M used as /var
I have not copied anything over to sda after auto format so I dont know how it booted or why it doesn't match how I partitioned it.

Offline

#10 2009-02-16 18:03:01

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

Re: root partition full (solved)

Off topic, but still relevant -- Please use the code tags to display your outputs and files etc.  Easier reading for people trying to help you out.


Forum Rules

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

Offline

Board footer

Powered by FluxBB