1

после каждого восстановление граб теряю windows. вот fdisk -l:

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0002449a

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1        4904    39391348+   7  HPFS/NTFS
/dev/sda2            4905       28442   189068954+   f  W95 Ext'd (LBA)
/dev/sda3           28443       30402    15736832   83  Linux
/dev/sda5            4905       28442   189068953+   7  HPFS/NTFS
Note: sector size is 4096 (not 512)

Disk /dev/sdb: 16.0 GB, 15980036096 bytes // эта наверно флешка
217 heads, 37 sectors/track, 485 cylinders
Units = cylinders of 8029 * 4096 = 32886784 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x20202020

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1               1         486    15605244    b  W95 FAT32
Partition 1 has different physical/logical beginnings (non-Linux?):
     phys=(0, 1, 2) logical=(0, 1, 28)
Partition 1 has different physical/logical endings:
     phys=(242, 216, 37) logical=(485, 197, 21)

и патом

sudo gedit /boot/grub/menu.lst

title Microsoft Windows 7
root (hd0,1)  
makeactive
chainloader +1

после всех этих  Когда  Выбираю windows, спустя нескольких секунд пишет:

error: no such device: 388822f58822b0f4
error: no such disk.

press any key to continue...

Помогите пожалуйста!!!

не суди - не судим будешь...

2

Во-первых, надо редактировать /boot/grub/grub.conf.
Во-вторых, покажи /boot/grub/device.map

3

и как? подскажи Че там редактировать

не суди - не судим будешь...

4

Во-вторых, покажи /boot/grub/device.map

5

нету такого файла когда с терминала вызываю по моему новый создает и пустой.  а если с файловой системы смотрю  там вообщем нету такого файла

не суди - не судим будешь...

6

Покажи вывод
ls /boot/grub

7

915resolution.mod            gcry_tiger.mod                  parttool.lst
acpi.mod                     gcry_twofish.mod                parttool.mod
affs.mod                     gcry_whirlpool.mod              password.mod
afs_be.mod                   gettext.mod                     password_pbkdf2.mod
afs.mod                      gfxmenu.mod                     pbkdf2.mod
aout.mod                     gfxterm.mod                     pci.mod
ata.mod                      gptsync.mod                     play.mod
ata_pthru.mod                grldr.img                       png.mod
at_keyboard.mod              grub.cfg                        probe.mod
befs_be.mod                  grubenv                         pxeboot.img
befs.mod                     gzio.mod                        pxecmd.mod
biosdisk.mod                 halt.mod                        pxe.mod
bitmap.mod                   hashsum.mod                     raid5rec.mod
bitmap_scale.mod             hdparm.mod                      raid6rec.mod
blocklist.mod                hello.mod                       raid.mod
boot.img                     help.mod                        read.mod
boot.mod                     hexdump.mod                     reboot.mod
bsd.mod                      hfs.mod                         regexp.mod
btrfs.mod                    hfsplus.mod                     reiserfs.mod
bufio.mod                    hwmatch.mod                     relocator.mod
cat.mod                      iorw.mod                        scsi.mod
cdboot.img                   iso9660.mod                     search_fs_file.mod
chain.mod                    jfs.mod                         search_fs_uuid.mod
cmostest.mod                 jpeg.mod                        search_label.mod
cmp.mod                      kernel.img                      search.mod
command.lst                  keylayouts.mod                  sendkey.mod
configfile.mod               keystatus.mod                   serial.mod
core.img                     legacycfg.mod                   setjmp.mod
cpio.mod                     linux16.mod                     setpci.mod
cpuid.mod                    linux.mod                       sfs.mod
crypto.lst                   lnxboot.img                     sleep.mod
crypto.mod                   loadenv.mod                     squash4.mod
cs5536.mod                   locale                          tar.mod
datehook.mod                 loopback.mod                    terminal.lst
date.mod                     lsacpi.mod                      terminal.mod
datetime.mod                 lsapm.mod                       terminfo.mod
default                      lsmmap.mod                      test_blockarg.mod
diskboot.img                 ls.mod                          testload.mod
dm_nv.mod                    lspci.mod                       test.mod
drivemap.mod                 lvm.mod                         tga.mod
echo.mod                     mdraid09.mod                    trig.mod
efiemu32.o                   mdraid1x.mod                    true.mod
efiemu64.o                   memdisk.mod                     udf.mod
efiemu.mod                   memrw.mod                       ufs1.mod
elf.mod                      menu.lst                        ufs2.mod
example_functional_test.mod  menu.lst~                       uhci.mod
ext2.mod                     menu.lst_backup_by_grub2_prerm  usb_keyboard.mod
extcmd.mod                   minicmd.mod                     usb.mod
fat.mod                      minix2.mod                      usbms.mod
font.mod                     minix.mod                       usbserial_common.mod
fshelp.mod                   mmap.mod                        usbserial_ftdi.mod
fs.lst                       moddep.lst                      usbserial_pl2303.mod
functional_test.mod          msdospart.mod                   usbtest.mod
g2hdr.img                    multiboot2.mod                  vbe.mod
gcry_arcfour.mod             multiboot.mod                   vga.mod
gcry_blowfish.mod            nilfs2.mod                      vga_text.mod
gcry_camellia.mod            normal.mod                      video_bochs.mod
gcry_cast5.mod               ntfscomp.mod                    video_cirrus.mod
gcry_crc.mod                 ntfs.mod                        video_fb.mod
gcry_des.mod                 ntldr.mod                       videoinfo.mod
gcry_md4.mod                 ohci.mod                        video.lst
gcry_md5.mod                 part_acorn.mod                  video.mod
gcry_rfc2268.mod             part_amiga.mod                  videotest.mod
gcry_rijndael.mod            part_apple.mod                  xfs.mod
gcry_rmd160.mod              part_bsd.mod                    xnu.mod
gcry_seed.mod                part_gpt.mod                    xnu_uuid.mod
gcry_serpent.mod             partmap.lst                     xzio.mod
gcry_sha1.mod                part_msdos.mod                  zfsinfo.mod
gcry_sha256.mod              part_sun.mod                    zfs.mod
gcry_sha512.mod              part_sunpc.mod
не суди - не судим будешь...

