Review your favorite Linux distribution.
Go Back > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.


  Search this Thread
Old 04-02-2008, 11:12 PM   #1
LQ Newbie
Registered: Nov 2007
Posts: 11

Rep: Reputation: 0
How to format and partition exsiting hard disk

Dear All,

I have a Linux server with RHEL 4 installed. There are 6 hard disk in total, but they are not partitioned and mounted individually. 'df -k' output are below.
[root@lnx0 dev]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
                     843889840  34059216 766963528   5% /
/dev/sda1               101086     22850     73017  24% /boot
none                   1544820         0   1544820   0% /dev/shm
'cat /etc/fstab' output are
[root@lnx0 dev]# cat /etc/fstab
# This file is edited by fstab-sync - see 'man fstab-sync' for details
/dev/VolGroup00/LogVol00 /                       ext3    defaults        1 1
LABEL=/boot             /boot                   ext3    defaults        1 2
none                    /dev/pts                devpts  gid=5,mode=620  0 0
none                    /dev/shm                tmpfs   defaults        0 0
none                    /proc                   proc    defaults        0 0
none                    /sys                    sysfs   defaults        0 0
/dev/VolGroup00/LogVol01 swap                    swap    defaults        0 0
/dev/hda                /media/cdrom            auto    pamconsole,exec,noauto,managed 0 0
/dev/fd0                /media/floppy           auto    pamconsole,exec,noauto,managed 0 0
I can only see this with 'fdisk -l, 'ls /dev/sd*' and 'ls /dev/hd*'
[root@lnx0 dev]# fdisk -l

Disk /dev/sda: 880.1 GB, 880174694400 bytes
255 heads, 63 sectors/track, 107008 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      107008   859437337+  8e  Linux LVM
[root@lnx0 dev]# ls /dev/sd*
/dev/sda  /dev/sda1  /dev/sda2
[root@lnx0 dev]# ls /dev/hd*
I am not able to see each hard disk'name. All hard disks are mappered to one - /dev/mapper/VolGroup00-LogVol00. I want to partition and mount all the hard disks individually for better management. Please advise!

Thanks a lot in advance.
Old 04-02-2008, 11:44 PM   #2
Jerre Cope
Registered: Oct 2003
Location: Texas (central)
Distribution: ubuntu,Slackware,knoppix
Posts: 323

Rep: Reputation: 37
Some would argue that your drives are already managed in the best way with the Logical Volume Manager. I've tended not to use it because I like to use Software Raid and I haven't bothered to learn the command-line tools to troubleshoot LVM if it breaks. However, it probably would make management simpler. You should be able to use an LVM gui to remove drives from the Logical volume. At that point you could mount them such that each physical partition is one mount point.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
how to format hard disk partition using it's superblock using C program sharathksin Programming 9 04-30-2006 05:22 AM
partition and format unpartitioned hard disk which lies on an external usb case odysseus.lost Linux - General 1 08-09-2005 07:03 PM
Format Hard Disk Don Cherry Linux - Hardware 1 02-21-2005 01:56 PM
Format hard disk! yenonn Linux - Newbie 9 10-04-2003 07:56 PM
hard disk format mariomason Linux - Software 1 01-08-2001 11:19 PM

All times are GMT -5. The time now is 05:07 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration