Aller au contenu
Règlement du forum ×
IPTV et arnaques ×

Récuperation Grub Après Reinstalation Windows


Mr_Diabloo

Messages recommandés

salut

 

voila j'ai windows sur une parition et ubuntu sur une deux autres partition ( Swap + Ext3 )

 

j'ai etait obligé de reinstaller Mon xp et donc au redemarage je remarque qu'il n y a plus de grub

 

je voudrais récuperé mon ubuntu sans reinstaller car y a tt les mise a jours, logiciel et drivers

 

donc je chercher un tutorial facile a executer vu que je suis newbie en linux

 

merci d'avance

Lien vers le commentaire
Partager sur d’autres sites

Ca m'est arrivé tout plein de fois !

 

Les Live CD c'est bien mais ça fait 700Mo alors qu'un Rescue CD (en fait Net Installation CD) ça fait 177Mo seulement !

 

Il éxiste un Ubuntu Installation Minimal CD mais il fait que 9Mo. Je ne l'ai jamais essayé et je ne sais pas s'il offre un shell avec GRUB. Il est ici.

 

Pour restaurer grub j'utilise le rescue CD Fedora et je le grave sur un disque RW puis je démarre la machine depuis ce CD. Dans le menu choisir "Rescue installed system".

 

Télécharger donc le Netinst CD de Fedora11/i386 qui sert aussi de Rescue CD.

 

Le programme rescue lorsqu'il sera lancé vous demandera quelle langue utiliser pour le clavier et l'interface. Ensuite il vous proposera de rechercher des installations Fedora sur la machine et de monter celle que vous souhaitez. Choisissez Ignorer pour qu'il lance aussitôt le shell bash. Ce n'est pas important qu'il trouve ou non car on a même pas besoin de monter quoi que ce soit, tout ce qu'on veut c'est un shell bash pour lancer le shell de GRUB car on utilise le shell de GRUB et sa commande install pour restaurer le MBR.

 

Lorsque l'invite du shell bash apparait, taper la commande fdisk -l pour lister les disques durs détectées et leurs partitions.

 

Il faut faire quelques vérifications au préalable, notamment déterminer le disque dur sur le MBR duquel GRUB doit écrire et la partition linux ou grub lira la configuration pour son menu,les fichiers stage1 et stage2. En règle générale il faut installer GRUB sur le MBR du disque que le BIOS démarre en premier.

 

On va utiliser le premier disque pour exemple et la troisième partition.

 

Pour GRUB le premier disque n'est pas /dev/sda (ou /dev/hda) mais (hd0) et les parenthèses sont importantes ! Et pour accéder à la 3 ième partition du premier disque GRUB utilse la notation (hd0,2). Les partitions et disques sont indexés depuis 0 contrairement au schéma de notation des fichiers de périphériques où les partitions sont indexées depuis 1. GRUB sait lire les systèmes de fichier EXT2 et EXT3, il faut juste lui indiquer la partition correctement.

 

