Nieuws:

Welkom, Gast. Alsjeblieft inloggen of registreren.
Heb je de activerings-mail niet ontvangen?

Auteur Topic: grub weg na herinstall xp in dual boot  (gelezen 1229 keer)

Pierre1

  • Gast
grub weg na herinstall xp in dual boot
« Gepost op: 2007/09/10, 14:10:58 »
Ik heb een probleempje.  Ik heb op mijn laptop zowel xp als ubuntu feisty in dual boot draaien.  Maar ik heb xp moeten herinstalleren en nu is mijn grub weg.  Is er een manier om grub terug te krijgen zonder ubuntu opnieuw te moeten installeren?

Ik ben bij wat zoeken in het forum dit commando tegengekomen: sudo gedit /root/grub/menu.lst

Probleem is dat ik niet weet waar ik dit moet intikken.  De live cd werkt niet omdat er problemen zijn met mijn grafische kaart  (ati x1400).  Ik heb hier ook de alternate cd liggen (heb hem gebruikt om ubuntu te installeren) maar ik weet niet hoe ik aan mijn command line moet komen als ik met de alternate cd boot.  En wat ik verder moet gebruiken van commando's.  Is er iemand die wat tips heeft voor een beginner?

Offline bartek

  • Lid
    • http://bartek.blogsome.com
grub weg na herinstall xp in dual boot
« Reactie #1 Gepost op: 2007/09/10, 14:13:25 »
Met de live-cd gaat dat en ook met de supergrub live-cd.

Kijk zeker hier eens:
https://wiki.ubuntu.com/NlFaq#head-ca959a7c7f0ae292fe40468c1bd30b6a4074e6e0
Of de supergrub cd:
http://supergrub.forjamari.linex.org/
| Deliberando saepe perit occasio |

"Car la vie est un bien perdu quand on n'a pas vécu comme on l'aurait voulu"

Pierre1

  • Gast
grub weg na herinstall xp in dual boot
« Reactie #2 Gepost op: 2007/09/10, 14:18:50 »
Ik heb eens op de wiki gekeken:

Reparatie als volgt:

Start de computer vanaf de Ubuntu LiveCD.

Open een terminalschermpje.

Zoals ik eerder zei start de ubuntu liveCD niet op omdat hij een conflict met mij grafische kaart geeft.  Is er een manier om dit met de alternate cd te doen?  Of met de liveCD zonder dat het grafisch gedeelte moet worden opgestart?

Offline Rulus

  • Lid
grub weg na herinstall xp in dual boot
« Reactie #3 Gepost op: 2007/09/10, 14:20:46 »
Als je met de gewone live-cd opgestart bent kan je via Ctrl+Alt+F1 naar een textconsole.

Pierre1

  • Gast
grub weg na herinstall xp in dual boot
« Reactie #4 Gepost op: 2007/09/10, 14:34:34 »
ok, dit heb ik uitgevoerd:

sudo grub ENTER

root (hd0,5) ENTER

setup (hd,0) ENTER

en nu krijg ik dit:
error 17: cannot mount selected partition

iemand een oplossing hiervoor?

Pierre1

  • Gast
