Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I had two hard disks in my pc:
Master: 5GB
Slave: 20GB
Until yesterday only Windows was installed on it.
Now, because all my disks were full I decided to buy a new one (250GB). My master didn't contain any useful information (I thought) only documents, Windows was installed on my slave.
What I forgot was that my MBR was written on my Master. So when I formatted my 5GB disk, Windows couldn't start anymore. Now one of the reasons I bought a new disk was to install Linux.
So I installed Mandrake 10.0 and thought that I could configure lilo so that he could "find" Windows again.
So for the moment my situation is the following. I have two disks:
Master: 250GB
Slave: 20GB
On my master Mandrake Linux 10.0 is installed, on my slave Windows XP is (still) installed. When I start my pc, lilo shows his options: starting Mandrake is no problem, but when I select Windows I get an "non system disk,..." or something like that.
What I want is to configure lilo in such a way that I can start Windows again without losing any of my data (and programs) on my 20GB disk.
Of course, since the Mandrake installation is only one day old, I can easily reinstall (another version of) Linux.
This isn't exactly answering your question, but I fear you windows partition isn't coming back. Meaning best case senario is that you copy all your files to the linux partition, reinstall windows and then copy all those files back.
Here are the instructions for that though I understand it's not ideal.
First step, boot into Linux. For the following instructions we will assume your username on your linux machine is Admiral
You may have to open a terminal if it auto-boots into X. Then from the command line type:
Admiral@localhost$ cd /mnt/
Admiral@localhost$ ls <-- at this point you should see a directory called windows (or something vaguely familiar like that) If so, carry on with the steps below. If not, post again.
Admiral@localhost$ mkdir /home/Admiral/Windows_Files
Admiral@localhost$ cp -r /mnt/windows/whatever_files /home/Admiral/Windows_Files
During your windows install be sure to create a small partition (~2G) that is FAT32 so that you can read&write files to and from both OSes.
Your data is not lost - merely your ability to directly access it.
Windows needs to boot from the primary drive. As such you need to convince it that it is on the "master" disk, not the "slave". I believe that LILO achieves this via "map-to=" and "to=" directives.
Basically you need to logically swap hd0 and hd1 so Windows will boot.
Do some searching and you should find references online.
Thanks for your answer!
That sounds a little bit more encouraging than sinnermans answer.
I'm a bit confused. You say:
. As such you need to convince it that it is on the "master" disk, not the "slave".
But my disk IS on the slave so it isn't it the other way around.
And if I do this (what I will try in 1 minute) will LILO find something there since my old MBR was on my old hard disk that isn't in my pc anymore.
The MBR is *always* on the primary (master) disk. Each disk may have a boot record in the first sector, but only ONE is given control by the BIOS. For that boot, it is *the* MBR.
In your case the code in the MBR launches LILO - the drive swapping directives are merely logical, and for the benefit of brain-dead software that is unable to discern that other (non primary) drives exist on your system.
Namely Windows.
After you update the lilo config, you'll have to rerun the lilo command I believe.
If you were using grub I could easily give you the updates for the config, but it's been too many years since I used lilo - I refuse to allow any distro to install it on my systems.
I read some information about LILO and I'm alot wiser but my problem isn't solved (yet).
Apparently my lilo.conf is right (I'm already using the map-drive an to 's). But when I run fdisk -l my second hard drive isn't bootable (there isn't a * next to it).
I have had a dual boot in the past so I'm assuming I have to do something extra, maybe adjusting jumpers?
I tried it once with grub
Without changing anything, restarting and selecting windows I get:
Code:
Booting Windows
root(hd1,0)
Filesystem type is fat, partition type 0xc
map (0x81) (0x80)
map (0x80) (0x81)
makeactive
chainloader +1
NTLDR is missing
Press any key to restart
maybe im way off base but couldnt you just use delpart utility the new GUI version wipe out the old MBR and use a windows recovery console to rebiuld your mbrand then go from there idk i had a similier problem with dual oot and thats how i fixed it
Thanks for the suggestion. I did that and now it's kinda solved. I tried fixmbr (and fixboot) many times with no luck. But after reading some information I found that I had to copy two files from the Windows XP rescue cd.
The main problem I think was that Windows just couldn't boot from a slave and when I tried fixmbr and fixboot nothing changed. When I swapped my two drives from master to slave everything worked.
So now everything is restored. I have just repartitioned my new drive. Copied some old files on it. I have just downloaded Fedora. Now writing to a dvd and then I can install everything
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.