Skip to Main Content

Infrastructure Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

oracle linux partition - after installation

ganeshJan 5 2012 — edited Jan 9 2012
Hi,

I am a newbie in installing linux. I installed Oracle Linux 5 successfully. I selected all default options while installing.

[root@localhost mapper]# df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 230634360 3279712 215450036 2% /
/dev/sda1 101086 23390 72477 25% /boot
tmpfs 1942200 0 1942200 0% /dev/shm

I did a remount of the shared memory to 4GB

[root@localhost mapper]# mount -o remount,size=4G /dev/shm
[root@localhost mapper]# df -l
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00 230634360 3279916 215449832 2% /
/dev/sda1 101086 23390 72477 25% /boot
tmpfs 4194304 0 4194304 0% /dev/shm

Is this correct way to increase swap to 4GB? I have 4GB RAM in my machine.

Also out of that 250 GB in /, I want to create partitons like /db for 100GB & /data for 100GB.
Can you guys please help me with the command to do this resizing?

[root@localhost /]# fdisk -l

Disk /dev/sda: 250.0 GB, 250000000000 bytes
255 heads, 63 sectors/track, 30394 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/sda1 * 1 13 104391 83 Linux
/dev/sda2 14 30394 244035382+ 8e Linux LVM

Disk /dev/dm-0: 243.8 GB, 243806502912 bytes
255 heads, 63 sectors/track, 29641 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-0 doesn't contain a valid partition table

Disk /dev/dm-1: 6073 MB, 6073352192 bytes
255 heads, 63 sectors/track, 738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Disk /dev/dm-1 doesn't contain a valid partition table
[root@localhost /]#


Thanks
Ganesh
This post has been answered by Dude! on Jan 5 2012
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2012
Added on Jan 5 2012
4 comments
2,003 views