grub weg na herinstall xp in dual boot
« Reactie #5 Gepost op: 2007/09/10, 15:19:06 »
Niemand die mij kan helpen?  Ik zal ubuntu dus opnieuw moeten installeren telkens ik xp herinstalleer:( ???

Offline bartek

  • Lid
    • http://bartek.blogsome.com
grub weg na herinstall xp in dual boot
« Reactie #6 Gepost op: 2007/09/10, 15:38:57 »
Ben je zeker van de juiste naam van je partitie?
(hd0,5)
?

je hebt Ubuntu dus op je 6de partitie staan?
| Deliberando saepe perit occasio |

"Car la vie est un bien perdu quand on n'a pas vécu comme on l'aurait voulu"

grub weg na herinstall xp in dual boot
« Reactie #7 Gepost op: 2007/09/10, 16:14:09 »
Volgens mij hoef je alleen GRUB maar opnieuw te installeren en vervolgens de goed HD aan te wijzen.

Je kan echter ook Supergrub downloaden op cd branden ( floppy),  die alles automatisch voor je repareerd

Ik zal ff de volledige TUT van ons forum hier neerkwakken, doe er je voordeel mee.

#############################################################
GRUB is een programma waardoor je kan booten van de Harddisk.
GRUB-Website

Dit proggie is dus primair gezien het meest belangrijke onderdeel van alles want als je Grub beschadigt of je maakt een verkeerde instelling in GRUB boot je PC niet meer.

Nu hoeft dit niet desatreus te zijn, want je kan gewoon vanaf de LiveCD booten en je Grub weer herstellen, mja Gemak van Linux he ?

Bij Harddisk perikelen moet je nog wel eens in de Grub dingen veranderen, met name als de detectie fout gaat, en daarom leek het me wel handig om de basic informatie hiervan te achterhalen.

Ik kwam uit op deze link GRUB Bootloader die helaas in het engels is, maar wel alles uitlegt over GRUB.

Misschien kom ik er nog 1 tegen in het NL en zal die dan hier posten.
De link blijft behoorlijk up-to-date, deze is van Updated: 2006/06/24

################################
TIP 1:
Wanneer je GRUB beschadigt is en je PC niet meer wil booten kan je met dit toffe proggie je GRUB helemaal repareren.

Super Grub Disk Restore Grub in de MBR automatisch en veel meer!

Dit is een website die nog wat handige tips heeft over Super_Grub en hoe je een floppy of cd maakt om van te booten.

Hier download je de Super Grub Floppy of CD

###############################

Wanneer je wilt weten hoe de partitie's heten, start je op met de live cd en typ je in Terminal:
sudo fdisk -l################################
TIP2:


Grub repareren gaat ook erg makkelijk met de Gparted LiveCD :

Stap 1. Start de computer vanaf de Gparted LiveCD
Stap 2. Open een terminalschermpje.
Stap 3. Typ gruben druk op Enter.
Dit start Grub zelf op.
Stap 4. Typ root (hd0,0)en druk op Enter
LET OP:
Je typt hd0,0 als je rootpartitie op hda1 staat.
Staat die rootpartitie bijvoorbeeld op hda6, dan is de terminaltoverspreuk  root (hd0,5) .
Hiermee vertel je Grub waar de actieve Linuxpartitie zit.
Dus staat je rootpartitie op hda1 dan typ je hd0,0
Staat die op hda6  dan typ je hd0,5
Dus altijd 1tje lager.


Stap 5. Typ  setup (hd0)en druk op Enter.
Hiermee installeer je Grub (opnieuw) in de MBR.
Stap 6. Verlaat Grub door  quitin te tikken en op Enter te drukken.
Klaar

 THX to  Pjotr123.

#######################################
Grub errors

1 : Filename must be either an absolute filename or blocklist
This error is returned if a file name is requested which doesn't fit the syntax/rules listed in the Filesystem.
2 : Bad file or directory type
This error is returned if a file requested is not a regular file, but something like a symbolic link, directory, or FIFO.
3 : Bad or corrupt data while decompressing file
This error is returned if the run-length decompression code gets an internal error. This is usually from a corrupt file.
4 : Bad or incompatible header in compressed file
This error is returned if the file header for a supposedly compressed file is bad.
5 : Partition table invalid or corrupt
This error is returned if the sanity checks on the integrity of the partition table fail. This is a bad sign.
6 : Mismatched or corrupt version of stage1/stage2
This error is returned if the install command points to incompatible or corrupt versions of the stage1 or stage2. It can't detect corruption in general, but this is a sanity check on the version numbers, which should be correct.
7 : Loading below 1MB is not supported
This error is returned if the lowest address in a kernel is below the 1MB boundary. The Linux zImage format is a special case and can be handled since it has a fixed loading address and maximum size.
8 : Kernel must be loaded before booting
This error is returned if GRUB is told to execute the boot sequence without having a kernel to start.
9 : Unknown boot failure
This error is returned if the boot attempt did not succeed for reasons which are unknown.
10 : Unsupported Multiboot features requested
This error is returned when the Multiboot features word in the Multiboot header requires a feature that is not recognized. The point of this is that the kernel requires special handling which GRUB is probably unable to provide.
11 : Unrecognized device string
This error is returned if a device string was expected, and the string encountered didn't fit the syntax/rules listed in the Filesystem.
12 : Invalid device requested
This error is returned if a device string is recognizable but does not fall under the other device errors.
13 : Invalid or unsupported executable format
This error is returned if the kernel image being loaded is not recognized as Multiboot or one of the supported native formats (Linux zImage or bzImage, FreeBSD, or NetBSD).
14 : Filesystem compatibility error, cannot read whole file
Some of the filesystem reading code in GRUB has limits on the length of the files it can read. This error is returned when the user runs into such a limit.
15 : File not found
This error is returned if the specified file name cannot be found, but everything else (like the disk/partition info) is OK.
16 : Inconsistent filesystem structure
This error is returned by the filesystem code to denote an internal error caused by the sanity checks of the filesystem structure on disk not matching what it expects. This is usually caused by a corrupt filesystem or bugs in the code handling it in GRUB.
17 : Cannot mount selected partition
This error is returned if the partition requested exists, but the filesystem type cannot be recognized by GRUB.
18 : Selected cylinder exceeds maximum supported by BIOS
This error is returned when a read is attempted at a linear block address beyond the end of the BIOS translated area. This generally happens if your disk is larger than the BIOS can handle (512MB for (E)IDE disks on older machines or larger than 8GB in general).
19 : Linux kernel must be loaded before initrd
This error is returned if the initrd command is used before loading a Linux kernel.
20 : Multiboot kernel must be loaded before modules
This error is returned if the module load command is used before loading a Multiboot kernel. It only makes sense in this case anyway, as GRUB has no idea how to communicate the presence of such modules to a non-Multiboot-aware kernel.
21 : Selected disk does not exist
This error is returned if the device part of a device- or full file name refers to a disk or BIOS device that is not present or not recognized by the BIOS in the system.
22 : No such partition
This error is returned if a partition is requested in the device part of a device- or full file name which isn't on the selected disk.
23 : Error while parsing number
This error is returned if GRUB was expecting to read a number and encountered bad data.
24 : Attempt to access block outside partition
This error is returned if a linear block address is outside of the disk partition. This generally happens because of a corrupt filesystem on the disk or a bug in the code handling it in GRUB (it's a great debugging tool).
25 : Disk read error
This error is returned if there is a disk read error when trying to probe or read data from a particular disk.
26 : Too many symbolic links
This error is returned if the link count is beyond the maximum (currently 5), possibly the symbolic links are looped.
27 : Unrecognized command
This error is returned if an unrecognized command is entered on the command-line or in a boot sequence section of a configuration file and that entry is selected.
28 : Selected item cannot fit into memory
This error is returned if a kernel, module, or raw file load command is either trying to load its data such that it won't fit into memory or it is simply too big.
29 : Disk write error
This error is returned if there is a disk write error when trying to write to a particular disk. This would generally only occur during an install of set active partition command.
30 : Invalid argument
This error is returned if an argument specified to a command is invalid.
31 : File is not sector aligned
This error may occur only when you access a ReiserFS partition by block-lists (e.g. the command install). In this case, you should mount the partition with the `-o notail' option.
32 : Must be authenticated
This error is returned if you try to run a locked entry. You should enter a correct password before running such an entry.
33 : Serial device not configured
This error is returned if you try to change your terminal to a serial one before initializing any serial device.
34 : No spare sectors on the disk
This error is returned if a disk doesn't have enough spare space. This happens when you try to embed Stage 1.5 into the unused sectors after the MBR, but the first partition starts right after the MBR or they are used by EZ-BIOS.



SCCS
I don't suffer from insanity, I enjoy every minute of it.
Microsoft geeft je een raam, Linux geeft je een heel huis :D

Pierre1

  • Gast
grub weg na herinstall xp in dual boot
« Reactie #8 Gepost op: 2007/09/10, 18:04:05 »
Ah, het is opgelost, ik ben dit bericht nu in ubuntu aan het typen.  Blijkbaar stond mijn linuxpartitie op sda 5 en m'n linux swap op sda 6.  Daarom werkte het niet.  Stomme fout maar ik kende het commando sudo fdisk -l niet en zo kon ik het niet direct controleren.  En ik weet nu dat ik via ctrl-alt-F1 commando's kan invoeren met mijn live cd die niet wil opstarten.

Bedankt voor de hulp iedereen.

Offline Ron

  • Forumteam
    • r0n
    • Over Tholen
grub weg na herinstall xp in dual boot
« Reactie #9 Gepost op: 2007/09/10, 19:48:28 »
Citaat van: Pierre1
Zoals ik eerder zei start de ubuntu liveCD niet op omdat hij een conflict met mij grafische kaart geeft.
Geef als optie video=vga mee, dan wordt je video kaart als standaard VGA kaart aangestuurd.
Openstandaard Evangelist, OpenSource Promotor, OpenData voorstander.
Xubuntu gebruiker en voorstander
Er is ook nog een andere hobby.