Ainsi si le répertoire /boot sur trouve sur la troisième partition du premier disque dur (il doit contenir un dossier grub avec les fichiers stage1 et stage2 normalement), et que le fichier de configuration de GRUB est /boot/grub/menu.lst (c'est le cas sous Ubuntu) on tape la commande grub à l'invite du shell bash puis sous le shell GRUB on tape la commande:

 

install (hd0,2)/boot/grub/stage1 (hd0) (hd0,2)/boot/grub/stage2 (hd0,2)/boot/grub/menu.lst

 

Le schéma est simple en fait:

 

install stage1_file disque_dur stage2_file config_file

 

Le plus dur avec cette méthode c'est de taper tous ces chemins sans faute et sans copier/coller car le shell bash du CD est vraiment minimal et la complétion normalement disponible avec la touche tab sous le shell de GRUB ne l'est pas avec le rescue CD. Mais elle est malgré cela plutôt rapide.

 

En cas d'échec le message d'erreur est affiché et en général il faut vérifier les chemins sinon rien n'est affiché et il suffit de quitter le shell grub (quit) puis le shell bash (exit) pour redémarrer.

 

Voici l'aide de la commande install de GRUB:

 

[ Minimal BASH-like line editing is supported. For

the first word, TAB lists possible command

completions. Anywhere else TAB lists the possible

completions of a device/filename. ]

 

grub> help install

install: install [--stage2=STAGE2_FILE] [--force-lba] STAGE1 [d] DEVICE STAGE2 [ADDR]

[p] [CONFIG_FILE] [REAL_CONFIG_FILE]

Install STAGE1 on DEVICE, and install a blocklist for loading

STAGE2 as a Stage 2. If the option `d' is present, the Stage 1

will always look for the disk where STAGE2 was installed, rather

than using the booting drive. The Stage 2 will be loaded at

address ADDR, which will be determined automatically if you don't

specify it. If the option `p' or CONFIG_FILE is present, then the

first block of Stage 2 is patched with new values of the

partition and name of the configuration file used by the true

Stage 2 (for a Stage 1.5, this is the name of the true Stage 2)

at boot time. If STAGE2 is a Stage 1.5 and REAL_CONFIG_FILE is

present, then the Stage 2 CONFIG_FILE is patched with the

configuration filename REAL_CONFIG_FILE. If the option

`--force-lba' is specified, disable some sanity checks for LBA

mode. If the option `--stage2' is specified, rewrite the Stage 2

via your OS's filesystem instead of the raw device.

 

 

Les paramètres entre crochet sont optionnels. Le chemin vers le fichier de configuration est le seul paramètre optionnel utilisé ici mais il est important car si son chemin est mal écrit la commande install réussira mais GRUB n'aura pas de menu au démarrage. Il faudrait alors lui indiqué le chemin vers ce fichier avec la commande configfile lors du démarrage.

 

Bonne chance.

Modifié par djezzyman
Lien vers le commentaire
Partager sur d’autres sites

Si c'était sous OpenSuSE, il suffirait de booter avec le DVD de SuSE et de lancer une réparation automatique, l'assistant aurait détecter le problème qui concerne GRUB et l'aurait automatiquement réinstaller.

Lien vers le commentaire
Partager sur d’autres sites

Rejoindre la conversation

Vous pouvez publier maintenant et vous inscrire plus tard. Si vous avez un compte, connectez-vous maintenant pour publier avec votre compte.

Invité
Répondre à ce sujet…

×   Collé en tant que texte enrichi.   Coller en tant que texte brut à la place

  Seulement 75 émoticônes maximum sont autorisées.

×   Votre lien a été automatiquement intégré.   Afficher plutôt comme un lien

×   Votre contenu précédent a été rétabli.   Vider l’éditeur

×   Vous ne pouvez pas directement coller des images. Envoyez-les depuis votre ordinateur ou insérez-les depuis une URL.

  • Messages

    • Comparing Stainless Steel and Plastic Shower Drain China Options When it comes to selecting a shower drain, choosing the right material is essential for performance, durability, and aesthetic appeal. In the market of Shower Drain China , two of the most popular options are stainless steel and plastic. Each material offers unique advantages and considerations, making it important to understand their differences before making a decision. Material Properties and Advantages   Feature Stainless Steel Shower Drain Plastic Shower Drain Durability Highly durable and resistant to corrosion Lightweight but less durable over time Corrosion Resistance Excellent resistance, ideal for wet environments Generally resistant but can degrade under harsh chemicals Maintenance Easy to clean and maintain surface shine May require more frequent cleaning due to scratches or discoloration Weight Heavier, providing a sturdy feel Very lightweight, easy to handle and install Cost Typically higher upfront cost More affordable and budget-friendly Aesthetic Appeal Sleek, modern metallic finish Available in various colors but less premium appearance Installation Requires careful handling due to weight Easy to install and replace Which Material Is Best for Your Shower Drain? Stainless Steel: Ideal for commercial bathrooms, luxury residences, and places where durability and design are priorities. Its robust nature and resistance to rust ensure long-term performance. Plastic: Suitable for budget-conscious projects or locations with lighter use, such as residential bathrooms with less heavy foot traffic. Plastic drains offer versatility and cost savings. Considerations for Buyers Longevity vs. Budget: Stainless steel drains often justify their higher cost with a longer lifespan and less frequent replacement. Plastic drains are cost-effective but may need replacement sooner. Environmental Impact: Stainless steel is recyclable, while plastic drainage components may contribute to environmental waste if not properly recycled. Maintenance Preferences: Stainless steel drains resist staining and are easier to keep clean. Plastic may show wear and discoloration faster. Why Choose Hasen-home for Your Shower Drain China Needs? At Hasen-home, we manufacture high-quality Shower Drain China products in both stainless steel and plastic varieties to suit diverse customer needs. Our products combine durability, functionality, and design excellence to meet international standards. With rigorous quality control and reliable service, Hasen-home is your trusted partner for drainage solutions. Explore our full range at https://www.hasen-home.com .
    • Is Anionic Polyacrylamide Emulsion the Key to Better Dye Removal? Textile wastewater treatment is a growing concern for industries seeking both environmental compliance and operational efficiency. One major challenge is removing synthetic dyes that resist conventional treatment. Can anionic polyacrylamide emulsion be the key to achieving clean and color-free effluent? Why Is Textile Wastewater So Complex? Wastewater from textile processes often contains large amounts of reactive and acid dyes, surfactants, sizing agents, and suspended solids. These substances not only give the water a strong color but also raise chemical oxygen demand and affect biological treatment efficiency. Traditional chemical coagulants may struggle to address such complexity without secondary impacts like excessive sludge generation. How Does Anionic Polyacrylamide Emulsion Work? Anionic polyacrylamide emulsion carries a negative charge, allowing it to interact with positively charged dye molecules and other particles in the wastewater. This interaction causes fine particles to aggregate into larger flocs, which then settle more easily. The emulsion form dissolves faster and more uniformly than powder products, making it highly suitable for continuous dosing systems. In textile wastewater treatment, this emulsion can be applied at several stages including pretreatment, coagulation, clarification, and sludge handling. It enhances dye removal, improves solid-liquid separation, and ultimately increases the clarity of discharged water. Where Is It Most Effective? In real-world applications, anionic polyacrylamide emulsion is effective in the following areas: Pretreatment where it supports the initial destabilization of dye molecules Coagulation-flocculation to build strong and fast-settling flocs Sedimentation to improve water clarity by accelerating the settling process Sludge dewatering to reduce water content and minimize disposal costs This versatility makes it a preferred choice for textile manufacturers aiming to improve wastewater quality and system efficiency. What Benefits Can You Expect? Users of anionic polyacrylamide emulsion often report: Faster and more complete dye removal Lower chemical consumption and cost Better sludge characteristics for easier handling Reduced environmental footprint due to improved water recycling Its broad pH compatibility and strong performance in high-color wastewater make it a reliable tool in textile operations. Choose Polyacrylamidefactory for Proven Performance If your factory is looking for a dependable solution to difficult dye removal challenges, Polyacrylamidefactory offers tailored anionic polyacrylamide emulsion products engineered for textile wastewater treatment. Our formulations are designed to deliver rapid flocculation, superior settling, and reduced sludge generation, all while helping your plant meet environmental standards. With years of industry experience and technical support, Polyacrylamidefactory ensures that your wastewater treatment process is both efficient and sustainable. Partner with us for performance you can trust. Learn more and contact us athttps://www.polyacrylamidefactory.com
    • le tutoriel que je vous ai envoyé a-t-il fonctionné sur votre matériel ?
    • je suis sur le cloudflare dns et je n’ai pas ce problème.
×
×
  • Créer...