LinuxQuestions.org
Visit Jeremy's Blog.
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 12-04-2007, 01:18 PM   #1
Rommeo
Member
 
Registered: Jan 2006
Posts: 51

Rep: Reputation: 15
Arrow Slackware Lilo Problem and changing mac for network


Hi

i have 2 questions that i could not solve till now.
Today i have installed slackware 12. And could not solve a problem about lilo..

1-) So my question is :
root@slackware:/#fdisk -l
Code:
Device	Boot	Start	End	Blocks		ID	System
/dev/hda1*	1	1237	993617		7	HPFS/NTFS
/dev/hda2	1238	4864	29133877+	f	W95 ext'd(LBA)
/dev/hda5	1238	1931	5574523+	83	Linux
/dev/hda6	1932	2001	562243+		82	Linux Swap
/dev/hda7	2002	2059	465853		b	W95 FAT32
/dev/hda8	2060	4864	22531131	7	HPFS/NTFS
i tried to ( mkdir /mnt/hd > mount /dev/hda5 /mnt/hd > cd /mnt/hd > chroot /mnt/hd > lilo ) And it gives me an error like :
Code:
warning '/proc/partitions' does not exist, disk scan bypassed 
Added windows *
Fatal Illegal 'root=' specifion (IN
Then when i try something else it gives me this message
Code:
cannot open proc/partitions
So i could not solve my problem and could not install lilo over slackware. Can someone help me ? And should i change any file as slackware 11 to start slackware with x ( with KDE i mean ) when computer starts ?

here is my lilo.conf
Code:
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
message = /boot/boot_message.txt
prompt
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
reset
# 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
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root =
label = Linux
read-only
# Linux bootable partition config ends

2-) My second question is about changing mac. I have a desktop computer which is windows installed. And I m a member of a large network. Today i have noticed that i can not use any computer except my desktops mac adress. So after i have solved my first problem i need to change laptop(slackware)'s mac adress to connect internet.. Any ideas about changing mac adress ??

i m a newbie. i ll be glad if you can reply any of my questions.
Thanx in advance.
 
Old 12-04-2007, 01:49 PM   #2
bioe007
Member
 
Registered: Apr 2006
Location: lynnwood, wa - usa
Distribution: archlinux
Posts: 654

Rep: Reputation: 30
I'm not sure I understand why you're doing this?

Quote:
i tried to ( mkdir /mnt/hd > mount /dev/hda5 /mnt/hd > cd /mnt/hd > chroot /mnt/hd > lilo ) And it gives me an error like :
you haven't really explained what the 'lilo problem' is, unless I've missed something. Are you booting a live/install cd to install lilo? (because it failed to write properly during install?)

if so the sequence should go:

1. boot cd
2. mkdir myroot # don't put it in /mnt
3. mount -t <your fs type> /dev/hda5 ./myroot
4. chroot ./myroot /bin/bash
5. edit lilo.conf as needed
6. /sbin/lilo -v
7. reboot # (finger crossing optional)

your lilo.conf seems screwed up.

Code:
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/sda
message = /boot/boot_message.txt
prompt
timeout = 1200
<snip>
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root =
label = Linux
read-only
# Linux bootable partition config ends
do you see the inconsistency? your boot device is listed as /dev/sda but fdisk is telling you (and the windows partition) is identified as /dev/hda

you also must specify the root location of your linux install.

I would change to this:

Code:
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda
message = /boot/boot_message.txt
prompt
timeout = 1200
<snip>
# Windows bootable partition config begins
other = /dev/hda1
label = Windows
table = /dev/hda
# Windows bootable partition config ends
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda5
label = Linux
read-only
# Linux bootable partition config ends
hth, if I've misinterpreted the problem, please repost with more details on the lilo issue.

#2 - ifconfig <interface> hw ether <address>

here interface for you is likely 'eth0' or 'wlan0' for wired/wireless respectively. try 'man ifconfig' if you still have troubles.

-ed- sorry missed one:
Quote:
And should i change any file as slackware 11 to start slackware with x ( with KDE i mean ) when computer starts ?
as root vi /etc/inittab and change:
Code:
# Default runlevel. (Do not set to 0 or 6)
id:3:initdefault:
to
Code:
# Default runlevel. (Do not set to 0 or 6)
id:4:initdefault:

Last edited by bioe007; 12-04-2007 at 01:51 PM.
 
Old 12-05-2007, 08:18 PM   #3
duryodhan
Senior Member
 
Registered: Oct 2006
Distribution: Slackware 12 Kernel 2.6.24 - probably upgraded by now
Posts: 1,054

Rep: Reputation: 46
To change your comp's mac address go into /etc/rc.d/rc.inet1.conf and

HWADDR[0]="newmac"

if you want to change your eth0 MAC , etc.

The examples in that file will make it plenty clear
 
  


Reply



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
Changing Mac Address on Network Card? neopiper Linux - Networking 10 11-21-2007 02:14 AM
Setting up network and changing MAC sytze.loor Linux - Networking 1 06-24-2006 05:08 PM
Trying to setup a network share with slackware and a mac GTX440 Linux - Networking 3 10-28-2004 12:31 PM
Problem with Lilo not updating (yes I ran lilo after changing the conf) webguy Linux - General 2 06-24-2001 07:12 PM

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

All times are GMT -5. The time now is 05:38 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