Tentative dual boot Windows 2000 / Toutou Linux... loupée

Post Reply
Message
Author
kamo
Posts: 2
Joined: Tue 09 Oct 2012, 21:43

Tentative dual boot Windows 2000 / Toutou Linux... loupée

#1 Post by kamo »

Bonsoir à tous,

Bon, je m'excuse à l'avance de faire mon boulet et de poser des questions simplistes...

Voici la situation : à la base, une amie, totale néophyte en info, me demande de regarder un vieux portable sous Windows 2000 pour savoir si elle peut en tirer encore quelque chose. Je regarde un peu ça, essaye d'améliorer un peu la bécane en installant 2-3 programmes et... m'énerve grave car les .dll sont sens dessus dessous. Je fais au final le constat (peut-être trop rapide) qu'en l'état, il n'y en a pas grand chose à en tirer.

C'est là que me vient une idée. Dans une vie antérieure, j'ai croisé un petit peu Linux. Je me dis que c'est sans doute le meilleur OS pour donner une seconde vie à ce portable, un HP doté de 128 Mo de ram.

Une recherche google plus tard, je tombe sur Toutou Linux. Ca me plait bien, je souhaite tester même si je n'y connais pas grand chose. Je me fais un CD iso.

Une seconde recherche google plus tard, je me dis que ouais, je suis carrément chaud, je vais faire un super dual boot windows / linux.

Je tombe sur ce tuto, que je suis à la lettre (en choisissant une installation complète et non frugale) :

1. Boot the Puppy Linux CD.
You May have to go into the BIOS and turn on the option to boot from CD.

2. You will see a bunch of text, then a screen to select the keyboard layout.
Use the up/down arrow keys to select, then press enter. (For US just press Enter.)

3. Now you will see a screen to select the X server.
Once Puppy Linux is is installed you will want to experiment and find the best
setting for your hardware. For now just press the right arrow then Enter to
select Xvesa. When the screen comes up clickon 1024x768x24, when the screen
comes back click OK. This setting will work on almost all computers.

4. Close the Puppy Linux welcome screen.

The first thing we need to do is to make the Windows partition smaller to make room on the
hard disk. One to two gigabytes is plenty of room for Puppy Linux, but you might also want
to create a swap partition. The less memory (RAM) yopu have the more a swap partition will
help. The swap partition should be two to three times the amount of memory. In my case I
have 256 megabytes of memory. My plan is to shrink my Windows partition by about two
gigabytes. In this space I will create a 1.2 gigabyte partition to hold Puppy Linux, and
a .8 gigabyte swap partition. To make these changes use the partition manager called
"GParted". It is part of Puppy Linux.

5. Click on the Menu button in the lower lefthand corner.

6. Click on "GParted Partition Manager" in the system sub-menu.

7. In the partition list, right click on the Windows partition.
The line that says "boot" in the flags column.

8. Click on "Resize/Move".

9. Adjust the size of the Windows partition.
In my case I changed the "Free Space Following" to about 2000 megabytes.

10. Click Resize.

The next step is to create the Puppy Linux partition.

11. Right click on the "unallocated" line.

12. Click New.

13. Adjust the "Free Space Following" to the size for your swap partition.
In my case 750 - 800 megabytes.

14. Click on the box that says "ext2" to select the file system for the new partition.

15. Select ext3.

16. Click on Add.

If you are not creating a swap partition skip ahead to step 22.

17. Right click on the "unallocated" line.

18. Click New.

19. Click on the box that says "ext2" to select the file system for the new partition.

20. Select Linux-swap.

21. Click on Add.

22. In the top menu bar, click on Edit.

23. Click on Apply.

24. The last chance warning box appears, click on Apply.

A window opens up saying "Applying pending operations"

25. When the "All operations successfully completed" message comes up click close.

The partition that says "ext3" in the file system column is the Puppy Linux partition.
Remember the name of the Puppy LInux partition. It will be in the format "/dev/hdXN"
where X is a lower case letter and N is a digit. (Probably /dev/hda2)

26. Right click on the Puppy linux partition.

27. Click "manage flags".

28. Check the box for boot.

After the next step your computer will be unable to boot on it's own. It can only be
booted from the Puppy Linux CD.

29. Click Close.

30. Click the X in the upper righthand corner of the window to close GParted.

31. Click the Menu Button. (Bottom left of screen.)

32. From the Setup sub-menu, click on "Puppy Universal Installer".

33. Select "IDE (ATA) internal hard drive", Click OK.

34. Select the hadr drive, probably "hda", and click OK.

You may get a scary sounding warning message about an error mounting the NTFS
partition. Close the box and don't worry about it. We will fix that later.

35. Click on the button to install to the ext3 partition you created. (Probably hda2)

36. Make sure that the CD is in the CD drive. Click OK, click CD, click OK.

37. Click Normal, Wait while the files are copied.

38. Read the message, click "Install GRUB"
GRUB is the Linux boot loader, I don't know why they call it GRUB.

39. Read the Message, click OK.

40. Read the Message, choose the simple option, click OK.

41. Read the Message, choose the standard Linux Console, click OK.

