Linux Gentoo install glitches

Discussion in 'Software' started by Dorza, 20 Jul 2003.

  1. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    ok, i just tried to install this from stage 3, i got into the gentoo directory useing:

    cd /mnt/gentoo

    then i unpacked stage3 from the cd. Every thing was unpacking nicely down the screen untill the last few things had some sort of error. The next part of the installtion instructions tells me to:

    mount -t proc proc /mnt/gentoo/proc

    ENTER

    cp /etc/resolv.conf /mnt/gentoo/ect/resolv/conf

    ENTER

    chroot /mnt/gentoo /bin/bash

    ENTER

    env-update

    source /etc/profile


    the last three im not sure if i enter them or the comptuer displays them. Any way, i tried to enter all these and it kept saying that none of them could be found, so im guessing that something didnt unpack correctly or i kind of messed somthing up before i unpacked the stage 3 file. Any one got ne suggestions for me please, id really love to get gentoo up and running cos it looks sweet:D


    EDIT: I think i might have mounted the drives incorrectly. This is what happens :

    Pic not needed ne more
     
    Last edited: 27 Jul 2003
  2. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    Looks like your stage 3 archive is toast. Tried downloading a new one ? Also make sure that everyting done was correct up to the stage 3 extraction.

    That's why I start from scratch, so that I know what I've done up till where ever I am.
     
  3. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    I could try the stage two install and see if that works. Its more work for me i know but it will save wasteing teh disk:miffed: bah to corrupted cd burns. Ill try again from scratch tho. I have an NTFS partition on dev/hda1, so i cant really follow the instructions they give me for setting up the partitions exactly.
     
  4. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    Yes you can, just make sure to note the change.

    When I built Gentoo I had three NTFS partitions, /dev/hda1, /dev/hda6, and /dev/hdb1.

    /dev/hda2 and hda3 were Redhat and swap, and hda4 and hda5 were Gentoo's main and boot partitions. I just shared a swap.
     
  5. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    Ok, i tried again yesturday and every thing was going great, i was on the verge of intalling it, but after configuring the kernal it came up on the screen as it was displaying lines of information:

    !!!Cannot find bzlmage,stop (words to that effect)

    i can go on to install grub and all but typeing:

    cp /usr/src/linux/arch/i386/boot/bzlmage /boot

    displayes and error similer to the one i just said about. have i done somthing wrong in the configuration of the kernal? I did do some of my own configuration like usb and stuff like that, i can always activate this once its installed tho cant i? Any one got ne ideas for me, im going to try it again before long.
     
    Last edited: 22 Jul 2003
  6. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    When (re)building your kernel, always :

    make mrproper

    make *config*

    make dep

    make clean

    make bzImage

    make modules

    make modules_install

    make install

    Mrproper may not work, as it may not have been included in your packages, if it doesn't work, don't worry about it. *config* you'll want to run your appropriate config, either config, menuconfig or xconfig (if you've got access to a GUI only) Watch the case on bzImage, the 'I' has to be capped or it gets all pissy. Also make install may not work either (again, depends on what Gentoo have done to the kernel sources).
     
  7. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    Tried again this morning, and i typed bzImage , and it worked fine, but ive hit another snag now when it comes to editing/modifying /est/fstab when i enter this it tells me "permissison denied" :miffed: , i carried on with the install knowing that it wouldnt work (properly) and i went to install grub, that was a laugh. I have a windows XP partition on /dev/hda1, how would i configure grub? i dont understand the part refering to (hd0,0) so im not sure how to set it up properly takeing into account that i have Winxp on /dev/hda1

    I belive dev/hda2 is my boot, dev/hda3 my swap and /dev/hda4 my root, how is grup installed with partitions like that?
    Should i install lilo instead since it appears to be a better choice and looks far easier to set up?, thanks for ne help "once again":)
     
  8. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    DAMMIT. Okay, stupid cookies, let's try again . . . . :rolleyes:

    cd over to /etc and type :

    chmod 777 fstab

    That should make fstab accessible by anyone.
    (hd0,0) is refering to disk 0, partition 0. So the second partition on the first disk would be (hd0,1), etc.

    Don't use LILO, BAH. I hate it. It's made of pure evil.

    Your grub.conf file should look like this :

    #comment crap at top.
    default=0
    timeout=10
    splashimage=/grub/splash.xpm.gz
    title Gentoo Linux
    root (hd0,1)
    kernel /vmlinuz-%kernel_version% ro root=/dev/hda3 hdx=ide-scsi
    initrd /initrd-%kernel_version%.img
    title Windows XP
    rootnoverify
    chainloader +1

    Note that where it says hdx, tha is your CDROM device(s) make sure ot set x to be whatever your CDROM(s) are, if you have multiple drives, it'll be hdx=ide-scsi hdy=ide-scsi.

    If you need any help with some of those options, just ask. :D
     
  9. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    Thanks for ur help Kargin, its really appreciated :)

    Do i need to add the CDROM part? if not would it look like this?

    #comment crap at top.
    default=0
    timeout=10
    splashimage=/grub/splash.xpm.gz
    title Gentoo Linux
    root (hd0,1)
    initrd /initrd-%kernel_version%.img
    title Windows XP
    rootnoverify
    chainloader +1

    Thanks again:)
     
  10. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    If you have no CDROM devices, or (for some reason) wish to use them, then that line would look like :


    kernel /vmlinuz-%kernel_version% ro /root=/dev/hda3


    The only thing you want to remove is the hdx=ide-scsi bit. Otherwise the resst is setting up your kernel location, which is nice to have you enjoy being able to boot :p
     
  11. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    Right ok, erm im going to need that then:p , u said in the other post to make "x" what ever ur cdrom drives were, how do i find out what my cdroms r? i have two a dvd and a copier drive. Sorry to be a complete n00b at this.
     
  12. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    How are your drives plugged into your mobo ?

    primary master is hda, primary slave is hdb, secondary master is hdc, and secondary slave is hdd.

    For example I ahve hdd1 on primary master, hdd2 on primary slave, CD1 on secondary primary, and CD2 on secondary slave.

    For me, it's hda, hdb are my two HDDs, and hdc and hdd are my CDROMs.

    Cheers.
     
  13. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    Ah right i think i understand now, i belive mine is 2ndry mster and 2ndry slave ill look next time the computer starts, :) thanks again, HOPEFULY my next post will be saying someing like this :,, FINALLY I INSTALLED THE *******:hehe: :lol:
     
  14. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    :miffed: :sigh:

    its saying this now:

    cd image / # /etc/fstab
    /etc/fstab: line 12: /dev/BOOT: No Such file or dictonary
    /etc/fstab: line 13: /dev/ROOT: No Such file or dictonary
    /etc/fstab: line 14: /dev/SWAP: No Such file or dictonary
    /etc/fstab: line 15: /dev/cdroms/cdrom0: No Such file or dictonary
    /etc/fstab: line 16: proc: command not found
    /etc/fstab: line 24: tmpfs: command not found

    the instuctions have been brilliant up untill this point, but once here they leave u to figure it out for this part:(.

    I give up:( try again next week
     
  15. Hamish

    Hamish What's a Dremel?

    Joined:
    25 Nov 2002
    Posts:
    3,649
    Likes Received:
    4
    thats because its not /dev/boot etc
    its /dev/hdX# where X is the device (a b c etc, and # is the partition number) and it clearly says in the instructions to replace BOOT/ROOT etc with the right hdX# depending on your setup....
     
  16. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    thanks for your help :). I know it says to replace boot etc with what ever it is for u, but it could tell u how to actualy do it a bit better imo.

    Do i do it like this?:

    cd image / # /etc/fstab: /dev/hda2 etc? cos i tried that and that didnt work either
     
  17. Hamish

    Hamish What's a Dremel?

    Joined:
    25 Nov 2002
    Posts:
    3,649
    Likes Received:
    4
    well if
    then it should be:
    Code:
    /dev/hda2           /boot       ext2	 noauto,noatime	 1 2
    /dev/hda4           /           ext3 (or reiserfs if thats what you used)	 noatime         0 1
    /dev/hda3           none        swap	 sw              0 0
    /dev/cdroms/cdrom0  /mnt/cdrom  iso9660	 noauto,ro       0 0
    proc                /proc       proc	 defaults        0 0
    
    i think
     
  18. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    Usually CDROMs are stored under /dev/ as a standar dblock device.

    /dev/hdc, etc.

    Otherwise that fstab file looks good, obviosly putting your own filesystems in place of the ones therre should they differ ;)
     
  19. Dorza

    Dorza What's a Dremel?

    Joined:
    8 Dec 2002
    Posts:
    239
    Likes Received:
    0
    Finally, its installed :D (sort of) messed the file systems up a bit so i cant start the config instructions, BUT i can log in ok, so ive installed it as far as im concerned. Ill install it again soon and make sure the file systems work correctly:), thanks for all your help people :)
     
  20. Kargin

    Kargin Overdose . . .

    Joined:
    18 Sep 2002
    Posts:
    2,374
    Likes Received:
    1
    Haha. Cheers on getting the ******* installed. Actually the very same thing happened to my one friend, the file systems corrupted on him and had to re build them. . . .

    Hmm. . I wonder if this is a common bug in Gentoo :worried: Hope not.

    :thumb:
     
Tags:

Share This Page