LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 03-18-2008, 03:38 PM   #1
wcuff
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Rep: Reputation: 0
Thumbs down Boot problems after installing Slack12 on Lenovo T61 laptop


A new Lenovo T61 with a 120gig SATA hard drive. I downloaded the Slackware CDs and installed ver.12. I tried to install the LILO boot loader in MBR and was told by the installation program that it did not load correctly. (The help file warned me there may be problems here.) Reinstalled Slack again, omitting LILO, and all looked good.

Okay, these days you seem to boot through a memory stick. Bought a SanDisk
cruzer 2gb and downloaded usbboot.img and ran
dd if=usbboot.img of=/dev/sdb bs=512

after confirming that the device corresponding to the memory stick was /dev/sdb. Looked at the memory stick and yes looked okay.

Ensured that the BIOS allowed booting the computer from
USB HDD SanDisk U3 Cruzer Micro

and pressed the on button, to get the error messsage from trying to load the memory stick:

Boot error.

So where to go now?


This is my first time using this forum, so apologies if this problem has already been addressed. Thank you!

Last edited by wcuff; 03-18-2008 at 03:41 PM. Reason: adding tags
 
Old 03-18-2008, 04:08 PM   #2
C-Sniper
Member
 
Registered: Dec 2006
Distribution: Slackware
Posts: 507

Rep: Reputation: 33
you do not have to boot through a memory stick. normally you can just set up lilo to boot through the root partition not the mbr. here is an example of my lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
boot = /dev/hda
message = /boot/boot_message.txt
compact
lba32
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/hda1
  label = Linux
  read-only
# Linux bootable partition config ends
 
Old 03-18-2008, 11:53 PM   #3
wcuff
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Angry yes, but

Thank you for the suggestion. I have tried all three alternatives now:
1. mbr
2. boot partition, as you suggest
3. floppy

The system does not seem to even try - judging from the floppy, no action.
I did a Reconfiguration at the end of the install, and nothing.

I did two usb memory sticks.

IBM Thinkpads have a special region of their hd's for backups. I wonder if this is stopping LILO from installing - but that would not explain the memory stick and floppy failures.

I also looked into the machine's BIOS and wondered if it was preventing LILO. Nothing. Suggestions very welcome, and thank you!
 
Old 03-19-2008, 12:00 AM   #4
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
You should try using expert mode in when running liloconfig. If you can boot from CD/DVD, then boot with it, and mount your harddisk and chroot to the mountpoint to work there, there's no need to reinstall.
I've seen liloconfig failing because it tries to write what (I guess) i finds first, in my situation, I had a sata disk and an ide cdrom, it automatically (using Simple mode) tried to write to /dev/hda's MBR (the CD) instead of the harddisk. When running expert mode, it let's you choose where to install lilo, in my case, it was /dev/sda, my harddisk.
Hope this helps.
 
Old 03-19-2008, 03:08 AM   #5
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Rep: Reputation: 25
Another alternative is to try grub.
 
Old 03-19-2008, 02:44 PM   #6
wcuff
LQ Newbie
 
Registered: Mar 2008
Posts: 3

Original Poster
Rep: Reputation: 0
Smile good advice ... bit more detail needed

Quote:
Originally Posted by gbonvehi View Post
You should try using expert mode in when running liloconfig. If you can boot from CD/DVD, then boot with it, and mount your harddisk and chroot to the mountpoint to work there, there's no need to reinstall.
I've seen liloconfig failing because it tries to write what (I guess) i finds first, in my situation, I had a sata disk and an ide cdrom, it automatically (using Simple mode) tried to write to /dev/hda's MBR (the CD) instead of the harddisk. When running expert mode, it let's you choose where to install lilo, in my case, it was /dev/sda, my harddisk.
Hope this helps.
Thanks for these suggestions.
1. I tried the exert mode. No help. Another suggestion, to use GRUB, may be a solution.
2. I can boot from the first installation CD and log in as root.
"mount my harddisk"? - if convenient to you, can you give me details. That would be very useful.
Then, once I chroot, do I turn the computer off and on again with no CD and Slack should boot? This I do not understand.

Again, my appreciation!
 
Old 03-19-2008, 06:00 PM   #7
gbonvehi
Senior Member
 
