Welcome to the Linux Foundation Forum!

dual booted windows 7 and debian wheezy 7.7.0 only debian booted

Posts: 2
edited January 2015 in Command Line

hallo.

im joining this, hoping tbat anyone would help me to fix this problem.

I dual booted windows 7 and debian wheezy, I wanted to boot windows 7 first, but, only windows boot (no option to choose debian) so I did boot to rescue mode to fix this, and fix this /etc/default/grub and change thjs GRUB_DEFAUlT=0 which debian but only to boot debian.

and did this with grub terminal on boot changing the (hd0,msdos6) to (/dev/sda6 and I cannot change this again cause I cannot open it/boot to.

how do o fix this?

Cant seem to delete this

Managed to fix this though, i had set boot time to zero.

had to reinstall debian

Comments

  • Are you still experiencing the problem?

    You don't think to need to use /dev/sda6 to indicate the root device of your installation. GRub2 seems to read hard drives using dos-type naming, e.g, (hd0, msdos6) which would represent /dev/sda6.

    I am not very fluent using the grub-rescue image. I find it much easier for me to use a startup-disk.

    If you are unable to boot your system, boot your system using a LiveCD and run gparted. Notice the partitions that have windows and debian installed and the names of the devices they are installed on. Then navigate to the /boot/grub/grub.cfg file and rename the "root" devices of your OS installations as (hd0,msdosx) = with "x" representing the number of the partition the OS is installed on.

    Use this entry in my grub.cfg file as a guide.
    1. menuentry 'Ubuntu, with Linux 3.18.0-12-generic (systemd)' --class ubuntu --class gnu-linux --class gnu --class os $menuentry_id_option 'gnulinux-3.$
    2. recordfail
    3. load_video
    4. gfxmode $linux_gfx_mode
    5. insmod gzio
    6. if [ x$grub_platform = xxen ]; then insmod xzio; insmod lzopio; fi
    7. insmod part_msdos
    8. insmod ext2
    9. [b]set root='hd0,msdos8'[/b]
    10. if [ x$feature_platform_search_hint = xy ]; then
    11. search --no-floppy --fs-uuid --set=root --hint-bios=hd0,msdos8 --hint-efi=hd0,msdos8 --hint-baremetal=ahci0,msdos8 cd8c3742-b1ef-4e7a-a93$
    12. else
    13. search --no-floppy --fs-uuid --set=root cd8c3742-b1ef-4e7a-a93e-ce79cefff2e9
    14. fi
    15. echo 'Loading Linux 3.18.0-12-generic ...'
    16. linux /boot/vmlinuz-3.18.0-12-generic root=UUID=cd8c3742-b1ef-4e7a-a93e-ce79cefff2e9 ro quiet splash $vt_handoff init=/lib/systemd/systemd
    17. echo 'Loading initial ramdisk ...'
    18. initrd /boot/initrd.img-3.18.0-12-generic

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Welcome!

It looks like you're new here. Sign in or register to get started.
Sign In

Categories

Upcoming Training