PDA

View Full Version : [ubuntu] Help with win 7



VelocityDwarf
March 2nd, 2011, 02:55 AM
I think I posted on the wrong forum... sorry

here is my other post:

Hello everyone, I'm new to this forum and to Ubuntu.

A couple hours ago I downloaded the Ubuntu 10.10 netbook edition so I could install it on my sony vaio netbook.
The installation went fine, and I selected the option of installing Ubuntu alongside my other operative system (win 7). I chose 160 gb (320 gb hard drive) to the left partition which I think said "files" or something like that (had a folder icon) and 160 gb to the right side partition (had the ubuntu icon).
Again, installation went fine. But when I tried to enter windows again, I couldn't boot it. I don't know how to access BIOS, and when I acces GRUB (by pressing f8 the only options I get are 2 ubuntus (with their respectively safe modes) and 2 memory tests.

How can I access win 7 again. I mean, of course I can install it again (I backed up the important files) but there is a homework I finished last night that I couldn't back up.

Can you please help me? I'm relatively new to Ubuntu.

seawolf167
March 2nd, 2011, 03:08 AM
First thing to try is to open a terminal (Applications -> Accessories -> Terminal) and run the command


sudo update-grub

and see if grub automagically picks up your Windows 7 install. Let us know if that works, then we can try some other things.

VelocityDwarf
March 2nd, 2011, 03:11 AM
I tried that already. I went searching trough the forums and found the boot info script:



Boot Info Script 0.55 dated February 15th, 2010

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

=> Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in
partition #1 for (,msdos1)/boot/grub.

sda1: __________________________________________________ _______________________

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

sda2: __________________________________________________ _______________________

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

sda5: __________________________________________________ _______________________

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

=========================== 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 * 2,048 612,853,759 612,851,712 83 Linux
/dev/sda2 612,855,806 625,141,759 12,285,954 5 Extended
/dev/sda5 612,855,808 625,141,759 12,285,952 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/sda1 d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 8fb7cf08-d3e8-48b4-a323-cc77c5b5ad96 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

/dev/sda1 / ext4 (rw,errors=remount-ro,commit=0)


=========================== sda1/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 part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
if loadfont /usr/share/grub/unicode.pf2 ; then
set gfxmode=640x480
load_video
insmod gfxterm
fi
terminal_output gfxterm
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
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.35-27-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
linux /boot/vmlinuz-2.6.35-27-generic root=UUID=d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92 ro quiet splash
initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-27-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
echo 'Loading Linux 2.6.35-27-generic ...'
linux /boot/vmlinuz-2.6.35-27-generic root=UUID=d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-27-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92 ro quiet splash
initrd /boot/initrd.img-2.6.35-22-generic
}
menuentry 'Ubuntu, with Linux 2.6.35-22-generic (recovery mode)' --class ubuntu --class gnu-linux --class gnu --class os {
recordfail
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92 ro single
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-2.6.35-22-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/20_memtest86+ ###
menuentry "Memory test (memtest86+)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
linux16 /boot/memtest86+.bin
}
menuentry "Memory test (memtest86+, serial console 115200)" {
insmod part_msdos
insmod ext2
set root='(hd0,msdos1)'
search --no-floppy --fs-uuid --set d1ffb69d-82c0-40c7-9ab6-dfcb5a9b2e92
linux16 /boot/memtest86+.bin console=ttyS0,115200n8
}
### END /etc/grub.d/20_memtest86+ ###

### BEGIN /etc/grub.d/30_os-prober ###
if [ "x${timeout}" != "x-1" ]; then
if keystatus; then
if keystatus --shift; then
set timeout=-1
else
set timeout=0
fi
else
if sleep --interruptible 3 ; then
set timeout=0
fi
fi
fi
### 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 ###

=============================== sda1/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/sda1 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=8fb7cf08-d3e8-48b4-a323-cc77c5b5ad96 none swap sw 0 0

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


