Linux can't dual boot ubuntu and window 7

zapout

Level D
hi guys

i was trying to dual boot window 7 and ubuntu 10.4, but i accidentally delete the system reserved partition of window 7 while installing ubuntu, and left with only ubuntu so i did a fresh installation of window 7 and tried to restore ubuntu using Repair GRUB2 after install windows 7 : dual boot ubuntu 9.10

but window 7 didn't boot and "sudo update-grub" didn't worked to restore window 7.

window 7 is on the OS list but when i select to boot it, it show error

"there is no device X(x is the uuid of window 7 boot drive)

press any key to continue"

i fixed window 7 with repair disc but yet again ubuntu is not booting up and above tutorial didn't work.

here is the boot entry of window 7

Code:
insmod ntfs

set root=' (hd0,1)

search --no-floppy --fs-uuid --set 2e9c26009c25c367

chainloader +1
both the OS'es are on different hard drives

here is the boot script info

Code:
                  Boot Info Script 0.55    dated February 15th, 2010                    

============================= Boot Info Summary: ==============================

 => Windows is installed in the MBR of /dev/sda

 => Windows is installed in the MBR of /dev/sdb

 => Syslinux is installed in the MBR of /dev/sdc

sda1: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   /bootmgr /Boot/BCD /grldr

sda2: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  Windows 7

    Boot files/dirs:   /Windows/System32/winload.exe

sda3: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sda4: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sdb1: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sdb2: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sdb3: _________________________________________________________________________

    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

sdc1: _________________________________________________________________________

    File system:       vfat

    Boot sector type:  Fat32

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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    *          2,048       206,847       204,800   7 HPFS/NTFS

/dev/sda2             206,848    67,835,903    67,629,056   7 HPFS/NTFS

/dev/sda3          67,835,904   524,287,999   456,452,096   7 HPFS/NTFS

/dev/sda4         524,290,048   976,769,023   452,478,976   7 HPFS/NTFS

Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdb1                   1   976,773,167   976,773,167  ee GPT

GUID Partition Table detected.

Partition           Start           End          Size System

/dev/sdb1         264,192   488,517,631   488,253,440 Linux or Data

/dev/sdb2     488,517,632   944,513,023   455,995,392 Linux or Data

/dev/sdb3     944,515,072   976,771,071    32,256,000 Linux or Data

Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 7851 MB, 7851737088 bytes

3 heads, 16 sectors/track, 319488 cylinders, total 15335424 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdc1    *             80    15,335,423    15,335,344   b W95 FAT32

blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                         

/dev/loop0                                              squashfs                                 

/dev/sda1        2E9C26009C25C367                       ntfs       System Reserved               

/dev/sda2        D8962F01962EE02C                       ntfs                                     

/dev/sda3        9A28BFDB28BFB49B                       ntfs       WD                            

/dev/sda4        C6D40023D40017F7                       ntfs       WD                            

/dev/sda: PTTYPE="dos" 

/dev/sdb1        D6E213A5E213893F                       ntfs       Seagate                       

/dev/sdb2        30D039FBD039C83C                       ntfs       Seagate                       

/dev/sdb3        e4d93dff-0d49-4e11-8f52-04f17359268c   ext4                                     

/dev/sdb: PTTYPE="gpt" 

/dev/sdc1        C4D9-3665                              vfat       CORSAIR                       

/dev/sdc: PTTYPE="dos" 

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

aufs             /                        aufs       (rw)

/dev/sdc1        /cdrom                   vfat        (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

/dev/loop0       /rofs                    squashfs   (ro,noatime)

=========================== sdb3/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 $prefix/grubenv ]; then

  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

}

insmod ext2

set root='(hd1,3)'

search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

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

insmod ext2

set root='(hd1,3)'

search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

set locale_dir=($root)/boot/grub/locale

set lang=en

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

### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###

menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

    linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=e4d93dff-0d49-4e11-8f52-04f17359268c ro   quiet splash

    initrd    /boot/initrd.img-2.6.32-24-generic

}

menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

    echo    'Loading Linux 2.6.32-24-generic ...'

    linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=e4d93dff-0d49-4e11-8f52-04f17359268c ro single 

    echo    'Loading initial ramdisk ...'

    initrd    /boot/initrd.img-2.6.32-24-generic

}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###

menuentry "Memory test (memtest86+)" {

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

    linux16    /boot/memtest86+.bin

}

menuentry "Memory test (memtest86+, serial console 115200)" {

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

    linux16    /boot/memtest86+.bin console=ttyS0,115200n8

}

### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###

menuentry "Windows 7 (loader) (on /dev/sda1)" {

    insmod ntfs

    set root='(hd0,1)'

    search --no-floppy --fs-uuid --set 3cb4b875b4b832ee

    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 ###

=============================== sdb3/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    nodev,noexec,nosuid 0       0

/dev/sdb3       /               ext4    errors=remount-ro 0       1

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

 485.9GB: boot/grub/core.img

 485.9GB: boot/grub/grub.cfg

 486.4GB: boot/initrd.img-2.6.32-24-generic

 486.5GB: boot/vmlinuz-2.6.32-24-generic

 486.4GB: initrd.img

 486.5GB: vmlinuz
^^i was using flash drive to live boot ubuntu for this report.

please guys help me out.

I'm not able to get it run dual boot:(

thanks in advance.
 
^ I would suggest recovering the boot manage of win 7 first. Make sure you can boot through win7 without any issue, then boot ubuntu using boot manager of win7. Avoid installing grub for same.

+LT
 
linuxtechie said:
^ I would suggest recovering the boot manage of win 7 first. Make sure you can boot through win7 without any issue, then boot ubuntu using boot manager of win7. Avoid installing grub for same.

+LT
thanks for the reply:)

I'm running window 7 now but there's no option to boot into ubuntu through window 7 boot menu.

i was able to run them dual boot through wubi but i want to format the partition with ext4 and it is not possible with wubi.

i think i'll wait for ubuntu 10.10, maybe it'll have a fix for this

--- Updated Post - Automerged ---

i think i screw up this:ashamed:

If you are using a second hard drive to install Ubuntu, , click on Advanced and change the disk on which the Grub would be installed. Select the second hard drive. If you choose first hard drive, Windows 7 might over write on the MBR and screw up your Grub!

source
 
use live cd then mount the requird partition

there is one chroot technique to do that then udate grub ... u ll be able to get back the grub and updating will bring the windows boot option in it .... try google-ing it ...
 
^^
the Live CD must be the same as the system you are fixing - either 32-bit or 64-bit (if not then the chroot will fail)
source
and i had installed updates for ubuntu, so i didn't try it(correct me if its wrong)

anyway thanks for reply:)
I'll reinstall ubuntu as soon as you guys confirmed that this was the reason for the problem
If you are using a second hard drive to install Ubuntu, , click on Advanced and change the disk on which the Grub would be installed. Select the second hard drive. If you choose first hard drive, Windows 7 might over write on the MBR and screw up your Grub!
 
i'm not getting the partition details of my second hard drive with fdisk -l ,,,instead it shows whole hard drive details with this error
"this is a guid partition, fdisk -l can't read it"
and when i'm trying to install grub on second hard drive it shows error--
/usr/sbin/grub-setup: warns: This GPT label has no Bios Boot Partition;
embedding won't be possibe!.
/usr/sbin/grub-setup: warns: Embedding is not possibel. GRUB can only be installed in this setup by using Blocklists. However Bloacklists are UNRELIABLE and its use is discouraged..
/usr/sbin/grub-setup: Error: If you really want blocklists, use --force.
:S

--- Updated Post - Automerged ---

