PDA

View Full Version : 7.04 lost in triple boot XP, 9.10, 7.04



gpetrov
January 20th, 2010, 08:46 PM
I've got netbook with Ubuntu 7.04 preinstalled.
Hard drive is 160GB and with gparted I made 50GB space for windows.
I've Installed 9.10 netbook remix and during installation I split remaining of the disk on half and chose to keep both ubuntu versions.
After that dual boot 9.10/7.04 worked fine.
I installed Windows XP and lost Grub.
I recoverred grub2 and now I have 2 options on boot: 9.10 and XP
My 7.10 is lost and I need it (it has some localized and specialized software)

Any suggestions
PLs Help

raymondh
January 21st, 2010, 03:54 PM
It'll be a big help if we could see what your HD contains as well as the boot information. I suggest using the bootinfoscript (http://sourceforge.net/projects/bootinfoscript/).

In ubuntu (or the ubuntu liveCD/liveUSB), click and download the above-linked boot info script to your desktop. Once downloaded, open a terminal (applications > accessories) and type:


sudo bash ~/Desktop/boot_info_script*.s

That will output a RESULTS.TXT file. Kindly copy/paste the results.txt file in your next post.

Regards,

Raymond

possible:
- you might just need to include 7.04 in (or manually edit) GRUB2 (http://ubuntuforums.org/showthread.php?t=1195275)
- you accidentally erased 7.04

gpetrov
January 21st, 2010, 07:41 PM
result.txt is:
============================= Boot Info Summary: ==============================

=> Grub 1.97 is installed in the MBR of /dev/sda and looks on the same drive
in partition #6 for /boot/grub.
sda1: __________________________________________________ _______________________

File system: ntfs
Boot sector type: Windows XP
Boot sector info: No errors found in the Boot Parameter Block.
Operating System: Windows XP
Boot files/dirs: /boot.ini /ntldr /NTDETECT.COM

sda2: __________________________________________________ _______________________

File system: Extended Partition
Boot sector type: -
Boot sector info:

sda5: __________________________________________________ _______________________

File system: ext4
Boot sector type: -
Boot sector info:
Operating System: Ubuntu 9.10
Boot files/dirs: /boot/grub/grub.cfg /etc/fstab /boot/grub/core.img

sda6: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

sda3: __________________________________________________ _______________________

File system: swap
Boot sector type: -
Boot sector info:

=========================== Drive/Partition Info: =============================

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x2e262e25

Partition Boot Start End Size Id System

/dev/sda1 * 63 102,848,129 102,848,067 7 HPFS/NTFS
/dev/sda2 102,848,130 312,576,704 209,728,575 f W95 Ext d (LBA)
Extended partition linking to another extended partition
/dev/sda5 102,848,256 300,624,344 197,776,089 83 Linux
/dev/sda6 300,624,408 306,584,459 5,960,052 82 Linux swap / Solaris
/dev/sda3 306,584,523 312,576,704 5,992,182 82 Linux swap / Solaris

/dev/sda2 overlaps with /dev/sda3

blkid -c /dev/null: __________________________________________________ __________

/dev/sda1: UUID="B438FF8D38FF4D3C" TYPE="ntfs"
/dev/sda3: UUID="ef41d873-4b94-4163-a175-9e2a7baa80e1" TYPE="swap"
/dev/sda5: UUID="38e933a7-437c-464b-8acf-86a1734c1c2a" TYPE="ext4"
/dev/sda6: UUID="085cd5b1-f633-451c-9f55-c73604e8de44" TYPE="swap"

=============================== "mount" output: ===============================

/dev/sda5 on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type tmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/butle/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=butle)


================================ sda1/boot.ini: ================================

[Boot Loader]

Timeout=30

Default=multi(0)disk(0)rdisk(0)partition(1)\WINDOW S

[Operating Systems]

multi(0)disk(0)rdisk(0)partition(1)\WINDOWS="Microsoft Windows" /noexecute=optin /fastdetect


