Find the answer to your Linux question:
Results 1 to 3 of 3
Hi all 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 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Aug 2011
    Posts
    1

    Help on repartitons


    Hi all
    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 $


    Questions :
    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

    Thanks

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    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.

  3. #3
    Just Joined!
    Join Date
    Aug 2011
    Posts
    35
    yep use gparted to resize your partitions

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •