Avatar of nobleit
nobleit
 asked on

memory

I don't know much about partition.

Here is the situation..

in my windows 7 os

i have vmware

in that I have linux 6

when I type the following command
I am getting the output like this
what does it means..
in simple words.


~]# fdisk -l

Disk /dev/hda: 60.0 GB, 60022480896 bytes
255 heads, 63 sectors/track, 7297 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hda1   *           1        1567    12586896    c  W95 FAT32 (LBA)
/dev/hda2            1568        1632      522112+  83  Linux
/dev/hda3            1633        2154     4192965   82  Linux swap
/dev/hda4            2155        7297    41311147+   5  Extended
/dev/hda5            2155        7297    41311116   83  Linux

Disk /dev/hdb: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/hdb1   *           1        1217     9775521   83  Linux
/dev/hdb2            1218        6081    39070080   83  
/dev/hdb3            6082       10945    39070080   83  Linux
/dev/hdb4           10946       14946    32138032+  83  Linux

Disk /dev/sda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+  83  Linux
/dev/sda3            4866        7905    24418800   83  Linux
/dev/sda4            7906       14946    32146065+  83  Linux

 Is this purely about linux is this related with windows..
Linux

Avatar of undefined
Last Comment
nobleit

8/22/2022 - Mon
mcolomera

The fdisk command show Disk and partitions status.

you have 3 hard disk,

hda and  hdb:  ATA disk
sda:  SATA disk

Linux partitions are data partition.
Swap partition is memory on disk (Virtual RAM).

More info: http://linux.about.com/od/commands/l/blcmdl8_fdisk.htm

bye
nobleit

ASKER
Could I ask you this which one is partitioned and which one is not partitioned..
mcolomera

the 3 disk are patitioned.

disk 1: /dev/hda
-  Windows, swap and linux partitions

disk 2: /dev/hda
disk 3: /dev/hda
- only linux partitios

More info about partitions in:
http://en.wikipedia.org/wiki/Disk_partitioning

Also, you can use GParted app to review you disks system.
http://gparted.sourceforge.net/

Experts Exchange has (a) saved my job multiple times, (b) saved me hours, days, and even weeks of work, and often (c) makes me look like a superhero! This place is MAGIC!
Walt Forbes
wesly_chen

Check the cylinders number for each disk and compare with the last "End".
There is no free space on all three disks for extra partition.

------
Disk /dev/sda: 122.9 GB, 122942324736 bytes
255 heads, 63 sectors/track, 14946 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1               1        3648    29302528+  83  Linux
/dev/sda3            4866        7905    24418800   83  Linux
/dev/sda4            7906       14946    32146065+  83  Linux
---------
Cylinders no: 14946
and the /dev/sda4 is End at "14946". so no more free disk space for the extra partition.
wesly_chen

Sorry I was wrong for /dev/sda, there are some space between 3649-4865.

As root, do
fdisk /dev/sda
n    (Add New partition)
p    (Primary partition)
2 <Enter>    (press "2" for default partition number)
3647 <Enter>    (press "3647" for default First cylinder)
4865 <Enter>    (press "4865" for default Last cylinder or +100G)
w   (Write the change)
---------
Then you have /dev/sda2 without any filesystem. Use it for the asm.
nobleit

ASKER
Sorry,

Here is what actually see in my system..

[root@rac4 ~]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1300    10241437+  83  Linux
/dev/sda3            1301        1810     4096575   82  Linux swap / Solaris
/dev/sda4            1811        5221    27398857+   5  Extended
/dev/sda5            1811        2320     4096543+  83  Linux
/dev/sda6            2321        5221    23302251   83  Linux
[root@rac4 ~]#

in this situtaion can I partition or can I use for asm what modification can we user for asm
Get an unlimited membership to EE for less than $4 a week.
Unlimited question asking, solutions, articles and more.
wesly_chen

Then the disk on your system doesn't have free space for extra partition.
Check the "Start" and "End" cylinder numbers, there is no gap in between.
5221 cylinders are all allocated/used.

From Vmware, add more disk to your Linux VM.
nobleit

ASKER
Could you please give me the command for that..
ASKER CERTIFIED SOLUTION
wesly_chen

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
nobleit

ASKER
can we do did this step only in a fresh machine or if oracle is already installed..
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23
wesly_chen

add disk from vmware can do on any kind of system
nobleit

ASKER
What about now
can you check is that ok to create asm now

[root@rac5 etc]# fdisk -l

Disk /dev/sda: 42.9 GB, 42949672960 bytes
255 heads, 63 sectors/track, 5221 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1          25      200781   83  Linux
/dev/sda2              26        1300    10241437+  83  Linux
/dev/sda3            1301        1810     4096575   82  Linux swap / Solaris
/dev/sda4            1811        5221    27398857+   5  Extended
/dev/sda5            1811        2320     4096543+  83  Linux
/dev/sda6            2321        5221    23302251   83  Linux

Disk /dev/sdb: 12.8 GB, 12884901888 bytes
255 heads, 63 sectors/track, 1566 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1        1566    12578863+  83  Linux
[root@rac5 etc]#