how do I resize partition

Posted on 2007-09-29
Last Modified: 2013-12-16
Hi all,
I need a tool to resize linux partition that installed on it fedora core 6  (100 gb)
so that I can install centos 5 also on it
please guide me what to do and where to go to make sure my data are safe during and after the operation and get the two distributions working together
best regards
Question by:shang3000
    LVL 38

    Accepted Solution

    Please post the result of the following commands (run as root) so experts here have more information to help you.
    fdisk -l
    cat /etc/fstab
    df -hl

    Author Comment

    Hi wesly_chen,
    thanks for reply

    here is the results of the commands you want

    [root@localhost ~]# fdisk -l

    Disk /dev/sda: 160.0 GB, 160041885696 bytes
    255 heads, 63 sectors/track, 19457 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

       Device Boot      Start         End      Blocks   Id  System
    /dev/sda1   *           1        3824    30716248+   7  HPFS/NTFS
    /dev/sda2            3825       19456   125564040    f  W95 Ext'd (LBA)
    /dev/sda5            3825       11640    62781988+   7  HPFS/NTFS
    /dev/sda6           11641       11653      104391   83  Linux
    /dev/sda7           11654       19456    62677566   8e  Linux LVM
    [root@localhost ~]# cat /etc/fstab
    /dev/VolGroup00/LogVol00 /                       ext3    rw,acl        1 1
    LABEL=/boot             /boot                   ext3    defaults        1 2
    devpts                  /dev/pts                devpts  gid=5,mode=620  0 0
    tmpfs                   /dev/shm                tmpfs   defaults        0 0
    proc                    /proc                   proc    defaults        0 0
    sysfs                   /sys                    sysfs   defaults        0 0
    /dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
    [root@localhost ~]# df -hl
    Filesystem            Size  Used Avail Use% Mounted on
                           57G   12G   42G  22% /
    /dev/sda6              99M   12M   83M  13% /boot
    tmpfs                 411M     0  411M   0% /dev/shm
    [root@localhost ~]# pvscan
      PV /dev/sda7   VG VolGroup00   lvm2 [59.75 GB / 32.00 MB free]
      Total: 1 [59.75 GB] / in use: 1 [59.75 GB] / in no VG: 0 [0   ]
    [root@localhost ~]# vgscan
      Reading all physical volumes.  This may take a while...
      Found volume group "VolGroup00" using metadata type lvm2
    [root@localhost ~]# lvscan
      ACTIVE            '/dev/VolGroup00/LogVol00' [57.97 GB] inherit
      ACTIVE            '/dev/VolGroup00/LogVol01' [1.75 GB] inherit
    [root@localhost ~]#

    I hope you can help me
    best regards
    LVL 1

    Expert Comment

    for LVM partisions you should user lvreduce
    and you linux I think is on /dev/VolGroup00/LogVol00 /  
    but I dont know if is on the linux able do online like on HP OnlineJFS

    allternative solution could be
    backup this FS for ex. with TAR  lvremove and recreate smaller create FS on partition
    restore FSdata from the tar.file

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Join & Write a Comment

    If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
    Using 'screen' for session sharing, The Simple Edition Step 1: user starts session with command: screen Step 2: other user (logged in with same user account) connects with command: screen -x Done. Both users are connected to the same CLI sessio…
    Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    730 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    16 Experts available now in Live!

    Get 1:1 Help Now