Moved Bianca to external usb drive, won't boot

Questions about Grub, UEFI,the liveCD and the installer
Forum rules
Before you post read how to get help. Topics in this forum are automatically closed 6 months after creation.
Locked
User avatar
pashabear
Level 3
Level 3
Posts: 109
Joined: Fri Jan 05, 2007 11:59 pm
Location: Moscow, Russia

Moved Bianca to external usb drive, won't boot

Post by pashabear »

Well, I rearranged my setup again, copied my Mint partition over to my external usb drive and installed Mepis on the internal (sorry, as I prefer KDE, Mepis is better for me, and 6.5 looks good so far). I want to keep my Bianca install, as it's got a bunch of extra stuff installed and I really like the system.

Previously I installed SLED 10 to my external drive and used a chainload from my internal (MBR) GRUB, that worked ok. In my naivety I thought overwriting that partition with the Mint one would be all I'd need to do. But of course it doesn't, can anyone give me an idea of what I need to change, if possible I'd like to avoid re-installing Mint.

Thanks
pb
Last edited by LockBot on Wed Dec 28, 2022 7:16 am, edited 1 time in total.
Reason: Topic automatically closed 6 months after creation. New replies are no longer allowed.
User avatar
deppsche
Level 1
Level 1
Posts: 2
Joined: Thu Apr 05, 2007 7:51 pm
Location: Germany - Hessen

Post by deppsche »

copied my Mint partition over to my external usb drive
maybe you should reinstall Grub in your root-partion of the Mint-Install. and test chainload again
RobF
Level 1
Level 1
Posts: 3
Joined: Tue Apr 10, 2007 6:37 pm

Post by RobF »

It sounds as though GRUB (or to be more precise the boot code of GRUB stage 1) had never been installed in the first sector of your external USB drive where it would have overwritten the original MS-DOS MBR.

I suppose you could go with deppsche's suggestion and again try to boot Mint from the GRUB on your internal drive, or you could install GRUB in the first sector of the external drive and boot from there.

If you want to do the latter, you could do that from the Mint live CD.

First, check the files device.map and menu.lst in /boot/grub of your Mint install on the USB drive to make sure they are correct.

device.map should list (hd0) /dev/sda and (hd1) /dev/sdb if your internal drive is a SATA drive, or (hd0) /dev/hda and (hd1) /dev/sda if your internal drive is an ATA drive.

When you boot directly into the external USB drive, the BIOS considers that drive to be the primary boot drive, and accordingly it should be designated (hd0) in GRUB terminology, whereas the internal drive should be (hd1). Therefore, in menu.lst the first stanza should be something like the following (I'm assuming that Mint resides in the first partition of the external drive and that the system device name of the external drive is sdb, if not revise accordingly)

title Linux Mint, kernel 2.6.17-10-generic
root (hd0,0)
kernel /boot/vmlinuz-2.6.17-10-generic root=/dev/sdb1 ro quiet splash
initrd /boot/initrd.img-2.6.17-10-generic
quiet
savedefault
boot

and the other stanzas should be edited similarly, if needed.

Then ascertain which mount point the Mint live CD has assigned to the Mint partition on the external drive (let's suppose it's /media/usbdisk) and accordingly run the following (assuming that the device name of the external drive is sdb)

$ sudo grub-install --root-directory=/media/usbdisk /dev/sdb

That will install the GRUB stage 1 boot code in the MBR of the external drive and make that partition and any others that are listed in the menu.lst accessible and potentially bootable. You may also want to set the boot flag for the Mint partition, using the Gnome Partition Editor (i.e. GParted).

Then make sure the option of booting from a USB HDD is enabled in the BIOS, reboot and hit F12 (or whatever the keycode is on your system for directly booting from a USB HDD). The GRUB menu for the external drive should come up, offering you the option of booting into Mint.
User avatar
pashabear
Level 3
Level 3
Posts: 109
Joined: Fri Jan 05, 2007 11:59 pm
Location: Moscow, Russia

Post by pashabear »

I'm trying to reinstall Grub in the root-partition, as per deppsche's suggestion, but I get the following error from Grub:

Code: Select all

grub> root (hd1,5)
 Filesystem type is ext2fs, partition type 0x83

grub> install (hd1,5)

Error 1: Filename must be either an absolute pathname or blocklist
Any ideas?
pb
User avatar
Boo
Level 7
Level 7
Posts: 1633
Joined: Mon Mar 26, 2007 7:48 am

Post by Boo »

try the device name

grub> install /dev/hdb5

or it could be hdb6
:)
Image
Now where was i going? Oh yes, crazy!
User avatar
pashabear
Level 3
Level 3
Posts: 109
Joined: Fri Jan 05, 2007 11:59 pm
Location: Moscow, Russia

Post by pashabear »

That doesn't work either...

Code: Select all

grub> install /dev/sda6

Error 15: File not found
(and yes, sda6 is my mint partition on my external drive)
Locked

Return to “Installation & Boot”