LinuxQuestions.org
Register a domain and help support LQ
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 02-21-2003, 04:02 AM   #1
awlad
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Rep: Reputation: 0
Deleted /boot folder


I somehow accidently managed to delete the /boot folder
How do I install it without installing the whole slackware again..

I am using slackware v8.1

also having problem with lilo .. when it boots up it display this reapeated number .. and doesn't boot up

please please help

Thanks in advance
 
Old 02-21-2003, 04:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,407

Rep: Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965Reputation: 1965
well you're stuffed really, you just deleted your kernel (no wonder lilo ain't working) it should be possible to use a rescue disk to reinstall it, but you'll be stabbing in the dark so so much, it's not likely to be worth the hassle, reinstall
 
Old 02-21-2003, 04:16 AM   #3
awlad
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Original Poster
Rep: Reputation: 0
thanks ..but is it apossible to copy the kernel in the floppy to the hard drive? and will it work the same?

also wondering if and how is it possible to have a partition of 10MB just to boot up the lilo from there.

Many thanks
 
Old 02-21-2003, 04:20 AM   #4
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Use your install CD's rescue function. You can't boot into Linux because you have no kernel. It is stored in /boot.

Some distros mount some stuff for you, but I don't know slack's proceedure. Checking their home page for that would be advisable.

I don't know your partitioning scheme, which is necessary to check your /etc/lilo.conf

Basically, mount your / partition, if you created a separate /boot partition, make a /boot directory in / and mount that as well.

cd to /usr/src/linux under where you mounted / and compile another kernel and then copy it to where you mounted /boot.

# Disaster resources
LILO mini HOWTO
Multiboot with LILO HOWTO
LILO, Linux Crash Rescue HOW-TO
Installing a bootloader
KNOPPIX Linux Live CD
Linux Bootable Business Card
Tom's Root and Boot floppy
 
Old 02-21-2003, 04:28 AM   #5
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
Quote:
Originally posted by awlad
thanks ..but is it apossible to copy the kernel in the floppy to the hard drive? and will it work the same?

also wondering if and how is it possible to have a partition of 10MB just to boot up the lilo from there.

Many thanks
1. I think so, if you make the /boot folder/partition as in your origional configuration.

2. If you are asking about a separate /boot partition, that might be a little tight. I recommend between 20 to 100 mb for a separate /boot partition, depending on how many kernels you want to play around with.

Article on proper filesystem layout.

Last edited by fancypiper; 02-21-2003 at 04:32 AM.
 
Old 02-21-2003, 04:36 AM   #6
awlad
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Original Poster
Rep: Reputation: 0
ok here is what i done to install slackware 8.1:

hd space : 1.6G

hda1 -> size: 10M type: linux /primary
hda5 -> size: 200M type: linux swap /logical
hda6 -> size: rest type: ext2 /logical

i thought i could make the hda1 to boot up with lilo, but don't know how to copy the lilo to the partition

is my partitions ok?

even before deleting the /boot folder i have problem with lilo..
when booted up it displayed repeated no like... 4 4 4 4 4 4 4 4 ........... so on and L L L L L L L

what is the best way to install slackware? i mean how are partitions should be??

many thanks again for your help...

i am really new to linux.. but i am getting to like it
 
Old 02-21-2003, 04:55 AM   #7
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
With that drive, I suggest either 2 or 3 partitions. If you choose ext 2 (good) or ext3 (better) filesystems, go with 2 partitions, otherwise make a /boot partition as I suggested before.

Make all of them primary partitions.

swap - 128 mb
/boot (if needed) - 40 mb
/ - the rest of the space

You may want to add a drive later for your /home partition as it makes changing your mind and saving stuff easier.

This article - Installing a bootloader is a guide to help you understand either grub or lilo.
 
Old 02-21-2003, 05:07 AM   #8
awlad
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by fancypiper
With that drive, I suggest either 2 or 3 partitions. If you choose ext 2 (good) or ext3 (better) filesystems, go with 2 partitions, otherwise make a /boot partition as I suggested before.

Make all of them primary partitions.

swap - 128 mb
/boot (if needed) - 40 mb
/ - the rest of the space

You may want to add a drive later for your /home partition as it makes changing your mind and saving stuff easier.

This article - Installing a bootloader is a guide to help you understand either grub or lilo.
Thanks very much .. i'll have a go in clean install with your recommendation

and.. which partition do i make bootable?
and when installing lilo... what do they mean by "install lilo in supernode?? or in MBR??

where does supernode or MBR reside?? which partition??

many thanks

 
Old 02-21-2003, 05:18 AM   #9
fancypiper
Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 57
I gave two choices and you didn't tell me which you chose!

I don't think you have to "make bootable" in Linux. I think that's a Windows thing. The loader does that.

If I am wrong, here is a WAG:
Assuming you are going with 2 partitions, /
Assuming you are going with 3 partitions, /boot

With a Linux only system, install your bootloader in the mbr.

The mbr is the first 1024 byte block on a hard drive, I think. The Rute guide knows for sure................

Last edited by fancypiper; 02-21-2003 at 05:20 AM.
 
Old 02-21-2003, 05:28 AM   #10
awlad
LQ Newbie
 
Registered: Feb 2003
Posts: 9

Original Poster
Rep: Reputation: 0
Quote:
Originally posted by fancypiper
I gave two choices and you didn't tell me which you chose!

I don't think you have to "make bootable" in Linux. I think that's a Windows thing. The loader does that.

If I am wrong, here is a WAG:
Assuming you are going with 2 partitions, /
Assuming you are going with 3 partitions, /boot

With a Linux only system, install your bootloader in the mbr.

The mbr is the first 1024 byte block on a hard drive, I think. The Rute guide knows for sure................
I'll go with two partitions.. so would it be like this?

hda1 -> type: linux swap size: 128MB - primary
hda5 -> type: ext3 size: rest - primary

then install the lilo on MBR ( I have linux only )

would this be correct??

also when slackware installs apache & mySql, are they ready to be used or they need to be compiled??

Many Thanks
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
deleted linux partition adn the boot loader was deleted also,now i have only gnu grub boris199 Linux - Laptop and Netbook 2 01-29-2005 04:53 PM
Deleted Folder vkrishn1 Linux - General 3 11-17-2004 10:39 AM
I accidently deleted /udev folder, what can I do? QuickTime Mandriva 1 09-29-2004 06:00 AM
can't deleted a folder! santasballz Linux - Newbie 2 02-22-2004 12:03 AM
HELP! I've deleted the /etc/httpd folder Neb Linux - Newbie 6 05-16-2003 07:29 AM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration