Ubuntu :: Pass Parameters To Grub At Boot Time?
May 2, 2010
Old Toshiba laptop model A30 -- tried various installs 8.04/9.04/9.10. They all hung trying to boot the install disks after the initial few screens. Finally, I got 9.10 to install, dual booting XP and 9.10 by choosing F6 from the initial menu, and putting an X beside:
ACPI=off
noapic
nolapc
edd=on
nodmaid
and then hitting escape.But, after the install, I couldn't boot 9.10 from grub as it hangs after about 30 seconds of trying. The live CD would not work without the above parameters being set as described above, but does work with them set! I need those same parameters passed to grub at 9.10 boot time, but I can't figure out how to do that. I've had many successful installs of Ubuntu across a number of desktops and laptops, but I never had to deal with the guts of grub before. It all just worked.
View 9 Replies
ADVERTISEMENT
Mar 21, 2010
How do I pass file names as parameters to the shell through a script? I have installed 'wipe' from the repos and it is a shell based app. so I made a shellscript and put it in my script folder.
the normal usage of wipe is 'wipe -q /path/to/file' so if I were to make a shell script, right click on the file in question, and run the script on it, how to I permit the shell to wipe that file only, in other words pass it as a parameter. I think on windows it was the use of %1, such as. 'wipe -q %1' for example, which was simple enough. how to I achieve this with bash?
View 2 Replies
View Related
Jun 16, 2011
Why does this work
Code:
for myfile in `find . -name "R*VER" -mtime +1`
do
[code]...
View 2 Replies
View Related
Dec 7, 2010
I am new to bash scripting (not programming in general).
I am writing a bash script that will run a Python script I have written.
I want to be able to do the following:
Pass parameters to the bash script via the cronjob (so I can have two cron jobs) one to be run with parameter 'foobar', and the other 'foo'
switch based on the parameter passed to the bash script (by switching, I mean an if/else based on the paramter passed to the bash script).
View 3 Replies
View Related
Feb 2, 2011
I have a Python script that I run which needs to execute under a special environment, so I would run the program like so from my working directory (~/project/src):
python manage.py shell
This opens up an interactive shell for me to start typing my own commands.I have another set of administrative activities that I would like to house in another directory (~/project/admin). The manage.py is really finicky about running from the working directory. So, to make this whole thing work, I made a script which starts off like so:
#!/usr/bin/python ../src/manage.py shell
There are a couple problems with this. The first is that it doesn't work:
/usr/bin/python: can't open file '"/../src/manage.py" shell': [Errno 2] No such file or directory
How do you specify multiple parameters to the interpreter?How do I change the working directory?
View 2 Replies
View Related
Jan 18, 2011
I set up a bridge device but I can not figure out how to pass parameters into the ifcfg-vmbr0 in particular I need to pass:
maxage
ageing
fd and stp seems to be passed by DELAY=0 and STP=on the others? I have not found anything in the post, tips, docs how could I do?
View 1 Replies
View Related
Apr 1, 2011
I want to pass ip address,port address and some parameters from command line using python script.The ip address and port address for establishing socket connection and remaining parameters to execute different connection.
View 1 Replies
View Related
Mar 4, 2010
Splashtop caught my imagination of my own tv like computer-"1button and ready to go " have tried puppy xpudWebConverger still unhappy Now lucid aming for 10 sec boot-Keeping ma fingers crossed installed a minimal karmic and am getting a decent 27 sec I Jus Wanted to ask: Is there a way to remove the grub an directly boot into ubuntu -not just hiding it by editing grub.d files and any other ways to reduce boot time.......
View 9 Replies
View Related
May 1, 2009
SLES10 won't boot, stops at GRUB, able to enter commands into GRUB. Help appreciated, want to access data on logical volume.
Mounted drive with open suse live cd, could see partitions but not files/folders, even when used boot option 3 - to login as root.
View 9 Replies
View Related
Sep 9, 2010
I want to remove the default boot time from grub, I created /boot/grub/menu.lst, but I'm unsure what I can put in here to remove the countdown.
View 9 Replies
View Related
Sep 25, 2010
I have a new dell studio 1558 with core i5 processor and 4 gb ram. I just installed ubuntu 10.04 and every time i boot into my windows 7 partition my grub seems to stop working. The only solution i have found so far is to re-install grub using the live cd, but it is not feasible to do that every boot. Is this a standard problem(or is there a solution to this problem)? Also, I havent updated my ubuntu yet, will that help?
View 2 Replies
View Related
Apr 27, 2011
We're using 10.10-server. We are trying to make grub boot changes permanent. I've already looked at thread [URL]. We updated /etc/default/grub, and update-grub propagates those changes into /boot/grub/grub.cfg, but not into menu.lst. It appears to use menu.lst as the source at boot, so our change doesn't show up as a linux parm.
View 3 Replies
View Related
Sep 23, 2010
I mucked things up a bit--
1) I had only windows on my drive.
2) Using 10.04 on USB, I made a 10gb ext3 partition and a 1gb swap area and installed 10.04. No problems at all using grub2, and the GUI is nice for dummies like me.
3) I got antsy so I made an 8gb partition and installed 8.04 on it. It automatically installed grub (the old grub).
Now when I boot my machine the Old Grub loads, not Grub2. I can select 8.04, 10.04, or XP no problem. When I select 10.04 and use the GUI I can see 10.04, 8.04, and XP, but things are in a different order (clearly the grub2 order).
Questions:
1) How can I get grub2 to take over booting? (I like the GUI)
2) I'd like to install puppy linux too, but I'm afraid of really screwing things up. Can someone recommend a safe way of installing it (besides just running from a USB- I've had mixed luck using USB OS's over long timeframes).
View 2 Replies
View Related
Mar 14, 2010
I'm a very new Linux user, so speak slowly and don't use big words. I installed Karmic from the Live CD. It is the only OS in use on this system. I then upgraded to Ubuntu Studio using the instructions found on the wiki.
On bootup, I get a brief message stating "GRUB loading" and then the system automatically boots to the generic kernel. No GRUB menu is ever displayed. I would like the option to boot to the real-time kernel, but I have no idea how to edit the appropriate files. I've done a fair amount of reading on the subject, but I find very little information relating directly to the real-time kernel, and so I still feel like I'm too green to do it without messing something up.
View 6 Replies
View Related
Aug 20, 2010
I'm not consistently able to boot into Ubuntu Lucid on my new dual boot (w/ Win7) setup. Machine is a Dell XPS 1645 laptop. Usually it takes 1-3 tries of hard shut down and restart before the OS starts up. Boot info script results are below. Windows starts up fine everytime. What I usually get is this: Dell startup screen, then Grub2 menu, then after selecting Linux kernal a blinking cursor at upper left of monitor and it just hangs.
View 9 Replies
View Related
Apr 12, 2010
I am setting up my test / development machine with the following scenario in mind : I boot the machine and then select one of a number ( e.g. 3 ) boot options in Grub ( Normally "OpenSuse", "Safe Mode" etc., but in this case "System Restore Dev.", "System Restore Test" ). The only difference between these options are the settings ( e.g. "vga=378" ) in these cases something like "distro=dev" / "distro=test".
In a script run on the booted system I can extract the value of the "distro" parameter ( in this case "test" ) and use it as input for a command line tool. Meaning that name entered as the value for the "distro" parameter is used for loading a file when the system is up and running. The command line tool then restores the partition with the contents of the file and reboots the system.Now, my problem is this : How to I access the Grub arguments? Code snippets ( in shell scripting or python preferbly ) are more than welcome.
View 10 Replies
View Related
Jun 3, 2010
Im finally deleting vista from my disk, but as I am game addict I will re-install it afterwards just for games. Now I assume that will overwrite GRUB, so how do I restore boot record and at same time keep my grub config?
View 5 Replies
View Related
Jul 29, 2011
So, I have a netbook with a 320GB harddrive and I'm testing all kinds of fun distros out. Right now I have 11.04, 11.10 daily, Jolicloud, Chromium OS, and MeeGo. Meego uses it's own weirdass boot loader, which sets things up a certain way. My computer has a touchscreen, and I had to modify some things to get it all working properly. Anyway, I reinstalled grub on my main partition (11.04), but now the command I need doesn't go through to meego.
The command is "usbhid.quirks=0x0eef:0x725e:0x40" For my other systems, I have it in /etc/default/grub in the "GRUB_CMDLINE_LINUX_DEFAULT=" line.
Obviously there is nothing like this in Meego, and a thread on their forum said I would have to configure it in whichever bootloader I'm using.
View 3 Replies
View Related
Jun 18, 2010
Ubuntu 10.04 Gnome IBM Thinkpad 600e.I am trying to get sound going in my 600e which has the wrong chips in the sound card. I found some notes from 2008 that said in one of the steps to add the following to my kernel boot parameters: noapci nolapci notsc acpi=off pnpbios=off pci=noacpi
It said to hit the Esc key when I see the Grub Count on boot up to get into the kernel boot parameter's editor. However, I am not seeing any Grub Count and pressing the Esc key every second during boot up doesn't seem to get me there either. I have been searching for how to edit the boot parameters but no luck so far.
View 3 Replies
View Related
Apr 28, 2011
My keyboard doesn't work after the bootloader.
I've read that I need to add "i8042.nopnp=1 i8042.dumbkbd=1" to the boot options.
I have a 10.10 factory disk.
View 9 Replies
View Related
Aug 10, 2011
I have a mental block whenever I'm confronted with anything to do with grub2. Changing things in menu.lst was SO much simpler....
I want to include the command 'acpi=off' - but where do I put it? Can I change the detail of an existing grub entry in this way, or do I have to create a complete custom menu entry in grub.d and include it in that?
View 2 Replies
View Related
Mar 12, 2011
I installed Debian 6 last night on an older Compaq. For the system to properly reboot and shutdown when requested, both acpi=force and reboot=warm must be in the boot parameters, this was required with other Linux distros installed on this hardware. Otherwise, the system erroneously shuts down when reboot is chosen.
I would like to know how to permanently add these so they pass each time the system is turned on.
I already added these to /etc/default/grub (and ran update-grub afterwards) and at the next startup, noticed they were NOT in the parameters when "e" was pressed at the boot menu.
View 5 Replies
View Related
Jul 16, 2015
I'm making some tests with Debian Setup.
As reported by the docs [URL] .... there are some boot parameters available for the Debian Installer.
I would like to try a setup setting the base-installer/install-recommends to false.
This can be done via preseeding, but I'd like to try it out setting the boot parameter.
I've tried several combinations but no one has been effective.
What is the syntax for setting the base-installer/install-recommends parameter to false at boot time?
View 3 Replies
View Related
Aug 16, 2011
I've installed opensuse 11.4 by doing a network install, (boot off kernel + initrd, everything else is fetched off network) and i skipped the bootloader part because i've already got two other linux systems set up with grub2 on my computer. I picked the minimal server install (text mode) and didn't make any other software selectiono changes.
My partition layout is as follows
ssd drive contains / partitions for distributions (GPT layout) hdd drive contains encrypted lvm PV (PV on a luks partition). inside that PV is a VG with volumes for /home and /var (and other), where each distribution has its own /var.
The problem is that i cannot get initrd to open the luks properly. i tried chrooting, rebuilding the image with mkinitrd -f "lvm2 luks" ( i saw that somewhere on opensuse wiki, i think ) and adding boot parameters like this : lvm_box=/dev/disk/by-uuid/<luks partiiton UUID> lvm="box" (where box is the name of the lvm array).
[Code]...
View 1 Replies
View Related
Feb 2, 2010
I have a generic monitor which has problems with many Linux distros. We can boos Sugar on a Stick v2 by pressing <tab> at the Sugar splash screen and adding the boot parameter "nomodeset". I'm handy enough to do this, but my wife, well, not so much. So is there a way to make that boot parameter permanent?
View 1 Replies
View Related
Feb 8, 2011
I own an HP Envy 14 [url]. Letting Ubuntu (or any Linux) attempt to boot into a Live CD without changing any parameters results in a black screen, but with everything else working (for Ubuntu, that means the login sound is played). I've discovered that putting nomodeset in the kernel line will allow me to get so far as a command line, but I can't startx from here (I get "Screen(s) found, but none have a usable configuration."). I think my issues have something to do with the dual/switchable graphics in my laptop.
View 7 Replies
View Related
Apr 17, 2011
One day I turn on my laptop and everything is starting up normal I get to the screen that shows Ubuntu loading then it changes to Nvidia Bata screen then back to Ubuntu loading then back to Nvidia. It wont get past that part.
I have looked on Google and and tried many things like:
-dpkg-reconfigure xserver-xorg, and sever different varies of it. I read that I should get another screen to pop up. Non of that happens and still the same problem.
-I tried to boot with the live ISO and
mkdir /mnt
mount /dev/sda5 /mnt
chroot /mnt
dpkg-reconfigure xserver-xorg
reboot
that didn't work either.
-I went into recovery > failsafe and it kicked me out back to the recovery mode menu.
-I tired to remove nvidia drivers
-I tired to reinstall nvidia drivers
View 9 Replies
View Related
Feb 8, 2010
How do i find out the exact kernel parameters (from the grub config file) when the boot loader is corrupt. Seems like a catch 22 that I need the exact boot parameters when I cant get to a prompt to read the grub.conf file to being with.
View 2 Replies
View Related
Nov 29, 2010
i am trying to change the boot order on the GRUB menu so that the countdown automatically starts on an older kernel. From what i can see all the solutions on the web want me to edit the /boot/grub/menu.lst file. The problem is that i don't have one. Someone also mentioned that if i don't have a menu.lst file then i should look for the grub.conf file. I don't have on of those either. The closest thing in /boot/grub is grub.cfg but that looks nothing like the descriptions i have heard of /boot/grub/menu.lst file
View 5 Replies
View Related
Apr 15, 2011
I'm using RHEL 4.6. auditd was set on for run levels 1-5. I changed something (?), now my system won't boot. It hangs on "Starting auditd:". I tried adding "enforcing=0" to GRUB. I tried adding "selinux=0" to GRUB. I tried adding "auditd=0" to GRUB. I've tried them separatly, as well as, in various combinations. I've tried entering "I" to go into interactive mode but, I'm not fast enough to hit that millisecond window. How can I skip/get pass the "Starting auditd:"?
View 5 Replies
View Related