LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-30-2002, 01:40 PM   #16
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30

Also you should check out a beginner unix tutorial. This will help you get around with the command prompt and do the basic things you need. There are tons of unix beginner tutorials on the web ( google is the word )

Without command line knowledge, the machine is not unlike a human who has his limbs cut off and has has to rely on his tounge to walk, talk, run and jump. So sooner, the better.
 
Old 08-30-2002, 07:02 PM   #17
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
[mike@localhost mike]$ cd /boot
[mike@localhost boot]$ ls -Al
total 9032
-rw-r--r-- 1 root root 5824 Jun 24 2001 boot.b
-rw-r--r-- 1 root root 612 Jun 24 2001 chain.b
-rw-r--r-- 1 root root 40589 Aug 7 10:07 config-2.4.18-10
-rw-r--r-- 1 root root 39999 Apr 18 06:40 config-2.4.18-3
drwxr-xr-x 2 root root 1024 Aug 29 18:18 grub
-rw-rw-r-- 1 root root 128961 Aug 29 18:06 initrd-2.4.18-10.img
-rw-r--r-- 1 root root 123790 Aug 28 16:47 initrd-2.4.18-3.img
-rw-r--r-- 1 root root 473 Aug 28 22:39 kernel.h
drwx------ 2 root root 12288 Aug 28 16:35 lost+found
-rw-r--r-- 1 root root 23108 Jun 24 2001 message
lrwxrwxrwx 1 root root 21 Aug 29 18:06 module-info -> module-info-2.4.18-10
-rw-r--r-- 1 root root 14431 Aug 7 10:07 module-info-2.4.18-10
-rw-r--r-- 1 root root 14431 Apr 18 06:40 module-info-2.4.18-3
-rw-r--r-- 1 root root 640 Jun 24 2001 os2_d.b
lrwxrwxrwx 1 root root 19 Aug 29 18:24 System.map -> System.map-2.4.18-3
-rw-r--r-- 1 root root 476082 Aug 7 10:07 System.map-2.4.18-10
-rw-r--r-- 1 root root 474261 Apr 18 06:40 System.map-2.4.18-3
-rwxr-xr-x 1 root root 2883809 Aug 7 10:07 vmlinux-2.4.18-10
-rwxr-xr-x 1 root root 2868043 Apr 18 06:40 vmlinux-2.4.18-3
lrwxrwxrwx 1 root root 17 Aug 29 18:06 vmlinuz -> vmlinuz-2.4.18-10
-rw-r--r-- 1 root root 1043221 Aug 7 10:07 vmlinuz-2.4.18-10
-rw-r--r-- 1 root root 1041347 Apr 18 06:40 vmlinuz-2.4.18-3
[mike@localhost boot]$



hope I did that right
 
Old 08-30-2002, 08:34 PM   #18
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
--------------------------------------------------------------------
prompt
timeout=50
default=Linux
boot=/dev/hda
map=/boot/map
install=/boot/boot.b
message=/boot/message
compact
lba32


image=/boot/vmlinuz-2.4.18-10
label=Linux
initrd=/boot/initrd-2.4.18-10.img
read-only
root=/dev/hda2

image=/boot/vmlinuz-2.4.18-3
label=LinuxOld
initrd=/boot/initrd-2.4.18-3.img
read-only
root=/dev/hda2

-------------------------------------------------------------------

Logon as root.

Backup /etc/lilo.conf if it exists. ( cp /etc/lilo.conf /etc/lilo.conf.bak )

The stuff between the lines is going to be your new lilo.conf

Save the file.

rm /etc/System.map

ln -s /etc/System.map-2.4.18-10 /etc/System.map

/sbin/lilo -t
(the line above should result in
Added Linux *
Added LinuxOld)

if yes run..

/sbin/lilo
reboot
(choose Linux at bootup, if that fails try LinuxOld)

else

post what lilo -t says and we'll fix it.
 
Old 08-30-2002, 09:29 PM   #19
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
you refer to lilo but Im using grub, does that matter?
 
Old 08-31-2002, 02:43 AM   #20
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Does matter. Your boot sector currently contains grub code which will be replaced by lilo code if you follow the steps above. Your call.
 
