LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise
User Name
Password
Linux - Enterprise This forum is for all items relating to using Linux in the Enterprise.

Notices


Reply
  Search this Thread
Old 04-02-2008, 10:12 PM   #1
vlsi
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.
Code:
[root@lnx0 dev]# df -k
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/mapper/VolGroup00-LogVol00
                     843889840  34059216 766963528   5% /
/dev/sda1               101086     22850     73017  24% /boot
none                   1544820         0   1544820   0% /dev/shm
'cat /etc/fstab' output are
Code:
[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*'
Code:
[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*
/dev/hda
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.
vlsi
 
Old 04-02-2008, 10:44 PM   #2
Jerre Cope
Member
 
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.
 
  


Reply



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 04:22 AM
partition and format unpartitioned hard disk which lies on an external usb case odysseus.lost Linux - General 1 08-09-2005 06:03 PM
Format Hard Disk Don Cherry Linux - Hardware 1 02-21-2005 12:56 PM
Format hard disk! yenonn Linux - Newbie 9 10-04-2003 06:56 PM
hard disk format mariomason Linux - Software 1 01-08-2001 10:19 PM

LinuxQuestions.org > Forums > Enterprise Linux Forums > Linux - Enterprise

All times are GMT -5. The time now is 05:33 PM.

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