Non-Destructive Repartitioning redhat enterprise 3

Posted on 2005-04-29
Last Modified: 2011-09-20
As the title says I need to repartition my rhe3 system.  I have SSH access and am kinda new at this.  If somebody can give me a step by step that would be great.  Currently the structure looks like the following...

                     Total                  Used

/dev/sda9       22 908.27 MB                         2 565.49 MB

/dev/sda8       493.75 MB                          437.67 MB
/dev/sda2            12 129.60 MB                     123.28 MB  

As you can see sda9 has tons of space and probably won't grow much beyond what it is, so I would like to scale down sda9 tp about 4 gigs, sda8 to 1 gig and the rest to sda2.  If anybody can help me do this I would be very thankful.

I have been all over then net and I ready alot about that it can be done just not how.  Thanks for any help.

Question by:InnerChild
    LVL 38

    Expert Comment

    > I have SSH access
    You can not do non-destructive repartition or partition resizing through remote login.
    You need to be in front of that machine and boot into single user mode to do it.

    But you can do symbolic link from sda2 and sda8 to sda9.
    Say /dev/sda9 is mount as /data8.
    mkdir /data8/4sda2   (for sda2)
    mkdir /data8/4sda8
    ln -s /data8/4sda2   /path-under-sda2
    ln -s /data8/4sda8   /path-under-sda8

    Otherwise, you need to partition your disk with LVM first, which allow you to resize the filesysterm online.
    LVL 2

    Author Comment

    I hope you don't mind answsering a few questions for me, I am new but learning.  I don't know what symbolic linking is.  Is there any benefit or disadvantage to using it?  Also is there a way to use LVM without destroying the data on the drive?  The way I am reading this I don't think so but if you could give me a yes or no it would help.


    LVL 2

    Author Comment

    I also have been reading a applications calls FIPS.  Would that be of any help?
    LVL 38

    Accepted Solution

    FIPS need to boot from floppy or CD. You can not do it from remote login.
    As I mentioned before, from remote login, no, so far you can not do it.
    Most of repartition software require you to boot from either other media or single user mode, which you need to
    be in front of machine, unless you have remote KVM terminal.

    >  there a way to use LVM without destroying the data on the drive?
    For more details about LVM, you can check:

    Symbolic is similar to "shortcut" in M$ Windows.
    So your actual data is on some other partition but you can see it from your directory/partition.
    LVL 2

    Author Comment

    Alright thatnks for all the good info, can I can get in front of the computer but was hopeing that I could do it remotly.  Can you help with the process for resizing for that?  As before step by step if it can be done.



    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Better Security Awareness With Threat Intelligence

    See how one of the leading financial services organizations uses Recorded Future as part of a holistic threat intelligence program to promote security awareness and proactively and efficiently identify threats.

    Network Interface Card (NIC) bonding, also known as link aggregation, NIC teaming and trunking, is an important concept to understand and implement in any environment where high availability is of concern. Using this feature, a server administrator …
    It’s 2016. Password authentication should be dead — or at least close to dying. But, unfortunately, it has not traversed Quagga stage yet. Using password authentication is like laundering hotel guest linens with a washboard — it’s Passé.
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Connecting to an Amazon Linux EC2 Instance from Windows Using PuTTY.

    779 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

    10 Experts available now in Live!

    Get 1:1 Help Now