Moderatore: Staff

Please append a correct "root=" boot option; here are the avalaible partitions:
Kernel panic - not syncing: VFS: Unable to mount root fs on unknown-block(8,2)
Pid: 1, comm: swapper/0 Not tainted 3.4.5 #1






< > Second extended fs support
< > Ext3 journalling file system support
<*> The Extended 4 (ext4) filesystem
[*] Use ext4 for ext2/ext3 file systems
[*] Ext4 extended attributes
[ ] Ext4 POSIX Access Control Lists
[*] Ext4 Security Labels
[ ] EXT4 debugging support
[*] JBD2 (ext4) debugging support
< > Reiserfs support
< > JFS filesystem support
< > XFS filesystem support
< > GFS2 file system support
< > Btrfs filesystem (EXPERIMENTAL) Unstable disk format
< > NILFS2 file system support (EXPERIMENTAL)
[*] Dnotify support
[*] Inotify support for userspace
[ ] Filesystem wide access notification
[*] Quota support
[*] Report quota messages through netlink interface
[ ] Print quota warnings to console (OBSOLETE)
[ ] Additional quota sanity checks
< > Old quota format support
<*> Quota format vfsv0 and vfsv1 support
<*> Kernel automounter version 4 support (also supports v3)
< > FUSE (Filesystem in Userspace) support
Caches --->
CD-ROM/DVD Filesystems --->
DOS/FAT/NT Filesystems --->
Pseudo filesystems --->
[*] Miscellaneous filesystems --->
[*] Network File Systems --->
-*- Native language support --->



bash-4.1# make menuconfig
HOSTCC scripts/basic/fixdep
In file included from /usr/include/sys/socket.h:40:0,
from /usr/include/netinet/in.h:25,
from /usr/include/arpa/inet.h:23,
from scripts/basic/fixdep.c:116:
/usr/include/bits/socket.h:382:24: fatal error: asm/socket.h: No such file or directory
compilation terminated.
make[1]: *** [scripts/basic/fixdep] Error 1
make: *** [scripts_basic] Error 2

cp arch/x86_64/boot/bzImage /boot/vmlinuz-custom-3.4.6
finche' poi capii il mio errore.Building your kernel
Now, start the build of kernel and modules, and install them to the proper places.
make bzImage modules # compile the kernel and the modules
make modules_install # installs the modules to /lib/modules/<kernelversion>
cp arch/x86/boot/bzImage /boot/vmlinuz-custom-2.6.37.6 # copy the new kernel file
cp System.map /boot/System.map-custom-2.6.37.6 # copy the System.map (optional)
cp .config /boot/config-custom-2.6.37.6 # backup copy of your kernel config
cd /boot
rm System.map # delete the old link
ln -s System.map-custom-2.6.37.6 System.map # create a new link
total 21704
lrwxrwxrwx 1 root root 37 Jul 22 12:54 README.initrd -> /usr/doc/mkinitrd-1.4.6/README.initrd
lrwxrwxrwx 1 root root 24 Jul 22 13:06 System.map -> System.map-huge-2.6.37.6
-rw-r--r-- 1 root root 3017182 Jul 24 16:26 System.map-3.4.6
-rw-r--r-- 1 root root 1782099 Apr 9 2011 System.map-generic-2.6.37.6
-rw-r--r-- 1 root root 2706772 Apr 10 2011 System.map-huge-2.6.37.6
-rw-r--r-- 1 root root 512 Jul 22 14:31 boot.0800
-rw-r--r-- 1 root root 209 Jul 22 14:31 boot_message.txt
lrwxrwxrwx 1 root root 20 Jul 22 13:06 config -> config-huge-2.6.37.6
-rw-r--r-- 1 root root 85035 Jul 24 16:35 config-3.4.6
-rw-r--r-- 1 root root 112324 Apr 9 2011 config-generic-2.6.37.6
-rw-r--r-- 1 root root 112298 Apr 10 2011 config-huge-2.6.37.6
-rw-r--r-- 1 root root 5040 Mar 27 2011 diag1.img
-rw-r--r-- 1 root root 17932 Mar 27 2011 diag2.img
drwxr-xr-x 11 root root 4096 Dec 19 2009 initrd-tree/
-rw------- 1 root root 37376 Jul 24 16:37 map
-rw-r--r-- 1 root root 15634 Mar 27 2011 slack.bmp
lrwxrwxrwx 1 root root 21 Jul 22 13:06 vmlinuz -> vmlinuz-huge-2.6.37.6
-rw-r--r-- 1 root root 5468864 Jul 24 16:27 vmlinuz-3.4.6
-rw-r--r-- 1 root root 2956592 Apr 9 2011 vmlinuz-generic-2.6.37.6
-rw-r--r-- 1 root root 5866144 Apr 10 2011 vmlinuz-huge-2.6.37.6
/dev/sda2 / ext4 defaults 1 1
/dev/sda1 /home/windows ntfs-3g fmask=111,dmask=000 1 0
/dev/sdb1 /home/usb vfat fmask=111,dmask=000 1 0
#/dev/cdrom /mnt/cdrom auto noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0
tmpfs /dev/shm tmpfs defaults 0 0

tornadomig ha scritto:un errore davvero stupido era cannare l'architettura cioe' se x86 o x86_64. nell'esempio sotto, preso da quella guida di alienbob, riporta un caso di arch x86 infatti si legge.
quando invece si ha x86_64, si mette ;
- Codice: Seleziona tutto
cp arch/x86_64/boot/bzImage /boot/vmlinuz-custom-3.4.6
cosi' sbagliando avevo al riavvio di gentoo un bel kernel panic o grub si piantava, insomma un casinofinche' poi capii il mio errore.


# nano /etc/lilo.confappend="quiet vt.default_utf8=0 rootfstype=ext4"
e poi usa la guida di alienbob se proprio ti garba ancora kernellare un po' 

Visitano il forum: Nessuno e 1 ospite