Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
My partition for Linux is running out of space. I'm trying to format the free space left on my hard drive for the ext3 filesystem. I currently am using hda1 ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45

    create partition and format for ext3


    My partition for Linux is running out of space. I'm trying to format the free space left on my hard drive for the ext3 filesystem. I currently am using hda1 to boot, and hda5 is my swap partition. I used cfdisk to create another partition, but I couldn't find the option to format it as ext3. When I do fdisk -l, I get hda1, hda2, hda3 and hda5. Which one is the one I just created? Please help!!

    mr.popper

  2. #2
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45
    forgot to mention that I formatted hda3 as a primary partition type, and df only displays /dev/hda1.

  3. #3
    Linux Newbie
    Join Date
    Jul 2004
    Location
    Oklahoma City, OK
    Posts
    232
    df only shows mounted partitions.
    cfdisk only creates partitions and defines partition types. It won't create a filesystem on the partition.
    ext3 file system is ext2 with journaling. To create ext3 file system on your partition, you need to enter the following at a root prompt:
    Code:
    mke2fs -j /dev/hda3
    You'll then need to decide where you want to mount the partition and add the partition to /etc/fstab.
    OH NOOOOO!!!!!! You did it the way I said?

  4. $spacer_open
    $spacer_close
  5. #4
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45
    thanks, this works. HOwever, there is still an hda2, what would that be? It's a small partition; I didn't have this before I created another partition with cfdisk.

  6. #5
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    Quote Originally Posted by mr.popper
    thanks, this works. HOwever, there is still an hda2, what would that be? It's a small partition; I didn't have this before I created another partition with cfdisk.
    The output of
    Code:
    fdisk -l
    should tell you what filesystem is in hda2.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  7. #6
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45
    fdisk -l says that hda2 is extended. cfdisk doesn't see it. Can I get rid of hda2 and just add its space onto hda3?

  8. #7
    Linux Guru sdousley's Avatar
    Join Date
    Feb 2004
    Posts
    1,790
    ok, if it's extended, u may hav hda5 or greater. If u have any hda5 or more, it's more than likely to be within hda2 if it's extended.

    Could you post the output of fdisk -l maybe i can say what's going on.
    "I am not an alcoholic, alcoholics go to meetings"
    Registered Linux user = #372327

  9. #8
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45
    root@slackware:/var/www/htdocs# fdisk -l

    Disk /dev/hda: 20.0 GB, 20000000000 bytes
    255 heads, 63 sectors/track, 2431 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes

    Device Boot Start End Blocks Id System
    /dev/hda1 * 1 1094 8787523+ 83 Linux
    /dev/hda2 1095 1187 747022+ 5 Extended
    /dev/hda3 1188 2431 9992430 83 Linux
    /dev/hda5 1095 1187 746991 82 Linux swap

  10. #9
    Linux Enthusiast puntmuts's Avatar
    Join Date
    Dec 2004
    Location
    Republic Banana
    Posts
    562
    Quote Originally Posted by mr.popper
    root@slackware:/var/www/htdocs# fdisk -l
    Code:
    Disk /dev/hda: 20.0 GB, 20000000000 bytes
    255 heads, 63 sectors/track, 2431 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    
       Device Boot      Start         End      Blocks   Id  System
    /dev/hda1   *           1        1094     8787523+  83  Linux
    /dev/hda2            1095        1187      747022+   5  Extended
    /dev/hda3            1188        2431     9992430   83  Linux
    /dev/hda5            1095        1187      746991   82  Linux swap
    Look at the id and the start and the end of hda2 and compare it with hda5. You'll see they are the same except for the id. hda2 is the partition holding your extended partitions and shouldn't and can't be accessed directly. It could have multiple partitions as well.

  11. #10
    Just Joined!
    Join Date
    Mar 2005
    Posts
    45
    thanks so much

Page 1 of 2 1 2 LastLast

Posting Permissions

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