LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
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 12-10-2005, 09:38 AM   #1
billgnu
LQ Newbie
 
Registered: Nov 2005
Location: Asia
Distribution: Mandrake
Posts: 15

Rep: Reputation: 0
Unhappy my hda8 is now hda9 and linux is gone


friends,
i lost my windows setup today and installed it again.it rechanged the order of my partitions and cdrom.my linux is installed(/) on hda8 but now its renamed as hda9.plz tell me if i can resue the installed linux or i have to install it all again.
linux rescue doesnt help either.lilo gets back to the same path.functions like dir,cd etc doesnt work on it.i have no access to /etc/lilo.conf
plz help
 
Old 12-10-2005, 11:14 AM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Location: Horgau, Germany
Distribution: Manjaro KDE, Win 10
Posts: 2,199

Rep: Reputation: 164Reputation: 164
Try to boot with the installed system with the Mandrake CD/DVD.
Then you have to edit /etc/fstab, /etc/mtab and /etc/lilo.conf.
It is also possible to use the rescue system.
 
Old 12-10-2005, 06:34 PM   #3
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
The Linux can be saved.

Perhaps the best way is to use a Live CD, just about any one will do. You boot to a Live CD, make a temp directory on /mnt, mount your hda9 on it then you edit /etc/fstab and /etc/lilo.conf to update all the partition references of hda8 to hda9. Finally you need to change root to hda9 and issue the "lilo" command in bash shell to update Lilo. The Linux should then be bootable.

I have moved Linux from a Sata to a IDE and from computer to computer and can confirm that there is nothing to worry about.

I provide the following instructions for you to consider

mkdir /mnt/temp
mount /dev/hda9 /mnt/temp

It would be better if you use the Live CD Linux desktop to edit the above two files.

For /etc/fstab you need to amend the first line which is the root and possibly the swap partition if it has been altered.

For /etc/lilo.conf it is the line "boot=" and the "root=" you may need to change. Not much to do really.

On completion of editing you change root into the distressed Linux by

chroot /mnt/temp
lilo

Lilo should inform you any error. Chances are you should get it bootable again.

If everything fails the system can still be booted by a Grub floppy. We can go into that later if needed.

By the way you do realise if you take out one logical partition between hda5 to hd8 then the whole thing will shift bach to the original position. You still need to do the change root and "lilo" bits if the relative position of hda8 has been altered by even one byte.
 
Old 12-11-2005, 12:42 AM   #4
billgnu
LQ Newbie
 
Registered: Nov 2005
Location: Asia
Distribution: Mandrake
Posts: 15

Original Poster
Rep: Reputation: 0
Smile

Thank you very much!!!
I have got Ubuntu live cd but it does not mount the partitions on its own.Of course the commands u gave will be easy for me to use.But what about -
On completion of editing you change root into the distressed Linux by
chroot /mnt/temp
lilo
What does this mean?I have to carry out those during my live cd session,isnt it?during the mandriva rescue mode i wonder why,it doesnt accpet the command cd/type and lilo.editing lilo.conf and etc/fstab wont do?

Thank you very much again,
bill
 
Old 12-11-2005, 01:17 AM   #5
billgnu
LQ Newbie
 
Registered: Nov 2005
Location: Asia
Distribution: Mandrake
Posts: 15

Original Poster
Rep: Reputation: 0
Thank you!
I was able to boot!
i used ubuntu live cd and edited lilo.conf and fstab but i want able to run chroot /mnt/temp as u mentioned.i did run lilo also.i hope it doesnt mean anything wrong.
i hope i woudnt be facing any problem again as identity of linux partions have changed.
thanks a lot.
bill
 
Old 12-11-2005, 03:41 AM   #6
saikee
Senior Member
 
Registered: Sep 2005
Location: Newcastle upon Tyne UK
Distribution: Any free distro.
Posts: 3,398
Blog Entries: 1

Rep: Reputation: 113Reputation: 113
When you do a "chroot" you hoop from one Linux into another. That is an extremely powerful feature in Linux because you can then carry out rescuse work "inside" the distressed Linux.

Lilo boots by the recorded position of the hard disk (cylinder/head/sector position). If you change it you must re-validate it with the "lilo" command so that it can write out a revision of the boot loader. This is a particular feature of Lilo that "lilo" must be issued every time its configuration is altered, normally after an edit with lilo.conf.

Don't be afraid of the boot loaders because they are only here to serve you. The command "lilo" re-validates everything record Lilo keeps. Not issuing this command means Lilo will continue to use the old configuration which may not work in the changed environment. Lilo will then tell you with a screen with of 99 and L.
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
link dies intermittently-seemingly at random- between win<->linux not linux<->linux?? takahaya Linux - Networking 10 03-09-2007 10:37 PM
triple boot linux/linux/linux No Windows involved toastermaker Linux - Newbie 12 03-02-2006 10:40 PM
hda9 shows up twice?? sptchamp Slackware 4 07-10-2004 12:20 PM
Redhat (rhel v2.1) bootup problem with linux (linux vs linux-up) namgor Linux - Software 2 06-24-2004 02:49 PM
strings > /mnt/hda9/HrdDskB7.txt suguru Debian 3 02-23-2004 09:46 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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