PDA

View Full Version : [ubuntu] Harddrive is a mess; installed ubuntu, no grub!!



adamogardner
January 8th, 2011, 07:32 PM
I tried to install Windows7 today with an already cluttered hardrive. I succeeded but lost ubuntu, so I reinstalled Ubuntu alonside the existing operating systems and lost Windows7, I tried to reinstall windows 7 and there is nowhere on the partition to install it. Now what?

I'd like to have only two operating systems here; Windows 7, and Ubuntu. Thanks for your help.

adamogardner
January 8th, 2011, 08:32 PM
I tried to fix it myself. Rebooted it reads "no boot signature found in partition, operating system not found. I know there are more operating systems than I want though. Unfortunately I can't continue repairs until I have an operating system to work with. Suggestions?
It won't boot off of disk either now.

coglist
January 8th, 2011, 09:40 PM
can you post your system specs that you are using? not certain I will be able to help you, but if your computer isn't booting the grub bootloader, it may be an issue specific to your hardware. :popcorn:

I should be more specific on what should be posted. system board model number if not a generic prebuilt system. also confirm what version of ubuntu you are attempting to istall, ie 10.10 netbook etc. I know there are issues if you try to install windows ontop of a system if you aren't careful, but usually installing ubuntu ontop of windows is easy.

amjjawad
January 8th, 2011, 11:31 PM
Suggestions?

On my signature, check "Dual-Booting Guide".
It will tell you how to Dual-Boot with Windows. Don't worry about XP (in that guide), it should be the same concept.

If you have any question, let me know!

adamogardner
January 9th, 2011, 01:45 PM
I think it's lucid lynx. I don't know what those other things you asked for are. I've had everything working on it already, so I seriously doubt it's hardware.
is there a command to get the info you need, or do I need to flip my laptop over?

adamogardner
January 9th, 2011, 01:45 PM
Dual booting guide does not show my situation as described below.

kansasnoob
January 9th, 2011, 01:54 PM
Are you able to boot any Live CD or Live USB?

We need to gather some info, specifically the output of the Boot Info Script as described here:

http://bootinfoscript.sourceforge.net/

But you'll obviously need to be able to run some Live media.

adamogardner
January 9th, 2011, 02:01 PM
Okay, I can't boot Windows, I just booted Lucid though from the live disk. I can attempt to install or...?

kansasnoob
January 9th, 2011, 02:03 PM
Okay, I can't boot Windows, I just booted Lucid though from the live disk. I can attempt to install or...?

Post the output requested in my last post.

mike555
January 9th, 2011, 02:06 PM
you might start gparted to see what you have ,it will show if you have Windows ntfs partition and/or ext4 linux partition ... maybe you could post a screenshot ..

adamogardner
January 9th, 2011, 02:06 PM
sure, but right now it wants to know if i want to install alongside other operating systems (there are too many) or instead of other operating systems. Do I do that or run it live? I'll try it live until I here otherwise. be right back with info.

kansasnoob
January 9th, 2011, 02:08 PM
sure, but right now it wants to know if i want to install alongside other operating systems (there are too many) or instead of other operating systems. Do I do that or run it live? I'll try it live until I here otherwise. be right back with info.

Just run the Live CD until we can see what you have.

adamogardner
January 9th, 2011, 02:15 PM
okay,,says ive included 17 images but I'm limited to 8. No idea what that means. working on it.

adamogardner
January 9th, 2011, 02:20 PM
it's not allowing me to post.
But I have the information you request. something about the use of these being subject to an administrator. I simply copied and pasted from gedit, so what's the problem?

kansasnoob
January 9th, 2011, 02:23 PM
Here's some alternative instructions for the Boot Info Script:

http://ubuntuforums.org/showthread.php?t=1291280

If you use code tags to post the output there should be zero "images".

kansasnoob
January 9th, 2011, 02:33 PM
That's the actual contents of the script itself. You need to "run" the script using the terminal.

Like if you saved the downloaded script to Desktop:


sudo bash ~/Desktop/boot_info_script*.sh

Or if you saved it to Downloads:


sudo bash ~/Downloads/boot_info_script*.sh

When the script is finished running it'll tell you where the results.txt is saved.

It's the results.txt that we need to see.

adamogardner
January 9th, 2011, 02:34 PM
Sorry, I should have worked backwards.