8

У тебя какой версии груб?
Там должно быть вот что:

ls /boot/grub/
device.map     fat_stage1_5  grub.conf         jfs_stage1_5  minix_stage1_5     splash.xpm.gz  stage2         vstafs_stage1_5
e2fs_stage1_5  ffs_stage1_5  iso9660_stage1_5  menu.lst      reiserfs_stage1_5  stage1         ufs2_stage1_5  xfs_stage1_5

9

У меня grub2 на втором компьютере, там ubuntu стоит и он создавает такие проблемы. может переустановка поможет?

не суди - не судим будешь...

10

С груб 2 я не знаком ab

11

В GRUB2 нет файла menu.lst, вместо него grub.cfg, который генерируется автоматически правилами, находящимися в /etc/grub.d/. Windows ищет правило /etc/grub.d/30_os_prober.
Покажите

 Консоль:
$ cat /boot/grub/grub.cfg

ИМХО GRUB2 это тупик. Лично я перешёл на grub4dos.

12

grigala@Ubuntuu:~$ cat /boot/grub/grub.cfg
#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s $prefix/grubenv ]; then
  set have_grubenv=true
  load_env
fi
set default="0"
if [ "${prev_saved_entry}" ]; then
  set saved_entry="${prev_saved_entry}"
  save_env saved_entry
  set prev_saved_entry=
  save_env prev_saved_entry
  set boot_once=true
fi

function savedefault {
  if [ -z "${boot_once}" ]; then
    saved_entry="${chosen}"
    save_env saved_entry
  fi
}

function recordfail {
  set recordfail=1
  if [ -n "${have_grubenv}" ]; then if [ -z "${boot_once}" ]; then save_env recordfail; fi; fi
}

function load_video {
  insmod vbe
  insmod vga
  insmod video_bochs
  insmod video_cirrus
}

insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root 2d79a257-a109-4857-b2a3-7b62c319365d
if loadfont /usr/share/grub/unicode.pf2 ; then
  set gfxmode=auto
  load_video
  insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(/dev/sda,msdos3)'
search --no-floppy --fs-uuid --set=root 2d79a257-a109-4857-b2a3-7b62c319365d
set locale_dir=($root)/boot/grub/locale
set lang=en_US
insmod gettext
if [ "${recordfail}" = 1 ]; then
  set timeout=-1
else
  set timeout=10
fi
### END /etc/grub.d/00_header ###

### BEGIN /etc/grub.d/05_debian_theme ###
set menu_color_normal=white/black
set menu_color_highlight=black/light-gray
if background_color 44,0,30; then
  clear
fi
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
if [ ${recordfail} != 1 ]; then
  if [ -e ${prefix}/gfxblacklist.txt ]; then
    if hwmatch ${prefix}/gfxblacklist.txt 3; then
      if [ ${match} = 0 ]; then
        set linux_gfx_mode=keep
      else
        set linux_gfx_mode=text
      fi
    else
      set linux_gfx_mode=text
    fi
  else
    set linux_gfx_mode=keep
  fi
else
  set linux_gfx_mode=text
fi
export linux_gfx_mode
if [ "$linux_gfx_mode" != "text" ]; then load_video; fi
menuentry 'Ubuntu, with Linux 2.6.38-8-generic' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 2d79a257-a109-4857-b2a3-7b62c319365d
    linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=2d79a257-a109-4857-b2a3-7b62c319365d ro   quiet splash vt.handoff=7
    initrd    /boot/initrd.img-2.6.38-8-generic
}
menuentry 'Ubuntu, with Linux 2.6.38-8-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
    recordfail
    set gfxpayload=$linux_gfx_mode
    insmod part_msdos
    insmod ext2
    set root='(/dev/sda,msdos3)'
    search --no-floppy --fs-uuid --set=root 2d79a257-a109-4857-b2a3-7b62c319365d
    echo    'Loading Linux 2.6.38-8-generic ...'
    linux    /boot/vmlinuz-2.6.38-8-generic root=UUID=2d79a257-a109-4857-b2a3-7b62c319365d ro single 
    echo    'Loading initial ramdisk ...'
    initrd    /boot/initrd.img-2.6.38-8-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_linux_xen ###
### END /etc/grub.d/20_linux_xen ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows 7  (on /dev/sda1)" --class windows --class os {
    insmod part_msdos
    insmod ntfs
    set root='(/dev/sda,msdos1)'
    search --no-floppy --fs-uuid --set=root 388822F58822B0F4
    chainloader +1
}
### END /etc/grub.d/30_os-prober ###

### BEGIN /etc/grub.d/40_custom ###
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
### END /etc/grub.d/40_custom ###

### BEGIN /etc/grub.d/41_custom ###
if [ -f  $prefix/custom.cfg ]; then
  source $prefix/custom.cfg;
fi
### END /etc/grub.d/41_custom ###
не суди - не судим будешь...

13

решено, помог DdShurick.

не суди - не судим будешь...