I installed the centOS 5.2 on 80GB harddisk.
/dev/hda1 and /dev/hda2

Device Boot Start end Blocks id system
/dev/hda1 * 1 15 83 linux
/dev/hda2 16 9729 8e linux LVM

DO I HAVE SOME REMAINING SPACE.......?

and If I want to do further partitions in existing then how......?

here their is any concept of primary and secondary(logical) partitions.........?

kindly help to understand this concept and if there is any relevant video then its very helpful for me...........

Kind regards,

Dani AI

Generated

Quick clarification for (and thanks to for the pointers).

From the partition table you posted (/dev/hda1 small, /dev/hda2 type 8e LVM spanning the rest) it’s very likely there is no unallocated partition space left — hda2 already covers the remainder of the disk. That is not a dead end: with LVM you can create many logical volumes inside the single LVM physical volume (PV) without adding new disk partitions. If you really need extra non‑LVM partitions you would have to shrink/repartition the disk (backup first).

To inspect exact layout and LVM free space:

fdisk -l /dev/hda
parted /dev/hda print
lsblk -f
pvs -o+pv_free
vgdisplay

If pvs / vgdisplay shows free extents (PV Free > 0) you can allocate them to new LVs right away.

Create, format and mount an LV:

lvcreate -n data -L 10G vgname
mkfs.ext4 /dev/vgname/data
mkdir -p /mnt/data
mount /dev/vgname/data /mnt/data
# add an /etc/fstab line for persistence

To grow an LV and its filesystem:

lvextend -L +5G /dev/vgname/data
resize2fs /dev/vgname/data   # for ext3/4
xfs_growfs /mountpoint       # for XFS (use mountpoint, not device)

Shrinking filesystems or LVs is risky: always backup, unmount, shrink the filesystem first, then reduce the LV.

If an RPM/Yum install says libraries are missing: run ldd /path/to/binary to see which .so files are absent, then use:

yum provides '*/libname.so*'
repoquery --whatprovides '*/libname.so*'   # requires yum-utils
yum localinstall package.rpm                # prefer this over plain rpm -i

Also check ldconfig -p | grep libname to see the library cache. Enable the correct repositories (extras/EPEL) when needed.

Recommended Answers

All 7 Replies

Well there are 2 types of partitions. Primary and logical aka "secondary". There can only be maximum of 4 primary partitions and unlimited logical partitions on a particular hard drive. Usually it's a good idea to have one primary "/boot" partition and one root "/" partition and logical "/home" partition for most linux installations. And if you want to dual boot between windows have one primary partition for windows.

Reason to have a separate /home partition is if something goes wrong in your root partition you will at least have all your important documents, movies, music...in-tact. Also a separate boot partition ensures that your pre-installed windows boot record doesn't get messed up during installation. Linux will install boot record on a separate /boot partition instead of replacing windows boot record!!

thanks

this information is really very helpful for me... but after studying alot I think the system only allows 15 logical partitions..

kindly advise.

Regards,

Rashid

and a most important question of my life

that if you try to install any program through RPM or Yum utility
sometimes he gives error that some library files missing etc.

then How can I get these missing library files. or if they installed then where is wrong..

waiting for reply

Regards,


Rashid

and a most important question of my life

that if you try to install any program through RPM or Yum utility
sometimes he gives error that some library files missing etc.

then How can I get these missing library files. or if they installed then where is wrong..

waiting for reply

Regards,

Rashid

most of the time if you try to install a program using rpm or yum it will automatically download and satisfy the required dependencies. So there should not be a lot of problem. But if you are to ever become a linux power user it is extremely important you know how to install packages from source codes.
I think reading up on the following would be very helpful rather than me explaining in this post:
http://www.tldp.org/HOWTO/Software-Building-HOWTO.html#toc2

thanks

this information is really very helpful for me... but after studying alot I think the system only allows 15 logical partitions..

kindly advise.

Regards,

Rashid

Actually i did some search and there seems to be contradictory information on the number of logical partitions that a hard drive can have.

Some say 15 like you said, some say as many partitions as there are alphabets in english language (http://www.tomshardware.com/forum/231184-46-number-logical-partitions-supported-windows), and some say as many as 60 or more...

If someone finds a definite answer please be kind enough to mention it...

But either way I doubt anyone would use more than 15 logical partitions....

thanks

thanks

your welcome hope you have a great time using linux!

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.