06-15-2011
Partitioning a new Hardrive
What is the command to partition a completely new hard drive using red hat linux
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I'm looking for a Partitioning Tool preferably with a GUI preferably free that is easy to use if anyone has any suggestions they will be greatfully recieved, Thanks. (4 Replies)
Discussion started by: OSNovice
4 Replies
2. UNIX for Dummies Questions & Answers
I formated a 40 gig hardrive and if I check how much usable room there is it show only 34 gigs...Anyone have any ideas on how to reclaim a few of those lost gigs or why it would format so small. (5 Replies)
Discussion started by: macdonto
5 Replies
3. UNIX for Dummies Questions & Answers
I would like to install Redhat 7.2 on my Windows machine. I only have one hard drive and I dont want to lose Windows. Which method is best for partitioning the HD?
I tried it once with Partition Magic and I was installing Corel Linux First Edition and Corel wiped out my entire HD (not good when... (2 Replies)
Discussion started by: primal
2 Replies
4. UNIX for Dummies Questions & Answers
Hiya folks,
Before I install Linux, I want to partition my HD, basically I want to split my 80GB HD in half so I can run Linux but still keep Windows XP. I tried doing through the windows workstation and browsing the XP help files but it either didnt work or I was doing something wrong. I dont... (7 Replies)
Discussion started by: Mr_Pinky
7 Replies
5. Solaris
I have a problem with my Solaris box in my office, the storage capacity reach 95%. For that i need to think a way to replace the hard drive with the bigger one as all the slot was used.
Do any of you guys have similar experience with me, please give any enlightment!
Thanks a lot guys. (3 Replies)
Discussion started by: rockie
3 Replies
6. Red Hat
Hey, this question is generated purely out of my lack of knowledge.
Ok, obviously you can partition hard drives, I have Windows 2k, and can partition it from administrative tools, however, all of the help sections have utterly failed to give me any information other than "when you partition, it... (5 Replies)
Discussion started by: Mal_Zapatos
5 Replies
7. Solaris
Does anyone know if and or how you can add external hardrives to Sun Solaris 9 or greater systems. Needing to add two additional dedicated storage drives for large image files and mount these drives to the system. Will also need to mirror these two drives for redundancy. Any help would be... (2 Replies)
Discussion started by: tazzy
2 Replies
8. Ubuntu
Hi folks,
Ubuntu 10.04-1 64-bit
HD - 1T SATA3
I ran graphic installation installing Ubuntu-10.04-1 desktop from Live CD
The partition on the new HD is as follow;
/root
/home
/kvm
(kvm is for keeping the guests of KVM, the virtualizer)
Installion went through without problem abd... (0 Replies)
Discussion started by: satimis
0 Replies
9. UNIX and Linux Applications
I am running Linux - Debian on my harddrive at present and i want to split the remainder of my hardrive into another portion so that i can install windows on it. What is the best way to go about this? (5 Replies)
Discussion started by: syco__
5 Replies
10. Red Hat
I am getting ready to install RHEL6 server. I have to create these partitions:
/ 10GB
SWAP 3GB
/opt/kent 10GB
/opt/kent/logs
/backup 20 GB
Will Gparted do this? or whats the easiest way? or even a tutorial?I am so new to this (4 Replies)
Discussion started by: linux4noob
4 Replies
SD(4) Linux Programmer's Manual SD(4)
NAME
sd - Driver for SCSI Disk Drives
SYNOPSIS
#include <linux/hdreg.h> /* for HDIO_GETGEO */ #include <linux/fs.h> /* for BLKGETSIZE and BLKRRPART */
CONFIG
The block device name has the following form: sdlp, where l is a letter denoting the physical drive, and p is a number denoting the parti-
tion on that physical drive. Often, the partition number, p, will be left off when the device corresponds to the whole drive.
SCSI disks have a major device number of 8, and a minor device number of the form (16 * drive_number) + partition_number, where drive_num-
ber is the number of the physical drive in order of detection, and partition_number is as follows:
partition 0 is the whole drive
partitions 1-4 are the DOS "primary" partitions
partitions 5-8 are the DOS "extended" (or "logical") partitions
For example, /dev/sda will have major 8, minor 0, and will refer to all of the first SCSI drive in the system; and /dev/sdb3 will have
major 8, minor 19, and will refer to the third DOS "primary" partition on the second SCSI drive in the system.
At this time, only block devices are provided. Raw devices have not yet been implemented.
DESCRIPTION
The following ioctls are provided:
HDIO_GETGEO
Returns the BIOS disk parameters in the following structure:
struct hd_geometry {
unsigned char heads;
unsigned char sectors;
unsigned short cylinders;
unsigned long start;
};
A pointer to this structure is passed as the ioctl(2) parameter.
The information returned in the parameter is the disk geometry of the drive as understood by DOS! This geometry is not the physical
geometry of the drive. It is used when constructing the drive's partition table, however, and is needed for convenient operation of
fdisk(1), efdisk(1), and lilo(1). If the geometry information is not available, zero will be returned for all of the parameters.
BLKGETSIZE
Returns the device size in sectors. The ioctl(2) parameter should be a pointer to a long.
BLKRRPART
Forces a re-read of the SCSI disk partition tables. No parameter is needed.
The scsi(4) ioctls are also supported. If the ioctl(2) parameter is required, and it is NULL, then ioctl() will return -EINVAL.
FILES
/dev/sd[a-h]: the whole device
/dev/sd[a-h][0-8]: individual block partitions
SEE ALSO
scsi(4)
1992-12-17 SD(4)