[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [linux-team] perdu lilo



Salut,

j'ai eu le même problème il n'y a pas longtemps :)

1. Trouver une boot/root disk, càd une disquette sur laquelle tu peux
booter (boot disk) et qui va monter une partition root sur en mémoire
(via ramdisk, d'où le terme root de boot/root disk). Ces disquettes sont
soit en une seule, soit en 2 parties.
Tu peux en trouver une ici:

http://metalab.unc.edu/pub/Linux/system/recovery/!INDEX.html

2. Tu mounts bien ta partition. En fait, il aura fait un ramdisk dans
lequel il aura tout stocké. Si tu fais un mount, il le fera en mémoire,
pas sur la disquette.
Pour savoir laquelle monter, tu essaies: 
mount -t ext2 /dev/hda1 /mnt
ou mount -t minix /dev/hda1 /mnt si ext2 n'est pas supporté par la
disquette.
Tu fais ls /mnt pour savoir si c'est bien ta parition root.
Sinon, tu essaies /dev/hda2, etc...
C'est donc une bonne chose que de connaître sa partition root
(information à retenir pour la prochaine fois ;)


3. Je coryais aussi qu'il suffisait de taper lilo, mais la rescue disk
que j'avais choisie avait son propre lilo (qui ne voulait pas
s'installer, dieu sait pourquoi) et il m'était impossible d'exécuter
celui qui était sur mon disque (dieu sait aussi pourquoi - enfin,
j'esprère ;).

Ma solution:

tu fais ls /mnt/boot
tu devrais trouver un fichier vmlinuz, zImage ou bzImage qui contient
l'imlage de ton kernel.

Tu fais donc une nouvelle disquette boot, avec l'image de *ton* kernel:

fdformat /dev/fd0h1440    pour formatter la disquette en 1.44mb dans le
1er floppy (fd0)
dd if=/mnt/boot/vmlinuz of=/dev/fd0    (ou if=/mnt/boot/zImage ou
bzImage, selon ton cas, pour copier ton kernel sur la disquette)

Tu redémarres en bootant sur cette nouvelle disquette. Tu devrais
maintenant redémarrer sur ton disque comme qd tu bootais auparavant avec
Lilo.
Là, tu n'as plus qu'à faire (en tant que root, bien sûr ;)
lilo

et le tour est joué (normalement).

Bon travail,

Christophe.


vincent.louviaux@netcourrier.com wrote:
> 
> j avais installé nunux sur le pc d un ami et il a reinstallé m$$
> donc plus de lilo
> 
> que dois je faire ?
> normalement les partitions linux sont encore la
> 
> 1- je boot avec une disquette linux. Comment la faire ?
> 2- je mount sa partion. Comment savoir laquelle et ou la monter? sur un rep de la disquette ?
> 3- reinstaller lilo. bhein la je suppose que je n ai plus qu a faire lilo et le fichier de config qui se trouve sur son HD
> 
> ----- La messagerie itinérante sans abonnement NetCourrier -----
> Web : www.netcourrier.com     Minitel : 3615 et 3623 NETCOURRIER
>                   Tél : 08 36 69 00 21
> ---------
> Visit the Linux Supertore Online: http://www.redcorp.com !
> If you want to be deleted from the list, send a mail to
> majordomo@rtfm.be with "unsubscribe linux-team" in the body.
> Archive of the list: http://tania.be.linux.org/

-- 
>>>>--------------->
Once it's perfectly aimed, the flying arrow goes straight to its target.
Thus, don't worry when things go right. 
There will be enough time to worry about if they go wrong.
Then, it's time to fire a new arrow towards another direction.
Don't sink.  Adapt yourself !  The archer has to shoot accurately and
quickly.
[Words of Erenthar, the bowman ranger]  <---------------<<<<
---------
Visit the Linux Supertore Online: http://www.redcorp.com !
If you want to be deleted from the list, send a mail to
majordomo@rtfm.be with "unsubscribe linux-team" in the body.
Archive of the list: http://tania.be.linux.org/