LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 01-07-2003, 12:25 PM   #1
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Rep: Reputation: 15
Exclamation Disc hdb changed into hdc


I know it is a stupid subject - but I will explane:
Before the changes I had Windows XP on hda and Linux Mandrake 9.0 on hdb.
Disc with XP worked slower than it should so I changed the disc with Mandrake from secundary master into sec. slave. So now:
XP on hda, Mandrake on hdc.

But now - I can't start Linux! It tries to start from hdb5 but since that disc is now hdc - it says:
Karnel panic: No init found. Try passing init= option to karnel.
Since I'm a Linux newbie I didn't understand how to pass it? Anyway, I tried to start it from boot diskete (spelling?). But it's the same. Then I went to Windows and changed the file syslinux.cfg. There was a line:
append initrd=initrd.img root=/dev/hdb5
and I changed it into
append initrd=initrd.img root=/dev/hdc5

Now, starting of Linux went a little deeper - but it still shows errors but there is an option that I press Ctrl+D (the computer restarts) or to enter root passward. I login as root - and now I have a command line! I see that all the files are ok (why shouldn't they be?) - but I don't know what to do?

Question: What to do now?
Thanks
 
Old 01-07-2003, 12:42 PM   #2
finidi
Member
 
Registered: Dec 2002
Location: World
Distribution: Fedora Core 4
Posts: 127

Rep: Reputation: 15
I was on the same, and resolved it, so look at :

http://www.linuxquestions.org/questi...threadid=40516

HTH
 
Old 01-07-2003, 01:38 PM   #3
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks for the help - but when I try to change the files (lilo.conf and fstab) it says that they are readonly!
When I try to save them (in vi) it says that I should override it with '!', so I enter :w!, but again it says that it was unable to change the file....
Maybe it's because my CD was on hdc (now it is on hdd) so Linux thinks that I want to write on CD which is readonly?
What should I do?
 
Old 01-07-2003, 02:04 PM   #4
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Re: Disc hdb changed into hdc

Quote:
Originally posted by Relja
I know it is a stupid subject - but I will explane:
Before the changes I had Windows XP on hda and Linux Mandrake 9.0 on hdb.
Disc with XP worked slower than it should so I changed the disc with Mandrake from secundary master into sec. slave. So now:
XP on hda, Mandrake on hdc.
Wait a second.

hda = master on First ide controller.
hdb = slave on first ide controller.
hdc = master, second ide controller
hdd = slave, second ide controller.

If your mandrake disk was hdb before you unplugged it, it was the primary slave, not the secondary master. If you plugged it in as a slave on the second IDE cont, it would be hdd, not hdc as you may think. I'm confused.
 
Old 01-07-2003, 02:15 PM   #5
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Quote:
Originally posted by Relja
Thanks for the help - but when I try to change the files (lilo.conf and fstab) it says that they are readonly!
When I try to save them (in vi) it says that I should override it with '!', so I enter :w!, but again it says that it was unable to change the file....
Maybe it's because my CD was on hdc (now it is on hdd) so Linux thinks that I want to write on CD which is readonly?
What should I do?
This may not be the best way to deal with this, but the way I'd do it is to *restore* the original disk layout. Edit the fstab to change it to match the new setup you've planned and reboot. It is always better to plan ahead.

Also when your system boots up, the BIOS will transfer control to the first disk that has a *readable* boot sector. When dual-booting, it is always a better thing to let the linux boot loader load windows, so maybe you should place the linux hard-drive in such a way that the BIOS finds it first. safest eg: primary master.
 
Old 01-07-2003, 02:16 PM   #6
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 46
In single user mode, the root partition is mounted read only, you need to re-mount it with rw (read write) flag
-NSKL

BTW Ja sam iz NS, ako imas vremena javi mi se da se upoznamo guesswho AT ciaoweb.it
Sorry guys, i just noticed hes from my home country.. .

Last edited by NSKL; 01-07-2003 at 02:18 PM.
 
Old 01-07-2003, 03:31 PM   #7
Relja
Member
 
Registered: Oct 2002
Location: Belgrade, Yugoslavia
Distribution: Linux Mandrake 10.0
Posts: 71

Original Poster
Rep: Reputation: 15
Thanks everybody - mission complete.
I did what nxny said right after my last message. I changed the fstab file and lilo.config. It seemed that that won't be good either since Linux reported the same error. But the booting from floppy went good and I started Linux normaly. After that I changed a setting in lilo configuration (Mandrake Control Center) and changed it back so that it detects that I changed something... and everything worked out.
It's nice to be back in Linux.
Thanks...
 
  


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 On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
k3b hangs when trying to burn dvd+rw disc but not cd rw disc laiboonh Slackware 0 11-06-2004 12:22 PM
Problem with new disc hdb (Suse 9.1pro) navajo Linux - Hardware 5 08-06-2004 09:06 PM
Will converting my disc to dynamic disc in windows..... jasonmcneil0 Linux - General 2 03-15-2004 01:10 PM
Changed normal debian to hard disc version of knoppix - lilo config bigjohn Debian 13 10-04-2003 02:39 PM
Locating Disc 2,3,4,5 later after installing 1 Redhat disc lava Linux - General 1 03-22-2003 02:13 AM


All times are GMT -5. The time now is 11:24 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration