LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Hardware (https://www.linuxquestions.org/questions/linux-hardware-18/)
-   -   Mount new hard drives to linux box. (https://www.linuxquestions.org/questions/linux-hardware-18/mount-new-hard-drives-to-linux-box-45139/)

piglingz 02-12-2003 07:16 PM

Mount new hard drives to linux box.
 
Hi,
I have a linux box that is running out of HD space, I want to add an additional unformated HD to the box. I am running slackware linux and I have some clue of beginning, but keep failing. Can you guys assist. Thanks

Eric

born4linux 02-12-2003 07:28 PM

was the hard drive properly detected by your machine? i.e. does it show up in your bios or can your bios autodetect it?

if yes, take note of its placement - if its an IDE primary slave (it is /dev/hdb) or what.

if u are sure ur hdd was detected, boot into slack. u need to be root to format the drive. check first where is your drive by:

dmesg | less

or

via fdisk:

fdisk -l /dev/hdb

or

fdisk -l /dev/hdc

if u can see partitions (if it has), u can then format it or recreate the partitions.

to create modify partitions:

cfdisk

to format the partitions (ie u'v created /dev/hdb1 or /dev/hdc1):
# BE CAREFUL WITH mkfs - it will erase ur data
# if u specified the wrong partition/drive

mkfs.ext2 /dev/hdb1

or:

man mkfs

hth.

fancypiper 02-12-2003 07:31 PM

Re: Mount new hard drives to linux box.
 
Quote:

Originally posted by piglingz
Hi,
I have a linux box that is running out of HD space, I want to add an additional unformated HD to the box. I am running slackware linux and I have some clue of beginning, but keep failing. Can you guys assist. Thanks

Eric

More details, better answers.

What have you attempted, what succeeded, what failed, what were the error messages and what is your final destination?

Where are you located in your attempt?

emetib 02-12-2003 08:30 PM

i will concour with both. is it reconized? that's the biggest question. if it is than use cfdisk, imo, it's alot easier than fdisk. you could also go for the hacker way and use sfdisk, don't know much about that one though.

when you do make your fs. i would use the ext3. mke2fs -j /dev/hd?

good luck.

piglingz 02-12-2003 09:12 PM

THanks a lot, your posting helped me get pass my difficulty.


All times are GMT -5. The time now is 12:56 AM.