You are not logged in.
Well i finally managed to compile a custom kernel but when try and boot it up i get this error:
waiting 10 seconds for device /dev/disk/by-uuid/50884870-22fe-4a92-af78-5df0f037a253
Refined TSC clocksource calibration 3999.999 mhz
Switching to clocksource tsc.
Root device '/dev/disk/by-uuid/50884870-22fe-4a92-af78-5df0f037a253' doesn't exist.
Attempting to create it.
ERROR: Unable to determine major/minor number of root device '/dev/disk/by-uuid/50884870-22fe-4a92-af78-5df0f037a253'.
You are being dropped to a recovery shell.Job control turned off.
My /etc/fstab:
1 #
2 # /etc/fstab: static file system information
3 #
4 # <file system> <dir> <type> <options> <dump> <pass>
5 devpts /dev/pts devpts defaults 0 0
6 shm /dev/shm tmpfs nodev,nosuid 0 0
7
8 #/dev/cdrom /media/cd auto ro,user,noauto,unhide 0 0
9 #/dev/dvd /media/dvd auto ro,user,noauto,unhide 0 0
10 #/dev/fd0 /media/fl auto user,noauto 0 0
11
12 UUID=04862087-c006-4db2-bd65-07d35398d16f /home ext4 defaults 0 1
13 UUID=090e818e-e3f9-4f93-ad41-2d3bb39b1ecd /var reiserfs defaults 0 1
14 UUID=4ce5efd8-8172-460e-af89-229a9fc6e881 /boot ext2 defaults 0 1
15 UUID=50884870-22fe-4a92-af78-5df0f037a253 / ext4 defaults 0 1
16 UUID=98934419-21ad-4a22-bf60-07d467d55f81 /usr ext4 defaults 0 1
17 UUID=bec77585-3dd8-4a1d-956d-8926f1e1a6f4 swap swap defaults 0 0
18
19 LABEL=SEAGATE /mnt/SEAGATE ntfs-3g defaults 0 0
20 LABEL=W-7 /mnt/W-7 ntfs-3g defaults 0 0
my /boot/grub/menu.lst:
1 # Config file for GRUB - The GNU GRand Unified Bootloader
2 # /boot/grub/menu.lst
3
4 # DEVICE NAME CONVERSIONS
5 #
6 # Linux Grub
7 # -------------------------
8 # /dev/fd0 (fd0)
9 # /dev/sda (hd0)
10 # /dev/sdb2 (hd1,1)
11 # /dev/sda3 (hd0,2)
12 #
13
14 # FRAMEBUFFER RESOLUTION SETTINGS
15 # +-------------------------------------------------+
16 # | 640x480 800x600 1024x768 1280x1024
17 # ----+--------------------------------------------
18 # 256 | 0x301=769 0x303=771 0x305=773 0x307=775
19 # 32K | 0x310=784 0x313=787 0x316=790 0x319=793
20 # 64K | 0x311=785 0x314=788 0x317=791 0x31A=794
21 # 16M | 0x312=786 0x315=789 0x318=792 0x31B=795
22 # +-------------------------------------------------+
23 # for more details and different resolutions see
24 # http://wiki.archlinux.org/index.php/GRUB#Framebuffer_Resolution
25
26 # general configuration:
27 timeout 5
28 default 0
29 color light-blue/black light-cyan/blue
30
31 # boot sections follow
32 # each is implicitly numbered from 0 in the order of appearance below
33 #
34 # TIP: If you want a 1024x768 framebuffer, add "vga=773" to your kernel line.
35 #
36 #-*
37
38 # (0) Arch Linux
39 title Arch Linux
40 root (hd0,4)
41 kernel /vmlinuz26 root=/dev/disk/by-uuid/50884870-22fe-4a92-af78-5df0f037a253 ro vga=0x0361
42 initrd /kernel26.img
43
44 # (1) Arch Linux
45 title Arch Linux Fallback
46 root (hd0,4)
47 kernel /vmlinuz26 root=/dev/disk/by-uuid/50884870-22fe-4a92-af78-5df0f037a253 ro
48 initrd /kernel26-fallback.img
49
50 # (3) Arch Linux
51 title Arch Linux Custom
52 root (hd0,4)
53 kernel /vmlinuz26-2.6.38.rc5 root=/dev/disk/by-uuid/50884870-22fe-4a92-af78-5df0f037a253 ro
54 initrd /kernel26-2.6.38.rc5.img
55
56 # (2) Windows
57 #title Windows
58 #rootnoverify (hd0,0)
59 #makeactive
60 #chainloader +1
Edit:I tried labeling my partitions but that didn't work, i also tried rebuilding my kernel and that didn't work either,all i managed to do was
make my primary kernel unusable with the same error as my custom kernel
I've got my primary kernel working again with: mkinitcpio -c /etc/mkinitcpio.conf -g /boot/kernel26.img
But still no luck with my custom-kernel
Last edited by unilx (2011-02-24 09:33:52)
Offline
Sounds more like an initcpio issue than a kernel issue. The issue isn't that there's a name mismatch, it's that the device isn't being created because there's no driver found for it. Are you trying to use the initcpio that was created for the stock kernel26?
Offline
Kernel Compilation from Source
I used the method on this page,pretty much to the letter https://wiki.archlinux.org/index.php/Ke … rom_Source
also i used the: with makepkg and pacman (Recommended) and not the Manual, Traditional method to create the kernel/img
Last edited by unilx (2011-02-21 22:16:35)
Offline
unilx...what is your mkinitcpio.conf used to build the custom kernel image?
also, did u edit relevant config options from kernel configuration that could have affected your hardware, for example hard disks? sata, pata, scsi, usb...
Gemon
Offline
I tried using mkinitcpio to build the kernel image from my /usr/src/linux-2.6.38-rc5 source files
mkinitcpio -c /etc/mkinitcpio.conf -g /boot/kernel26-2.6.38-rc5-ARCHMOD.img
and when i built the kernel itself i used "zcat /proc/config.gz > /usr/src/linux-2.6.38-rc5/.config" as the root-user.
When i got around to using "make menuconfig" i just used the the settings that where in the .config file that i just made
without changing anything in menuconfig
Last edited by unilx (2011-02-22 20:16:16)
Offline
Well, I have been using custom kernels for like many years already and generally there should not be issues... I use standard ARCH kernel and apply additional patches by simply editing original PKGBUILD, put in make menuconfig and some additional adjustments. I have a little script inside original PKGBUILD to grab all patches I put into build dir
Also why are You using root user to do zcat thing, if you do that with root and build with non-root you may not get config saved.
Last edited by Kirurgs (2011-02-23 06:57:17)
Offline
The problem was that i didn't have the ext4 filesystem enabled in my .config file when i compiled my kernel
I just had to open "make menuconfig" and go to filesystems and select ext4 and save it.
Last edited by unilx (2011-02-24 09:45:16)
Offline
I did have the same problem . i tried out compiling kernel with the latest git repo but during the boot,got the same messages as above . I am running the linux on a virtual box .Tried out new initcpio's and all but with no real effect . I have a reiserfs file system on te root device . I never used the package system of arch , instead did all manually . Could you shed some light onto my problem ?
Offline
Download the latest stable kernel source files from www.kernel.org,to your ~/ directory.Extract or untar the file and use the cd command to move to the new linux directory.
run the command "make mrproper" this will check the source files for errors
run "make defconfig" it will save a default .config file to your linux-2.6.37.2 directory
run "make localmodconfig" tiis will bring up a list of the modules that are running on your working kernel.Add them to the .config file using "make menuconfig"when you open
make menuconfig use the search/find option by pressing the back-slash key and copy the name of the modules from make localmodconfig in there and hit enter.A list
should come up telling what module to install and the path to that module.When your finished installing all the modules just save as .config
run "make".If you have 2 cpu cores run "make -j4" instead,4 cores run "make -j8 and so on.
Now copy the linux folder to your v-machine's ~/ directory acd cd back into the linux folder and run these commands
"make modules_install"
"make install"
Now just add the kernel to grub
Btw I'm assuming you have a reiserfs filesystem on your main installiation if not when you open "make menuconfig" you will have to go to filesystems and enable it.
Also you might want to wait and see what more experniced users have to say.And read "linux kernel in a nut shell" you can download it free as a pdf
Offline