Old 08-31-2002, 12:39 PM   #21
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
Ok, lets see if I did this right. I opened gedit and pasted in the stuff between the lines then saved the file as /etc/lilo.conf , then I removed the system.map file and did the lilo -t and got this.
[root@localhost mike]# /sbin/lilo -t
Added Linux *
Added LinuxOld


so then i did the /sbin/lilo and got the same thing. I rebooted the machine and got a different screen that I used to and it had linux and linux old. I tried them both and got the same thing as before. It gets to uncompressing linux them the crc -system halted message, and as before I can pop in the floppy and it boots up fine.

BTW- I logged into my local library today and it looks like they have a copy of linux for dummies in, so I figure thats right up my ally.
 
Old 08-31-2002, 05:48 PM   #22
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
This is getting interesting.

If both of your kernel images ( where Linux and LinuxOld point to ) are corrupted let see if there's something wrong with your /boot (mounts /dev/hda1) filesystem.

logon as root and run the following. post results to the forum where indicated.

umount /boot
e2fsck -cCvf /dev/hda1(post listing)
echo $? (post listing)
mount /boot
/sbin/lilo

also to see what's up with your kernel images.

cd /mnt/floppy
ls -Al (post listing)
which md5sum(post listing)

Last edited by nxny; 08-31-2002 at 05:57 PM.
 
Old 08-31-2002, 06:52 PM   #23
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
[root@localhost mike]# umount /boot
[root@localhost mike]# e2fsck -cCvf /dev/hda1
bash: e2fsck: command not found
[root@localhost mike]# echo $?
127
[root@localhost mike]# mount /boot
[root@localhost mike]# /sbin/lilo
Added Linux *
Added LinuxOld
[root@localhost mike]# cd /mnt/floppy
[root@localhost floppy]# ls -Al
total 0
[root@localhost floppy]# which md5sum
/usr/bin/md5sum
[root@localhost floppy]#

----------------------------------------------------------------------

did I do that right? I also tried e2fsck /dev/hda1 to check the boot partitian and get the same "command not found" message

Last edited by ScreeminChikin; 08-31-2002 at 08:12 PM.
 
Old 08-31-2002, 08:26 PM   #24
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
You dont seem to have e2fsck in your path. Repeat the first set of steps above with /sbin/e2fsck

for the second set.. try

mount /mnt/floppy
cd /mnt/floppy
ls -Al (post listing)
md5sum vmlinuz(post listing)
cd /boot
ls -Al vmlinuz* (post listing)
md5sum vmlinuz-2.4.18-10(post listing)
md5sum vmlinuz-2.4.18-3(post listing)
 
Old 09-01-2002, 12:35 AM   #25
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
[root@localhost mike]# /sbin/e2fsck -cCvf /dev/hda1
e2fsck 1.27 (8-Mar-2002)
/dev/hda1 is mounted.

WARNING!!! Running e2fsck on a mounted filesystem may cause
SEVERE filesystem damage.

Do you really want to continue (y/n)? yes

/boot: recovering journal
Checking for bad blocks (read-only test): done
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/boot: ***** FILE SYSTEM WAS MODIFIED *****
/boot: 48/13104 files (2.1% non-contiguous), 15070/52384 blocks
[root@localhost mike]# mount /mnt/floppy
[root@localhost mike]# cd /mnt/floppy
[root@localhost floppy]# ls -Al
total 1166
-rwxr-xr-x 1 root root 203 Aug 28 20:59 boot.msg
-rwxr-xr-x 1 root root 144421 Aug 28 20:59 initrd.img
-r-xr-xr-x 1 root root 6192 Aug 28 20:59 ldlinux.sys
-rwxr-xr-x 1 root root 122 Aug 28 20:59 syslinux.cfg
-rwxr-xr-x 1 root root 1041347 Apr 18 11:40 vmlinuz
[root@localhost floppy]#
[root@localhost floppy]#
[root@localhost floppy]# md5sum vmlinuz
0cb827a550accb19c4eee43976f61763 vmlinuz
[root@localhost floppy]# cd /boot
[root@localhost boot]# ls -Al vmlinuz*
lrwxrwxrwx 1 root root 17 Aug 29 18:06 vmlinuz -> vmlinuz-2.4.18-10
-rw-r--r-- 1 root root 1043221 Aug 7 10:07 vmlinuz-2.4.18-10
-rw-r--r-- 1 root root 1041347 Apr 18 06:40 vmlinuz-2.4.18-3
[root@localhost boot]# md5sum vmlinuz-2.4.18-10
bdfa4476f3d69736445fc2ebd6c47d37 vmlinuz-2.4.18-10
[root@localhost boot]# md5sum vmlinuz-2.4.18-3
0cb827a550accb19c4eee43976f61763 vmlinuz-2.4.18-3
[root@localhost boot]#


