Ubuntu Installation :: Adjust The Default Setting Via /etc/default/grub?
May 29, 2010
I have already had Vista installed on another drive and from what i've read on the webs you get to dualboot if you install ubuntu after vista. when i did install it (i installed on a blank hdd with no partitions, choosing the "erase entire disk" option since for some reason default option was attempting to eat a part of my windows 1 gb drive instead of using disk i specially made for it) and the grub 2 loaded for the first time, there was NO option to run vista. only 2 linux (normal and recovery) and 2 memtests. I've ran linux and went to google this. I found that i should add something to some config files in /etc/grub.d/From reading the readme file i understood i could add my own files that are named like NUMBER_SOMENAME and insert code into them. Because it said:Quote: For example, you can add an entry to boot another OS as01_otheros, 11_otheros, etc, depending on the position you want it to occupy inthe menu; and then adjust the default setting via /etc/default/grub. But then i found a file 40_custom that said:
i always had windows as default in my grub (this is my desktop pc, mostly for gaming, i use windows here for about 98% of the time linux is just for working)i lastly upgrades to 11.04 (bad idea never change a running system)and now my grub starts linux as default and i dont know why.i started startupmanager and set windows as default no change i clicked myself into the /boot/grub/grub.cfg and opened it as su - it looks like everything is right here too but i could think of something, i need to change there.
I'm trying to configure GRUB to boot XP preferentially- my wife insists. Having looked up the GRUB manual I see that I can set this using the default command.
The problem is, when I go to my grub command line default is not a recognized command. If I hit TAB for a list of commands, it isn't there.
I think I'm using some 0.9x version of GRUB, since the partitions etc seem to be numbered starting at 0, not 1.
While I'm at it, I was just going to play around and figure this out, but: the menu interface lists five versions of Ubuntu (all those weird kernel variations) then XP. So would XP be default 1 or default 5?
I Just updated my 10.04 LTS system, which dual boots Windows XP. Prior to the update the default was to boot to XP, now it is to Memtest.
I tried to edit /etc/default/ grub and make the default be 14 instead of 12, which would be XP, but Ubuntu, (using gedit), refused to accept my change.
I don't have a problem scrolling around to pick XP, or the latest Linux kernel to boot, but my wife sure does. How can I make Ubuntu/Grub default to to XP ?
After setting up a persistent Lubuntu (10.10) on a 4GB SD with Universal-USB-Installer-1.8.1.8 , I started changing the passwd of the original user ubuntu , but after rebooting, I can't log in. So I resorted to hitting Ctrl+the function key that gives you a CLI, and changed the password for "ubuntu" user then tried to log on again. No success.Then I created a new user with a password, and managed to log in with this user, but it is not the same experience, the menus are lacking, and it is not possible to log on to wifi, similar problem to this user
I've just finished installing the software on the box. I've made it a dual-boot but want to set the default to Windows XP Media Center so my grandson can work with it. I want to change the boot configuration file but the documentation show working with menu.lst file but I can't find it. How do I make the changes without blowing grub out of the water?
I'm having some difficulty setting my txpower setting on my atheros wifi card. I am using ath_pci driver on ubuntu 8.1 64 bit. I can set the txpower to whatever, 12dBm for example, it accepts the change but quickly reverts back to a default value of 8dBm. Power saving is off. How can I make these changes permanent, or adjust the default value?
I recently installed Karmic, and want to change the default Grub entry to Windows XP. Having done some research and tried things out, I am a bit confused. I have edited etc/default/grub so that it has GRUB_DEFAULT=6 (to correspond to my XP installation) and GRUB_TIMEOUT="3", but after running sudo grub-mkconfig the grub.cfg file still says set default="0".
I loaded Kubuntu 9.1 and got a mess in the Grub 2 Boot Menu, which I can't correct.
I get extra choices in the Boot menu, and the first few, which are supposedly for Kubuntu Karmic Koala all put me in a shell, which ends in a black screen, then shows up a shell once I hit "enter". Then I just have a "intramfs" (?) prompt.
So I went into Grub2 to change it, and it refuses to do it. All I get is a screen full of error messages every time I try, with no change. Apparently it is looking to access drive sdb8, which is non-existent. I DO have a drive sda8, though.
So with all the wonderfulness of the indirect system to change Grub 2 how am I supposed to set it right? The old Grub worked fine, and just took simple changes to the menu.lst file.
Can't somebody write a program that lets Grub 2 be changed from within the program, rather than all this running around trying to find what file to change, and how to get the change to work?
Just to be clear, here are the errors as they show up when grub-update is flailing around: "error: cannot open '/dev/sdb' while attempting to get disk size error: cannot open '/dev/sdb' while attempting to get disk size Generating grub.cfg error: cannot open '/dev/sdb' while attempting to get disk size
I think my Natty 64 bit install is missing a dependency for gk, even though it shows up install in Synaptic. I have also tried using Start up Manager and the changes I make there don't show up after restarting either. I just want to change the default boot to number 4, Windows. Any suggestions are welcome, but I have tried all the ones I've found on this forum so far and none have worked, including editing etc/grub/default and saving with sudo update-grub. That's when I get a "gk not found" error.
I just installed Ubuntu Server 10.04. When I reboot, it stops at a "grub>" prompt. I figured out that I can continue booting by entering these four commants:
set root=(hd0,1) linux /boot/vmlinuz-2.6.32-21-generic-pae root=/dev/sda1 ro initrd /boot/initrd.img-2.6.32-21-generic-pae boot
I can't figure out, however, how to save these as the default so that the machine can boot without someone present to enter these commands. Running "grub-set-default" tells me "entry not specified." I don't see anywhere in /etc/default/grub that looks relevant.
I just got to finish installing ubuntu lastest version on my new netbook, im really exited about how powerful it can get. The thing is, I'm still keeping my old Windows 7 partition and data, and I want to access it faster, editing the grub options, to change the timer on it, and the default booting option.
I have been helped by repo in this post [URL]..Here's a quick resume: I made changes in the grub menu for just one boot I selected the first option Ubuntu with Linux 2.6.35-27-generic edited the Linux /vmlinux ro quiet splash by adding irqpoll to the end. I rebooted and the system booted correctly into the GUI.
I then tried to edit the /etc/default/grub file by booting into the recovery mode, opening a terminal, using command sudo vi /etc/default/grub and adding irqpoll to the end of the GRUB_CMDLINE_LINUX DEFAULT="quiet splash". Followed by update-grub to update the /boot/grub/grub.cfg file
Unfortunately when I try to reboot I find that the system will not boot and hangs as before on the purple screen after a logon. I know that I have edited the /etc/default/grub file correctly because I have confirmed this by reviewing the file. So my question is why does the "one boot method" work but the edit file method not work ? I must be doing something wrong.
I'm installing debian squeeze and and I've got 2 hdd (sda,sdb), but I want to install it on sdb. When i get to the "Install the grub boot loader on the hard disk" it automatically installs it on /dev/sda (and I get an error), I want to install it on /dev/sdb... Is it possible.
I have Windows 7 and Ubuntu 10.04 dual-booted on my machine. grub was aautomaticlu installed as the primary loader. Soon i want to nuke my ubuntu partition but i know that will delete grub. Can i remove grub or at least make Windows boot loader default.
I am a new Ubuntu user, and I am attempting to set Windows 7 64 bit as my default OS in the boot loader instead of Ubuntu 10.10. I have entered the command gksudo gedit /boot/grub/menu.lst into terminal, and the menu.lst file does open. However, this file appears to be completely blank, which does not seem to make sense and is preventing me from changing the boot order.
I'm using ubuntu and i need to know if it is possible to make a "prototype" account that sets the defaults for new users when a new account is made. How would i go about doing this. I would like to have the same start up programs, panel, themes, background, etc...
I recently installed VLC Media Player and now wonder how I could make it my default media player in Ubuntu because every time I want to listen to a song, I have to right click and "Open With...VLC Media Player".
[URL] my desktop accidently become like this: Screenshot-1.png i can't find the favourites, internet, system, etc to start the application...what should i do to return the desktop with default setting..
I have both Firefox and Chromium installed on my system. I have Firefox set as the default browser, but if, for example, I open GIMP go to Help --> About then click on "Visit the GIMP website" it opens in Chromium, not Firefox.On Maverick amd64, fresh install.
I'm trying to set the default apps using gnome-default-applications-properties. In previous versions I was able to set custom apps for everything. Looks like Gnome3/Ubuntu 11.04 doesn't let me do that for, say, the mail reader. I'm one of those people who still use Alpine, and in previous versions I was able to set the default to run an xterm (well, aterm) which auto-ran alpine.
This version, looks like that's not there. I'm wondering if there's a way to set that anyway. like registering a script I write as a "mail client" so it's available in the chooser. Second... and almost MORE annoying... the "Terminal Emulator" default app DOES have a custom option. But it also recognises that I have aterm installed, which I want to use as the default app... however, since it has an aterm option, it won't let me enter aterm as a default command. Which I want to do because I want to modify the commandline options. But if you choose "Custom" and type "aterm" into the Command field... it ERASES your commandline options and puts it's default sterm options in!
I have a file server running a cronjob to reset file permissions on a regular basis. I was thinking, I wonder if there is a way to do the chmod and chown command in a single command, as I always have to do both on the same folder, the way that you can do "chown root:users Uploads" instead of having to do two separate commands for chown and chgrp.
Then I got to thinking, are these commands even necessary? Every file copied or moved into these folders by any user needs to be something like "chmod 750" and "chgrp root:users", so rather than running a cronjob to do these modifications at regular intervals, there ought to be a way to set the folder permissions so that any files contained within will have these permissions.
The problem arises because users create documents, then a supervisor with elevated privileges can move those documents into a shared folder, however the permissions are wrong, they are user1:user1 for the owner and group and the other users can't read the file until a cronjob changes the group to be users. This has actually been acceptable, but certainly there is a better way to do this.
I'm currently setting up a dell server with hardware raid 1 on sas 6r. i got 4 sas installed on the server and configured to raid 1 as stated below, array 1: slot 0 & 1
array 2: slot 2 & 3
during the installation, the installer detect the array 2 as sda and array 1 as sdb.. so i proceed with installation on array 2. after completed the installation, the first reboot lead me to a 'grub-rescue" prompt. by following the guide at url Mode, i've noticed that the boot folder has changed to (hd1,1), which i believe it has changed to sdb1. default root device shows that prefix=(hd0,1)/grub.
I tried changing my Theme via MAC4LIN and it didnt work i get an error messege that shows:
cp: cannot stat `/etc/gdm/gdm.conf': No such file or directory sed: can't read /etc/gdm/gdm.conf: No such file or directory sed: can't read /etc/gdm/gdm.conf: No such file or directory
Previous to this i had tried installing KDM but it didnt appear to do anything (as in change any of the display management settings) The guide that i was reading to install MAC4LIN just uses GDM so i decided not to pursue KDM anymore. I Get the following read out:
[Jason@Echo ~]$ yum info gdm Loaded plugins: presto, refresh-packagekit Installed Packages Name : gdm Arch : i686
[Code].....
The goal is to set all my GDM settings back to normal so i can have that gdm.conf file. Anyone know a way to set the GDM back and repair any damage ive done?
Is it possible to set a default setting for the terminal? When I open one up it is very small and I press the ctrl++ several times to get it so that I can read it?