Grub rebooter automatisk
Min grub er gaaet i selvsving :/
Jeg skulle boote windows igaar, saa var inde og pille lidt i grub, via webmin - det virkede fint nok, windows bootede som planlagt og alt var godt.
Da jeg saa starter min maskine i dag, rebooter maskinen lige efter GRUB loading beskeden (OS listen naar ikke at blive vist)..
Jeg har proevet med http://ubuntuforums.org/showthread.php?t=224351 (via ubuntu 8.10 livecden) men lige lidt hjaelper det.
Nogen gode ideer til at faa liv i min debian lenny igen ??
menu.lst
Grub install
fdisk -l
Jeg skulle boote windows igaar, saa var inde og pille lidt i grub, via webmin - det virkede fint nok, windows bootede som planlagt og alt var godt.
Da jeg saa starter min maskine i dag, rebooter maskinen lige efter GRUB loading beskeden (OS listen naar ikke at blive vist)..
Jeg har proevet med http://ubuntuforums.org/showthread.php?t=224351 (via ubuntu 8.10 livecden) men lige lidt hjaelper det.
Nogen gode ideer til at faa liv i min debian lenny igen ??
menu.lst
default 0
timeout 5
color cyan/blue white/blue
## ## End Default Options ##
title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=UUID=f3c318bd-b65f-44b0-8882-1b72959ed645 ro quiet
initrd /boot/initrd.img-2.6.26-2-686
title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=UUID=f3c318bd-b65f-44b0-8882-1b72959ed645 ro single
initrd /boot/initrd.img-2.6.26-2-686
### END DEBIAN AUTOMAGIC KERNELS LIST
# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root
# This entry automatically added by the Debian installer for a non-linux OS
# on /dev/sda1
title Windows 7
root (hd0,1)
makeactive
savedefault
chainloader +1
Grub install
ubuntu@ubuntu:~$ sudo mkdir /mnt/root
ubuntu@ubuntu:~$ sudo mount -t ext3 /dev/sdb1 /mnt/root/
ubuntu@ubuntu:~$ sudo mount -t proc none /mnt/root/proc/
ubuntu@ubuntu:~$ sudo mount -o bind /dev /mnt/root/dev/
ubuntu@ubuntu:~$ sudo chroot /mnt/root /bin/bash
root@ubuntu:/# sudo grub
sudo: unable to resolve host ubuntu
Probing devices to guess BIOS drives. This may take a long time.
GNU GRUB version 0.97 (640K lower / 3072K upper memory)
[ 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> find /boot/grub/stage1
(hd1,0)
grub> root (hd1,0)
Filesystem type is ext2fs, partition type 0x83
grub> setup (hd1,0)
Checking if "/boot/grub/stage1" exists... yes
Checking if "/boot/grub/stage2" exists... yes
Checking if "/boot/grub/e2fs_stage1_5" exists... yes
Running "embed /boot/grub/e2fs_stage1_5 (hd1,0)"... failed (this is not fatal)
Running "embed /boot/grub/e2fs_stage1_5 (hd1,0)"... failed (this is not fatal)
Running "install /boot/grub/stage1 (hd1,0) /boot/grub/stage2 p /boot/grub/menu.lst "... succeeded
Done.
fdisk -l
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x15423c6d
Device Boot Start End Blocks Id System
/dev/sda1 1 1 992+ 42 SFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1 31717 254761984 42 SFS (win7)
/dev/sda3 31717 60802 233622552 42 SFS
Disk /dev/sdb: 250.0 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x00056702
Device Boot Start End Blocks Id System
/dev/sdb1 1 9727 78131103+ 83 Linux (debian)
/dev/sdb2 9728 9836 875542+ 82 Linux swap / Solaris
/dev/sdb3 9837 30401 165188362+ 83 Linux (/home)
Disk /dev/sdc: 640.1 GB, 640135028736 bytes
255 heads, 63 sectors/track, 77825 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x213762b9
Device Boot Start End Blocks Id System
/dev/sdc1 1 38306 307689472 7 HPFS/NTFS
/dev/sdc2 38306 77826 317438976 7 HPFS/NTFS
Kommentarer1
Kan det passe at det skyldes
Device Boot Start End Blocks Id System
/dev/sda1 1 1 992+ 42 SFS
Partition 1 does not end on cylinder boundary.
/dev/sda2 * 1 31717 254761984 42 SFS (win7)
/dev/sda3 31717 60802 233622552 42 SFS
Gparted er ikke specielt glad for disken - har prøvet at extende sda2 så den for den sidste mb med, men det går ikke - og kan heller ikke lave en partion på den ene mb.
Live disken kan dog godt mounte/læse /dev/sda2..