LinuxQuestions.org
Help answer threads with 0 replies.
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-25-2003, 04:34 PM   #1
bobhasahat
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Rep: Reputation: 0
booting to the wrong drive


hey guys im a newbie so bear with me here a bit...

I have 2 hard drives, one with mandrake 8 and one with win2k installed. When I try and boot (to linux) it tells me it can't mount root. when i specify the correct address of root (/dev/hda5) before booting it finds the kernel fine. however, as it continues to boot it gives me this error "fsck.ext2: Attempt to read block from filesystem resulted in short read while trying to open /dev/hdb5". That hdb5 isn't a typo. It allows me to go into command line mode then, and when i open up /etc/fstab all of my filesytems appear to be mounted on hdb rather than hda!

in addition to my cd drive and my floppy, etc, it reads:
/dev/hdb5 / ext2 defaults 1 1
/dev/hdb6 swap swap defaults 0 0
/dev/hdb7 /var ext2 defaults 1 2

I think this came from me switching around some of my harddrives, but how do I change these to point to the correct devices? They should all be on hda. Any help would be much appreciated. Thanks!
 
Old 02-25-2003, 06:52 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 24,716

Rep: Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593Reputation: 5593
When you swap drive locations you need to change your fstab file
Edit the /etc/fstab file and change from hdb to hda.

To fix the boot problem assuming your using lilo, edit /etc/lilo.conf and change root= from hdb to hda

rerun lilo.
 
Old 02-25-2003, 07:24 PM   #3
bobhasahat
LQ Newbie
 
Registered: Feb 2003
Posts: 6

Original Poster
Rep: Reputation: 0
I tried editing /etc/fstab but it says there was an access error, even when I was using the root account. It says it is a read only system file. I tried to chmod it, but that didnt seem to help. Thanks
 
Old 03-01-2003, 11:16 AM   #4
Allen614
Member
 
Registered: Dec 2002
Location: Plains
Distribution: Slackware 13
Posts: 465

Rep: Reputation: 30
Check your BIOS to make sure your HDD configuration is right.
 
Old 08-29-2003, 07:51 AM   #5
kaner
LQ Newbie
 
Registered: Aug 2003
Location: Germany
Distribution: Debian
Posts: 5

Rep: Reputation: 0
you have to remount you rootfilesystem by typing

# mount -n -o remount,rw /

this should work....
 
  


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
what's wrong with my cd-drive and/or audio cd's? minike Slackware 11 07-26-2005 08:27 PM
What am I doing wrong? (Dual Booting) ilovelagar Linux - Newbie 9 07-03-2005 04:30 AM
cpuspeed scaling wrong when booting from battery in FC2 ashlock Fedora 2 05-17-2005 04:09 PM
Wrong kernel: re-booting does not help John Sorkin Linux - General 1 05-05-2005 10:33 PM
What is wrong with my hard Drive? exark237 Linux - Hardware 2 08-17-2003 03:13 AM

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

All times are GMT -5. The time now is 10:26 PM.

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