Help on repartitons
I am vert new to linux world
I have a Linux machine
MP Tue Apr 12 18:10:13 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux
I have 8 Hardidsks installed in the systems with 300GB each with RAID 5
When I df -h
/dev/sda1 1.7T 608G 956G 39% /
/dev/sda3 996M 610M 335M 65% /tmp
tmpfs 63G 0 63G 0% /dev/shm
in my etc/fstab looks like this:-
LABEL=/ / ext3 defaults,usrquota $
LABEL=/tmp /tmp ext3 defaults 1 2
tmpfs /dev/shm tmpfs defaults 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
sysfs /sys sysfs defaults 0 0
proc /proc proc defaults 0 0
/dev/sda2 /swap swap defaults 0 0
/tmp /var/tmp ext3 defaults,bind,noauto $
1) Why my swap partition not showing when i issue df -h command?
2) as you can see my /dev/sda1 is root ( / ) partition which is having a large size. I want to resize it and moved several important folders such as /home ; /etc; /var out of the root partitions to a newly created partitions. How should I do that?
(without losing any data)
Any advise will be greatly appreciated
From what I have read, the df command does not display swap information.
The best way to resize is obviously from a non-running system, a Live CD such Parted Magic or GParted. Shrink the large partition to give your self some space to work with.
I'm not familiar with RAID so you will have to wait for someone else to give you specific suggestions.
yep use gparted to resize your partitions