=========================== sda5/boot/grub/grub.cfg: ===========================

#
# DO NOT EDIT THIS FILE
#
# It is automatically generated by /usr/sbin/grub-mkconfig using templates
# from /etc/grub.d and settings from /etc/default/grub
#

### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi
set default="0"
if [ ${prev_saved_entry} ]; then
saved_entry=${prev_saved_entry}
save_env saved_entry
prev_saved_entry=
save_env prev_saved_entry
fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 38e933a7-437c-464b-8acf-86a1734c1c2a
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
insmod gfxterm
insmod vbe
if terminal_output gfxterm ; then true ; else
# For backward compatibility with versions of terminal.mod that don't
# understand terminal_output
terminal gfxterm
fi
fi
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/white
### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###
menuentry "Ubuntu, Linux 2.6.31-17-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 38e933a7-437c-464b-8acf-86a1734c1c2a
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=38e933a7-437c-464b-8acf-86a1734c1c2a ro quiet splash
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-17-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 38e933a7-437c-464b-8acf-86a1734c1c2a
linux /boot/vmlinuz-2.6.31-17-generic root=UUID=38e933a7-437c-464b-8acf-86a1734c1c2a ro single
initrd /boot/initrd.img-2.6.31-17-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 38e933a7-437c-464b-8acf-86a1734c1c2a
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=38e933a7-437c-464b-8acf-86a1734c1c2a ro quiet splash
initrd /boot/initrd.img-2.6.31-14-generic
}
menuentry "Ubuntu, Linux 2.6.31-14-generic (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd0,6)
search --no-floppy --fs-uuid --set 38e933a7-437c-464b-8acf-86a1734c1c2a
linux /boot/vmlinuz-2.6.31-14-generic root=UUID=38e933a7-437c-464b-8acf-86a1734c1c2a ro single
initrd /boot/initrd.img-2.6.31-14-generic
}
### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
menuentry "Windows NT/2000/XP (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set b438ff8d38ff4d3c
drivemap -s (hd0) ${root}
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 ###

=============================== sda5/etc/fstab: ===============================

# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# / was on /dev/sda6 during installation
UUID=38e933a7-437c-464b-8acf-86a1734c1c2a / ext4 errors=remount-ro 0 1
# swap was on /dev/sda7 during installation
UUID=085cd5b1-f633-451c-9f55-c73604e8de44 none swap sw 0 0

=================== sda5: Location of files loaded by Grub: ===================


52.6GB: boot/grub/core.img
52.6GB: boot/grub/grub.cfg
52.6GB: boot/grub/stage2
52.6GB: boot/initrd.img-2.6.31-14-generic
52.6GB: boot/initrd.img-2.6.31-17-generic
52.6GB: boot/vmlinuz-2.6.31-14-generic
52.6GB: boot/vmlinuz-2.6.31-17-generic
52.6GB: initrd.img
52.6GB: initrd.img.old
52.6GB: vmlinuz
52.6GB: vmlinuz.old

presence1960
January 21st, 2010, 09:21 PM
Your 7.04 is gone! 9.10 is on sda5. Your partition table is a little off. See the message about your extended partition:


Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 sectors
Units = sectors of 1 * 512 = 512 bytes
Disk identifier: 0x2e262e25

Partition Boot Start End Size Id System

/dev/sda1 * 63 102,848,129 102,848,067 7 HPFS/NTFS
/dev/sda2 102,848,130 312,576,704 209,728,575 f W95 Ext d (LBA)
Extended partition linking to another extended partition
/dev/sda5 102,848,256 300,624,344 197,776,089 83 Linux
/dev/sda6 300,624,408 306,584,459 5,960,052 82 Linux swap / Solaris
/dev/sda3 306,584,523 312,576,704 5,992,182 82 Linux swap / Solaris

/dev/sda2 overlaps with /dev/sda3

