Find the answer to your Linux question:
Results 1 to 3 of 3
Hi, A couple of years ago I installed Redhat Enterprise 3 on one of my servers. In my haste I didn't properly partition both Hard Drives and only properly partitioned ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Apr 2003
    Posts
    2

    Repartition Hard Drive?


    Hi,

    A couple of years ago I installed Redhat Enterprise 3 on one of my servers. In my haste I didn't properly partition both Hard Drives and only properly partitioned one of them. Thus now I have

    /dev/sdb1 478711768 137858256 316536328 31% /
    /dev/sda1 101089 15346 80524 17% /boot

    Where /dev/sda1 is actually a 80 GB hard drive. Is there anyway I can safely and easily repartition the unpartitioned space without causing a huge mess? I have a very important Oracle database on /dev/sdb1 and thus I want to be able to back it up on the second disk. Anyway is there any simple way I can create a partition on that drive?

    Thanks in advance for any help!

  2. #2
    Linux Guru
    Join Date
    Oct 2007
    Location
    Tucson AZ
    Posts
    3,190
    You should be able to resize (shrink) sda1. After shrinking sda1, you can then create new partitions. Easiest way to do it would be to download GParted or Parted Magic CD and use it. Without more specific information such as the actual fdisk output there's not much more specific we can say.

  3. #3
    Just Joined!
    Join Date
    Apr 2003
    Posts
    2
    Hi,

    [root@gooch root]# df -k
    Filesystem 1K-blocks Used Available Use% Mounted on
    /dev/sdb1 478711768 138254240 316140344 31% /
    /dev/sda1 101089 15346 80524 17% /boot
    none 2045756 0 2045756 0% /dev/shm
    [root@gooch root]# fdisk -l /dev/sda1

    Disk /dev/sda1: 106 MB, 106896384 bytes
    255 heads, 63 sectors/track, 12 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Disk /dev/sda1 doesn't contain a valid partition table
    [root@gooch root]# fdisk -l /dev/sdb1

    Disk /dev/sdb1: 498.0 GB, 498015995904 bytes
    255 heads, 63 sectors/track, 60546 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Disk /dev/sdb1 doesn't contain a valid partition table

    Thanks for the info! I will take a look at your suggestions...

Posting Permissions

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