Registered: Jun 2004
Location: Argentina (SR, LP)
Distribution: Slackware
Posts: 3,145

Rep: Reputation: 53
wcuff, I'll give you the steps to follow, if you've a doubt about some command, just search on the web the terms "man <command>" like "man mount" without the quotes, it'll surely take you to the man page which explains all about it. You usually can run man <command> from some linux terminal and you'll see that man page, but I think the installation cd/dvd doesn't include that to save space.
Anyway, by using mount, you can hook a filesystem to some directory you specify. The first directory (when there's no file structure) is called / or root. Chroot is a command that changes that / (root of your system) to another point you specify.

So, what can you do with this? When you boot with the dvd, a root filesystem is created in memory, it contains the installation files and some basic commands. That allows you to mount your real root partition (the one on your harddisk) on one of the directories on memory. As a example, you can mount your partition on /mnt directory, so when you browse there, you'll see your partition's filesystem, there's no C: D: drive on linux systems as you may see on dos/windows, you just can mount any known filesystem in any directory you want.
After mounting your partition, you can use the other command, chroot, to make the system think, the new / is what's on /mnt, that will allow you to make a "switch" to run everything after chrooting from the real system instead of memory.
I hope I was clear enough, I'm not too good explaining in english language.

Commands needed for this:
Code:
mount /dev/XXXX /mnt
Please, replace XXXX with the device that matches your root partition on the harddisk. IE: /dev/sda1
Code:
chroot /mnt
This will make the system switch to run everything from the harddisk, there's no need to reboot, in fact, if you reboot, you'll have to do this again.
Code:
/sbin/lilconfig
This is to try installing lilo again.

There's a easier way to do all of this (without the need to use mount and chroot), and it's even better because it'll actually boot from your system on the partition (everything except the kernel). When you reach to the lilo boot: prompt when booting with the DVD, type:
Code:
huge.s root=/dev/XXXX
Again, replace it with the matching root partition.
 
Old 03-19-2008, 06:14 PM   #8
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: SlackwareŽ
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Hi,

A good online 'man'; LINUX MAN PAGES ONLINE.

Linux Command Guide and Linux Command Guide are great online references.

These links and others can be found at 'Slackware-Links' .
 
Old 09-12-2008, 03:53 PM   #9
illiadum
Member
 
Registered: May 2006
Location: Arizona...where its unreasonably hot.
Distribution: Slackware
Posts: 34

Rep: Reputation: 15
Similar Issue Solved

Hi wcuff,
I realize that this is an old post, but I had a similar issue installing SLAMD64 on my T61 (which I just got on 9/8/8). I am currently booting off the MBR without problems.

How I fixed it...well, in fdisk, I had to make sure and wipe out completely the "Unknown" type partition and all other stuff before creating the Linux partitions. Then, after much anger and fighting, I booted off other media. I actually ended up putting the hard drive into my Desktop machine, booting with hard disk as /dev/sda, (normal desktop boot disk was on /dev/sdb) chrooting into the mounted /dev/sda...mounted my laptop boot partition, then ran

lilo -M /dev/sda

Which writes to MBR. Then, putting the hard disk back in my machine, it was OK. I think the problem lies in either the Unknown partition type, put their either by Lenovo or M$ for some recovery stuff or other. Also, it could be because of the 1GB flash memory they have on the drive. You have to make sure the kernel you use has the AHCI option enabled. I think that the first sector the installation disc sees is not really the first sector of the hard drive.

Hope this helps someone.
 
  


Reply

Tags
booting, slackware, usb



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
No dual display RHEL 5.1 on Lenovo T61 taz_Vtx Linux - Laptop and Netbook 1 10-03-2008 08:03 AM
Problems Configuring Wireless Internet on Fedora Core 8 --Lenovo T61 nikhil.coolhunk Linux - Networking 1 03-13-2008 02:21 PM
Prob after installing Fedora in Lenovo laptop rakris Linux - Laptop and Netbook 1 09-09-2007 07:16 AM
Thinkpad Lenovo T61 Nikosis Slackware 33 07-05-2007 06:11 AM
Installing sound drivers for IBM Lenovo N100 series Laptop running Fedora Core 5 balajiz4u Linux - Hardware 1 12-17-2006 02:45 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 03:51 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration