LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   identify hard drive space (https://www.linuxquestions.org/questions/linux-hardware-18/identify-hard-drive-space-159935/)

milesstandish 03-19-2004 03:52 PM

identify hard drive space
 
this one should be pretty easy. i just installed a new hard drive on rh9 and want to make sure i can use it. i know the original works, but how do i see the new one? and... i could also stand to know how to partition it since the OS is already installed on the other. thank you for your support.

Peacedog 03-19-2004 04:23 PM

how is the drive connected..i.e. primary slave, secondary master..etc. i ask because it will make a difference w/the drive letter. you should be able to

cfdisk /dev/hdx (where x is the drive letter of the new drive)

for reference the letters should follow

primary master = hda
primary slave = hdb
secondary master = hdc
secondary slave = hdd

once you format the drive w/a file system, you'll need to create a mount point

cd /mnt
mkdir hdx (where x is the drive letter of the new drive)

so now you should have a /mnt/hdx directory.

also make an entry in fstab to mount the drive at boot.
good luck.

milesstandish 03-19-2004 05:16 PM

i put the pin in to be the slave, the first drive has no pin at all. so i'm hoping it will show as the primary slave

Peacedog 03-19-2004 05:22 PM

that should make it /dev/hdb, reference my earlier post.
good luck.

milesstandish 03-19-2004 05:33 PM

cfdisk /dev/hdb gives me "command not found"
fdisk /dev/hdb gives me "Unable to open /dev/hdb"
i was able to make directory for hdb in /mtn, and it shows the cdrom and now hdb, but how do i know its actually the new hard drive?

Peacedog 03-19-2004 05:58 PM

is the drive recognized in your bios? it may be the jumper settings, it may be that you first have to get the drive recognized in bios.

Pwnz3r 03-19-2004 06:12 PM

Yeah, and after that is the partitioning and mounting. Just check the list of devices that your BIOS [ushould[/u] give you at startup, or enter the BIOS setup to view them if it doesn't show anything.


All times are GMT -5. The time now is 10:20 PM.