[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 372
  • Last Modified:

Help please: Linux

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.
0
Simon336697
Asked:
Simon336697
  • 2
  • 2
3 Solutions
 
marxyCommented:
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

0
 
wesly_chenCommented:
>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.
0
 
Simon336697Author Commented:
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.

Simon
0
 
wesly_chenCommented:
> 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.
And
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?
0
 
Simon336697Author Commented:
Hi wes, marxy!

Wes.....do 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

Simon
0

Featured Post

VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now