Skip to main content

Thread: Old Ubuntu Partition not Recognized by Grub


so, i've spent better part of last 4 days reading old forum threads , trying can think of fix problem. finely, i'm posted thread last resort.

here's happened:

1. decided reinstall windows xp on dell inspiron 1520. put install disk in, selected proper partition, formated, , installed.

2. remembered media center, tried install contents of disk, failed. tried boot disk, partitions weren't recognized (instead showed 1 big 320 gb partition), quit out of that.

3. noticed grub2 no more.

3. downloaded testdisk internet (neat little program way). did quick search of partitions, corrected overlapping problems, wrote new partition table disk.

4. put in live cd, did whole:

sudo grub
find /boot/grub/stage1
...

wasn't working.

5. decided brother did , install new partition of ubuntu situations these.

6. grub , working (legacy version 0.97 came ubuntu 8.04 live cd). , although other partitions recognized, old ubuntu 10.04 isn't there.

7. updated ubuntu 8.04 10.04 , can mount other partitions inside new ubuntu.

8. i've tried editing menu.lst combination try comes either error 12 or 15. downloaded "storage device manager" modified fstab file me.

below results of neat little script lead on 1 of these threads. tells possibly want know drives. take look, , if has ideas, i'm ears (note i've erased changes i've made menu.lst).

code:
                boot info script 0.55    dated february 15th, 2010                      ============================= boot info summary: ==============================   => grub 0.97 installed in mbr of /dev/sda , looks on same drive      in partition #5 /boot/grub/stage2 , /boot/grub/menu.lst.  sda1: _________________________________________________________________________      file system:       vfat     boot sector type:  dell utility: fat16     boot sector info:  no errors found in boot parameter block.     operating system:       boot files/dirs:   /command.com  sda2: _________________________________________________________________________      file system:       ntfs     boot sector type:  windows xp     boot sector info:  no errors found in boot parameter block.     operating system:  windows xp     boot files/dirs:   /boot.ini /ntldr /ntdetect.com  sda3: _________________________________________________________________________      file system:       extended partition     boot sector type:  -     boot sector info:    sda5: _________________________________________________________________________      file system:       ext3     boot sector type:  -     boot sector info:       operating system:  ubuntu 10.04.1 lts     boot files/dirs:   /boot/grub/menu.lst /etc/fstab  sda6: _________________________________________________________________________      file system:       swap     boot sector type:  -     boot sector info:    sda7: _________________________________________________________________________      file system:       ext4     boot sector type:  -     boot sector info:       operating system:  ubuntu 10.04.1 lts     boot files/dirs:   /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img  sda8: _________________________________________________________________________      file system:       swap     boot sector type:  -     boot sector info:    sda9: _________________________________________________________________________      file system:       vfat     boot sector type:  windows xp: fat32     boot sector info:  no errors found in boot parameter block.     operating system:  windows xp     boot files/dirs:   /boot.ini /bootmgr /ntldr /ntdetect.com  sda4: _________________________________________________________________________      file system:       vfat     boot sector type:  dell recovery: fat32     boot sector info:  no errors found in boot parameter block.     operating system:       boot files/dirs:   /command.com  =========================== drive/partition info: =============================  drive: sda ___________________ _____________________________________________________  disk /dev/sda: 320.1 gb, 320072933376 bytes 255 heads, 63 sectors/track, 38913 cylinders, total 625142448 sectors units = sectors of 1 * 512 = 512 bytes sector size (logical/physical): 512 bytes / 512 bytes  partition  boot         start           end          size  id system  /dev/sda1                  63       112,454       112,392   6 fat16 /dev/sda2    *        112,455   303,708,824   303,596,370   7 hpfs/ntfs /dev/sda3         303,708,825   616,944,194   313,235,370   f w95 ext d (lba) /dev/sda5         303,708,951   322,777,979    19,069,029  83 linux /dev/sda6         322,778,043   323,725,814       947,772  82 linux swap / solaris /dev/sda7         323,725,941   599,931,359   276,205,419  83 linux /dev/sda8         599,931,423   611,707,004    11,775,582  82 linux swap / solaris /dev/sda9         611,707,068   616,944,194     5,237,127   c w95 fat32 (lba) /dev/sda4         616,944,195   625,137,344     8,193,150   c w95 fat32 (lba)   blkid -c /dev/null: ____________________________________________________________  device           uuid                                   type       label                           /dev/sda1        07da-0103                              vfat       dellutility                    /dev/sda2        dcf8e72bf8e7031e                       ntfs                                      /dev/sda3: pttype="dos"  /dev/sda4                                               vfat       dellrestore                    /dev/sda5        856dd7cb-6712-483f-9c33-b41c7bcb455d   ext3                                      /dev/sda6        bd6fe23e-9b21-486c-94a4-92b163dfc3ff   swap                                      /dev/sda7        93b7d032-f74f-4cea-a3e2-f0af4c78a144   ext4                                      /dev/sda8        4311258d-b888-4364-bffa-3b536236b75c   swap                                      /dev/sda9        07da-0103                              vfat       mediadirect                    /dev/sda: pttype="dos"   ============================ "mount | grep ^/dev  output: ===========================  device           mount_point              type       options  /dev/sda5        /                        ext3       (rw,relatime,errors=remount-ro) /dev/sda1        /media/sda1              vfat       (rw) /dev/sda4        /media/sda4              vfat       (rw) /dev/sda7        /media/sda7              ext4       (rw) /dev/sda9        /media/sda9              vfat       (rw) /dev/sda2        /media/sda2              fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096)   ================================ sda2/boot.ini: ================================  [boot loader]  timeout=30  default=multi(0)disk(0)rdisk(0)partition(2)\windows  [operating systems]  multi(0)disk(0)rdisk(0)partition(2)\windows="microsoft windows xp home edition" /noexecute=optin /fastdetect   =========================== sda5/boot/grub/menu.lst: ===========================  # menu.lst - see: grub(8), info grub, update-grub(8) #            grub-install(8), grub-floppy(8), #            grub-md5-crypt, /usr/share/doc/grub #            , /usr/share/doc/grub-doc/.  ## default num # set default entry entry number num. numbering starts 0, , # entry number 0 default if command not used. # # can specify 'saved' instead of number. in case, default entry # entry saved command 'savedefault'. # warning: if using dmraid not use 'savedefault' or # array desync , not let boot system. default        0  ## timeout sec # set timeout, in sec seconds, before automatically booting default entry # (normally first entry defined). timeout        10  ## hiddenmenu # hides menu default (press esc see menu) #hiddenmenu  # pretty colours #color cyan/blue white/blue  ## password ['--md5'] passwd # if used in first section of menu file, disable interactive editing # control (menu entry editor , command-line)  , entries protected # command 'lock' # e.g. password topsecret #      password --md5 $1$glhu0/$aw78khk1qfv3p2b2znuoe/ # password topsecret  # # examples # # title        windows 95/98/nt/2000 # root        (hd0,0) # makeactive # chainloader    +1 # # title        linux # root        (hd0,1) # kernel    /vmlinuz root=/dev/hda2 ro #  # # put static boot stanzas before and/or after automagic kernel list  ### begin automagic kernels list ## lines between automagic kernels list markers modified ## debian update-grub script except default options below  ## not uncomment them, edit them needs  ## ## start default options ## ## default kernel options ## default kernel options automagic boot options ## if want special options specific kernels use kopt_x_y_z ## x.y.z kernel version. minor versions can omitted. ## e.g. kopt=root=/dev/hda1 ro ##      kopt_2_6_8=root=/dev/hdc1 ro ##      kopt_2_6_8_2_686=root=/dev/hdc2 ro # kopt=root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro  ## default grub root device ## e.g. groot=(hd0,0) # groot=856dd7cb-6712-483f-9c33-b41c7bcb455d  ## should update-grub create alternative automagic boot options ## e.g. alternative=true ##      alternative=false # alternative=true  ## should update-grub lock alternative automagic boot options ## e.g. lockalternative=true ##      lockalternative=false # lockalternative=false  ## additional options use default boot option, not ## alternatives ## e.g. defoptions=vga=791 resume=/dev/hda5 # defoptions=quiet splash  ## should update-grub lock old automagic boot options ## e.g. lockold=false ##      lockold=true # lockold=false  ## xen hypervisor options use default xen boot option # xenhopt=  ## xen linux kernel options use default xen boot option # xenkopt=console=tty0  ## altoption boot targets option ## multiple altoptions lines allowed ## e.g. altoptions=(extra menu suffix) boot options ##      altoptions=(recovery) single # altoptions=(recovery mode) single  ## controls how many kernels should put menu.lst ## counts first occurence of kernel, not ## alternative kernel options ## e.g. howmany=all ##      howmany=7 # howmany=all  ## specify if running in xen domu or have grub detect automatically ## update-grub ignore non-xen kernels when running in domu , vice versa ## e.g. indomu=detect ##      indomu=true ##      indomu=false # indomu=detect  ## should update-grub create memtest86 boot option ## e.g. memtest86=true ##      memtest86=false # memtest86=true  ## should update-grub adjust value of default booted system ## can true or false # updatedefaultentry=false  ## should update-grub add savedefault default options ## can true or false # savedefault=false  ## ## end default options ##  title        ubuntu 10.04.1 lts, kernel 2.6.32-24-generic uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/vmlinuz-2.6.32-24-generic root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro quiet splash  initrd        /boot/initrd.img-2.6.32-24-generic quiet  title        ubuntu 10.04.1 lts, kernel 2.6.32-24-generic (recovery mode) uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/vmlinuz-2.6.32-24-generic root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro  single initrd        /boot/initrd.img-2.6.32-24-generic  title        ubuntu 10.04.1 lts, kernel 2.6.31-22-generic uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/vmlinuz-2.6.31-22-generic root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro quiet splash  initrd        /boot/initrd.img-2.6.31-22-generic quiet  title        ubuntu 10.04.1 lts, kernel 2.6.31-22-generic (recovery mode) uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/vmlinuz-2.6.31-22-generic root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro  single initrd        /boot/initrd.img-2.6.31-22-generic  title        ubuntu 10.04.1 lts, kernel 2.6.27-7-generic uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/vmlinuz-2.6.27-7-generic root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro quiet splash  initrd        /boot/initrd.img-2.6.27-7-generic quiet  title        ubuntu 10.04.1 lts, kernel 2.6.27-7-generic (recovery mode) uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/vmlinuz-2.6.27-7-generic root=uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d ro  single initrd        /boot/initrd.img-2.6.27-7-generic  title        ubuntu 10.04.1 lts, memtest86+ uuid        856dd7cb-6712-483f-9c33-b41c7bcb455d kernel        /boot/memtest86+.bin quiet  ### end debian automagic kernels list  # divider, added separate menu items below debian # ones. title        other operating systems: root   # entry automatically added debian installer non-linux os # on /dev/sda1 title        dell utility partition root        (hd0,0) savedefault makeactive chainloader    +1   # entry automatically added debian installer non-linux os # on /dev/sda2 title        microsoft windows xp home edition root        (hd0,1) savedefault makeactive chainloader    +1   # entry automatically added debian installer non-linux os # on /dev/sda7 title        microsoft windows xp embedded root        (hd0,6) savedefault makeactive chainloader    +1  =============================== sda5/etc/fstab: ===============================  # /etc/fstab: static file system information. # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc                                       /proc          proc         defaults                    0  0   # /dev/sda8 uuid=856dd7cb-6712-483f-9c33-b41c7bcb455d  /              ext3         relatime,errors=remount-ro  0  1   # /dev/sda9 uuid=bd6fe23e-9b21-486c-94a4-92b163dfc3ff  none           swap         sw                          0  0   /dev/scd0                                  /media/cdrom0  udf,iso9660  user,noauto,exec,utf8       0  0   /dev/sda1                                  /media/sda1    vfat         defaults                    0  0   /dev/sda2                                  /media/sda2    ntfs         defaults                    0  0   /dev/sda4                                  /media/sda4    vfat         defaults                    0  0   /dev/sda7                                  /media/sda7    ext4         defaults                    0  0   /dev/sda8                                  /media/sda8    swap         defaults                    0  0   /dev/sda9                                  /media/sda9    vfat         defaults                    0  0    =================== sda5: location of files loaded grub: ===================    157.7gb: boot/grub/menu.lst  157.7gb: boot/grub/stage2  157.9gb: boot/initrd.img-2.6.27-7-generic  157.7gb: boot/initrd.img-2.6.31-22-generic  158.0gb: boot/initrd.img-2.6.32-24-generic  157.7gb: boot/vmlinuz-2.6.27-7-generic  157.7gb: boot/vmlinuz-2.6.31-22-generic  158.0gb: boot/vmlinuz-2.6.32-24-generic  158.0gb: initrd.img  157.7gb: initrd.img.old  158.0gb: vmlinuz  157.7gb: vmlinuz.old  =========================== sda7/boot/grub/grub.cfg: ===========================  # # not edit file # # automatically generated /usr/sbin/grub-mkconfig using templates # /etc/grub.d , settings /etc/default/grub #  ### begin /etc/grub.d/00_header ### if [ -s $prefix/grubenv ];   load_env fi set default="0" if [ ${prev_saved_entry} ];   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} ];     saved_entry=${chosen}     save_env saved_entry   fi }  function recordfail {   set recordfail=1   if [ -n ${have_grubenv} ]; if [ -z ${boot_once} ]; save_env recordfail; fi; fi } insmod ext2 set root='(hd0,6)' search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144 if loadfont /usr/share/grub/unicode.pf2 ;   set gfxmode=640x480   insmod gfxterm   insmod vbe   if terminal_output gfxterm ; true ; else     # backward compatibility versions of terminal.mod don't     # understand terminal_output     terminal gfxterm   fi fi insmod ext2 set root='(hd0,6)' search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144 set locale_dir=($root)/boot/grub/locale set lang=en insmod gettext if [ ${recordfail} = 1 ];   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 ### end /etc/grub.d/05_debian_theme ###  ### begin /etc/grub.d/10_linux ### menuentry 'ubuntu, linux 2.6.32-24-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     linux    /boot/vmlinuz-2.6.32-24-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro   quiet splash     initrd    /boot/initrd.img-2.6.32-24-generic-pae } menuentry 'ubuntu, linux 2.6.32-24-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     echo    'loading linux 2.6.32-24-generic-pae ...'     linux    /boot/vmlinuz-2.6.32-24-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.32-24-generic-pae } menuentry 'ubuntu, linux 2.6.32-23-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     linux    /boot/vmlinuz-2.6.32-23-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro   quiet splash     initrd    /boot/initrd.img-2.6.32-23-generic-pae } menuentry 'ubuntu, linux 2.6.32-23-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     echo    'loading linux 2.6.32-23-generic-pae ...'     linux    /boot/vmlinuz-2.6.32-23-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.32-23-generic-pae } menuentry 'ubuntu, linux 2.6.32-22-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     linux    /boot/vmlinuz-2.6.32-22-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro   quiet splash     initrd    /boot/initrd.img-2.6.32-22-generic-pae } menuentry 'ubuntu, linux 2.6.32-22-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     echo    'loading linux 2.6.32-22-generic-pae ...'     linux    /boot/vmlinuz-2.6.32-22-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.32-22-generic-pae } menuentry 'ubuntu, linux 2.6.31-21-generic-pae' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     linux    /boot/vmlinuz-2.6.31-21-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro   quiet splash     initrd    /boot/initrd.img-2.6.31-21-generic-pae } menuentry 'ubuntu, linux 2.6.31-21-generic-pae (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {     recordfail     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     echo    'loading linux 2.6.31-21-generic-pae ...'     linux    /boot/vmlinuz-2.6.31-21-generic-pae root=uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 ro single      echo    'loading initial ramdisk ...'     initrd    /boot/initrd.img-2.6.31-21-generic-pae } ### end /etc/grub.d/10_linux ###  ### begin /etc/grub.d/20_memtest86+ ### menuentry "memory test (memtest86+)" {     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     linux16    /boot/memtest86+.bin } menuentry "memory test (memtest86+, serial console 115200)" {     insmod ext2     set root='(hd0,6)'     search --no-floppy --fs-uuid --set 93b7d032-f74f-4cea-a3e2-f0af4c78a144     linux16    /boot/memtest86+.bin console=ttys0,115200n8 } ### end /etc/grub.d/20_memtest86+ ###  ### begin /etc/grub.d/30_os-prober ### menuentry "dell utility partition (on /dev/sda1)" {     insmod fat     set root='(hd0,1)'     search --no-floppy --fs-uuid --set 07da-0103     drivemap -s (hd0) ${root}     chainloader +1 } menuentry "microsoft windows xp home edition (on /dev/sda2)" {     insmod ntfs     set root='(hd0,2)'     search --no-floppy --fs-uuid --set 12e87667e876494d     drivemap -s (hd0) ${root}     chainloader +1 } menuentry "microsoft windows xp embedded (on /dev/sda5)" {     insmod fat     set root='(hd0,5)'     search --no-floppy --fs-uuid --set 07da-0103     drivemap -s (hd0) ${root}     chainloader +1 } ### end /etc/grub.d/30_os-prober ###  ### begin /etc/grub.d/40_custom ### # file provides easy way add custom menu entries.  type # menu entries want add after comment.  careful not change # 'exec tail' line above. ### end /etc/grub.d/40_custom ###  =============================== sda7/etc/fstab: ===============================  # /etc/fstab: static file system information. # # use 'blkid -o value -s uuid' print universally unique identifier # device; may used uuid= more robust way name # devices works if disks added , removed. see fstab(5). # # <file system> <mount point>   <type>  <options>       <dump>  <pass> proc            /proc           proc    defaults        0       0 # / on /dev/sda6 during installation uuid=93b7d032-f74f-4cea-a3e2-f0af4c78a144 /               ext4    errors=remount-ro 0       1 # swap on /dev/sda7 during installation uuid=4311258d-b888-4364-bffa-3b536236b75c none            swap    sw              0       0 /dev/scd0       /media/cdrom0   udf,iso9660 user,noauto,exec,utf8 0       0  =================== sda7: location of files loaded grub: ===================    165.8gb: boot/grub/core.img  170.7gb: boot/grub/grub.cfg  167.2gb: boot/initrd.img-2.6.31-21-generic-pae  176.5gb: boot/initrd.img-2.6.32-22-generic-pae  177.1gb: boot/initrd.img-2.6.32-23-generic-pae  175.1gb: boot/initrd.img-2.6.32-24-generic-pae  167.0gb: boot/vmlinuz-2.6.31-21-generic-pae  167.9gb: boot/vmlinuz-2.6.32-22-generic-pae  167.9gb: boot/vmlinuz-2.6.32-23-generic-pae  167.9gb: boot/vmlinuz-2.6.32-24-generic-pae  175.1gb: initrd.img  177.1gb: initrd.img.old  167.9gb: vmlinuz  167.9gb: vmlinuz.old  ================================ sda9/boot.ini: ================================  [boot loader]  timeout=0  default=multi(0)disk(0)rdisk(0)partition(1)\windows  [operating systems]  multi(0)disk(0)rdisk(0)partition(1)\windows="microsoft windows xp embedded" /fastdetect /kernel=ntosboot.exe /maxmem=768
note on menu.lst, microsoft windows xp embedded assigned root (hd0,6). now, thought old ubuntu partition. suspicious, think so.

does grub included in 8.04 support ext4?

if remember correctly:
-ext4 default ubuntu 10.04 install.
-ext4 not supported out of box in 8.04.

edit:

found this thread, refreshed memory.

ext4 support in 8.04 wonky, @ best. there lots of complaints remember, not 1 thread. potentially cause of problems.

trying grub2 next step, in shoes.


Forum The Ubuntu Forum Community Ubuntu Official Flavours Support General Help [SOLVED] Old Ubuntu Partition not Recognized by Grub


Ubuntu

Comments

Popular posts from this blog

CS5 Adobe Media Encoder: Encode failed because the source duration is nil.

cf_sql_integer vs cf_sql_bigint vs cf_sql_int??

localhost/joomla15/administrator doesnt work - Joomla! Forum - community, help and support