LinuxQuestions.org
Help answer threads with 0 replies.
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 04-19-2004, 03:43 PM   #1
titocosa
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Rep: Reputation: 0
Problems on booting after install 2nd disk drive


Hi there.
I want to install a second drive (with data and SO RH 8) in my linux RH 9, and when I try to do so, I have problems at boot time. Of course I set the second drive like a slave disk, and I also try to install the 2nd disk in the 2nd IDE channel. But is still not working.
Here are some of the errors that appear on screen:
Activating swap partitions: swapon /dev/hda9: No such drive (there is no 9 on hda, only on the 2nd drive)
after fsck.jfs I can see:
The current device is /dev/hda10 (there is no 10 on hda!!!)
Superblock is corrupt and cannot be repaired because both primary and secondary copies are corrupt
FSCK CANNOT CONTINUE
***An error ocurred during the file system check
***Dropping you to a shell; the system will reboot
***when you leave the shell

On the shell I executed mount command and I saw that / points to /dev/hdd8 (my 2nd drive)

FSTAB was like this:
LABEL=/ /
LABEL=/boot /boot
but I changed to:
/dev/hda2/ /
/dev/hda1/ /
following a paper encountered in Internet.
Do you tell me what is going on?
Thanks.
Tito
 
Old 04-19-2004, 04:33 PM   #2
Magus67
LQ Newbie
 
Registered: Mar 2004
Posts: 26

Rep: Reputation: 15
Print your output of your whole /etc/fstab.
 
Old 04-19-2004, 06:14 PM   #3
J.W.
LQ Veteran
 
Registered: Mar 2003
Location: Boise, ID
Distribution: Mint
Posts: 6,642

Rep: Reputation: 87
If the second drive is on the second IDE channel, then it will be hdc or hdd.

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

Undo your fstab changes, reboot, and you should be back to where you were before. The second drive will not be mounted, so manually do that, verify that you can read it, etc, and then modify your fstab. -- J.W.
 
Old 04-20-2004, 08:11 AM   #4
titocosa
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
This is the original FSTAB. Whit only 1 disk it is working fine. This is not working with 2 disks.

LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot 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

And I modified it, like this:

/dev/hda2 / ext3 defaults 1 1
/dev/hda1 /boot 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

With 1 disk, it is Ok, but there are problems when I connect the 2nd disk.
(2nd disk has a booteable Linux too!)

With this changes the error
mount: LABEL=/ duplicated -not mounted
dissapear

Any suggestion?
Thanks a lot
Tito
 
Old 04-20-2004, 10:15 AM   #5
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Redhat uses partition labels for identification, hence the label=/. Consider labels as relative addresses and /dev/ha2 an absolute address. If you move partitions or drives around the OS can always find the labels but not the /dev/hda if it does not remain the same.

So seeing how you have two RHs loaded you now have two partitions with the same label, hence the duplicate label errors.

Your first post eludes that the partitions on the 2nd drive are formatted as jfs but the first is ext3. The superblock errors might be attributed to that fact since the OS expected ext3.

After the fstab change does RH boot ok?
 
Old 04-20-2004, 10:26 AM   #6
titocosa
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
nop
There are less errors than before, but it is not booting well.
Others errors (see my first post) are showing on screen.
Am I clearly enough with my explanation?
Thanks.
Tito
 
Old 04-20-2004, 10:50 AM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
I'm going to take an educated guess hoping others might know more... If the OS was try to fix the hdd8 (jfs?) partition on the 2nd drive as ext3 it might of corrupted the file system. Can you still mount the partitions on the 2nd drive?
 
Old 04-21-2004, 11:26 AM   #8
titocosa
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
I didn't try to mount anything because booting is not finishing correctly.
I can add if I connect only the 1st disk, all is working ok, and if I connect the 2nd disk in its own original PC, everything is ok too.
The problem appears when I try to connect both disks in the same PC.
 
Old 04-21-2004, 01:15 PM   #9
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,699

Rep: Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895Reputation: 5895
Post the /etc/grub.conf file. I am trying to remember if there is a root=label line. That might need to be changed to root=/dev/hda2
 
Old 04-21-2004, 04:29 PM   #10
titocosa
LQ Newbie
 
Registered: Apr 2004
Posts: 5

Original Poster
Rep: Reputation: 0
Bingo!
You were absolutely right!
Thank you very much!!
 
  


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
Added a 2nd Sata Drive installed Fedora Core 5, BIOS Doesn't See 2nd Drive. mtmcc1 Linux - General 3 12-03-2005 04:01 PM
Booting to 2nd Disk Stingray Linux - Software 2 01-09-2005 10:21 AM
GRUB errors, booting on 2nd hard drive p1800 Linux - Newbie 14 12-02-2004 01:05 PM
FC2 install on 2nd drive, no dual-boot, will install modify 1st WinXP drive at all? Equisilus Fedora - Installation 14 06-27-2004 02:38 AM
RH 7.1 , 2nd disk will not install mlevi Linux - Software 1 08-06-2001 07:57 AM

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

All times are GMT -5. The time now is 09:10 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