229.9GB: boot/grub/core.img
26.2GB: boot/grub/grub.cfg
198.1GB: boot/initrd.img-2.6.35-22-generic
26.1GB: boot/initrd.img-2.6.35-27-generic
229.9GB: boot/vmlinuz-2.6.35-22-generic
229.9GB: boot/vmlinuz-2.6.35-27-generic
26.1GB: initrd.img
198.1GB: initrd.img.old
229.9GB: vmlinuz
229.9GB: vmlinuz.old

seawolf167
March 2nd, 2011, 03:18 AM
Before I say anything else - can you please run the following commands as a double check


mount

and


sudo fdisk -l

VelocityDwarf
March 2nd, 2011, 03:25 AM
Ok, I tried both codes on the terminal, rebooted but the same options appear... :S

seawolf167
March 2nd, 2011, 03:27 AM
Sorry, I should have been more clear, please run those two commands and post their output here

VelocityDwarf
March 2nd, 2011, 03:31 AM
mount output:


ricardo@computer:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (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)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/ricardo/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=ricardo)
ricardo@computer:~$
sudo fdisk -l output:


ricardo@computer:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x000d114c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38149 306425856 83 Linux
/dev/sda2 38149 38914 6142977 5 Extended
/dev/sda5 38149 38914 6142976 82 Linux swap / Solaris

seawolf167
March 2nd, 2011, 03:38 AM
mount output:

ricardo@computer:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
sudo fdisk -l output:

ricardo@computer:~$ sudo fdisk -l

Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 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: 0x000d114c

Device Boot Start End Blocks Id System
/dev/sda1 * 1 38149 306425856 83 Linux
/dev/sda2 38149 38914 6142977 5 Extended
/dev/sda5 38149 38914 6142976 82 Linux swap / Solaris

I hate to say it - but do you have any backups? :(

It looks like you only have one hard drive in your computer and that hard drive has three partitions formatted for Ubuntu.

If you had a Windows formatted partition you'd see at least one entry with NTFS at the end like this


Device Boot Start End Blocks Id System
/dev/sdf1 1 182402 1465136128 7 HPFS/NTFSFor future use, my backup application of choice is Clonezilla (http://www.clonezilla.org). You can use it to image your entire drive or single partitions and restore from that as if nothing happened if something goes wrong or a hard drive fails.

VelocityDwarf
March 2nd, 2011, 03:41 AM
oh well that's ok, luckily I have a backup. altough I must do a homework again which I couldn't save.

thanks a lot for your time brother! (Y)

Hakunka-Matata
March 2nd, 2011, 03:50 AM
https://wiki.ubuntu.com/MaverickMeerkat/ReleaseNotes#Boot,%20installation,%20upgrade%20and %20post-install

It appears you got bit by the 10.10 'install side by side' bug. Not that it will do you any good now, but the above link describes the problem.

http://www.cgsecurity.org/wiki/TestDisk_Download

TestDisk, above link may be able to recover your win7 partition, I've not done it myself but have seen several people reference it in these forums.

If you use the install operating systems 'side by side' option, do not select "use Entire Disc" or "use Entire Partition" options when you see them, move directly forward, ?continue, Install?, I don't remember.

Hedgehog1
March 2nd, 2011, 06:40 AM
I tried that already. I went searching trough the forums and found the boot info script:



Boot Info Script 0.55 dated February 15th, 2010

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


VelocityDwarf,

I wanted to commend you on your effort to have the data ready like this. This shows a fine level of maturity - You will be a great Ubuntian.

I am sorry your windows install was overwritten (Honest!), but I hope you stay a Linux user too.

I like your style!

The Hedge

:KS

p.s. As long as you have a complete Ubuntu install, you can install windows inside VirualBox and run is 'as an app' in Linux; just a thought...

VelocityDwarf
March 5th, 2011, 05:16 AM
can you please explain me how to use TestDisk please man?
which download should I choose?

VelocityDwarf
March 5th, 2011, 05:26 AM
thanks man! I really like ubuntu, I feel very identified with the philosophy of sharing... people who use linux-based systems tend to be less arrogant than the rest of the os' users and I appreciate the help that people give :D