View previous topic :: View next topic |
Author |
Message |
victorsk Tux's lil' helper
Joined: 13 Jul 2010 Posts: 97
|
Posted: Tue Jul 13, 2010 10:07 pm Post subject: Please please help me installing Gentoo |
|
|
Hi Everyone,
I have decided to install Gentoo while running Mandriva and Windows on the same box. New space for partitions got allocated for Gentoo and I am running Gentoo LiveDVD as I am writing this.
I followed the installation documentation exactly as it is on your website except I installed amd64 version of stage3 but problems started happening when trying to install gentoo-sources.
Now when I try to run 'emerge gentoo-sources' I get this output:
Code: |
Performing Global Updates: /usr/portage/profiles/updates/3Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' #='/var/db update' @='/var/db move'
s='/var/db SLOT move' %='binary move' S='binary SLOT move'
p='update /etc/portage/package.*'
...............................................
!!! Failed to open file: '/mnt/livecd/usr/livecd/db/pkg/app-crypt/gnupg-2.0.11/RDEPEND.10544'
!!! [Errno 30] Read-only file system: '/mnt/livecd/usr/livecd/db/pkg/app-crypt/gnupg-2.0.11/RDEPEND.10544'
Exception AttributeError: "'atomic_ofstream' object has no attribute '_file'" in ignored
Traceback (most recent call last):
File "/usr/bin/emerge", line 40, in <module>
retval = _emerge.emerge_main()
File "/usr/lib64/portage/pym/_emerge/__init__.py", line 15469, in emerge_main
if portage._global_updates(trees, mtimedb["updates"]):
File "/usr/lib64/portage/pym/portage/__init__.py", line 8123, in _global_updates
vardb.update_ents(myupd, onUpdate=onUpdate)
File "/usr/lib64/portage/pym/portage/dbapi/__init__.py", line 233, in update_ents
aux_update(cpv, metadata_updates)
File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 572, in aux_update
mylink.setfile(k, v)
File "/usr/lib64/portage/pym/portage/dbapi/vartree.py", line 2919, in setfile
write_atomic(os.path.join(self.dbdir, fname), data)
File "/usr/lib64/portage/pym/portage/util.py", line 1015, in write_atomic
raise ReadOnlyFileSystem(func_call)
ReadOnlyFileSystem: write_atomic('/var/db/pkg/app-crypt/gnupg-2.0.11/RDEPEND')
|
I tried to run 'emerge --sync' but terminated the lengthy process. I tried to run 'chmod -R 777 /usr' to change permissions as per the error above, in short, I am grasping for straws and have no idea how to install Gentoo.
Could somebody, please, kindly walk me through the rest of the installation?
My bootloader for Mandriva/Windows is messed up now so I can only run Gentoo LiveDVD.
I really need somebody's help here.
Thanks,
Victor.[/code] |
|
Back to top |
|
|
SinoTech Advocate
Joined: 20 Mar 2004 Posts: 2579 Location: Neunkirchen / Saarland / Germany
|
Posted: Tue Jul 13, 2010 11:12 pm Post subject: Re: Please please help me installing Gentoo |
|
|
victorsk wrote: | Hi Everyone,
[...]
Now when I try to run 'emerge gentoo-sources' I get this output:
Code: |
Performing Global Updates: /usr/portage/profiles/updates/3Q-2009
(Could take a couple of minutes if you have a lot of binary packages.)
.='update pass' *='binary update' #='/var/db update' @='/var/db move'
s='/var/db SLOT move' %='binary move' S='binary SLOT move'
p='update /etc/portage/package.*'
...............................................
!!! Failed to open file: '/mnt/livecd/usr/livecd/db/pkg/app-crypt/gnupg-2.0.11/RDEPEND.10544'
!!! [Errno 30] Read-only file system: '/mnt/livecd/usr/livecd/db/pkg/app-crypt/gnupg-2.0.11/RDEPEND.10544'
[...]
|
|
It seems as you try to install gentoo-sources within the filesystem of the LiveCD, which surely gives you errors . Instead you have to first login into you newly installed system (see 6.a. Chrooting -> Entering the new Environment). In other words:
Code: |
# chroot /mnt/gentoo /bin/bash
# env-update
>> Regenerating /etc/ld.so.cache...
# source /etc/profile
|
Then follow the rest of this chapter (updating portage tree, ...) and re-try installing gentoo sources.
Cheers,
Sino _________________ Help to answer the unanswered |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
|
Back to top |
|
|
d2_racing Bodhisattva
Joined: 25 Apr 2005 Posts: 13047 Location: Ste-Foy,Canada
|
Posted: Wed Jul 14, 2010 2:41 am Post subject: |
|
|
Did you flush your partition table |
|
Back to top |
|
|
victorsk Tux's lil' helper
Joined: 13 Jul 2010 Posts: 97
|
Posted: Wed Jul 14, 2010 5:20 am Post subject: |
|
|
Hi folks,
Thank you so much for your replies.
Jaglover wrote: | Quote: | My bootloader for Mandriva/Windows is messed up now so I can only run Gentoo LiveDVD. |
How did this happen? Gentoo CD/DVD does not tamper with bootloader. |
Totally. I initially had Mandriva and Windows but then I used gparted to free up space on my Windows partitions which I don't use. I decided to use free space for Gentoo because I need it for work. I need to learn Gentoo because it has a good reputation for being a fast networking server and we may deploy web apps on Gentoo server. So I really look forward to learning about it.
I did some research and found this site:
http://gentoo-install.com/install
Are these good instructions? It seemed to have slightly different instructions but I managed to get compiling what I think is portage. And will check at work how things went.
Thanks again for replying.
Victor. |
|
Back to top |
|
|
jpp_ Tux's lil' helper
Joined: 23 Oct 2009 Posts: 110 Location: Argentina
|
Posted: Wed Jul 14, 2010 5:46 am Post subject: |
|
|
Just follow the handbook.
satge & portage / chroot / little config / sources / menuconfig / grub / needed tools / reboot
you miss the chroot part, i think.
and if you already have a boot loader, install in some partition (chroot) and add that one to your actual bootloader. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Wed Jul 14, 2010 11:24 am Post subject: |
|
|
How does your hard drive show up under the LiveDVD? As "/dev/sda"? In any case, just so we can get on the same page, please boot the LiveDVD and then post the output of(suitably edited for which device your hard drive actually is) and then identify to us what each partition is for. We need to get you to rejoin the install at the right place and this is the first step.
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Wed Jul 14, 2010 4:13 pm Post subject: |
|
|
I'm pretty sure that you don't need to re-install grub; in fact, it may confuse
things. Just add the new gentoo kernel to the current grub.conf file, if you
are using the first version of grub. (The second version is tricky, and badly
documented; I don't know how it works.)
Otherwise, the fine Gentoo manual is your friend. It really is very complete
and clear.
Will |
|
Back to top |
|
|
victorsk Tux's lil' helper
Joined: 13 Jul 2010 Posts: 97
|
Posted: Wed Jul 14, 2010 4:15 pm Post subject: |
|
|
John R. Graham wrote: | How does your hard drive show up under the LiveDVD? As "/dev/sda"? In any case, just so we can get on the same page, please boot the LiveDVD and then post the output of(suitably edited for which device your hard drive actually is) and then identify to us what each partition is for. We need to get you to rejoin the install at the right place and this is the first step.
- John |
Hi,
I am away today from this work computer but I remember very well this information. When I used gparted it re-labelled partitions several times. The partition information what I remember is as follows:
/hda/sda
* - /hda/sda1 NTFS (it showed it as where boot is)
- /hda/sda2 LBA (Gentoo was unable to obtain information about this partition)
- /hda/sda3 NTFS
- /hda/sda13 ext3 <- where I began mounting Gentoo for boot partition
- /hda/sda14 Linux Swap for Gentoo
- /hda/sda16 <- main partition for Gentoo
my commands were as follows:
livecd ~ # mke2fs /dev/sda13
livecd ~ # mke2fs -j /dev/sda16
livecd ~ # mkswap /dev/sda14 && swapon /dev/sda14
The rest of partition information is about my Mandriva partitions, I have about 5 additional partitions assigned for Mandriva. After using gparted to shrink Windows space, I am trying to install Gentoo on the free up space in partitions sda13, sda14 and sda16.
I am not even concerned at this point about getting to my Mandriva partitions, I just need to get Gentoo to work. I am not sure if Gentoo will be able to automatically detect Mandriva in GRUB but that's something I'll deal with later. Right now I just need to install Gentoo. My apologies if for today because I am not at work today. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Wed Jul 14, 2010 4:32 pm Post subject: |
|
|
I get a bad vibe off /dev/sda16 - the default (SCSI based) drivers can handle a maximum
of 16 partitions,, 0-15, and to get more you need devicemapper and LVM. Not the best
way to start installing Gentoo for the first time, but Mandriva may have already put the
infrastructure in place. Probably best to check carefully and post here when you are
back at your machine.
Good luck - Will |
|
Back to top |
|
|
Jaglover Watchman
Joined: 29 May 2005 Posts: 8291 Location: Saint Amant, Acadiana
|
Posted: Wed Jul 14, 2010 7:20 pm Post subject: |
|
|
Quote: | - /hda/sda2 LBA (Gentoo was unable to obtain information about this partition)
- /hda/sda3 NTFS |
This is another quirk. Extended partition between two primary ones? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Wed Jul 14, 2010 8:31 pm Post subject: |
|
|
Jaglover,
Thats harmless _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Wed Jul 14, 2010 8:36 pm Post subject: |
|
|
cwr,
The old IDE kernel drivers support up to 63 partitions. That breaks horribly when you attempy to move to libata because partitions 16..63 are no longer accessable.
Maybe the way ahead is to use the old IDE drivers but there is more, logical partitions are always numbered from 5 upwards. When you delete one, all the ones above the deleted logical partition move down. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
cwr Veteran
Joined: 17 Dec 2005 Posts: 1969
|
Posted: Thu Jul 15, 2010 7:50 am Post subject: |
|
|
I thought all the old PATA partitions were labelled hdX, not sdX?
Will |
|
Back to top |
|
|
victorsk Tux's lil' helper
Joined: 13 Jul 2010 Posts: 97
|
Posted: Thu Jul 15, 2010 3:08 pm Post subject: |
|
|
Hi folks,
Thanks again for responses. Here is the actual list of my parition information when fdisk -l /dev/sda is executed:
Code: |
Device Boot Start End Blocks Id System
/dev/sda1 * 1 3306 26555413+ 7 HPFS/NTFS
/dev/sda2 3307 38913 286013227+ f W95 Ext'd (LBA)
/dev/sda5 10205 11349 9197181 7 HPFS/NTFS
/dev/sda6 20429 21801 11028591 83 Linux
/dev/sda7 21802 22310 4088511 82 Linux swap / Solaris
/dev/sda8 22311 23329 8185086 83 Linux
/dev/sda9 23330 23715 3100513+ 83 Linux
/dev/sda10 23716 38085 115426993+ 83 Linux
/dev/sda11 38086 38594 4088511 83 Linux
/dev/sda12 38595 38913 2562336 83 Linux
/dev/sda13 3307 10052 54187182 83 Linux
/dev/sda14 10053 10204 1220908+ 82 Linux swap / Solaris
/dev/sda15 18704 20428 13856031 83 Linux
/dev/sda16 11350 15144 30483306 83 Linux
/dev/sda17 15145 18703 28587636 83 Linux
Partition table entries are not in disk order
|
I was able to successfully execute 'emerge gentoo-sources' but there was an error with 'genkernel all' (As a total noob I went with this choice). gentkernel.log information is as follows where I think the problem is:
Code: |
LZMA arch/x86/boot/compressed/vmlinux.bin.lzma
/bin/sh: lzma: command not found
make[2]: *** [arch/x86/boot/compressed/vmlinux.bin.lzma] Error 1
make[1]: *** [arch/x86/boot/compressed/vmlinux] Error 2
make[1]: *** Waiting for unfinished jobs....
make: *** [bzImage] Error 2
* Gentoo Linux Genkernel; Version 3.4.10.906
* Running with options: all
* ERROR: Failed to compile the "bzImage" target...
|
That's where I am at the moment |
|
Back to top |
|
|
jpp_ Tux's lil' helper
Joined: 23 Oct 2009 Posts: 110 Location: Argentina
|
Posted: Thu Jul 15, 2010 4:43 pm Post subject: |
|
|
So, you chose compress the kernel with lzma compression, but you don't have lzma there, emerge it
or
|
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Thu Jul 15, 2010 5:08 pm Post subject: |
|
|
cwr,
Correct - the old IDE drivers give you /dev/hda names but if you partition a drive with the old IDE driver in use, you can use up to 63 partitions.
When you swap to the libata drivers, the kernel will only create device nodes for the first 15 ... /dev/sda1..15.
Partitions 16 and up cannot be accessed by their /dev nodes as there won't be any.
fdisk doesn't care - it just reads and writes the partition table. I suspect you can create more than 15 partitions on /dev/sda with fdisk but I haven't tested. The point is, its quite easy to have partitions that cannot be accessed. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
victorsk Tux's lil' helper
Joined: 13 Jul 2010 Posts: 97
|
Posted: Thu Jul 15, 2010 5:44 pm Post subject: |
|
|
Hi,
Yes, I have installed lzma-util after googling for solution. Went as far as configuring GRUB but as some have pointed out partition sda16 can cause porblems. I was unable to install the bootloader. My only hope now is to recover Mandriva so that it can (hopefully) automatically set up GRUB. Do you think it's possible for Madriva to detect Gentoo installation?
Thanks,
Victor. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Thu Jul 15, 2010 6:39 pm Post subject: |
|
|
victorsk,
emerging lzma-utils will not help with a kernel problem. Consider the boot sequence.
The BIOS does POST and sets up the hardware
It looks around for any add in cards with their own BIOS, and runs the initialisation code
Lastly, it loads the MBR and jumps to its load address.
The MBR code uses BIOS calls to load the Grub stage1.5 from the sectors following the MBR
It exits by jumping to the stage1.5 entry point.
Grub stage1.5 reads the stage2 file from /boot and passes control to it.
The stage2 reads grub.conf and eventually loads the compressed kernel file and maybe an initrd file.
When its done, it jumps to the (compressed) kernel start address.
At this point grub hs completed its task, the (compressed) kernel is in RAM and perhaps an initrd file.
There is nothing else and the kernel has no way to read the hard drive until root is mounted.
Boot continues with the kernel decompressing itself. So you need to choose lzma in the kernel.
It does some initialisation then mounts root. That can be either your real root or the initrd.
With a root filesystem mounted, the kernel runs the init script. That controls what happens next.
Your partitions Code: | /dev/sda16 11350 15144 30483306 83 Linux
/dev/sda17 15145 18703 28587636 83 Linux | cannot be used with the SCSI/libata driver
You must revert to the old IDE driver to access those partitions.
If that is too much trouble, there is a way to reach the data. You can do Code: | mount -o loop,offset=<byte_count> /dev/sda /mount/<some_mountpoint> | That command attempts to mount the filesystem starting at <byte_count> bytes from the start of /dev/sda.
It does not use the partition table. Its only useful for recovering the data without reverting your kernel. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Jul 15, 2010 6:39 pm Post subject: |
|
|
victorsk,
You need to reduce the number of partitions. One thing you can do easily is to use the same swap partition for all of your installed distros as the contents of swap doen't need to be preserved from boot to boot. Delete one swap partition and that will get you down to the 16 partition limit and should allow you to proceed with the Gentoo installation.
(It's also pretty easy to share the boot partition; you usually don't even need to rename the kernels as they will generally be different. But just combining swap partitions is enough for now.)
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Thu Jul 15, 2010 6:46 pm Post subject: |
|
|
John R. Graham,
The limit is 15 partitions. Each SCSI major device has 16 minor device numbers, one of which is the whole drive, so its /dev/sda, /dev/sda1..15, then it breaks.
/usr/src/linux/Documentation/devices.txt wrote: | 8 block SCSI disk devices (0-15)
0 = /dev/sda First SCSI disk whole disk
16 = /dev/sdb Second SCSI disk whole disk
32 = /dev/sdc Third SCSI disk whole disk
...
|
_________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
John R. Graham Administrator
Joined: 08 Mar 2005 Posts: 10590 Location: Somewhere over Atlanta, Georgia
|
Posted: Thu Jul 15, 2010 7:22 pm Post subject: |
|
|
Neddy,
Okay, understood. The "best practice" corrective action is still the same, though, isn't it? Namely, to reduce the number of partitions to 15 or less. He just needs to eliminate one more. Right?
- John _________________ I can confirm that I have received between 0 and 499 National Security Letters. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54304 Location: 56N 3W
|
Posted: Thu Jul 15, 2010 8:42 pm Post subject: |
|
|
John R. Graham,
Yep, there in no future in going back to the old IDE kernel branch - it will be removed one day. Its already depreciated.
Deleting both swaps would be a get you going measure but it would break other distros /etc/fstab as all the partitions above the swaps will get renumbered. It will also leave unpartitioned space in places that may not be useful.
Some major partition surgery is needed anyway. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|