LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-28-2004, 03:14 PM   #1
gr00ve
Member
 
Registered: Jan 2004
Location: varies
Distribution: Blag, Slackware
Posts: 36

Rep: Reputation: 15
install new hd


Hello!

Using RedHat 9 here

just got back with a brand new 120 gig hd... plug it in plug it in... no probs... bios saw it.... on linux boot i also saw it was detected...
i changed my boot to go into RunLevel 3... became root... started parted... did print >> NO NEW HD ... also tried with fdisk.. same...
my original hd is /dev/hda then partitions go hda1 & blah blah
so I take it the new hd should be /dev/hdb (i don't have cd-rom so the next letter i thought)

What is wrong? What do I need to do to install this?

PS If I do mount i also do not see the *(&*(&* hdb ...
 
Old 02-28-2004, 04:04 PM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974Reputation: 1974
what's wrong? nothing's wrong... you just can't find the drive right? when you boot up, run "dmesg | grep hdb" and i expect you'll get some results. if that's there, just try "cfdisk /dev/hdb" and partition away.
 
Old 02-28-2004, 05:25 PM   #3
gr00ve
Member
 
Registered: Jan 2004
Location: varies
Distribution: Blag, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
nop

On "dmesg | grep hdb" i receive info for ide0
i checked then "thinkin that probably my drive letter is lower" and
dmesg | grep hdd and bingo i saw my prescious ide1 azome! , butttt

i tried executing cfdisk /dev/hdd, said it aint there ... i mean the actual command... i also cheked under sbin it aint there...
then tried parted /dev/hdd, returned with no such device or addy

then i decided to update the fstab under etc directory, but aparently i did something wrong because it said on boot failed to mount for ide1
here is the fstab


LABEL=/ / ext3 defaults 1 1
LABEL=/+DMP /+DMP ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
LABEL=/BDMP /dev/hdd ext3 defaults 0 0


PS Should I also remove the line with /dev/hda3 ? i think my swap is not used @ all.. uhhh because when i check on the running processes... it say's say imma using a total of 90% of all my physical ram... so i'd b thinkin that its a good time 2 start using the swap... but when i did DF command it returned with

Filesystem 1K-blocks Used Available Use% Mounted on
/dev/hda1 2166280 1774768 281472 87% /
/dev/hda2 26810424 17799588 7648928 70% /+DMP
none 256912 0 256912 0% /dev/shm
if i understand correct then /dev/shm is my swap file (not part, but file; but then why does it say there is no filesystem)?

Sorry if all this is 2 confusin but imma at the point of explosition by now heheheh i tried the help from rh on swap but i guess imma missin "it" or whatever maybe i just got to used to gui... but it should be all that hard should it to me it was easier 2 setup dns, samba, jre and some applications then to install a new hd looooool
BIG TXS 4 ALL THIS HELP !!!!!!!!!!!!
 
Old 02-28-2004, 05:57 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 15,243

Rep: Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624Reputation: 1624
Swap does not show up as a mounted filesystem. Use free or top to see how much memory and swap if any is being used. I wouldn't delete the swap entry. Its better to have some and not need it then to need but not have.

You need to create partitions and format them on the new drive before you can add an entry to /etc/fstab.

Where did you connect the drive?
hda - 1st controller master
hdb - 1st controller slave
hdc - 2nd controller master
hdd - 2nd controller slave
etc..

ide1 is not a reference to the hard drive, it is a reference to the IDE controller. There should be some more text referencing the drive info like manufacture and model number ie.
hda: WDC WD200BB-xxxx, ATA DISK DRIVE
hda: xxx sectors CHS= blah blah

Last edited by michaelk; 02-28-2004 at 05:59 PM.
 
Old 02-28-2004, 05:59 PM   #5
Falco
LQ Newbie
 
Registered: Feb 2004
Distribution: slackware,mandrake,suse
Posts: 9

Rep: Reputation: 0
the letters for hard disk should be
ide0 master hda
ide0 slave hdb
ide1 master hdc
ide1 slave hdd

to see what is on your hdd try fdisk -l /dev/hd? (? = a,b,c,d).

the line with /dev/hda3 swap ... is all right.

if you want to have more swap memory, make another partition with fdisk or cfdisk and then run mkswap /dev/hd? and swapon /dev/hd? and add a line to fstab.

According to your fstab there is nothing mounted on /dev/shm, and it is not your swap slace which is /dev/hda3.
 
Old 02-28-2004, 09:14 PM   #6
gr00ve
Member
 
Registered: Jan 2004
Location: varies
Distribution: Blag, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Angry nop...

the new HD is installed to HDC, so secondary master. I added this
/dev/hdc/ /+DMPB ext3 defaults 0 0 to fstab at the bottom.
the boot text returned mount point /+DMPB does not exist.
i tried to mount manually /hdc/ its returned moun point /+DMPB does not exist, same.
executing parted /dev/hdc/ returns with input/output error with prompt for Retry/Cancel...
fdisk /dev/hdc returns with Unable to Open /dev/hdc

so am i doing mistake here in fstab or i missed something else?

txs !
 
Old 02-29-2004, 08:49 AM   #7
gr00ve
Member
 
Registered: Jan 2004
Location: varies
Distribution: Blag, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
20 hrs since started installing new HD :)

ok so some things became clearer 2 me ! txs a lot everyone for all this grrreat help...

results were:
dmesg | grep hdc returned with 3 different i/o errors.... scratching the head sayin mahhhhhhhhnnnnnn
i changed the jumper on the drive to be Cable Select
immediately upon boot the bios changed the drive to Secondary Slave (but the physical connection onthe cable is SECONDARY MASTER !!!), i said okkkeyyy so its the *^(&*(&*(&*()& BIOS / HD compatibility matter nuttin to do with RH (strangely though that if the jumper was set to master, HD appeared in BIOS corectly with Secondary Master), i have then changed the jumper to slave and put the hd on the correct end of the cable... boot revealed that now my bios thinks that HD is on SECONDARY MASTER being 28 gigs!!!!!! instead of 120 !!!!

At this point i said (&*&(*&%$)&*%)(@*()*#*@(#_) if i catch that bios gonna rip its legs off

shutdown
ripped the cables out...



PS & I thought only windows had ability to trip 4 no apparent reasons
 
Old 02-29-2004, 09:45 AM   #8
Falco
LQ Newbie
 
Registered: Feb 2004
Distribution: slackware,mandrake,suse
Posts: 9

Rep: Reputation: 0
Sometimes the jumper settings printed on the hd are wrong or only partial (specially for big hd).
Check on the net a complete jumper settings for your hd.

Cable select is a way to specific your hd to be master or slave depending on which end of the cable it is on. You should avoid your hd to be a secondary slave if it were alone on the cable.
 
Old 03-02-2004, 03:46 PM   #9
gr00ve
Member
 
Registered: Jan 2004
Location: varies
Distribution: Blag, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
Talking got it

Txs 4 all of your help everyone !
actually i got it to work now

sooooo basically the problem was that although my jumper was set to secondary master, for some odd reason RH was piking it up as secondary slave... besides it was reporting this i/o error refusing to partition/format or do anything with it in RH...

Well I was kinda pissed because I spent a lot of time trying to make it work, so eventually I decided to simply stick it into my XP box... ofcourse it got recognised & i was able to format it there right away... However somewhere deep down inside me I had that little itchy feelin... soooo i riped this HD ouf of XP's claws... stick it back into redhat box...

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

u will NOT believe this! Now the BIOS (with exactly same settings as b4!!!) was picking my HD as Secondary slave! Same in Linux (so HDd after all & at this point @ least the bios & rh saw the drive on same channel! good!!!

I said WOW... partedded the busta... mkfs and off i was with brand new ext2 120 gigger ready to do what RH wishes heheheheh

my guess would be as to the causes of this monstrocity, is that in windows there is this feature to initialize the brand new HD (also if HD is coming from some other puter/filesystem), so as my HD was as clean as a virgin on Monday morning i suspect that I had o do smth similair to this initialize thing in Linux...

anyways .. gonna keep xp box just for one of those cases gonna learn more RH just for one of those cases as well
 
Old 03-02-2004, 03:48 PM   #10
gr00ve
Member
 
Registered: Jan 2004
Location: varies
Distribution: Blag, Slackware
Posts: 36

Original Poster
Rep: Reputation: 15
cable select

btw about what you said of cable select .. with this setting the hd was not seen from bios @ all ... so most probably that it was my bios 99.9999999999% that attributed to all those problems... linux is aint the one to blame for this
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
fc3 install doesnt install grub properly onto sata drive sabo Linux - Newbie 4 02-03-2007 05:04 PM
make install does not install daemons (clamd snortd). Is this a feature of tarball? Emmanuel_uk Linux - Newbie 3 11-15-2005 02:29 AM
Error: Unable to boot /install/2.6/linux when starting Etch Install BuckRogers01 Debian 4 08-06-2005 07:40 PM
How do I re-install an operatingsystem? Corrupted install. Yast wont load. URGENT.thx CrewXp SUSE / openSUSE 5 05-09-2005 01:07 AM
Ok, dumb question. If I install a Mandrake kernel RPM, where does it install to? Kramer Linux - General 6 01-13-2004 10:39 PM


All times are GMT -5. The time now is 12:14 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration