LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   install new hd (https://www.linuxquestions.org/questions/linux-newbie-8/install-new-hd-151609/)

gr00ve 02-28-2004 02:14 PM

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 ... :confused:

acid_kewpie 02-28-2004 03:04 PM

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.

gr00ve 02-28-2004 04:25 PM

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 :D 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 :study: but i guess imma missin "it" :rolleyes: or whatever :) maybe i just got to used to gui... but it should be all that hard should it :confused: 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 !!!!!!!!!!!!

michaelk 02-28-2004 04:57 PM

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

Falco 02-28-2004 04:59 PM

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.

gr00ve 02-28-2004 08:14 PM

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 !

gr00ve 02-29-2004 07:49 AM

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 :eek:
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 :tisk:

shutdown
ripped the cables out...

:D

PS & I thought only windows had ability to trip 4 no apparent reasons ;)

Falco 02-29-2004 08:45 AM

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.

gr00ve 03-02-2004 02:46 PM

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...
:rolleyes:
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 ;):D

gr00ve 03-02-2004 02:48 PM

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 :)


All times are GMT -5. The time now is 10:01 AM.