LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   installing 12.2 on netbook - usb hd (https://www.linuxquestions.org/questions/slackware-14/installing-12-2-on-netbook-usb-hd-796735/)

ngc457 03-20-2010 03:22 PM

installing 12.2 on netbook - usb hd
 
I'm trying to install Slackware on a USB connected harddrive, the computer is an ASUS 1005PE netbook with win 7 on the internal harddrive.

Here's what I did:


1. boot using usb install stick
2. install to 40gb usb hd

the next day...

3. reboot usb install stick
4. mount /dev/sdc1 /mnt
5. chroot /mnt
6. mkinitrd -c -k 2.6.29.6-smp -m ext2:usb-storage:ehci-hcd -f ext2 -w 10 -r/dev/sdc1
7. edit /etc/lilo.conf
boot = /dev/sdc

image = /boot/vmlinuz
initrd = /boot/initrd.gz
root = /dev/sdc1
label = linux
read-only

8. lilo -b /dev/sdc
9. reboot - goes to win 7 on internal hd ignoring the usb drive.

Anyone see my mistake?

bgeddy 03-20-2010 03:31 PM

With a quick look over what you've done so far looks OK to me. Does your netbook not have a boot up key combination to tell it what device to boot from? My desktop PC is set up to boot from it's harddisk and at boot time I have to hit F12 to select to boot from the attached USB device. If I don't do this it ignores the bootable USB drive and boots straight to the internal disk - (however - I can change this in the bios).

ngc457 03-20-2010 03:47 PM

No, you just set boot priority in the BIOS.

bgeddy 03-20-2010 04:40 PM

I've just noticed you seem to be loading the huge kernel (vmlinuz) but trying to load an initrd with this. This won't work. To run an initrd you need these lines :
Code:

image = /boot/vmlinuz-generic-2.6.29.6-smp
root = /dev/sdc1
label = Slackwaregeneric
initrd = /boot/initrd.gz

On thing I would do is add this to the top of lilo.conf
Code:

append="rootdelay=20"
and rerun lilo. This should make you able to run from the supplied huge kernel without worrying about making an initrd with the devices and wait statements included.
In saying that it sounds like the usb drive is being ignored totally and Windows booted. Are you sure you installed lilo to the USB drive correctly ?

ngc457 03-20-2010 05:49 PM

I using lilo -b /dev/sdc after mounting /dev/sdc1 to /mnt and chrooting it?
But I'll give your kernel idea a try.

ngc457 03-20-2010 11:59 PM

Quote:

Originally Posted by bgeddy (Post 3905893)
In saying that it sounds like the usb drive is being ignored totally and Windows booted. Are you sure you installed lilo to the USB drive correctly ?

I think this might be it? I noted the following warnings after 'lilo -b /dev/sdc':

Ignoring entry 'boot'
/dev/sdc is not on the first disk
BIOS drive 0x82 may not be accessible

I thought using the initrd would take care of these but I guess not as the drive isn't being recognized?

But I have no idea how to proceed.

bgeddy 03-21-2010 05:36 AM

A few more questions . In your original post you mention
Quote:

boot using usb install stick
Where did you get the USB image from ? How did you make the USB stick ?
Code:

ignoring entry 'boot'
This is simply because you have an entry in lilo.conf for boot= and are supplying the same information via the command line.
Quote:

/dev/sdc is not on the first disk
This is a standard warning and nothing to worry about.
Quote:

BIOS drive 0x82 may not be accessible
This may be something to worry about but doubtful. It usually indicates a problem that occurs with older Bios but, as the netbook has the facility to boot to USB device built in, I doubt it should be a problem.

One possible way out is to install lilo to the MBR of the main hard disk (the internal one) and load Windows via the "other=" lilo stanza. There are instructions for how to do this on line if you are unsure. In effect this will boot lilo for everything and you may choose to boot Slackware or Windows. You will have to reset the Bios to boot to the internal hard disk though.

I am not sure why you can't boot to the USB disk - obviously booting to an external usb device works fine as you ran the install from one.

ngc457 03-21-2010 07:39 AM

The USB image is from the 12.2 tree, I used the directions in the USB-PXE directory.

I really don't want LILO on the main drive.

linus72 03-21-2010 07:45 AM

Try plop bootmanager to boot it
it may work

I made a little usb kit for it here
http://multidistro.com/downloads/current/NetBooter.zip

put that on usb and you can net-install a distro and its got plop
plop doesnt install, just boots usb,usb-hdd, usb-cdrom,etc

ngc457 03-21-2010 08:54 AM

I've read about plop before, but don't think that will solve my problem?

I created and booted a USB install stick and installed to a USB hard drive, it's the hard drive that's not booting. But should, I must have something miss configured?


All times are GMT -5. The time now is 09:25 PM.