LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Debian installed on usb external hard disk doesn't run (https://www.linuxquestions.org/questions/linux-newbie-8/debian-installed-on-usb-external-hard-disk-doesnt-run-891316/)

ospaco69 07-12-2011 11:39 AM

Debian installed on usb external hard disk doesn't run
 
Hi, I have a notebook dual core with processor centrino and i installed on an usb external hard disk of 1 Tb Debian Lenny distribution - through net installer cd -, without internal disk notebook pluged, installing even Grub on it.
The thing is that when i trying to boot with the external disk, appears the message "Operative system not found", although this notebook allows to boot from usb.
Also, I 've tried reducing the size of boot partition less of 128 MB and configure menu.lst grub's file in manually way, so I don't what else to try.
Any comments or sugerences are Welcome!!!!.

Regards.

Pablo.

alfredo10 07-12-2011 12:08 PM

Hi!
You first should find out where / if Grub was installed -> see post #5
http://www.linuxquestions.org/questi...6_64-a-891126/
You can run that command on an installed Linux or on Linux live as root.
alfredo

jefro 07-12-2011 08:13 PM

I'd install the usb drive to a powered off system. (plug in usb that is)

Then boot to bios.

The bios should show the hard drive as a choice under the installed drive. Move it up and then save. It should then boot as a hard drive choice.

ospaco69 07-13-2011 06:21 PM

Hi, thanks first for your time!. I did that you said and nothing happens, doesn't boot, just boot the internal hd with windows. I don't know what else to try... i'm thinking about throw out the towel....

yancek 07-13-2011 08:13 PM

I've never done a netinstall so don't know the steps. In a standard install, you will get a message that the installation is complete and reboot. Did you get a message like that? In most systems, you have at least three options for bootloader installation:
1.master boot record
2.system partition
3.Don't install bootloader

What did you select?
You created a separate boot partition?
Is your install of Debian the only thing on the external drive?
Do you have any Linux Live CD available to boot to gather information to post here?

alfredo10 07-14-2011 04:41 AM

Hi Pablo!
Don't give up; I recommend to download PartedMagic 6.3 and SuperGrubDisk and burn 2 images.
PM is a Linux operating system, but you have many tools, access to all files on hd and are able to connect to the net:
http://partedmagic.com/doku.php
With SGD you can start your Windows or Linux or repair Grub:
http://www.supergrubdisk.org/
You must know, if you have Grub1 (v. 0.97, called legacy) or Grub2 (v. 1.9x).
alfredo

ospaco69 07-14-2011 07:36 AM

Yancek, i think that i installed out with "mbr option", i don't remember really, because of that i will try with the second option "system partition", and 've like to see what happens.
I have created on separated boot partition and its size is greater than 128 MB and yes, the only soft installed there is Debian.
Thank you so much for your sugerences.
Regards.

ospaco69 07-14-2011 07:37 AM

alfredo10, i will try your sugerences and tell you later.
Thank you so much.

Regards.

alfredo10 07-14-2011 10:18 AM

