Arch 0.7-Beta2 - Bad default grub config

Ive just gotten the 0.7 beta working on my new server.
I had problems when booting into the system, the kernel saying it couldnt mount /dev/discs/disc0/part5 (my / partition)
ive forgotten the exact error, but it was at the VFS mount point.
I spent a number of hours trying to figure out what was wrong.
After a while i came across phrakture's(?) post about having grub problems and tried replacing the root=/dev/hda5 instead of the /dev/discs/... style.
this worked.
it would be good if the 0.7 grub config file had something mentioning the different naming schemes for udev vs devfs
admittedly it has this comment
# Old /dev DevFS Grub
# /dev/fd0 /dev/floppy/0 (fd0)
# /dev/hda /dev/discs/disc0/disc (hd0)
# /dev/hdb2 /dev/discs/disc1/part2 (hd1,1)
# /dev/hda3 /dev/discs/disc0/part3 (hd0,2)
but it is not really clear what one should use.. especially since the /dev/hda section is labeled Old /dev!!?
for some reason, on _this_ computer (which i installed with 0.6 but have upgraded to use udev), the line root=/dev/discs/disc0/.. works!?
i just thought it bring it to someones attention before it goes 0.7-final
another thing, required kernel parameters.. are there any required for Arch to function? I havent seen anything in the wiki mentioning any requirements or even lack there of.
thanks
edited to `codify' the menu.1st comment

Well, if I were to venture a guess, it's because your kernel doesn't have devfs built in at all. So the kernel has no idea what /dev/discs/... is supposed to point to.
yep, thats what im saying.
but because its possible to do such a thing, even during the install with the compile youre own kernel option, I think it would be worth adding an example to distinguish between udev and devfs style devices.
seeing as 0.7 comes udev ready, i didnt expect there to be any trouble with device naming conventions. It took me some hours to realise thats what the problem was.
i think its worth the effort to save anyone else the trouble in the future.
thanks again.

Similar Messages

  • Up2date -uf changes default kernel in grub config

    I just built a new Oracle Linux 5.7 server and I configured it to boot into the Red Hat compatible kernel by default. After running up2date -uf to update all of the packages including the kernels, the grub config is automatically modified to boot back into the oracle uek kernel (default value gets switched back to 0). Is there any way to prevent the system update from changing the default kernel in the grub config?

    So that fixed it I guess.
    Before upgrade:
    # UDPATEDEFAULT specifies if new-kernel-pkg should make
    # new kernels the default
    UPDATEDEFAULT=no
    # DEFAULTKERNEL specifies the default kernel package type
    DEFAULTKERNEL=kernel
    After upgrade:
    # UDPATEDEFAULT specifies if new-kernel-pkg should make
    # new kernels the default
    UPDATEDEFAULT=no
    # DEFAULTKERNEL specifies the default kernel package type
    DEFAULTKERNEL=kernel-uek
    Also, the default value in grub.conf stays at 1 as opposed to being changed to 0. I don't understand this behavior though. Shouldn't the upgrade create an /etc/sysconfig/kernel.rpmsave or kernel.rpmnew file as opposed to just overwriting parts of the config file?
    Edited by: user8697493 on Oct 6, 2011 8:04 AM

  • Arch does not show up in Grub when dual booting with windows 8

    I just installed Arch linux, dual booting with windows 8 using the beginners guide[https://wiki.archlinux.org/index.php/Beginners'_Guide] itself. Now Grub is installed and i can only find Windows 8 and I cannot find Arch. Is there a way I can find if arch linux has been installed and show up in Grub.
    Sorry, I am a newbie, but i chose to post this topic here and not newbie corner as it is installation related.
    My windows 8 is installed on /dev/sda1 with ntfs partition type. Arch Linux is installed on /dev/sda6 and it is ext4 partition. I dont know if this info helps.  I am using Thinkpad R61
    Last edited by sutro_droid (2013-03-06 00:30:48)

    ivokosir wrote:It may be that you didn't install os-prober before running grub-mkconfig. This happened to me once, I hope I'm not too late to warn you.
    I am sorry, yes you are too late. I have wiped windows 8 and performed clean install. No regrets. And as a matter of fact, I did grub-config and then installed os-prober. That could be the problem. Thanks. I will try this again another time.

  • How to set the default boot kernel in /etc/default/grub or /etc/grub.d

    and without messing with /boot/grub/grub.cfg  ?
    I need this so that new kernels show up but do not change the default boot kernel
    Is there a way to do it by file name instead of position within the menuentry / submenu list?
    I found some ubuntu and fedora sugestions but all by position, none by name
    AND how to set the kdump kernel as the default?
    Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
    Last edited by Sanjeev K Sharma (2015-04-06 12:59:22)

    Sanjeev K Sharma wrote:
    and without messing with /boot/grub/grub.cfg  ?
    I need this so that new kernels show up but do not change the default boot kernel
    Is there a way to do it by file name instead of position within the menuentry / submenu list?
    I found some ubuntu and fedora sugestions but all by position, none by name
    AND how to set the kdump kernel as the default?
    Arch is putting this kernel under a submenu - would this pose problems for setting it as the default?
    In /etc/default/grub you can use the name of your entry you wish to use as default
    GRUB_DEFAULT='Arch Linux, with Linux core repo kernel'
    You can tell grub to stop using submenus by doing:
    GRUB_DISABLE_SUBMENU=y
    Or you can just make a purely custom menuentry in /etc/grub.d/40_custom if you'd like:
    menuentry "Other Linux" {
    linux <KERNEL IMAGE HERE>
    initrd <INITRD IMAGE HERE>
    EDIT: /etc/grub/default -> /etc/default/grub
    Last edited by Slabity (2015-04-07 11:16:22)

  • Questions on /etc/default/grub

    i'm currently switching from syslinux to grub2 due to lack of support with xen and lvm/luks and just general information that i have a massive headache from googling for hours about.
    anyways, i'm configuring grub very cautiously because i would prefer a simple reboot in opposition to having to stick a live cd in and unlock and mount all my partitions and do all this messy work.
    is it possible to configure all options designating kernel, initrd, and kernel parameters from the "GRUB_CMDLINE_LINUX_DEFAULT" variable and its friends?
    i know that i can configure grub.cfg by hand but i would much rather prefer to do it from /etc/default/grub
    i use lvm on luks and i'm setting up my arch installation as a dom0
    any help?

    You don't need to specify the kernel and initrd if you are going to have grub generate the configuration automatically - just the kernel parameters.
    Please read the wiki. The documentation on this is excellent.

  • Default kernel config question: acpi video freezes my laptop

    Hi,
    I have a Samsung X60 laptop that freezes when the acpi video module is loaded. The default Arch kernel config (and the derived suspend2 one) includes as built-in some of the acpi code (including the video bit). I'm interested to learn why they are included as built in, and if there is a way to selectively skip the acpi video built-in bit of code? (more selectively than acpi=off as a kernel parameter). Would it be reasonable to request a change to the default kernel config?
    cheers

    bugs.archlinux.org to make sure its fixed.
    the acpi video module is reasonably new and it can be compiled as a module iirc, so it shouldnt be any harm to have it compiled as such.
    James

  • Installing Arch but keeping another OS's grub menu

    I installed Arch with the help of the beginners' guide on a 'spare' partition on my machine, which also have another 4 OSs installed. As I wanted one of the others' grub menu to be the 'active' one I skipped the grub installation part - in fear of messing up the grub menu, and hoping that the update-grub command (from within the 'active' OS) would pick Arch up.
    This it didn't and I assume it is because I DIDN'T install grub in Arch (?) but could someone just tell me how I can safely do that but still keeping the other OS's grub as the main one.
    At one point in the guide it says to install grub in /dev/sda; would I be safe if I installed it in /dev/sda10 (which is the Arch partition) instead?
    Will I have to go through the whole installation process again? Or can I start Arch up (perhaps with the help of the CD?) and 'jump in' and carry on where I left off?

    olliegab wrote:I installed Arch with the help of the beginners' guide on a 'spare' partition on my machine, which also have another 4 OSs installed. As I wanted one of the others' grub menu to be the 'active' one I skipped the grub installation part - in fear of messing up the grub menu, and hoping that the update-grub command (from within the 'active' OS) would pick Arch up.
    This it didn't and I assume it is because I DIDN'T install grub in Arch (?) but could someone just tell me how I can safely do that but still keeping the other OS's grub as the main one.
    At one point in the guide it says to install grub in /dev/sda; would I be safe if I installed it in /dev/sda10 (which is the Arch partition) instead?
    Will I have to go through the whole installation process again? Or can I start Arch up (perhaps with the help of the CD?) and 'jump in' and carry on where I left off?
    I dual boot Arch and Ubuntu. I did NOT install Grub from Arch Install. After installing Arch, I rebooted Ubuntu and updated GRUB. Then I changed the default OS to Arch from /etc/default/grub.
    My rationale behind this was Ubuntu being a 6 monthly release compared to Rolling Arch, I had to install and reinstall ubuntu every 6 months and I didn't want any mishaps with Grub during this.
    You probably forgot to update grub in the distro that is handling your Boots. If updating Grub does not show Arch then mount the Arch Partition and then update grub. [However the Grub version in Ubuntu 13.04 has fixed this and I don't have to mount Arch any more].
    EDIT: By the way, not installing Grub means that Grub is not installed in the MBR. All the necessary files required to boot arch will be there in the Arch install.
    Last edited by fantab (2013-04-07 16:56:47)

  • Bad Defaults ?

    Hello.
    I got a problem with my G4 quicksilver, 10.4.5.
    Sometimes it doesn't wake from sleep.
    I did all the maintenance things (with onyx, and pram zapping) but sometimes it still can't wake up.
    I tryed to reset the open firmware by doing cmd opt O F at startup and:
    reset-nvram
    set-default
    reset-all
    But when I type set-defaults I got this message: "bad defaults".
    What does that means?
    Is it a problem, does it have to be fixed?
    Thanks in advance.

    Ah this is a misanderstanding, I was replying to W.J. Llope : everything was ok according to the "Apple Hardware Test" CD but my problem is still unsolved.
    I still wonder about this "Bad Defaults" in open firmware and my computer still doesn't wakes up from sleep (not everytime, though).
    When it occurs, the computer itself is not really sleeping since I can hear the fan working at normal speed. I got no solution but to force restart with the front button.

  • How can I change the default disocver9i config page in OEM?

    The version of 9ias is 9.0.2.1,OS is Win2000 server,no any patch.
    Symptoms:
    The default disocver9i config page in OEM appers garbage character. And when I create a new connection, I can't find the "applications user" check box. How can I repair these?
    Thanks for any reply!

    You can find search engines on the Mycroft Project website.
    * http://mycroft.mozdev.org/
    * http://mycroft.mozdev.org/google-search-plugins.html

  • [SOLVED] grub2 recreate /etc/default/grub and /etc/grub.d

    I made lot of changes on /etc/default/grub so i decided to remove it along with the /etc/grub.d/* to start from scratch. I thought that after reinstalling grub-bios package these files will be automatically recreated. But I wasn't right. How can I get them recreated?
    Last edited by dummyan (2012-08-25 19:06:29)

    Found the solution, files are actually included in grub-common package. Marking as solved.

  • Copying defaults to config

    I haven't had Flash Player installed very long but it seems
    that every time I start up my Administrative User Account in XP, I
    get a popup saying "Copying defaults to config". Uninstalling FP
    solved the problem but it reappeared upon re-installation of FP.
    This process takes several minutes. Is there anything I can do to
    stop it? Is there any harm done if I hit the cancel button on the
    popup?

    Never heard of such a thing before. It absolutely is not a
    part of any legitimate Flash Player installation that I'm aware of
    (and I've been at this awhile...)
    Take a screen shot of it and post it somewhere.. or open a
    support webcase at
    http://www.adobe.com/support/flashplayer
    .

  • Grub config - dualboot Arch/Winxp

    My box has two disks. I have a fresh Arch-install, meant to use all of the first disk. On the other drive is Win xp installed (still keep it for a couple of prog.) Problem is that I cannot boot xp. It's in the Grub menu. Grub was installed in the MBR. Hoping that someone could give some advice I copy my fdisk -l
    [root@archbox tinker]# fdisk -l
    Disk /dev/sda: 251.0 GB, 251000193024 bytes
    255 heads, 63 sectors/track, 30515 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sda1 * 1 5 40162 83 Linux
    /dev/sda2 6 38 265072+ 82 Linux swap / Solaris
    /dev/sda3 39 30515 244806502+ 83 Linux
    Disk /dev/sdb: 80.0 GB, 80060424192 bytes
    255 heads, 63 sectors/track, 9733 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    /dev/sdb1 * 1 9732 78172258+ 7 HPFS/NTFS
    Disk /dev/sdd: 250.0 GB, 250059350016 bytes
    255 heads, 63 sectors/track, 30401 cylinders
    Units = cylinders of 16065 * 512 = 8225280 bytes
    Device Boot Start End Blocks Id System
    Then from /etc/grub/menu.lst:
    # DEVICE NAME CONVERSIONS
    # Linux Grub
    # ------------------X-------
    # /dev/fd0 (fd0)
    # /dev/hda (hd0)
    # /dev/hdb2 (hd1,1)
    # /dev/hda3 (hd0,2)
    # (0) Arch Linux
    title Arch Linux
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda3 ro
    initrd /kernel26.img
    # (1) Arch Linux
    title Arch Linux Fallback
    root (hd0,0)
    kernel /vmlinuz26 root=/dev/sda3 ro
    initrd /kernel26-fallback.img
    title Windows XP
    rootnoverify(hd 0,6)
    makeactive
    chainloader +1
    Dont mind the rootnoverify hd0,6) its only the last I tried.

    Yes, it is the windows bootloader.
    Windows XP uses the boot.ini file to determine on which harddrive NTLDR and other windows system files reside.
    your boot.ini file probably looks similar to this :
    [boot loader]
    timeout=5
    default=multi(0)disk(0)rdisk(0)partition(1)WINDOWS
    [operating systems]
    multi(0)disk(0)rdisk(0)partition(1)WINDOWS="Microsoft Windows XP Home Edition" /fastdetect
    the multi(0)disk(0)rdisk(0)partition(1)  points to the first harddrive in the system, and since you have windows now on the 2nd harddrive , it needs to be changed, probably to multi(0)disk(0)rdisk(1)partition(1) .
    You'll need to use a bootable cd that allows you to edit files on ntfs partitions to change it.
    The windows install cd can do that via the rescue option, or you could use something like bartpe .
    After you have got this right and can finally boot into windows, it will probably want to re-activate your copy.
    The real problem in this case is the way windows works ...

  • Lnstalled Arch alongside windows 8.1 (uefi), grub doesn't show up

    Hello people,
    I've been following the Beginner's guide to install Arch on my laptop (HP) via the arch.iso on usb flash drive. I have windows 8.1 already installed and I'd like to install Arch alongside it, in uefi mode too.
    I could follow most of the steps in the guide, installing arch, grub, ran pacstrap, installed lxde, gummiboot, efibootmgr, etc. But in the end when I reboot, grub doesn't show up and Windows 8.1 boots instead. I even used efibootmgr to display the order of booting (and seeing that Windows was in front of grub), changed the order of booting but to no avail; when rebooted, Windows booted up.
    Some information: My efi partition was created by Windows so I used the same partition for Arch's uefi, namely /dev/sda2.
    I've got a / partition at /dev/sda6 and a swap partition at /dev/sda7.
    I've perfomed the commands
    grub-install /dev/sda
    but was told that it was wrong (on IRC) and thus I later installed it on the efi partition.
    I generated grub.cfg twice:
    grub-mkconfig -o /boot/grub/grub.conf
    but I was told that this was wrong and so I also did
    grub-mkconfig -o /mnt/boot/efi/grub.conf
    because the efi partition was mounted at /mnt/boot/efi.
    I've also created some files related to gummiboot as the Arch wiki stated to do and set Arch as default OS to boot, but that didn't seem to work.
    Lastly I've also booted into the firmware and I have set to boot from usb first, then OS. (I don't see Linux/Windows choices there, only OS). And yes I disabled secure and fast boot.
    P.S.:This is my first Arch installation, I come from Lubuntu/Manjaro and I bought this hardware for the purpose of learning Arch Linux (so I really, really, really want to install Arch on it).
    Thanks for any help!
    Last edited by linux_dream (2015-05-17 22:43:29)

    JeromeDGDG wrote:Hello linux_dream.
    First, archlinux is for boot exactly the same than other linux distributions. It mount by a boot manager first (grub for exemple).
    So, first of all, you absolutly need to creat a /boot partition with some required tools (have some differents) and then, mount it on /boot. This partition need to be FAT32 with around 512MB (mine is 256MB and works fine) and be gpt/UEFI and bootable. There is specific parameters to pass to the tool at format partition time (but if you followed the wiki, all of this is ok now...).
    Hello Jérome,
    I do have an uefi partition (FAT32) thanks to Windows. It is on /dev/sda2, so I mounted it as /mnt/boot/efi  where I had mounted /mnt as root.
    JeromeDGDG wrote:
    Then...
    you have to see the /boot partition you created on your BIOS. The bios, is the first thinks the computer run at boot time (before everythings). Then go inside your bios and check options around boot and see boot list (sometimes, when change config, you have to reboot again the bios for see the changes on boot list appears). Then on your boot list from BIOS, you have to see your grub /boot partition (mine is named égrub_archlinux" viewed by the boot list of my bios) and make it boot first (or just after usb and cdrom if you prefer...). If not, this grub will never been mounted and windows will start first.
    Also, if you are confused with command tools on linux systems and you not sure your partition boot is not well created, you can easily used gparted gui tools (do a bootable cdrom and use it for partitions or check...).
    In the BIOS I don't see anything related to grub nor Arch. However in the uefi settings, I do. To access these settings is tedious, I need to boot Windows, click on reboot while maintaining the Shift key, selecting "troubleshooting", go to uefi settings, reboot and then press F9 to enter there. There I can see grub, Arch and Windows and I can enter in Arch from there. So I don't need the arch.iso flash drive anymore, I prefer to boot from my hard disk.
    head_on_a_stick wrote:
    That doesn't make much sense -- you say you have "installed gummiboot" but also that "Windows was in front of grub [sic]" in your NVRAM entries -- which did you install, GRUB or gummiboot?
    Also, installing a desktop environment (LXDE) is mentioned nowhere in the Beginner's Guide.
    I installed both Grub and gummiboot (in that order). Yeah I installed LXDE because I thought everything went fine (grub recognized Arch when it generated the .cfg file), I only saw the problems when I rebooted: grub doesn't show up.
    head_on_a_stick wrote:
    The actual command you should use is:
    # grub-install --target=x86_64-efi --efi-directory=$esp --bootloader-id=grub --recheck
    I did that command too, where I took care to replace $esp by /mnt/boot/efi if I remember well. The command worked.
    head_on_a_stick wrote:
    Again, the command should be:
    # grub-mkconfig -o /boot/grub/grub.cfg
    As stated in the ArchWiki page I have linked above.
    Make sure you have mounted all your partitions and used `arch-chroot` before running these commands.
    I did that command, it generated files and recognized 3 images (linux, initramfs and another thing I don't remember). Again, if I remember well.
    head_on_a_stick wrote:
    Please post the content of /boot/loader/loader.conf & /boot/loader/entries/arch.conf (if that is what you've called it) and the output of:
    lsblk -f
    ls -R /boot
    # parted -l
    # efibootmgr -v
    Again, run all these commands after you have mounted all your partitions and used `arch-chroot` from the live Arch ISO.
    You can use sprunge to generate a link to their pastebin for the command output:
    <command> | curl -F 'sprunge=<-' http://sprunge.us
    https://wiki.archlinux.org/index.php/Li … in_clients
    Unfortunately I'm having a very hard time to make the curl command work, I think that it's due to my keyboard layout and I can't seem to write the correct apostrophes (mines seem curvy) nor the correct " sign. Here's the error that I get (manually copied): 
    returned Warning: Illegally formatted input field!
    curl: option -F: is badly used here.
    curl: try 'curl --help' or 'curl --manual' for more information
    . I've been seeking help for around 20 minutes on #archlinux (IRC) to no avail thus far.
    So I entered some of the commands you mentionned and I took some photos of them.  See the 5 photos at https://imgur.com/QN8FBZ1,RLbSe2u,73o1w … ,aBTxNNF#0
    Of course it would be much better if I could find a way to make the curl command work.

  • [PARTIALLY SOLVED] Arch on MacBook4: can't install GRUB

    I've been running Arch on my MacBook4 (4 years old now) for quite some time in dualboot mode and have already set up GRUB sucessfully several times. I therefore feel kinda bad that I have to open a new thread this time, but after wasting the whole morning on Google, I don't see another solution.
    What has happened is that I had to resize my Linux partitions because there was no space left on my system partition. I have the following partitions:
    sda1 - fat32 EFI partition
    sda2 - hfs+ Mac partition
    sda3 - ext4 Arch system partition
    sda4 - ext4 Arch home partition
    As mentioned, when I first organized my Arch partitions this way, I could successfully set up GRUB, but it was GRUB1 which I had to set up via grub shell. Now, as it looks to me, GRUB1 is not available anymore but only GRUB2 which doesn't use the grub shell anymore. I've not been able to install GRUB2 the last time (that's why I ended up using GRUB1) and I'm still not able to install it this time!
    When I start the MacBook and choose the Linux partition in rEFIt, I get to a black screen displaying GRUB_ and doing nothing more (because I don't have GRUB set up). That's how far I am right now.
    Now can anyone help me with setting up GRUB(2)? Thanks in advance for any help!
    Last edited by cryptkeeper (2012-09-05 06:13:14)

    I've succeeded in working around the problem of installing GRUB2 after I found out that grub-legary is nothing else but GRUB1. So all I had to do to get back a running system was:
    - removing the GRUB2 installation
    - installing grub-legacy
    - copying my old menu.lst to /boot/grub/
    - grub shell: root (hd0,2); setup (hd0); quit
    Now it works like a charm again.
    Still I only consider this thread half solved because I still don't know how to install GRUB2 on my system. It's not of vital interest to me anymore (I don't care too much why, that is, due to which boot loader, my system boots, as long as it boots), but a solution would nonetheless be nice since this thread is opened anyway.
    So: How can GRUB2 be installed on a MacBook dualboot system with rEFIt such as mine?

  • Installing arch under virtualbox - cannot open default display & stuff

    hi!
    this is not my first time I try to install arch under virtualbox, and the results I get are the same.
    Installation was pretty obvious: installed arch, added user to lp,wheel,games,video,audio,optical,storage,scanner,power,users groups, installed xorg (all group), installed virtualbox-guest-utils, added vboxvideo vboxsf and vboxguest to /etc/modules-load.d/virtualbox.conf. Also installed mesa and xf86-video-vesa.
    Then I edited .xinitrc and added there /usr/bin/VboxClient-all line.
    In result, when I try to launch X by typing startx, desktop changes resolution to a bigger one, then blank screen and the resolution changes back to previous, displaying the following:
    If I try to launch any de (like bspwm or xfce4) I het a message saying "Can't open the default display".
    The weirdest part is that if i change user to root, I can startx and the ugly twm will start, but if I try to launch de, I get the same error message.
    Now, what have I missed during the installation which in result gives me what I get?
    Thank you.

    Trilby wrote:Please post your actual .xinitrc.  The output in your screenshots indicates that X exited normally, without error.  In other words, nothing went wrong, it did what it was told to do, you just likely have not told it to do what you want.
    good thing is that i actually installed xfce4 and uncommented the corresponding line in the .xinitrc and the xfce4 launced successfully. Maybe I was frustrated because under root I got something, and under user - failures.
    The bad thing is that when I want now to launch bspwm with the following .xinitrc
    I get a completely black screen with no response

Maybe you are looking for