Link to home
Get AccessLog in
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..
Avatar of mcolomera
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
Avatar of nobleit

ASKER

Could I ask you this which one is partitioned and which one is not partitioned..
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/

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.
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.
Avatar of 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
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.
Avatar of nobleit

ASKER

Could you please give me the command for that..
ASKER CERTIFIED SOLUTION
Avatar of wesly_chen
wesly_chen
Flag of United States of America image

Link to home
membership
This content is only available to members.
To access this content, you must be a member of Experts Exchange.
Get Access
Avatar of nobleit

ASKER

can we do did this step only in a fresh machine or if oracle is already installed..
add disk from vmware can do on any kind of system
Avatar of 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]#