When you install OS's on separate HD's in order to (wisely) boot via BIOS, you must unplug the other HD during installation so it won't interfere.
source 1, 2
is this right??

--- Updated Post - Automerged ---

please reply guys!!

how to make win 7 and ubuntu dual boot, each installed on different hard drive.

the performance of ubuntu is better when installed in a ext4 partition comparing with wubi(as i have noticed)

so i really need a solution for this:(
 
https://help.ubuntu.com/community/Grub2#Reinstalling GRUB 2

CHROOT GRUB UPDATING AFTER WINDOWS & INSTALLED

This method of installation uses the chroot command to gain access to the broken system’s files. Once the chroot command is issued, the LiveCD treats the broken system’s / as its own. Commands run in a chroot environment will affect the broken systems filesystems and not those of the LiveCD.

Boot to the LiveCD Desktop (Ubuntu 9.10 or later). Please note that the Live CD must be the same as the system you are fixing – either 32-bit or 64-bit (if not then the chroot will fail).

Open a terminal – Applications, Accessories, Terminal.

Determine your normal system partition – (the switch is a lowercase “L”)

sudo fdisk -l

If you aren’t sure, run

df -Th. Look for the correct disk size and ext3 or ext4 format.

Mount your normal system partition:

Substitute the correct partition: sda1, sdb5, etc.

sudo mount /dev/sdXX /mnt # Example: sudo mount /dev/sda1 /mnt

Only if you have a separate boot partition:

sdYY is the /boot partition designation (for example sdb3)

sudo mount /dev/sdYY /mnt/boot

Mount the critical virtual filesystems:

sudo mount –bind /dev /mnt/dev

sudo mount –bind /dev/pts /mnt/dev/pts

sudo mount –bind /proc /mnt/proc

sudo mount –bind /sys /mnt/sys

Chroot into your normal system device:

sudo chroot /mnt

If there is no /boot/grub/grub.cfg or it’s not correct, create one using

update-grub

Reinstall GRUB 2:

Substitute the correct device – sda, sdb, etc. Do not specify a partition number.

grub-install /dev/sdX

Verify the install (use the correct device, for example sda. Do not specify a partition): sudo grub-install –recheck /dev/sdX

Exit chroot: CTRL-D on keyboard

Unmount virtual filesystems:

sudo umount /mnt/dev/pts

sudo umount /mnt/dev

sudo umount /mnt/proc

sudo umount /mnt/sys

If you mounted a separate /boot partition:

sudo umount /mnt/boot

Unmount the LiveCD’s /usr directory:

sudo umount /mnt/usr

Unmount last device:

sudo umount /mnt

Reboot.

sudo reboot

Post-Restoration Commands

Once the user can boot to a working system, try to determine why the system failed to boot. The following commands may prove useful in locating and/or fixing the problem.

To refresh the available devices and settings in /boot/grub/grub.cfg

sudo update-grub

To look for the bootloader location.

grub-probe -t device /boot/grub

To install GRUB 2 to the sdX partition’s MBR (sda, sdb, etc.)

sudo grub-install /dev/sdX

To recheck the installation. (sda, sdb, etc.)

sudo grub-install –recheck /dev/sdX
 
^^i tried this, this was the output

Code:
ubuntu@ubuntu:~$ sudo -i

root@ubuntu:~# sudo fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 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: 0xa080fa6c

   Device Boot      Start         End      Blocks   Id  System

/dev/sda1   *           1          13      102400    7  HPFS/NTFS

Partition 1 does not end on cylinder boundary.

/dev/sda2              13        4223    33814528    7  HPFS/NTFS

/dev/sda3            4223       32636   228226048    7  HPFS/NTFS

/dev/sda4           32636       60802   226239488    7  HPFS/NTFS

WARNING: GPT (GUID Partition Table) detected on '/dev/sdb'! The util fdisk doesn't support GPT. Use GNU Parted.

Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 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: 0xe7a833d7

   Device Boot      Start         End      Blocks   Id  System

/dev/sdb1               1       60802   488386583+  ee  GPT

Disk /dev/sdc: 7851 MB, 7851737088 bytes

3 heads, 16 sectors/track, 319488 cylinders

Units = cylinders of 48 * 512 = 24576 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

I/O size (minimum/optimal): 512 bytes / 512 bytes

Disk identifier: 0xc3072e18

   Device Boot      Start         End      Blocks   Id  System

/dev/sdc1   *           2      319488     7667672    b  W95 FAT32

root@ubuntu:~# df -Th

Filesystem    Type    Size  Used Avail Use% Mounted on

aufs          aufs   1007M   32M  976M   4% /

none      devtmpfs   1002M  328K 1002M   1% /dev

/dev/sdc1     vfat    7.3G  699M  6.7G  10% /cdrom

/dev/loop0

          squashfs    658M  658M     0 100% /rofs

none         tmpfs   1007M  112K 1007M   1% /dev/shm

tmpfs        tmpfs   1007M   20K 1007M   1% /tmp

none         tmpfs   1007M   92K 1007M   1% /var/run

none         tmpfs   1007M     0 1007M   0% /var/lock

none         tmpfs   1007M     0 1007M   0% /lib/init/rw

root@ubuntu:~# sudo mount /dev/sda1 /mnt

root@ubuntu:~# sudo mount /dev/sdb3 /mnt/boot

mount: mount point /mnt/boot does not exist

root@ubuntu:~# sudo mount --bind /dev  /mnt/dev

mount: mount point /mnt/dev does not exist

root@ubuntu:~# sudo mount --bind /dev/pts  /mnt/dev/pts

mount: mount point /mnt/dev/pts does not exist

root@ubuntu:~# sudo mount --bind /proc /mnt/proc

mount: mount point /mnt/proc does not exist

root@ubuntu:~# sudo mount --bind /sys  /mnt/sys

mount: mount point /mnt/sys does not exist

root@ubuntu:~# sudo chroot /mnt

chroot: cannot run command `/bin/bash': No such file or directory

root@ubuntu:~# update-grub

/usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?).

root@ubuntu:~# 

root@ubuntu:~# grub-install /dev/sdb

/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).

No path or device is specified.

Try `/usr/sbin/grub-probe --help' for more information.

Auto-detection of a filesystem module failed.

Please specify the module with the option `--modules' explicitly.

root@ubuntu:~# sudo grub-install --recheck /dev/sdb

/usr/sbin/grub-probe: error: cannot find a device for /boot/grub (is /dev mounted?).

No path or device is specified.

Try `/usr/sbin/grub-probe --help' for more information.

Auto-detection of a filesystem module failed.

Please specify the module with the option `--modules' explicitly.

root@ubuntu:~# logout

ubuntu@ubuntu:~$ sudo umount /mnt/dev/pts

umount: /mnt/dev/pts: not found

ubuntu@ubuntu:~$ sudo umount /mnt/dev

umount: /mnt/dev: not found

ubuntu@ubuntu:~$ sudo umount /mnt/proc

umount: /mnt/proc: not found

ubuntu@ubuntu:~$ sudo umount /mnt/syssudo

umount: /mnt/syssudo: not found

ubuntu@ubuntu:~$ sudo umount /mnt/boot

umount: /mnt/boot: not found

ubuntu@ubuntu:~$ sudo umount /mnt/usr

umount: /mnt/usr: not found

ubuntu@ubuntu:~$ sudo umount /mnt

ubuntu@ubuntu:~$

and boot script info

Code:
                Boot Info Script 0.55    dated February 15th, 2010                    

============================= Boot Info Summary: ==============================

 => Windows is installed in the MBR of /dev/sda

 => Grub 2 is installed in the MBR of /dev/sdb and looks at sector 949881658 

    of the same hard drive for core.img, but core.img can not be found at this 

    location.

 => Syslinux is installed in the MBR of /dev/sdc

sda1: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   /grub/grub.cfg /bootmgr /Boot/BCD /grldr /grub/core.img

sda2: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  Windows 7

    Boot files/dirs:   /Windows/System32/winload.exe

sda3: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sda4: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sdb1: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sdb2: _________________________________________________________________________

    File system:       ntfs

    Boot sector type:  Windows Vista/7

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

sdb3: _________________________________________________________________________

    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

sdb4: _________________________________________________________________________

    File system:       swap

    Boot sector type:  -

    Boot sector info:  

sdc1: _________________________________________________________________________

    File system:       vfat

    Boot sector type:  Fat32

    Boot sector info:  No errors found in the Boot Parameter Block.

    Operating System:  

    Boot files/dirs:   

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

Drive: sda ___________________ _____________________________________________________

Disk /dev/sda: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 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    *          2,048       206,847       204,800   7 HPFS/NTFS

/dev/sda2             206,848    67,835,903    67,629,056   7 HPFS/NTFS

/dev/sda3          67,835,904   524,287,999   456,452,096   7 HPFS/NTFS

/dev/sda4         524,290,048   976,769,023   452,478,976   7 HPFS/NTFS

Drive: sdb ___________________ _____________________________________________________

Disk /dev/sdb: 500.1 GB, 500107862016 bytes

255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdb1                   1   976,773,167   976,773,167  ee GPT

GUID Partition Table detected.

Partition           Start           End          Size System

/dev/sdb1         264,192   488,517,631   488,253,440 Linux or Data

/dev/sdb2     488,517,632   940,927,049   452,409,418 Linux or Data

/dev/sdb3     940,927,050   972,462,644    31,535,595 Linux or Data

/dev/sdb4     972,464,128   976,773,119     4,308,992 Linux Swap

Drive: sdc ___________________ _____________________________________________________

Disk /dev/sdc: 7851 MB, 7851737088 bytes

3 heads, 16 sectors/track, 319488 cylinders, total 15335424 sectors

Units = sectors of 1 * 512 = 512 bytes

Sector size (logical/physical): 512 bytes / 512 bytes

Partition  Boot         Start           End          Size  Id System

/dev/sdc1    *             80    15,335,423    15,335,344   b W95 FAT32

blkid -c /dev/null: ____________________________________________________________

Device           UUID                                   TYPE       LABEL                         

/dev/loop0                                              squashfs                                 

/dev/sda1        2E9C26009C25C367                       ntfs       System Reserved               

/dev/sda2        D8962F01962EE02C                       ntfs                                     

/dev/sda3        9A28BFDB28BFB49B                       ntfs       WD                            

/dev/sda4        C6D40023D40017F7                       ntfs       WD                            

/dev/sda: PTTYPE="dos" 

/dev/sdb1        D6E213A5E213893F                       ntfs       Seagate                       

/dev/sdb2        30D039FBD039C83C                       ntfs       Seagate                       

/dev/sdb3        11d54860-cb4b-4640-81b1-d6f186243232   ext4                                     

/dev/sdb4        7b2ee0f9-7d5b-44b3-8860-7bdb531073a0   swap                                     

/dev/sdb: PTTYPE="gpt" 

/dev/sdc1        C4D9-3665                              vfat       CORSAIR                       

/dev/sdc: PTTYPE="dos" 

============================ "mount | grep ^/dev  output: ===========================

Device           Mount_Point              Type       Options

aufs             /                        aufs       (rw)

/dev/sdc1        /cdrom                   vfat       (ro,noatime,fmask=0022,dmask=0022,codepage=cp437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)

/dev/loop0       /rofs                    squashfs   (ro,noatime)

/dev/sda3        /media/WD                fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

/dev/sda4        /media/WD_               fuseblk    (rw,nosuid,nodev,allow_other,blksize=4096,default_permissions)

============================= sda1/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 $prefix/grubenv ]; then

  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

}

insmod ext2

set root='(hd1,3)'

search --no-floppy --fs-uuid --set e4d93dff-0d49-4e11-8f52-04f17359268c

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

insmod ntfs

set root='(hd0,1)'

search --no-floppy --fs-uuid --set 2e9c26009c25c367

set locale_dir=($root)/grub/locale

set lang=en

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

### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###

### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###

menuentry "Windows 7 (loader) (on /dev/sda1)" {

    insmod ntfs

    set root='(hd0,1)'

    search --no-floppy --fs-uuid --set 2e9c26009c25c367

    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 ###

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

    ??GB: grub/core.img

    ??GB: grub/grub.cfg

=========================== sdb3/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 $prefix/grubenv ]; then

  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

}

insmod ext2

set root='(hd1,3)'

search --no-floppy --fs-uuid --set 11d54860-cb4b-4640-81b1-d6f186243232

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

insmod ext2

set root='(hd1,3)'

search --no-floppy --fs-uuid --set 11d54860-cb4b-4640-81b1-d6f186243232

set locale_dir=($root)/boot/grub/locale

set lang=en

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

### END /etc/grub.d/05_debian_theme ###

### BEGIN /etc/grub.d/10_linux ###

menuentry 'Ubuntu, with Linux 2.6.32-24-generic' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set 11d54860-cb4b-4640-81b1-d6f186243232

    linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=11d54860-cb4b-4640-81b1-d6f186243232 ro   quiet splash

    initrd    /boot/initrd.img-2.6.32-24-generic

}

menuentry 'Ubuntu, with Linux 2.6.32-24-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {

    recordfail

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set 11d54860-cb4b-4640-81b1-d6f186243232

    echo    'Loading Linux 2.6.32-24-generic ...'

    linux    /boot/vmlinuz-2.6.32-24-generic root=UUID=11d54860-cb4b-4640-81b1-d6f186243232 ro single 

    echo    'Loading initial ramdisk ...'

    initrd    /boot/initrd.img-2.6.32-24-generic

}

### END /etc/grub.d/10_linux ###

### BEGIN /etc/grub.d/20_memtest86+ ###

menuentry "Memory test (memtest86+)" {

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set 11d54860-cb4b-4640-81b1-d6f186243232

    linux16    /boot/memtest86+.bin

}

menuentry "Memory test (memtest86+, serial console 115200)" {

    insmod ext2

    set root='(hd1,3)'

    search --no-floppy --fs-uuid --set 11d54860-cb4b-4640-81b1-d6f186243232

    linux16    /boot/memtest86+.bin console=ttyS0,115200n8

}

### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###

menuentry "Windows 7 (loader) (on /dev/sda1)" {

    insmod ntfs

    set root='(hd0,1)'

    search --no-floppy --fs-uuid --set 2e9c26009c25c367

    drivemap -s (hd0) (hd1)

        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 ###

=============================== sdb3/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    nodev,noexec,nosuid 0       0

# / was on /dev/sda3 during installation

UUID=11d54860-cb4b-4640-81b1-d6f186243232 /               ext4    errors=remount-ro 0       1

# swap was on /dev/sda4 during installation

UUID=7b2ee0f9-7d5b-44b3-8860-7bdb531073a0 none            swap    sw              0       0

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

 486.3GB: boot/grub/core.img

 482.2GB: boot/grub/grub.cfg

 486.3GB: boot/initrd.img-2.6.32-24-generic

 486.3GB: boot/vmlinuz-2.6.32-24-generic

 486.3GB: initrd.img

 486.3GB: vmlinuz

:(

--- Updated Post - Automerged ---

this guide says that it's require to create 3 partitions for ubuntu.

one is swap and one is for installation but why the extra third??

is this is what i'm doing wrong??:huh:

Installing Ubuntu 10.04 LTS - Softpedia
 
Back
Top