-----------------
so from what I can tell there arent any bad sectors on the boot partition right?
 
Old 09-01-2002, 12:47 AM   #26
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
Run the following commands in sequence. logon as root. post results to the forum where indicated.

mount /mnt/floppy
cp /mnt/floppy/initrd /boot/initrd-2.4.18-3.img
ls -Al /boot (post listing)

What I meant as the first step in the last message was the following set of commands. You should generally not run fsck on mounted filesystems since this can be unpredictable and MAY cause data damage. The umount on top will 'unmount' it for you to do your job and then you mount it back after you are done..

umount /boot
/sbin/e2fsck -cCvf /dev/hda1(post listing)
echo $? (post listing)
mount /boot
/sbin/lilo

After this, reboot and choose LinuxOld at startup and see if that works. If not, write down what exactly you have on the screen and post it later on.

Last edited by nxny; 09-01-2002 at 04:31 AM.
 
Old 09-01-2002, 11:37 AM   #27
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
I went through the entire sequence again. Tried linux old and then linux. same erroe both times.
----------------------------
[root@localhost mike]# umount /boot
[root@localhost mike]# /sbin/e2fsck -cCvf /dev/hda1
e2fsck 1.27 (8-Mar-2002)
Checking for bad blocks (read-only test): done
Pass 1: Checking inodes, blocks, and sizes
Pass 2: Checking directory structure
Pass 3: Checking directory connectivity
Pass 4: Checking reference counts
Pass 5: Checking group summary information

/boot: ***** FILE SYSTEM WAS MODIFIED *****
/boot: 48/13104 files (2.1% non-contiguous), 15070/52384 blocks
[root@localhost mike]# echo $?
1
[root@localhost mike]# mount /boot
[root@localhost mike]# /sbin/lilo
Added Linux *
Added LinuxOld
[root@localhost mike]# mount /mnt/floppy
[root@localhost mike]# cp /mnt/floppy/initrd /boot/initrd-2.4.18-3.img
cp: cannot stat `/mnt/floppy/initrd': No such file or directory
[root@localhost mike]# cp /mnt/floppy/initrd.img /boot/initrd-2.4.18-3.img
cp: overwrite `/boot/initrd-2.4.18-3.img'? y
[root@localhost mike]# ls -Al /boot
total 9061
-rw-r--r-- 1 root root 512 Aug 31 12:21 boot.0300
-rw-r--r-- 1 root root 5824 Jun 24 2001 boot.b
-rw-r--r-- 1 root root 612 Jun 24 2001 chain.b
-rw-r--r-- 1 root root 40589 Aug 7 10:07 config-2.4.18-10
-rw-r--r-- 1 root root 39999 Apr 18 06:40 config-2.4.18-3
drwxr-xr-x 2 root root 1024 Aug 29 18:18 grub
-rw-rw-r-- 1 root root 128961 Aug 29 18:06 initrd-2.4.18-10.img
-rw-r--r-- 1 root root 144421 Sep 1 11:23 initrd-2.4.18-3.img
-rw-r--r-- 1 root root 473 Aug 28 22:39 kernel.h
drwx------ 2 root root 12288 Aug 28 16:35 lost+found
-rw------- 1 root root 7168 Sep 1 11:19 map
-rw-r--r-- 1 root root 23108 Jun 24 2001 message
lrwxrwxrwx 1 root root 21 Aug 29 18:06 module-info -> module-info-2.4.18-10
-rw-r--r-- 1 root root 14431 Aug 7 10:07 module-info-2.4.18-10
-rw-r--r-- 1 root root 14431 Apr 18 06:40 module-info-2.4.18-3
-rw-r--r-- 1 root root 640 Jun 24 2001 os2_d.b
lrwxrwxrwx 1 root root 19 Aug 29 18:24 System.map -> System.map-2.4.18-3
-rw-r--r-- 1 root root 476082 Aug 7 10:07 System.map-2.4.18-10
-rw-r--r-- 1 root root 474261 Apr 18 06:40 System.map-2.4.18-3
-rwxr-xr-x 1 root root 2883809 Aug 7 10:07 vmlinux-2.4.18-10
-rwxr-xr-x 1 root root 2868043 Apr 18 06:40 vmlinux-2.4.18-3
lrwxrwxrwx 1 root root 17 Aug 29 18:06 vmlinuz -> vmlinuz-2.4.18-10
-rw-r--r-- 1 root root 1043221 Aug 7 10:07 vmlinuz-2.4.18-10
-rw-r--r-- 1 root root 1041347 Apr 18 06:40 vmlinuz-2.4.18-3
[root@localhost mike]#
 
Old 09-01-2002, 03:26 PM   #28
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
My bad about initrd.img! Good you figured it out.

run
/sbin/lilo (as root and reboot)

Now LinuxOld will boot. Or I be damned.

Last edited by nxny; 09-01-2002 at 03:31 PM.
 
Old 09-01-2002, 04:57 PM   #29
ScreeminChikin
Member
 
Registered: Aug 2002
Location: Kansas City
Distribution: Mandrake 9.2 and a couple of RH7.3 Apache servers
Posts: 153

Original Poster
Rep: Reputation: 30
No such luck. I tried linux old and it got to "loading linux" and then hung indefinately. Tried it a couple times with the same result. when I tried linux, I got a message that said something about a signature not found. then I tried linux old again and Im back to "crc error".

BTW- thanks alot for spending so much time trying to help me figure this out. I really appreciate it.

I got another on for you now.
I installed RH 7.3 on my laptop. It already had win2kpro on it and need to keep it on there for work, so I cut the drive in half with partition magic and installed linux in the space I opened up. Now when I boot up, it goes straight into win2k. If I put in my boot floppy it boots into linux . during the install it says not to install the boot loader into the MBR if you are dual booting to nt if I understood right. Anyway I just never get a boot loader screen. Do I just need to edit my boot.ini file to let it know that linux is on there?

Last edited by ScreeminChikin; 09-01-2002 at 04:59 PM.
 
Old 09-01-2002, 09:08 PM   #30
nxny
Member
 
Registered: May 2002
Location: AK - The last frontier.
Distribution: Red Hat 8.0, Slackware 8.1, Knoppix 3.7, Lunar 1.3, Sorcerer
Posts: 771

Rep: Reputation: 30
I be damned. If you got back to square one (crc error) when you came back to linuxold, there's something really weird going on. Also it should say 'Loading Linuxold' not 'Loading Linux' before you said it hung. Are you sure about that?

cat /etc/lilo.conf(post listing)
ls -Al /boot/(post listing)
mount /mnt/floppy
ls -Al /mnt/floppy/(post listing)
md5sum /mnt/floppy/initrd.img(post listing)
md5sum /boot/initrd-2.4.18-3.img(post listing)

I think we may need to make further tweaks to get your system going... I'm all for it. Tell me if you think this is too much for you to handle.

Although I personally think that lilo on your MBR is a more flexible choice, you can use the nt/2k boot loader from this thread...
http://www.linuxquestions.org/questi...274#post100274
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
crc Error ?? Hedon Debian 2 10-15-2005 07:54 AM
CRC Error ghight Linux - Hardware 0 02-07-2005 08:13 AM
How, what, and/or why is a crc error ?? TheHushedCaskeT Linux - Software 1 02-02-2005 07:01 PM
Gentoo Live Cd Wont boot and gives error damoncf Linux - Newbie 3 11-11-2004 11:59 PM
CRC error on boot grahamfsw Slackware 1 09-08-2003 07:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 04:06 AM.

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