Hi Pablo!
Again: the first thing I would do: find out where Grub is installed; I suppose you have Grub 0.97.
After having created live PM, you there can run the command to find Grub (LXTerminal).
(-> hint I gave you in answer #2!)
alfredo

Edit:
Part of my output: (with comment):
Quote:

/dev/sda: GRUB Legacy -> Grub 0.97 in MBR of first hd
/dev/sda1: No GRUB b60
/dev/sda2: No GRUB 55aa
/dev/sda3: No GRUB 55aa
/dev/sda4: GRUB Legacy -> Grub 0.97 in partition #4
/dev/sda5: No GRUB 00
...
/dev/sda10: GRUB 2 v1.97 or higher
! second hd =>
/dev/sdb: GRUB Legacy
/dev/sdb1: GRUB Legacy

ospaco69 07-22-2011 08:37 AM

Grub installed on external HD doesn't run
 
Hi, i was trying the things that yours said to me and nothing happens... I mean still keep appearing 'Grub' text on black screen text and hang on. One thing that i cannot understand is if i boot with PartedMagic, my external hd appears like /dev/sdc instead of /dev/sdb if i boot with debian net installer cd in rescue mode. So i'm continue the fight..., until the victory! (who knows what time will be......)

Regards.

yancek 07-22-2011 09:37 AM

If you are trying to install Debian to an external drive so that you can select the external in the BIOS at boot, you need to select to install Grub to the mbr of the external drive. If you do not have other drives attached during the install, this will probably be sda.

Can you boot Parted Magic and mount the Debian partitions and get output from the menu.lst file? If you don't know how to do this, post back.
Is your Parted Magic on a usb stick?

alfredo10 07-22-2011 09:47 AM

Hi Pablo!
An USB drive and even an USB flash is identified as /dev/sdaX, X depends on the order of plugging in the devices, so an external hd can be sdb or sdc.
But why don't you try to find out where Grub is installed? (See my previous posts.)
alfredo

ospaco69 07-26-2011 07:47 AM

File menu.lst
 
Hi, this is the result of script to find where Grub installed is, and the second is the content of file menu.lst.

/dev/sda No GRUB 9f83
/dev/sda1 No GRUB 55aa
/dev/sdb No GRUB 00
/dev/sdb1 No GRUB 00
/dev/sdc: GRUB 2 v1.96
/dev/sdc1: GRUB 2 v1.96
/dev/sdc2 No GRUB 00
/dev/sdc3 No GRUB 55aa
/dev/sdc5 No GRUB 00
/dev/sdc6 No GRUB 00


Menu.lst (part of it)

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
## kopt_2_6_8=root=/dev/hdc1 ro
## kopt_2_6_8_2_686=root=/dev/hdc2 ro
kopt=root=UUID=9da57bf8-e3a2-40bd-ae36-790ac5f45238 ro

## default grub root device
## e.g. groot=(hd0,0)
groot=(hd1,0)

## should update-grub create alternative automagic boot options
## e.g. alternative=true
## alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
## lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet

## should update-grub lock old automagic boot options
## e.g. lockold=false
## lockold=true
# lockold=false

## Xen hypervisor options to use with the default Xen boot option
# xenhopt=

## Xen Linux kernel options to use with the default Xen boot option
# xenkopt=console=tty0

## altoption boot targets option
## multiple altoptions lines are allowed
## e.g. altoptions=(extra menu suffix) extra boot options
## altoptions=(single-user) single
# altoptions=(single-user mode) single

## controls how many kernels should be put into the menu.lst
## only counts the first occurence of a kernel, not the
## alternative kernel options
## e.g. howmany=all
## howmany=7
# howmany=all

## should update-grub create memtest86 boot option
## e.g. memtest86=true
## memtest86=false
# memtest86=true

## should update-grub adjust the value of the default booted system
## can be true or false
# updatedefaultentry=false

## should update-grub add savedefault to the default options
## can be true or false
# savedefault=false

## ## End Default Options ##

title Chainload into GRUB 2
root (hd1,0)
kernel /boot/grub/core.img

title ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root

title When you have verified GRUB 2 works, you can use this command to
root

title complete the upgrade: upgrade-from-grub-legacy
root

title ÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄÄ
root

title Debian GNU/Linux, kernel 2.6.26-2-686
root (hd1,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=UUID=9da57bf8-e3a2-40bd-ae36-790ac5f45238 ro quiet
initrd /boot/initrd.img-2.6.26-2-686

title Debian GNU/Linux, kernel 2.6.26-2-686 (single-user mode)
root (hd1,0)
kernel /boot/vmlinuz-2.6.26-2-686 root=UUID=9da57bf8-e3a2-40bd-ae36-790ac5f45238 ro single
initrd /boot/initrd.img-2.6.26-2-686

### END DEBIAN AUTOMAGIC KERNELS LIST

# This is a divider, added to separate the menu items below from the Debian
# ones.
title Other operating systems:
root


And Device.map file:

(hd0) /dev/sda
(hd1) /dev/sdc --> (or should be /dev/sdb????).

Thanks to all for your time!!!.

alfredo10 07-26-2011 08:43 AM

Hi Pablo!
What I see:
Grub1.96 is installed in the MBR of /dev/sdc and in the first partition, /dev/sdc1;
in /dev/sda1 and /dev/sdc3 was/ is installed W7 or VISTA or parts of it.
It is a sort of disorder and without more details I can't help.

As I wrote before, you should download and burn an image of PartedMagic to see your partitions with GParted or another partition editor,
and we must know which operating system you installed (Windows preinstalled? - You want to keep it? If it works, yes!).
alfredo

ospaco69 07-26-2011 01:00 PM

Alfredo, on /dev/sda is an internal hd with Vista, /dev/sdb is an ocassional pendrive and /dev/sdcY is the external usb HD with some other partitions with one of them is formatted on ntfs. The thing is i want to boot only with external hd, regardless the internal one. Tell me what other info do you need.

Thanks a lot.

Regards.

yancek 07-26-2011 02:38 PM

The output you posted from the bootinfo script is substantially less than one would expect. Did you just post part of it?
The info you posted shows Grub2 on sdc and on partition sdc1. Grub Legacy does not show. There is no menu.lst file with Grub2, the menu file is called grub.cfg so I don't know where you are getting menu.lst file?

I would suggest running the bootinfo script again and posting the entire output.

alfredo10 07-26-2011 03:43 PM

Hi Pablo!
There are conflicts: As far as I know, Debian Lenny (you are sure that you installed it, I suppose) came with Grub legacy (Grub 0.9) and not with Grub 1.9. Your output to find Grub shows that you twice have Grub 1.9 installed; how can that be? On the other hand you posted a menu.lst (belongs to Grub legacy) although Grub 0.9 was not found. That means: Your Debian installation is incomplete or broken.
I repeat my suggestion (answer #6):
With SuperGrubDisk you most times can start Windows or Linux - I would try it; everyone with an installed Windows should have that disc.
With PartedMagic you can access all files and edit partitions and test the hd.
alfredo

ospaco69 08-14-2011 06:06 PM

Hi everybody and sorry by the wait. I was trying with SuperGrubDisk and doesn't see the external usb hd, so the only device that it can see is the internal one, it means the /dev/sda.
Any idea why supergrub disk doesn't see the external hd? it should be mounted before?

Regards.

alfredo10 08-16-2011 12:56 PM

Hi Pablo!
You see the menu of SuperGrubDisk, I suppose.
I have never heard that SGD doesn't see a hd in working order.
You have important Data on that hd? Then I would try to save them with a live Linux (CD, DVD or USB).
In any case I would burn an image of PartedMagic on CD - to access files and see if your hd is recognized.
alfredo

ospaco69 08-17-2011 08:42 AM

Hi, Alfredo!, parted magic can see the external hd like /dev/sdc, by the other hand Lenny net installer sees it like /dev/sdb, which is a little strange i think...

Regards.

alfredo10 08-18-2011 03:45 AM

Hi Pablo,
as I wrote before, the numbering of hds and USB sticks (a, b, c) depends on the order you have plugged in the devices.
I label all partitions and sticks with GParted as e.g. rootLinux, SanDisk,...
But first we should know:
1. You have to save Data?
2. Which Linux do you want to install?
I recommend to save Data, partition your drive, ask if it is okay and then install Linux.
alfredo

ospaco69 08-18-2011 01:18 PM

Hi Alfredo!, the data isn't important so i can destroy it. And i trying install Debian Lenny through net installer cd version. So as was commented on before post, if a boot with net installer Debian cd, in rescue mode i can see the external hd like /dev/sdb. if a boot with parted magic cd, i see it like /dev/sdc, which that sounds me strange.

Thanks for your time!

Regards

alfredo10 08-19-2011 03:26 AM

Hi Pablo!
Seeing /dev/sdc: You have plugged in an USB stick or an USB modem with integrated memory card?
As you don't have important Data, I would parition the external hd with GParted (on PartedMagic) and make a fresh installation.
After having booted from PM: Could you please post the output of
Code:

fdisk -l
lowercase "L" like list and
Code:

parted -l print
external hd plugged in.
alfredo

ospaco69 08-24-2011 12:12 PM

Hi Alfredo!, i found that on grub prompt using find command for look where the file stage1 is, for grub the device is (fd1) !!!????. So the only way that grub can start on external hd is through one of extras items that come with the cd with the option usb, but now can boot the kernel. Just i need more time and will tell you the news.

Regards.

EDDY1 08-24-2011 12:44 PM

A usb cdrom drive may be listed as "removeable devices in Bios", so you have to actually move it to the top of list.


All times are GMT -5. The time now is 01:53 PM.