Help please: Linux

Posted on 2005-04-08
Last Modified: 2010-04-20
Hi Linux gurus!

I have a major problem on my linux box and need your help.

I have logical free space of 100GB and need to format it Linux native eg.ext3 etc without reinstalling Linux. Please show me how to do this, if it is possible.

Thank you.
Question by:Simon336697
    LVL 8

    Assisted Solution

    First, define what is your partition of 100GB
    Linux has these specifications.

    First ide master is /dev/hda
    First ide slave is /dev/hdb
    Second ide master is /dev/hdc
    Second ide slave is /dev/hdd

    First sata is /dev/sda
    Then, sdb, sdc, etc....

    Then, define what is your partition number of 100GB (1,2,3,4, etc.)

    Then, for example if it is first SATA drive and 2 partiton the command of creation EXT3 would be

    /sbin/mkfs.ext3 /dev/sda2

    LVL 38

    Assisted Solution

    >free space of 100GB and need to format it Linux native eg.ext3 etc without reinstalling Linux
    Say it is on /dev/hda  (run "fdisk -l" and post here)
    As root, run
    fdisk /dev/hda
    p   (print the Partiton table)
    m  (show the Menu)
    n   (add New partition)
      extension partition
      start cylinder  (Enter to accept the default)
      end cynlinder  (Enter to accept the default)
    w  (Write the change)

    Say you create /dev/hda6 from the 100GB space.
    Then you run
    mkfs -t ext3  /dev/hda6
    to format it as ext3.
    LVL 1

    Author Comment

    Hi marxy and wes,

    Thanks guys for your great help!

    Please find below my fdisk -l


    Filesystem           1k-blocks      Used Available Use% Mounted on
    /dev/sda5              4031664    884048   2942820  24% /
    /dev/sda1                49558     11876     35123  26% /boot
    none                    135900         0    135900   0% /dev/shm
    /dev/sda3              5039616     33084   4750532   1% /vmconfigs
    /dev/sda2             20158332     32828  19101504   1% /vmimages
    /dev/cdrom              422144    422144         0 100% /mnt/cdrom

    Disk /dev/sda: 128 heads, 32 sectors, 70006 cylinders
    Units = cylinders of 4096 * 512 bytes

       Device Boot    Start       End    Blocks   Id  System
    /dev/sda1             1        25     51184   83  Linux
    /dev/sda2            26     10025  20480000   83  Linux
    /dev/sda3         10026     12525   5120000   83  Linux
    /dev/sda4         12526     70006 117721088    f  Win95 Ext'd (LBA)
    /dev/sda5         12526     14525   4095984   83  Linux
    /dev/sda6         14526     15275   1535984   82  Linux swap
    /dev/sda7         15276     15325    102384   fc  Unknown

    Disk /dev/sdb: 128 heads, 32 sectors, 210019 cylinders
    Units = cylinders of 4096 * 512 bytes

       Device Boot    Start       End    Blocks   Id  System
    /dev/sdb1   *         1    210019 430118896   fb  Unknown


    At the moment, I have around 100GB that I cant access, and I think it is /dev/sda5?

    Stupid question but, how do I know if anything is stored on this?
    If after satisfied that nothing is, then guys how do I make this accessible as a linux partition?

    Thanks a lot in advance.

    LVL 38

    Accepted Solution

    > I have around 100GB that I cant access, and I think it is /dev/sda5?
    > /dev/sdb1   *         1    210019 430118896   fb  Unknown
    It think your 100GB in on /dev/sda4 extened parttion since /dev/sda5 has only 2.9GB.
    You can use "fdisk /dev/sda" to add /dev/sda8 (as my previous post), it will be near 90-100 GB.
    Then use "mkfs -t ext3 /dev/sda8" to format it.
    mkdir  /100GB
    mount  /dev/sda8  /100GB
    echo "/dev/sda8  /100GB  ext3 defaults 0 0" >> /etc/fstab
    so it will be mount at boot up.

    Also I so you have another big device on /dev/sdb1. Is that another disk?
    LVL 1

    Author Comment

    Hi wes, marxy! you realize how much time you have saved me with your fantastic help?
    I really cant thank you (and marxy) enough.

    I will try out your advice.

    The big device on /dev/sdb1 Wes is a RAID 5 array (4 disks) and is one vmfs partition.
    I am running an ibm x346 with 6 hard disks, each with 140GB capacity.
    The O/S is VMWare ESX Server 2.5

    I think what happened is when I initially installed ESX, and when through the partitioning setup, I didnt format this partition.

    I imagine that by doing what you say with the mkfs command, this will do it for me.

    The thing about VMWare ESX is, it came up as free space (the 100GB logical drive) and the only option it gives you in the console for esx is to create a file system with VMwares native file system of VMFS (not ext3, etc) only.

    So was my reason for posting.

    Thanks again so much


    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Join & Write a Comment

    Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
    If you use Debian 6 Squeeze and you are tired of looking at the childish graphical GDM login screen that is used by default, here's an easy way to change it. If you've already tried to change it you've probably discovered that none of the old met…
    Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
    Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.

    745 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