kansasnoob
January 9th, 2011, 02:36 PM
Sorry, I should have worked backwards.

No problem :)

adamogardner
January 9th, 2011, 02:37 PM
Results:


Boot Info Script 0.55 dated February 15th, 2010

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

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

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: Unknown
Boot sector info:

sda5: __________________________________________________ _______________________

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

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

Drive: sda ___________________ __________________________________________________ ___

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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 469,968,895 469,966,848 83 Linux
/dev/sda2 469,970,942 488,396,799 18,425,858 5 Extended
/dev/sda5 469,970,944 488,396,799 18,425,856 82 Linux swap / Solaris


blkid -c /dev/null: __________________________________________________ __________

Device UUID TYPE LABEL

/dev/loop0 squashfs
/dev/sda1 cf1bdb47-5a1b-4320-9707-88cdf92c8a97 ext4
/dev/sda2: PTTYPE="dos"
/dev/sda5 ba51e338-4484-4876-9027-94803155c982 swap
/dev/sda: PTTYPE="dos"

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

Device Mount_Point Type Options

aufs / aufs (rw)
/dev/sr0 /cdrom iso9660 (ro,noatime)
/dev/loop0 /rofs squashfs (ro,noatime)


=========================== 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 cf1bdb47-5a1b-4320-9707-88cdf92c8a97
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 cf1bdb47-5a1b-4320-9707-88cdf92c8a97
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-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 cf1bdb47-5a1b-4320-9707-88cdf92c8a97
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cf1bdb47-5a1b-4320-9707-88cdf92c8a97 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 cf1bdb47-5a1b-4320-9707-88cdf92c8a97
echo 'Loading Linux 2.6.35-22-generic ...'
linux /boot/vmlinuz-2.6.35-22-generic root=UUID=cf1bdb47-5a1b-4320-9707-88cdf92c8a97 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 cf1bdb47-5a1b-4320-9707-88cdf92c8a97
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 cf1bdb47-5a1b-4320-9707-88cdf92c8a97
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=ba51e338-4484-4876-9027-94803155c982 none swap sw 0 0

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


186.9GB: boot/grub/core.img
152.6GB: boot/grub/grub.cfg
.8GB: boot/initrd.img-2.6.35-22-generic
186.9GB: boot/vmlinuz-2.6.35-22-generic
.8GB: initrd.img
186.9GB: vmlinuz
=========================== Unknown MBRs/Boot Sectors/etc =======================

Unknown BootLoader on sda2

00000000 75 ac 5c 1f e1 8c a6 98 cf 3c ad f0 4b 51 ff 75 |u.\......<..KQ.u|
00000010 fb bf ea db f7 b5 3b 84 89 7c 44 ab 4a 9d ce df |......;..|D.J...|
00000020 b6 b9 ed 20 43 41 72 c8 56 70 50 6d 84 22 e2 c9 |... CAr.VpPm."..|
00000030 00 2c a6 38 b7 a9 4d 72 36 d7 fa 2f 0c 31 1c 6e |.,.8..Mr6../.1.n|
00000040 cd cb 73 8a d0 3f a9 cd 5a d0 b9 e4 e7 0d 13 c3 |..s..?..Z.......|
00000050 ac e2 03 65 cc 63 1f ac ce 6d 1e 7f af 06 3b 92 |...e.c...m....;.|
00000060 48 55 ba 2b fb 46 bb 83 3e 4c e7 9c f2 f4 52 a0 |HU.+.F..>L....R.|
00000070 13 9c 71 59 58 67 dc 85 59 5f 19 9c 2f 19 0a 15 |..qYXg..Y_../...|
00000080 db e7 e4 67 b3 88 8d 9c bb 75 f6 71 fd d7 4b 71 |...g.....u.q..Kq|
00000090 ff c6 1a e5 86 d8 69 5d 1d 2d 1b c7 29 d6 6b 6f |......i].-..).ko|
000000a0 ab 5c 81 72 da 2a 80 b2 90 c1 26 b1 0f 12 62 c3 |.\.r.*....&...b.|
000000b0 e2 ef a4 21 3e 8b f7 57 6e b9 83 3c ac 9b 0a b2 |...!>..Wn..<....|
000000c0 81 d2 8b 3c b9 ed f6 ed 8e 4f 44 57 c4 5a 32 33 |...<.....ODW.Z23|
000000d0 73 a7 ec 6d 1b fe ce 1b a0 e7 a9 98 c0 1f 2c bd |s..m..........,.|
000000e0 ad 26 ce 3a 31 7e 76 55 61 6f ec 73 5e 87 7c e6 |.&.:1~vUao.s^.|.|
000000f0 7f b6 32 aa df 9c e7 ed 35 f6 8d b1 e2 76 14 59 |..2.....5....v.Y|
00000100 7b 3f 07 dc d2 66 3e b7 21 fa b2 f5 e5 4f 31 93 |{?...f>.!....O1.|
00000110 bd c8 04 81 a8 99 d4 bc 8d e4 ae 65 20 d7 a6 b5 |...........e ...|
00000120 99 d4 5b 02 67 d2 81 ad f2 e7 3f 2f 05 94 f0 f1 |..[.g.....?/....|
00000130 5f 7c a5 b2 bd ea c1 a4 7a 95 1b 17 5e a0 c7 3e |_|......z...^..>|
00000140 f1 cf 9b 8b cb dd 66 0a 5d fe 79 5d b9 2d c9 6a |......f.].y].-.j|
00000150 83 4f e6 d1 21 b7 c5 40 83 97 54 57 50 cb 92 43 |.O..!..@..TWP..C|
00000160 f8 66 47 38 e7 e8 85 e2 79 a3 0e 7b 75 4d f2 f4 |.fG8....y..{uM..|
00000170 ae e7 16 85 f7 76 d1 75 94 fa 53 68 e7 63 39 bd |.....v.u..Sh.c9.|
00000180 8d c0 9b d3 2a 7d 63 83 5e 94 24 38 1d 51 98 41 |....*}c.^.$8.Q.A|
00000190 d3 d6 4d 02 bc 67 cf 8c 29 4c 2a 8c 5e 57 c2 35 |..M..g..)L*.^W.5|
000001a0 b0 8c 1f b6 50 12 10 b3 5d 03 3a 1c ce ff 38 c2 |....P...].:...8.|
000001b0 be 14 0c 19 cb 8d e0 20 02 f7 ae 9f dd 08 00 fe |....... ........|
000001c0 ff ff 82 fe ff ff 02 00 00 00 00 28 19 01 00 00 |...........(....|
000001d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
*
000001f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 55 aa |..............U.|
00000200

adamogardner
January 9th, 2011, 02:40 PM
ugly, huh?

Elfy
January 9th, 2011, 02:45 PM
I've removed the script posts and added code tags to the script output.

Please use code tags - if you are doing a New Reply there is a button looks like # , select the text then hit the button.

If you are doing a Quick Reply - you can add the code tags by typing
at the beginning and at the end.

Thank you.

kansasnoob
January 9th, 2011, 03:06 PM
ugly, huh?

Give me a little bit. I was just out checking on my goats and their water is frozen due to a failed heater. As soon as I get a propane heater fired up I'll be back in.

adamogardner
January 9th, 2011, 03:10 PM
I'll be here. thanks.

kansasnoob
January 9th, 2011, 03:28 PM
Well, that's simple to read. You only have one OS installed, Ubuntu 10.10.

Probably because of problems I tried to point out in post #1 and post #15 here:

http://ubuntuforums.org/showthread.php?t=1622388

Basically the "install alongside" option in the 10.10 installer often results in using the entire disc :(

One of several bug reports:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/659106

You should be able to get that Ubuntu booting by copy-n-pasting these commands using the Live CD:


sudo mount /dev/sda1 /mnt && sudo mount --bind /dev /mnt/dev && sudo mount --bind /proc /mnt/proc && sudo mount --bind /sys /mnt/sys && sudo chroot /mnt


grub-install /dev/sda


update-grub


exit


sudo umount /mnt/dev && sudo umount /mnt/sys && sudo umount /mnt/proc && sudo umount /mnt

But I assume you still want to install Win7. If so how much space do you want to give it?

hansolo4949
January 9th, 2011, 03:33 PM
I tried to install Windows7 today with an already cluttered hardrive. I succeeded but lost ubuntu


Ouch. By installing windows after Ubuntu, you overwrote your grub. I think you should just boot from a livecd, and use gparted to wipe your hdd, install windows 7, THEN install Ubuntu. That should work perfectly:).

I don't think anything can go wrong with this unless you have some important files on there.

hansolo4949

adamogardner
January 9th, 2011, 03:36 PM
My computer is of decent size. I suppose I want to split it down the middle. Half for Windows7 and half for ubuntu.

If there is only one operating system what happened to the other 5 or 6 that installed alongside several times?

adamogardner
January 9th, 2011, 03:38 PM
Ouch. By installing windows after Ubuntu, you overwrote your grub. I think you should just boot from a livecd, and use gparted to wipe your hdd, install windows 7, THEN install Ubuntu. That should work perfectly:).

I don't think anything can go wrong with this unless you have some important files on there.

hansolo4949

I don't know how to use gparted. I think that's how I screwed it up in the first place. But I like the idea of starting fresh.

hansolo4949
January 9th, 2011, 03:45 PM
Okay, the simplest way to wipe the slate clean is to mount your hdd, (so it appears on your desktop) right-click it, then select "format this drive" or something like that (i'm in windows right now, so I can't verify that). you should be good to go! Remember, install windows first, then Ubuntu.

hansolo4949

kansasnoob
January 9th, 2011, 03:50 PM
Ouch. By installing windows after Ubuntu, you overwrote your grub. I think you should just boot from a livecd, and use gparted to wipe your hdd, install windows 7, THEN install Ubuntu. That should work perfectly:).

I don't think anything can go wrong with this unless you have some important files on there.

hansolo4949

But then reinstalling Ubuntu completely wiped Windows :( That's a bad, bad bug!

So, if adamogardner wants to start from scratch he should only use the "Specify partitions manually (advanced)" option. I prefer this method:

http://members.iinet.net.au/~herman546/p22.html

hansolo4949
January 9th, 2011, 03:53 PM
No, he/she can do that if they want to preserve data on that drive, but formatting it works just as well, and is a lot easier. All they need to to is install windows 7 after the wipe, then install Ubuntu. It should work!:)

hansolo4949

hansolo4949
January 9th, 2011, 03:56 PM
Oh, I see what you mean. I wonder why that's an issue... I installed Ubuntu alongside windows 7 without any issue whatsoever. Maybe adamogardner should try it again and see if it works?

hansolo4949

kansasnoob
January 9th, 2011, 03:58 PM
I don't know how to use gparted. I think that's how I screwed it up in the first place. But I like the idea of starting fresh.

System > Administration > Gparted:

180564

See where I highlighted Device > Create Partition Table? That'll wipe the drive and let you start fresh.

Just don't use the "Install alongside" option from the 10.10 disc again! I prefer this method:

http://members.iinet.net.au/~herman546/p22.html

adamogardner
January 9th, 2011, 04:01 PM
Stupid question then, how do I mount the hdd (so it appears on my desktop)?

After rightclick > format this drive, what will happen? The harddrive becomes wiped like new? This would be okay with me.

adamogardner
January 9th, 2011, 04:03 PM
System > Administration > Gparted:

180564

See where I highlighted Device > Create Partition Table? That'll wipe the drive and let you start fresh.

Just don't use the "Install alongside" option from the 10.10 disc again! I prefer this method:

http://members.iinet.net.au/~herman546/p22.html

Sounds perfect. I'll let you know.

kansasnoob
January 9th, 2011, 04:06 PM
Oh, I see what you mean. I wonder why that's an issue... I installed Ubuntu alongside windows 7 without any issue whatsoever. Maybe adamogardner should try it again and see if it works?

hansolo4949

I did extensive testing and I can assure you that there's a bug in the "Install alongside" option. I filed these bug reports:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/682429

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/657397

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/655950

The first is the worst and it's actually a duplicate of:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/659106

But they're all related, as is this one:

https://bugs.launchpad.net/ubuntu/+source/ubiquity/+bug/652852

Using the "install alongside" option is a real crap-shoot, sometimes you're lucky and sometimes you're not :(

adamogardner
January 9th, 2011, 04:11 PM
It worked. So I need to install under the method, http://members.iinet.net.au/~herman546/p22.html
Thanks a bunch

adamogardner
January 9th, 2011, 04:24 PM
nevermind

hansolo4949
January 9th, 2011, 05:49 PM
Yes, it will be like a new hdd when you format it:)


hansolo4949