You may be able to recover files from the 7.04 partition with testdisk, but I have never done it. maybe someone who has will come along. If 7.04 was on an extended partition the data may still be there because of the "extended partition linking to another extended partition" message. But don't mount the extended partition because if data is written to it you may lose any chance you have of recovering said data. For now correspond here from windows.

raymondh
January 22nd, 2010, 02:48 AM
+1 ... use windows until you get to try to recover (from the linked extended partition) the 7.04 data. Better if you can use/are able to use a different computer.

Thanks Presence1960 :)

Raymond

meierfra.
January 22nd, 2010, 05:12 AM
Windows XP stayed on the 50GB partition you had made for it. So I'm guessing that only your partition table is messed up and testdisk might be able fix your problem.

So lets have a look at your partitions with testdisk. Boot from your Ubuntu Live CD (as already pointed out, its best not to boot into Ubuntu 9.10).

You will have to enable the universe repository: (I'm sure you know how to do that, but here are the directions anyway
System->Administration->Software Sources
Check the box in the Universe line
close
Reload)

Open a terminal and install and run testdisk via


sudo apt-get install testdisk
sudo testdisk /dev/sdaAfter starting testdisk with the above command, choose

"Proceed",
"Intel",
"Analyze",
"Quick search",
Press "N" (is asked if you have any partition created by Vista)
Press "Enter" to continue,
select "Deeper Search" (so it does a deeper search, which could take a while)

Please post the output of the screen that has the deep search results. Also, use your up/down arrow keys to select each partition listed in the deep search results, and press "p" to get a directory listing; please let us know exactly which partitions give you a directory listing.

gpetrov
January 22nd, 2010, 11:15 AM
Testdisk resylts:

Disk /dev/sda - 160 GB / 149 GiB - CHS 19457 255 63

Partition Start End Size in sectors
* HPFS - NTFS 0 1 1 6401 254 63 102848067
D Linux 6402 2 1 18712 254 63 197776089
D HPFS - NTFS 10446 0 1 19452 254 63 144697455
D Linux Swap 18713 1 1 19083 254 63 5960052
D Linux Swap 19084 1 1 19456 254 63 5992182


Deeper Search result:

HPFS - NTFS 0 1 1 6401 254 63 102848067
HPFS - NTFS 0 1 1 6401 254 63 102848067
Linux 6402 2 1 18712 254 62 197776088
Linux 6402 2 1 18712 254 62 197776088
HPFS - NTFS 10446 0 1 19452 254 63 144697455
Linux Swap 18713 1 1 19083 254 43 5960032
Linux Swap 19084 1 1 19456 254 41 5992160



* HPFS - NTFS 0 1 1 6401 254 63 102848067
Directory /

dr-xr-xr-x 0 0 0 19-Jan-2010 19:27 .
dr-xr-xr-x 0 0 0 19-Jan-2010 19:27 ..
-r--r--r-- 0 0 0 19-Jan-2010 19:10 AUTOEXEC.BAT
-r--r--r-- 0 0 195 19-Jan-2010 19:46 boot.ini
-r--r--r-- 0 0 0 19-Jan-2010 19:10 CONFIG.SYS
dr-xr-xr-x 0 0 0 19-Jan-2010 19:54 Documents and Settings
-r--r--r-- 0 0 1064554496 19-Jan-2010 23:35 hiberfil.sys
dr-xr-xr-x 0 0 0 19-Jan-2010 21:27 Intel
-r--r--r-- 0 0 0 19-Jan-2010 19:10 IO.SYS
-r--r--r-- 0 0 0 19-Jan-2010 19:10 MSDOS.SYS
-r--r--r-- 0 0 47564 19-Jan-2010 19:45 NTDETECT.COM
-r--r--r-- 0 0 250032 19-Jan-2010 19:45 ntldr
-r--r--r-- 0 0 1598029824 19-Jan-2010 19:18 pagefile.sys
dr-xr-xr-x 0 0 0 19-Jan-2010 19:56 Program Files
dr-xr-xr-x 0 0 0 19-Jan-2010 23:39 RECYCLER
dr-xr-xr-x 0 0 0 19-Jan-2010 19:27 System Volume Information
dr-xr-xr-x 0 0 0 19-Jan-2010 19:27 WINDOWS



Linux 6402 2 1 18712 254 63 197776089
Directory /

drwxr-xr-x 0 0 4096 20-Jan-2010 23:54 .
drwxr-xr-x 0 0 4096 20-Jan-2010 23:54 ..
drwx------ 0 0 16384 19-Jan-2010 18:32 lost+found
drwxr-xr-x 0 0 4096 28-Oct-2009 22:21 var
drwxr-xr-x 0 0 12288 22-Jan-2010 11:27 etc
drwxr-xr-x 0 0 4096 21-Jan-2010 19:16 media
lrwxrwxrwx 0 0 11 19-Jan-2010 18:32 cdrom
drwxr-xr-x 0 0 4096 21-Jan-2010 13:28 bin
drwxr-xr-x 0 0 4096 20-Jan-2010 23:59 boot
drwxr-xr-x 0 0 4096 19-Jan-2010 18:38 dev
drwxr-xr-x 0 0 4096 19-Jan-2010 18:37 home
drwxr-xr-x 0 0 12288 21-Jan-2010 13:28 lib
drwxr-xr-x 0 0 4096 20-Oct-2009 02:04 mnt
drwxr-xr-x 0 0 4096 28-Oct-2009 22:14 opt
drwxr-xr-x 0 0 4096 20-Oct-2009 02:04 proc
drwx------ 0 0 4096 22-Jan-2010 00:20 root
drwxr-xr-x 0 0 4096 20-Jan-2010 23:55 sbin
drwxr-xr-x 0 0 4096 20-Oct-2009 01:05 selinux
drwxr-xr-x 0 0 4096 28-Oct-2009 22:14 srv
drwxr-xr-x 0 0 4096 19-Oct-2009 17:18 sys
drwxrwxrwt 0 0 4096 22-Jan-2010 10:31 tmp
drwxr-xr-x 0 0 4096 28-Oct-2009 22:14 usr
lrwxrwxrwx 0 0 30 20-Jan-2010 23:54 vmlinuz



HPFS - NTFS 10446 0 1 19452 254 63 144697455
Directory /

dr-xr-xr-x 0 0 0 9-Dec-2008 19:51 .
dr-xr-xr-x 0 0 0 9-Dec-2008 19:51 ..
dr-xr-xr-x 0 0 0 17-Nov-2009 10:34 RECYCLER
dr-xr-xr-x 0 0 0 9-Dec-2008 19:51 System Volume Information

Any suggestions
Pls Help

meierfra.
January 22nd, 2010, 05:36 PM
Bad news. Tesdisk was not able to find your 7.04 partition.
It only found one extra partition:


HPFS - NTFS 10446 0 1 19452 254 63 144697455
Directory /

dr-xr-xr-x 0 0 0 9-Dec-2008 19:51 .
dr-xr-xr-x 0 0 0 9-Dec-2008 19:51 ..
dr-xr-xr-x 0 0 0 17-Nov-2009 10:34 RECYCLER
dr-xr-xr-x 0 0 0 9-Dec-2008 19:51 System Volume Information

namely an empty NTFS partition. Could that be the partition you made for Windows XP? I'm not sure what happened but maybe XP got installed on top of your 7.04 partition.

So I don't think you will be able to recover 7.04. If you are lucky photorec (http://www.cgsecurity.org/wiki/PhotoRec) might be able to recover some of your files. photorec is part of testdisk (so to install it on the LiveCD you have to run "sudo apt-get install testdisk" again). Instruction for photorec: http://www.cgsecurity.org/wiki/PhotoRec_Step_By_Step

Since it won't be able to detect your 7.04 partition, you will have to let photorec search the whole hard drive.

gpetrov
January 22nd, 2010, 10:20 PM
I'm sorry to read such bad news.

Thanks a lot for all your help and effort.

Keep up with your noblе work!