LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 04-11-2006, 04:21 PM   #16
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30

I typed ls arch/i386/boot/bzImage and it relayed arch/i386/boot/bzImage.

If I donot rename it won't it be hard to tell which one in grub, and couldn't this name seriously affect the current?
 
Old 04-11-2006, 04:36 PM   #17
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok I tried ls arch/i386/boot/bzImage and it relayed arch/i386/boot/bzImage

If this not where the other kernel backup resides?

If I use the name bzImage won't it be difficult to tell which one in the boot loader? How do I change it's name?

Can I just mv arch/i386/boot/bzImage arch/i386/boot/<the name I would like>
 
Old 04-11-2006, 04:52 PM   #18
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Yes, you can rename it anything you like. If you already have a file named that in GRUB then yes, it will just write over it.

When you copy it over to the GRUB dir, just copy it with a differnt name:

Code:
cp arch/i386/boot/bzImage /boot/grub/bzImage-gentoo

Last edited by Penguin of Wonder; 04-11-2006 at 04:53 PM.
 
Old 04-11-2006, 05:05 PM   #19
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Sorry about the two similar posts I thought I may have forgotten to submit.

Ok I used mv arch/i386/boot/bzImage mv arch/i386/boot/mykernel

Then copied it to the /boot with cp arch/i386/boot/mykernel /boot/mykernel

In the handbook it says to use cp arch/i386/boot/bzImage /boot/<kernel-version>

Should I have not renamed it?

Cause now when I try find /lib/modules/mykernel -type f -iname '*.o' -or
-iname '*.ko' it relays find: /lib/modules/mykernel: Not a Directory
 
Old 04-11-2006, 06:26 PM   #20
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
ok renamed the file back to bzImage
removed the previous mykernel from boot
cp over new bzImage as mykernel
ls /boot/ shows my kernel
then did ls /lib/modules/ and got the kernel version, hope this the right one cause wouldn't this report the one I am currently using?

Anyway have no idea no what modules to load tried to find info on them in google, but that didn't work probably only listed in the kernel sources. Should be ok though as I enabled all the harware not as modules except for the the ones I wasn't sure about as it wanted to install a realtek driver for the ethernet, but I am sure it should use intel pro so I made realtek M.

The ones that concerned me is the iptables ones they were ipt_notrack.ko
iptable_raw.ko Others were loop.ko nvram.ko anyway left them alone.

Which brings me to me fstab which looks nothing like what I proposed
/dev/boot /boot is ext2 which is right
/dev/ROOT / is ext3 which is wrong should be reiserfs
swap is ok
/dev/cdroms/cdrom0 /mnt/cdrom and is iso9660(where is subfs?) which should be ok, but I have two optical drives.

/dev/fd0 is /mnt/floppy but the is a # sign in front of it making me think it not going to be read.

And my home diectory is not even there and should be reiserfs. Also if I have to create these these items how do I use a naming device as they say /dev/BOOT instead of /dev/hda1 I created my /home directory last as hda4 is this ok to put in fstab? Also how would I name my other optical drive? cdrom1?

Thnaks for your time penguin. I really appreciate it.

Last edited by cjae; 04-11-2006 at 06:28 PM.
 
Old 04-11-2006, 06:33 PM   #21
Emerson
LQ Guru
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~arch
Posts: 5,872

Rep: Reputation: Disabled
Looks like you have decided to ignore Gentoo Handbook and install in your own way. Hmh
You should follow the Handbook, in particular if this is your first Gentoo install.
 
Old 04-11-2006, 07:03 PM   #22
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
what makes you think I have diverted from the handbook? I mearly made a mistake, I wish I could follow the handbook to the T, but unforunately it is not detailed enough.

If there is a particular thing you think I did wrong could you please kindly state it, as I followed every command in the book. The handbook says that the fsab may not be correct, but would it normally be this out to lunch?

I added my other optical drive, and switched the filesystem types to corrispond to what I did.
 
Old 04-11-2006, 07:05 PM   #23
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok I need to pack up this box and move it what would this do to my install?
 
Old 04-11-2006, 08:30 PM   #24
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
Quote:
Originally Posted by Emerson
Looks like you have decided to ignore Gentoo Handbook and install in your own way. Hmh
You should follow the Handbook, in particular if this is your first Gentoo install.
Some of the best advice I've ever heard regaurding Gentoo. Personally I had to learn this one the hard way.

I'm not quite sure whats wrong with your fstab as opposed to what its supposed to be. The default fstab that your supposed to edit dosen't have anything listed properly for you system, your job is to edit to make it fit your system.

Odds are it looks something like this:

Code:
/dev/BOOT   /boot     ext2    defaults,noatime     1 2
/dev/ROOT   none      swap    sw                   0 0
/dev/HOME   /         ext3    noatime              0 1

none        /proc     proc    defaults             0 0
none        /dev/shm  tmpfs   nodev,nosuid,noexec  0 0

/dev/cdroms/cdrom0    /mnt/cdrom    auto      noauto,user    0 0
Your job is to make it fit your system, so mine looks something like this:
Code:
/dev/hda1   /boot     ext2    defaults,noatime     1 2
/dev/hda2   none      swap    sw                   0 0
/dev/hda3   /         xfs    noatime               0 1
/dev/hda4   /home     xfs    noatime               0 1

none        /proc     proc    defaults             0 0
none        /dev/shm  tmpfs   nodev,nosuid,noexec  0 0

/dev/cdroms/cdrom0    /mnt/cdrom0    auto      noauto,user    0 0
/dev/cdroms/cdrom1    /mnt/cdrom1    auto      noauto,user    0 0
Did that help any?
 
Old 04-12-2006, 12:22 AM   #25
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Yes it did, I did edit before you posted though.

/dev/hda1 /boot/ ext2 defaults 1 2
/dev/hda2 none swap defaults X X
/dev/hda3 / reiserfs defaults 0 1
/dev/hda4 /home reiserfs defaults,user,auto,rw 0 1
/dev/cdrom/cdrom0 /mnt/dvdrom auto auto,users,rw 0 0
/dev/cdrom/cdrom1 /mnt/cdrom auto auto,users,rw,defaults

and I can't remember what floppy is as I am not at that box anymore. I did nost of it from memory so it might not be exact.

My question is can I use defaults and other options for the filesystem at once?
e.g /dev/hda3 I am assuing you can't. So then DO I have to put exec, and nosuid in there too!

Oh and the XX's are ones I can't remember what I put but I believe they were the right ones!

To oversimplify my question is does it work like USE= and take all the default entries and use them and then calculate what other options you add.

e.g /dev/hd3 defaults, plus add users to group who can access the partition.

Last edited by cjae; 04-12-2006 at 12:27 AM.
 
Old 04-12-2006, 09:19 AM   #26
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
No this dosen't work anything like the make.conf file does. What you put here is all that gets put here. This one peice of the install you really can't play to much with because if its not right you probably won't boot up when you restart the computer after the install is finished.

There are alot of options for to put in there like noauto, noatime, users, rw, etc. I'm not familar with them all, but if you are and you know what they do I'm assuming it will be ok to use them. I run my Gentoo on the K.I.S.S. principle to keep myself out of trouble. (Keep It Simple Stupid)

After you finish editing this, its all the editing will get, unlike the make.conf file. Aslong as your paritions matchup to what you claim they are, i.e. /dev/hda3 really is /root, and you labled all of the filesystems correctly, you shouldn't have to many problems. Odds are you didn't have to change the numbers listed on the far right. Those come listed correctly for you assuming you filled in from the example given.

Finally, no Linux isn't going to calculate anything for you in this file. If you've ever used Fedora or Ubuntu and you looked at this file, odds are they didn't have half the options you do, which is one reason I like Gentoo, you can pick all of this out for yourself during the install while its easy and safe to do it.

Did I get everything?

ps. don't let me scare you, this isn't as bad as I may of made it sound
 
Old 04-12-2006, 03:08 PM   #27
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Thanks very much penguin, the only thing Ireally to know now is what would happen if I shut down my computer at this point in the install would I be able to get back here again?

I am temporarily away form that box right now, but I would like to know if I could bring it to me? or if the power goes out where it is right now.

Would I have to use the install disc again, and get back to that chrooted environment or could I boot without the disc.

Also I am having a hard time understanding what this chrooted environment is, I understand that the disc starts your box with the kernel on the disc till you get set up like your partition and everything, then you have to mount them including your proc, then by chrooting do change from the the / on the install disc to the / on the hdd, so to say?
 
Old 04-15-2006, 06:22 AM   #28
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok I am superiorly retarded, I finally got to reboot. And when grub goes to
load my kernel it says:

Booting 'Gentoo Linux 2.6.15.r-5'

root (hd0,0)
Filesystem is ext2fs, partition type 0x83
kernel /boot/kernel-2.6.15-gentoo-r5 root=/dev/hda3

Error 15: File not found

Press any key to continue...

I forgot to put mykernel as the boot image name, man am I dumb, guess I was just following the handbook to closely and not thinking after not doing this for a few days.

How do I go back and edit the grub.conf to adjust the name?
 
Old 04-15-2006, 01:40 PM   #29
Penguin of Wonder
Senior Member
 
Registered: Sep 2005
Location: West Virginia
Distribution: Gentoo
Posts: 1,249

Rep: Reputation: 45
There are multiple ways, you can load up with a live run cd and do it that way. Or when you boot your computer, at the GRUB menu there is an option to edit the entries on the fly.
 
Old 04-15-2006, 03:47 PM   #30
cjae
Member
 
Registered: Mar 2004
Distribution: bouncing
Posts: 277

Original Poster
Rep: Reputation: 30
Ok I tried booting up the computer with the disc and then I mounted my partitions /boot/ and / and then I tried to chroot, but it did not work.

What should I be typing in to get to a chroot environment?

When I tried to grep -v rootfs /proc/mounts > /etc/mtab during the installation it told me I that /proc/mounts was not a directory.
 
  


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
Gentoo make & make.conf & emerge Trouble geagon Linux - Newbie 5 10-28-2005 07:33 PM
cflag settings for gentoo make.conf shanenin Linux - Software 1 10-27-2005 10:27 PM
make.conf in gentoo d1l2w3 Linux - Software 2 12-21-2004 05:42 PM
gentoo install problem, error with /etc/make.conf pyropenguin Linux - Distributions 2 08-13-2004 05:55 PM
Gentoo /etc/make.conf jiggywiggy Linux - Newbie 4 02-07-2004 03:47 PM


All times are GMT -5. The time now is 06:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration