Доброго времени суток! Можно сказать, впервые пытаюсь поставить Funtoo на виртуальную машинку, раньше пытался на VirtualBox, и вроде ничего, но там у меня графика не работала, а здесь вот остановился на загрузке ядра. Но это сейчас не так важно, у меня проблема такая.
Подробно о том, что я делал:
root@sysresccd /root % cfdiskПривёл диск к такому виду:
Name Flags Part Type FS Type [Label] Size (MB)
------------------------------------------------------------------------------
sda1 Boot Primary Linux 254.99
sda2 Primary Linux swap / Solaris 2048.10
sda3 Primary Linux 14876.80*INFO:
Disk has been changed.
WARNING: If you have created or modified any
DOS 6.x partitions, please see the cfdisk manual
page for additional information.
Далее:
root@sysresccd /root % mke2fs -t ext2 /dev/sda1mke2fs 1.42.4 (12-June-2012)
Filesystem label=
OS type: Linux
Block size=1024 (log=0)
Fragment size=1024 (log=0)
Stride=0 blocks, Stripe width=0 blocks
62248 inodes, 248976 blocks
12448 blocks (5.00%) reserved for the super user
First data block=1
Maximum filesystem blocks=67371008
31 block groups
8192 blocks per group, 8192 fragments per group
2008 inodes per group
Superblock backups stored on blocks:
8193, 24577, 40961, 57345, 73729, 204801, 221185
Allocating group tables: done
Writing inode tables: done
Writing superblocks and filesystem accounting information: done
root@sysresccd /root % mke2fs -t ext4 /dev/sda3mke2fs 1.42.4 (12-June-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
909312 inodes, 3632029 blocks
181601 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=3720347648
111 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
root@sysresccd /root % mkswap /dev/sda2Setting up swapspace version 1, size = 2000088 KiB
no label, UUID=1772f1a7-c439-49b3-a8a8-971aad542620
root@sysresccd /root % mkdir /mnt/funtoo
root@sysresccd /root % mount /dev/sda3 /mnt/funtoo
root@sysresccd /root % mkdir /mnt/funtoo/boot
root@sysresccd /root % mount /dev/sda1 /mnt/funtoo/boot
root@sysresccd /root % cd /mnt/funtoo
root@sysresccd /mnt/funtoo % wget [url]http://ftp.osuosl.org/pub/funtoo/funtoo-stable/x86-32bit/i686/stage3-latest.tar.xz[/url]
root@sysresccd /mnt/funtoo % tar xJpf stage3-latest.tar.xz
root@sysresccd /mnt/funtoo % cp /etc/resolv.conf ./etc
root@sysresccd /mnt/funtoo % mount --bind /proc ./proc
root@sysresccd /mnt/funtoo % mount --bind /dev ./dev
root@sysresccd /mnt/funtoo % chroot . /bin/bash
sysresccd / #
sysresccd / # cat /etc/make.conf# These settings were set by the metro build script that automatically built this stage.
# Please consult /etc/make.conf.example for a more detailed example.
ACCEPT_KEYWORDS="x86"
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -mtune=generic -pipe"
CXXFLAGS="-O2 -march=i686 -mtune=generic -pipe"
SYNC="git://github.com/funtoo/ports-2012.git
sysresccd / # emerge --sync!!! Invalid PORTDIR_OVERLAY (not a dir): '/usr/portage'
!!! main-repo not set in DEFAULT and PORTDIR is empty.
!!! It seems that /proc is not mounted. You have been warned.
>>> Using /usr/portage.sync/portage as temporary clone directory...
>>> Starting initial git clone with git://github.com/funtoo/ports-2012.git...
Cloning into 'portage'...
remote: Counting objects: 1233854, done.
remote: Compressing objects: 100% (188558/188558), done.
remote: Total 1233854 (delta 1056518), reused 1218809 (delta 1041485)
Receiving objects: 100% (1233854/1233854), 216.98 MiB | 487 KiB/s, done.
Resolving deltas: 100% (1056518/1056518), done.
Performing Global Updates:
(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.*'
/usr/portage/profiles/updates/1Q-2004.........................................
/usr/portage/profiles/updates/2Q-2004................................................................................................................
/usr/portage/profiles/updates/3Q-2004...............................................................................................................................................................................................
/usr/portage/profiles/updates/4Q-2004.....................................................................................................................................................................................................................................................................
/usr/portage/profiles/updates/1Q-2005..................................................................................................................................................................................................................................................
/usr/portage/profiles/updates/2Q-2005..........................................................................................................
/usr/portage/profiles/updates/3Q-2005..............................................................................
/usr/portage/profiles/updates/4Q-2005.......................................
/usr/portage/profiles/updates/1Q-2006...........................................
/usr/portage/profiles/updates/2Q-2006........................................
/usr/portage/profiles/updates/3Q-2006...............
/usr/portage/profiles/updates/4Q-2006.........................
/usr/portage/profiles/updates/1Q-2007.....................
/usr/portage/profiles/updates/2Q-2007..........................
/usr/portage/profiles/updates/3Q-2007........................................
/usr/portage/profiles/updates/4Q-2007.................
/usr/portage/profiles/updates/1Q-2008..............
/usr/portage/profiles/updates/2Q-2008....................................
/usr/portage/profiles/updates/3Q-2008..............
/usr/portage/profiles/updates/4Q-2008...........................
/usr/portage/profiles/updates/1Q-2009..............
/usr/portage/profiles/updates/2Q-2009.....................................................................................
/usr/portage/profiles/updates/3Q-2009......................................................
/usr/portage/profiles/updates/4Q-2009........................
/usr/portage/profiles/updates/1Q-2010...........................................................................
/usr/portage/profiles/updates/2Q-2010.......................................
/usr/portage/profiles/updates/3Q-2010............
/usr/portage/profiles/updates/4Q-2010............................
/usr/portage/profiles/updates/0Q-2011....
/usr/portage/profiles/updates/1Q-2011...........................................................................
/usr/portage/profiles/updates/2Q-2011............................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
/usr/portage/profiles/updates/3Q-2011..........................
/usr/portage/profiles/updates/4Q-2011.............................................................................................................
/usr/portage/profiles/updates/1Q-2012.......................
/usr/portage/profiles/updates/2Q-2012..............................................................................................................................
/usr/portage/profiles/updates/3Q-2012........................................
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
sysresccd / # emerge gentoo-sourcesТут слишком много, поэтому только конец:
...
>>> Installing (1 of 1) sys-kernel/gentoo-sources-3.3.8
* If you are upgrading from a previous kernel, you may be interested
* in the following document:
* - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
* For more info on this patchset, and how to report problems, see:
* http://dev.gentoo.org/~mpagano/genpatches
>>> Recording sys-kernel/gentoo-sources in "world" favorites file...
* Messages for package sys-kernel/gentoo-sources-3.3.8:
* If you are upgrading from a previous kernel, you may be interested
* in the following document:
* - General upgrade guide: http://www.gentoo.org/doc/en/kernel-upgrade.xml
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* GNU info directory index is up-to-date.
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
sysresccd / # emerge grub...
>>> Installing (1 of 2) sys-boot/grub-1.98-r2
>>> Recording sys-boot/grub in "world" favorites file...
>>> Emerging (2 of 2) sys-boot/boot-update-1.5.2
* boot-update-1.5.2.tar.bz2 RMD160 SHA1 SHA256 size ;-) ... [ ok ]
>>> Unpacking source...
>>> Unpacking boot-update-1.5.2.tar.bz2 to /var/tmp/portage/sys-boot/boot-update-1.5.2/work
>>> Source unpacked in /var/tmp/portage/sys-boot/boot-update-1.5.2/work
>>> Preparing source in /var/tmp/portage/sys-boot/boot-update-1.5.2/work/boot-update-1.5.2 ...
* QA Notice: The 'hasq' function is deprecated (replaced by 'has')
>>> Source prepared.
>>> Configuring source in /var/tmp/portage/sys-boot/boot-update-1.5.2/work/boot-update-1.5.2 ...
>>> Source configured.
>>> Compiling source in /var/tmp/portage/sys-boot/boot-update-1.5.2/work/boot-update-1.5.2 ...
>>> Source compiled.
>>> Test phase [not enabled]: sys-boot/boot-update-1.5.2
>>> Install boot-update-1.5.2 into /var/tmp/portage/sys-boot/boot-update-1.5.2/image/ category sys-boot
>>> Completed installing boot-update-1.5.2 into /var/tmp/portage/sys-boot/boot-update-1.5.2/image/
ecompressdir: bzip2 -9 /usr/share/man
>>> Installing (2 of 2) sys-boot/boot-update-1.5.2
>>> Auto-cleaning packages...
>>> No outdated packages were found on your system.
* Regenerating GNU info directory index...
* Processed 77 info files.
* IMPORTANT: 3 news items need reading for repository 'gentoo'.
* Use eselect news to read news items.
sysresccd / # cd /usr/src/linux
sysresccd linux # make menuconfigКонфиг в конце поста.
sysresccd linux # make bzImage modules...
Kernel: arch/x86/boot/bzImage is ready (#1)
Building modules, stage 2.
MODPOST 5 modules
CC arch/x86/kernel/test_nx.mod.o
LD [M] arch/x86/kernel/test_nx.ko
CC drivers/char/kcopy/kcopy.mod.o
LD [M] drivers/char/kcopy/kcopy.ko
CC drivers/hid/hid-logitech-dj.mod.o
LD [M] drivers/hid/hid-logitech-dj.ko
CC drivers/scsi/scsi_wait_scan.mod.o
LD [M] drivers/scsi/scsi_wait_scan.ko
CC net/netfilter/xt_mark.mod.o
LD [M] net/netfilter/xt_mark.ko
sysresccd linux # make modules_installINSTALL arch/x86/kernel/test_nx.ko
INSTALL drivers/char/kcopy/kcopy.ko
INSTALL drivers/hid/hid-logitech-dj.ko
INSTALL drivers/scsi/scsi_wait_scan.ko
INSTALL net/netfilter/xt_mark.ko
DEPMOD 3.3.8-gentoo
sysresccd linux # ls -lh /usr/src/linuxlrwxrwxrwx 1 root root 18 Aug 20 11:34 /usr/src/linux -> linux-3.3.8-gentoo
sysresccd linux # cp arch/x86/boot/bzImage /boot/vmlinuz-3.3.8
sysresccd linux # nano -w /etc/boot.conf
... (отредактировал)
sysresccd linux # cat /etc/boot.confboot {
generate grub
default "Funtoo Linux"
timeout 3
}
"Funtoo Linux" {
kernel vmlinuz[-v]
}
"Funtoo Linux genkernel" {
kernel kernel[-v]
initrd initramfs[-v]
params += real_root=auto
}
sysresccd linux # nano -w /etc/fstab
...
sysresccd linux # cat /etc/fstab # /etc/fstab: static file system information.
#
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# See the manpage fstab(5) for more information.
#
# <fs> <mountpoint> <type> <opts> <dump/pass>
/dev/sda1 /boot ext2 noauto,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext4 noatime 0 1
# /dev/cdrom /mnt/cdrom auto noauto,ro 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0
sysresccd linux # grub-install /dev/sdaInstallation finished. No error reported.
sysresccd linux # boot-updateboot-update 1.5.2 / Copyright 2009-2011 Funtoo Technologies
[use option "-l" for license info, "-h" for help]
* Generating config for grub...
DEFAULT > Funtoo Linux - vmlinuz-3.3.8
* Completed successfully.
Напоследок, если это поможет:
sysresccd / # cat /boot/grub/grub.cfg set timeout=3
menuentry "Funtoo Linux - vmlinuz-3.3.8" {
insmod part_msdos
insmod ext2
set root=(hd0,1)
search --no-floppy --fs-uuid --set fb72337e-12b5-421c-acbf-fd423d522470
linux /vmlinuz-3.3.8 rootfstype=ext4 root=/dev/sda3
set gfxpayload=keep
}
set default=0

