Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
| Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
 |
GNU/Linux Basic Guide
This 255-page guide will provide you with the keys to understand the philosophy of free software, teach you how to use and handle it, and give you the tools required to move easily in the world of GNU/Linux. Many users and administrators will be taking their first steps with this GNU/Linux Basic guide and it will show you how to approach and solve the problems you encounter.
Click Here to receive this Complete Guide absolutely free. |
|
 |
|
02-14-2010, 02:24 PM
|
#1
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Rep:
|
XP on internal drive wouldn't boot w/out Linux external one attached; now not at all
A few days ago I downloaded and burned the Ubuntu 9.10 live disk. I wanted to install it onto a portable external drive attached to my desktop so as not to mess with others who use the internal drive for XP. When I installed it I made sure the internal drive wasn't touched, and only used the blank external one. I made the external drive bootable with the disk utility, restarted everything and Grub was very cooperative in letting me pick an OS. But when i tried to start the computer without the external drive (to get into XP) because i want the linux drive to be portable, Grub tried to boot, said "Error: no such disk" and wouldn't access the internal C: drive top start up Windows. I googled for help, installed lilo (maybe not properly) on the portable drive, and when that didn't work installed grub on the C: drive. Now when i turn on the computer i get Grub saying it has a GEOM error and that i need to replace a disk. This happens in every case i could think of besides booting from the live Ubuntu CD. Can anyone help? I have some family members very mad at me about this.
Also, the external drive doesn't boot linux up when attached to other computers.
Last edited by sidthesloth; 02-14-2010 at 02:32 PM.
Reason: More information
|
|
|
|
02-14-2010, 02:34 PM
|
#2
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
It sounds like you managed to install grub on the internal drive. All is not lost. You can either spend a bunch of time learning all about grub somewhere, or you can do the following: Download a copy of Super Grub Disk and install it on a CD as an image. Boot the machine from that CD and select the automatic option. It should be able to fix grub for you. I'm not sure whether it will automatically put an entry in for you for XP, but I'm betting it will.
|
|
|
1 members found this post helpful.
|
02-14-2010, 04:16 PM
|
#3
|
|
LQ Veteran
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 11,220
|
Won't work if the external is broken. Better to get the machine booting from the internal.
Boot your XP install CD and select recovery centre when it says to. Run fixmbr and reboot.
You can then use the liveCD to check out the external.
|
|
|
|
02-14-2010, 06:46 PM
|
#4
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Original Poster
Rep:
|
i don't think the external is broken, because i can still access all the files from another computer; it just isn't booting.
i've tried downloading a super grub disk .iso, but whenever i go near a site with the download my internet slows down to nothing. any ideas?
|
|
|
|
02-14-2010, 06:59 PM
|
#5
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
Quote:
Originally Posted by sidthesloth
i don't think the external is broken, because i can still access all the files from another computer; it just isn't booting.
i've tried downloading a super grub disk .iso, but whenever i go near a site with the download my internet slows down to nothing. any ideas?
|
What do you mean "near a site"? Here is a link to the download page on the official SGD site.
http://www.supergrubdisk.org/index.php?pid=5
This mirror from that page is, I believe, in the US. The other two are in Germany, so maybe that's the problem for you.
http://download.linux-live-cd.org/Su...ies/sgd/cdrom/
Added:
You probably want this file unless you either have Linux or want to download the bzip program first. It's only 3.9 MB which isn't a large file.
http://download.linux-live-cd.org/Su...isk_0.9677.iso
Last edited by Quakeboy02; 02-14-2010 at 07:04 PM.
|
|
|
|
02-14-2010, 07:06 PM
|
#6
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
There's another question, though, are you sure that your BIOS is setup to boot from the internal drive? Did you change that when you were doing all the other stuff?
|
|
|
|
02-14-2010, 08:11 PM
|
#7
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Original Poster
Rep:
|
i got the download going fine, ran super grub and started a linux recovery something or other. i ran the fix errors option and updated the grub and now linux will boot up. i get a grub screen asking me to pick normal unubtu, a second ubuntu that's a backup or something, two memory check options, and windows XP. However, i can only choose the first ubuntu option, even though the others are recongized.
|
|
|
|
02-14-2010, 08:30 PM
|
#8
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
Added:
Quote:
|
i got the download going fine, ran super grub and started a linux recovery something or other. i ran the fix errors option and updated the grub and now linux will boot up.
|
Let me make sure. Are you saying that you can or cannot boot XP from grub?
Original:
OK, at least this is something. Bring up a terminal in Ubuntu and let us see the results of the following:
Code:
cat /boot/grub/menu.lst
sudo fdisk -l
ls /dev/[hs]d*
What this will do is show me what SGD setup for booting to XP and what Ubuntu can see of your disks. After this, we'll probably try mounting your XP disk with something like this, depending on what drive XP is on.
Code:
mount -o ro /dev/sda1 /mnt
Last edited by Quakeboy02; 02-14-2010 at 08:31 PM.
|
|
|
|
02-14-2010, 09:01 PM
|
#9
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Original Poster
Rep:
|
i pasted the code into the terminal and i got
cat: /boot/grub/menu.lst: No such file or directory
in response
i take it this isn't supposed to happen?
i ran it anyway; what part of the code do you want?
|
|
|
|
02-14-2010, 09:26 PM
|
#10
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Original Poster
Rep:
|
it can see all of my disks and partitions. Windows is on /dev/sda1, like in your example code so i ran
sudo mount -o ro /dev/sda1 /mnt
and the terminal said "the device or resource is busy"
|
|
|
|
02-14-2010, 09:32 PM
|
#11
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
Quote:
Originally Posted by sidthesloth
i pasted the code into the terminal and i got
cat: /boot/grub/menu.lst: No such file or directory
in response
i take it this isn't supposed to happen?
i ran it anyway; what part of the code do you want?
|
Hmm. Please post the output of the other two commands as well as this:
Maybe your grub uses a different name for menu.lst, perhaps grub.conf or something like that.
|
|
|
|
02-14-2010, 09:37 PM
|
#12
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Original Poster
Rep:
|
Code:
Disk /dev/sda: 80.0 GB, 80026361856 bytes
255 heads, 63 sectors/track, 9729 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x2f91c6c7
Device Boot Start End Blocks Id System
/dev/sda1 * 1 9729 78148161 7 HPFS/NTFS
Disk /dev/sdb: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x75810ffc
Device Boot Start End Blocks Id System
/dev/sdb1 1 129 1036161 82 Linux swap / Solaris
/dev/sdb2 130 38913 311532480 f W95 Ext'd (LBA)
/dev/sdb5 * 130 19461 155284258+ 83 Linux
/dev/sdb6 19462 38913 156248158+ 7 HPFS/NTFS
is the output the second lines and
Code:
915resolution.mod efiemu64.o lspci.mod reiserfs.mod
acpi.mod efiemu.mod lvm.mod scsi.mod
affs.mod elf.mod mdraid.mod search.mod
afs_be.mod ext2.mod memdisk.mod serial.mod
afs.mod extcmd.mod memrw.mod setjmp.mod
aout.mod fat.mod minicmd.mod sfs.mod
ata.mod font.mod minix.mod sh.mod
ata_pthru.mod fs_file.mod mmap.mod sleep.mod
at_keyboard.mod fshelp.mod moddep.lst tar.mod
befs_be.mod fs.lst msdospart.mod terminfo.mod
befs.mod fs_uuid.mod multiboot.mod test.mod
biosdisk.mod gfxterm.mod normal.mod tga.mod
bitmap.mod gptsync.mod ntfscomp.mod true.mod
blocklist.mod grub.cfg ntfs.mod udf.mod
boot.img grubenv ohci.mod ufs1.mod
boot.mod gzio.mod part_acorn.mod ufs2.mod
bsd.mod halt.mod part_amiga.mod uhci.mod
bufio.mod handler.lst part_apple.mod unicode.pf2
cat.mod handler.mod part_gpt.mod usb_keyboard.mod
cdboot.img hdparm.mod partmap.lst usb.mod
chain.mod hello.mod part_msdos.mod usbms.mod
cmp.mod help.mod part_sun.mod usbtest.mod
command.lst hexdump.mod parttool.lst vbeinfo.mod
configfile.mod hfs.mod parttool.mod vbe.mod
core.img hfsplus.mod password.mod vbetest.mod
cpio.mod iso9660.mod pci.mod vga.mod
cpuid.mod jfs.mod play.mod vga_text.mod
crc.mod jpeg.mod png.mod video_fb.mod
datehook.mod kernel.img probe.mod video.mod
date.mod keystatus.mod pxeboot.img videotest.mod
datetime.mod linux16.mod pxecmd.mod xfs.mod
device.map linux.mod pxe.mod xnu.mod
diskboot.img lnxboot.img raid5rec.mod xnu_uuid.mod
dm_nv.mod loadenv.mod raid6rec.mod zfsinfo.mod
drivemap.mod loopback.mod raid.mod zfs.mod
echo.mod lsmmap.mod read.mod
efiemu32.o ls.mod reboot.mod
is the output for the latter line
so there's a grub.cfg
i switched menu.lst for grub.cgf and here's the output:
Code:
#
# 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=(hd1,5)
search --no-floppy --fs-uuid --set 5f786776-7b18-4cff-8355-1084fcf5f3df
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-19-generic-pae" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
set quiet=1
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set 5f786776-7b18-4cff-8355-1084fcf5f3df
linux /boot/vmlinuz-2.6.31-19-generic-pae root=UUID=5f786776-7b18-4cff-8355-1084fcf5f3df ro quiet splash
initrd /boot/initrd.img-2.6.31-19-generic-pae
}
menuentry "Ubuntu, Linux 2.6.31-19-generic-pae (recovery mode)" {
recordfail=1
if [ -n ${have_grubenv} ]; then save_env recordfail; fi
insmod ext2
set root=(hd1,5)
search --no-floppy --fs-uuid --set 5f786776-7b18-4cff-8355-1084fcf5f3df
linux /boot/vmlinuz-2.6.31-19-generic-pae root=UUID=5f786776-7b18-4cff-8355-1084fcf5f3df ro single
initrd /boot/initrd.img-2.6.31-19-generic-pae
}
### 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 "Microsoft Windows XP Home Edition (on /dev/sda1)" {
insmod ntfs
set root=(hd0,1)
search --no-floppy --fs-uuid --set ded8216ed82145dd
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 ###
Last edited by sidthesloth; 02-14-2010 at 09:47 PM.
|
|
|
|
02-14-2010, 09:47 PM
|
#13
|
|
Senior Member
Registered: Nov 2006
Distribution: Debian Squeeze 2.6.32.9 SMP AMD64
Posts: 3,153
Rep: 
|
Wow, that's a lot of stuff in there compared to mine. So, let's see the contents of grub.cfg to see what SGD found. It should be a plain text file with configuration information in it.
Code:
cat /boot/grub/grub.cfg
Let's also see what Ubuntu has mounted, in case it's already mounted your XP filesystem for some reason:
|
|
|
|
02-14-2010, 09:52 PM
|
#14
|
|
LQ Newbie
Registered: Feb 2010
Distribution: Ubuntu 9.10
Posts: 11
Original Poster
Rep:
|
Code:
Filesystem Size Used Avail Use% Mounted on
/dev/sdb5 146G 27G 112G 20% /
udev 1.5G 292K 1.5G 1% /dev
none 1.5G 220K 1.5G 1% /dev/shm
none 1.5G 92K 1.5G 1% /var/run
none 1.5G 0 1.5G 0% /var/lock
none 1.5G 0 1.5G 0% /lib/init/rw
/dev/sdb6 150G 70M 149G 1% /media/6A90529690526919
/dev/sda1 75G 58G 18G 78% /media/DED8216ED82145DD
there's the output
|
|
|
|
02-14-2010, 10:22 PM
|
#15
|
|
Senior Member
Registered: Apr 2008
Distribution: PCLinux, Ubuntu, Peppermint
Posts: 3,388
|
Quote:
|
installed grub on the C: drive.
|
the above from your initial post, big mistake. You've overwritten some of your xp boot files. When you try to boot xp now, what error message, if any, do you get? To repair the xp mbr you need an xp installation cd/dvd with a recovery option (or you can just enter R at a prompt) and run fixmbr and/or fixboot from there. Before doing this, disconnect the external so you get the right drive this time. If you don't have an xp CD, you can borrow one or download. I'd do a search here for repair xp mbr as I've seen lots of posts here at LQ where people had to repair the xp mbr.
|
|
|
1 members found this post helpful.
|
| Thread Tools |
Search this Thread |
|
|
|
Posting Rules
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is Off
|
|
|
All times are GMT -5. The time now is 02:53 PM.
|
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|