LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 02-12-2003, 07:16 PM   #1
piglingz
LQ Newbie
 
Registered: Feb 2003
Posts: 24

Rep: Reputation: 15
Question 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
 
Old 02-12-2003, 07:28 PM   #2
born4linux
Senior Member
 
Registered: Sep 2002
Location: Philippines
Distribution: Slackware, RHEL&variants, AIX, SuSE
Posts: 1,127

Rep: Reputation: 49
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.
 
Old 02-12-2003, 07:31 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
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?
 
Old 02-12-2003, 08:30 PM   #4
emetib
Member
 
Registered: Feb 2003
Posts: 484

Rep: Reputation: 33
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.
 
Old 02-12-2003, 09:12 PM   #5
piglingz
LQ Newbie
 
Registered: Feb 2003
Posts: 24

Original Poster
Rep: Reputation: 15
THanks a lot, your posting helped me get pass my difficulty.
 
  


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
Hard drives fail to mount. MurX Linux - Hardware 4 11-01-2005 05:36 AM
How To Mount NTFS Drives in Linux 9 KnowledgeSeeker Linux - Software 3 09-23-2004 04:37 PM
linux killing my hard drives acicalla Linux - Newbie 2 06-11-2004 03:20 AM
Mount Hard Drives?? Steidart Mandriva 8 02-02-2004 09:46 AM
Can't mount ntfs hard drives? justin9 Linux - Newbie 8 07-14-2003 11:02 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

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

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