42. Read the Message, click OK.

43. Read the Message, choose "Root", click OK.
The message said to install to the MBR, but I found that it works better
to install GRUB to root.

44. Read the Message, click OK.
The message should tell you that GRUB was successfully installed.

45. Read the Message, Click No.

Now the Computer is bootable again, but there is on edit that needs to be made to
the menu.lst file. If you were to re-boot now you would see the GRUB menu screen.
You would have toe option to select either Windows or Linux. If you were to choose
Windows it would reset the boot flag that was set in GParted so that you could only
boot Windows.

The menu.lst file that grubconfig created looks like this:

# GRUB configuration file '/boot/grub/menu.lst'.
# generated by 'grubconfig'. Mon Mar 26 10:24:48 2007
#
# Start GRUB global section
# timeout 30
color light-gray/blue black/light-gray
# End GRUB global section
# Other bootable partition config begins
title Windows (on /dev/hda1)
rootnoverify (hd0,0)
makeactive
chainloader +1
# Other bootable partition config ends
# Linux bootable partition config begins
title Linux (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal
# Linux bootable partition config ends
title Install GRUB to floppy disk (on /dev/fd0)
pause Insert a formatted floppy disk and press enter.
root (hd0,1)
setup (fd0)
pause Press enter to continue.
title Install GRUB to Linux partition (on /dev/hda2)
root (hd0,1)
setup (hd0,1)
pause Press enter to continue.
title - For help press 'c', then type: 'help'
root (hd0)
title - For usage examples, type: 'cat /boot/grub/usage.txt'
root (hd0)

There are a few things you need to understand about this file.

The "#" means that this line is a comment, it has no effect.

When GRUB starts it will wait forever for you to make a selection.
Removing the "#" for the "timeout" line near the top of the file will
make GRUB load the top selection on the menu after the amount of
seconds specified.

The "makeactive" line is what causes the boot flag to be changed to the
Windows partition if Windows is started from the GRUB menu. This line
needs to be removed, or commented out with a "#".

Any other changes to the menu.lst file are optional.

The lines after the two sections are not needed.

My menu.lst file looks like this:

# Start GRUB global section
timeout 10
color light-gray/blue black/light-gray
# End GRUB global section
#
# Other bootable partition config begins
title Windows (on /dev/hda1)
rootnoverify (hd0,0)
chainloader +1
# Other bootable partition config ends
#
# Linux bootable partition config begins
title Linux (on /dev/hda2)
root (hd0,1)
kernel /boot/vmlinuz root=/dev/hda2 ro vga=normal
# Linux bootable partition config ends

That explians the edits to the menu.lst file. Now we will make the edits.

46. Click the drives icon on the desktop.
(The one that looks like a USB pen drive.)

47. Click on Mount beside the the ext3 partition.

48. Click on Rox beside the the ext3 partition.

49. Click on the boot folder, then the grub folder.

50. Click on the menu.lst file.
The menu.lst file is now open in the editor.

51. Remove or comment out the "makeactive" line.

52. Make any other changes you want.

53. Click the "X" in the upper righthand corner of the edit window.

54. Click Save.

55. Remove the install CD, click Menu, Click Reboot Computer on
the Shut Down submenu.

56. Use the arrow key to select <DO NOT SAVE> and press Enter.

57. The computer will reboot, when the GRUB menu comes up select Windows.
When Windows boots it will automatically start a Check Disk. This
will fix the error message I told you to ignore a while back.

The computer is now ready to use.
Et là, c'est le drame. Je redémarre l'ordi qui affiche un magnifique "missing operating system".

J'ai connu mieux comme message d'accueil... Quelqu'un a une idée, une piste, un truc, n'importe quoi pour m'aider ???

Je précise que je suis (bêtement) novice sous Linux. Oui, je sais, c'est malin.

Merci d'avance à toute aide.
Kamo

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#2 Post by Argolance »

Hello,
Lorsque Toutou/Puppy est lancé en Live-CD (à la différence de Ubuntu par exemple), il est possible, en fin de session, de faire un fichier de sauvegarde et on retrouve Toutou là où on l'a laissé, au démarrage suivant. Ou bien ce système ne convient pas à la machine et/ou à son utilisatrice, et alors il suffit de ne pas faire la sauvegarde proposée et de retirer le CD du lecteur: ni vu ni connu! Si ça convient, on fait la sauvegarde, windows machun n'a plus vraiment de raison d'être et on peut reformater... ou simplement tout laisser en l'état.

Pourquoi avoir tenté cette installation "en dur", qui est toujours un peu délicate lorsqu'on ne sait pas exactement ce qu'on fait et tellement moins souple que le Live-CD?

Il y a ce fil (et quelques liens internes), qui peuvent peut-être te permettre d'aller plus loin.
Tu peux aussi nous copier-coller le contenu du fichier /boot/grub/menu.lst' à partir d'une session en Live-CD qui te donnera accès aux dossiers de ton installation.

Cordialement.
Last edited by Argolance on Wed 10 Oct 2012, 12:39, edited 1 time in total.

Médor

#3 Post by Médor »

Bonjour kamo,

Il faudrait d'abord préciser qu'elle est la version de Toutou utilisée ? Et connaitre les détails du résultat de l'installation...
Grub semble ne pas avoir été correctement installé et il ne semble pas que le menu de boot soit affiché ?

Le tuto exposé fait référence à un ancien Puppy : partitions en hdaX, actuellement il s'agit de sdaX pour Toutou 431 !

En reboutant depuis le LiveCD, normalement les icônes des partitions Windows (h/s)da1 et de Linux (h/s)da2 doivent être affichées sur le bureau, en cliquant dessus cela monte la partition et ouvre le gestionnaire de fichiers...
(S'assurer de la présences des répertoires et fichiers dans les deux partitions !).

Il faudrait le contenu du fichier /boot/grub/menu.lst dans la partition Linux : sda2, normalement.
Et nous donner le détail des partitions, ouvrir la Console et lancer la commande :

Code: Select all

fdisk -l
("-l" de lister).

Il y a de fortes chances qu'il faille réinstaller grub sur le mbr avec le drapeau de boot placé sur la partition Linux et non pas sur celle de Windows !

Cordialement.
Médor.

kamo
Posts: 2
Joined: Tue 09 Oct 2012, 21:43

#4 Post by kamo »

Bonjour Argolance et Médor,
Argolance wrote:Hello,
Lorsque Toutou/Puppy est lancé en Live-CD (à la différence de Ubuntu par exemple), il est possible, en fin de session, de faire un fichier de sauvegarde et on retrouve Toutou là où on l'a laissé, au démarrage suivant. Ou bien ce système ne convient pas à la machine et/ou à son utilisatrice, et alors il suffit de ne pas faire la sauvegarde proposée et de retirer le CD du lecteur: ni vu ni connu! Si ça convient, on fait la sauvegarde, windows machun n'a plus vraiment de raison d'être et on peut reformater... ou simplement tout laisser en l'état.

Pourquoi avoir tenté cette installation "en dur", qui est toujours un peu délicate lorsqu'on ne sait pas exactement ce qu'on fait et tellement moins souple que le Live-CD?

Il y a ce fil (et quelques liens internes), qui peuvent peut-être te permettre d'aller plus loin.
Tu peux aussi nous copier-coller le contenu du fichier /boot/grub/menu.lst' à partir d'une session en Live-CD qui te donnera accès aux dossiers de ton installation.

Cordialement.
Well, oui, tu as 100 fois raison, j'aurais dû tester un peu plus longtemps le live CD avant de me lancer dans l'aventure...
Médor wrote:Bonjour kamo,

Il faudrait d'abord préciser qu'elle est la version de Toutou utilisée ? Et connaitre les détails du résultat de l'installation...
Grub semble ne pas avoir été correctement installé et il ne semble pas que le menu de boot soit affiché ?

Le tuto exposé fait référence à un ancien Puppy : partitions en hdaX, actuellement il s'agit de sdaX pour Toutou 431 !

En reboutant depuis le LiveCD, normalement les icônes des partitions Windows (h/s)da1 et de Linux (h/s)da2 doivent être affichées sur le bureau, en cliquant dessus cela monte la partition et ouvre le gestionnaire de fichiers...
(S'assurer de la présences des répertoires et fichiers dans les deux partitions !).

Il faudrait le contenu du fichier /boot/grub/menu.lst dans la partition Linux : sda2, normalement.
Et nous donner le détail des partitions, ouvrir la Console et lancer la commande :

Code: Select all

fdisk -l

("-l" de lister).

Il y a de fortes chances qu'il faille réinstaller grub sur le mbr avec le drapeau de boot placé sur la partition Linux et non pas sur celle de Windows !

Cordialement.
Médor.
Oui, ça pourrait effectivement être ça : peut-être que le système s'est bien installé sauf Grub ?

Il s'agit bien de Toutou Linux 4.3.1 : j'ai bien fait la transposition hdaX / sdaX

Bon alors, j'étais plein d'entrain pour vous délivrer les infos mais comment dire... En essayant de copier le fichier /boot/grub/menu.lst et le résultat de la commande fdisk-l sur ma clé USB, celle-ci n'est devenue plus lisible sur mon mac (l'ordi connecté à Internet pour vous délivrer l'info :) !)...

Donc, à moins de retranscrire directement sur mon mac ce qui est affiché sur le PC, je ne vois pas trop comment vous transmettre l'info. Je regarde ce que je peux faire et je reviens...

Merci de votre aide en tout cas.

User avatar
Argolance
Posts: 3767
Joined: Sun 06 Jan 2008, 22:57
Location: PORT-BRILLET (Mayenne - France)
Contact:

#5 Post by Argolance »

Hello,
Donc, à moins de retranscrire directement sur mon mac ce qui est affiché sur le PC, je ne vois pas trop comment vous transmettre l'info. Je regarde ce que je peux faire et je reviens...
Pourquoi ne pas poster directement une copie de ces fichiers sur ce Forum à partir de ta session et en utilisant Seamonkey? Ne peux-tu pas te connecter avec le Live-CD?

Cordialement.

Post Reply