General :: Pass Kernel Argument To Load Ubuntu?

Mar 11, 2010

The ide has xp and I installed debian on the sata, the duel boot worked fine and still does. I then installed unbuntu on the sata along with debian but can't access unbuntu. when I tryed to install grub it error'd out so I bypassed that and finished the install. It told me I would need to pass a kernel argument to load ubuntu but I'm clueless about what that means.

[code]...

View 8 Replies


ADVERTISEMENT

General :: How To Pass Argument From Command Prompt?

Jan 5, 2011

when I am running the script below,it performs on whatever logfile u type ,i.e, ./scriptname logfilename.But how do I convert it into a function and then call it from another script.I mean how do I prompt the user to enter a logname and then capture the name in the function and when calling this function from another script how do I pass the parameter.

View 3 Replies View Related

Programming :: Pass Complicated Commands As Argument To Another Script?

Apr 21, 2010

I am attempting to script some tasks I have to do, but I have no control over one of the scripts I have to use... and they output all kinds of useless things on the screen. My goal is simple: Capture all output from their scripts, and create a progress line that only shows the most recent output from their stuff. So, here was my first solution; a file I called "spin":

Code:
#!/bin/bash
spinX(){
PROC=$1
STRT='date "+%s"'
while [ -d /proc/$PROC ];do
last3=" 'getLine $2' "

To use it, you pass it a process ID and a file that contains the output from that process. As the process continues, a kurby dances on the screen (To let you know that the process has not hanged), and the tail of the output is shown (To let you know what it is doing). When the process ends, the kurby stops dancing and the time it took is displayed.

And here is the file I call "noise":
Code:
#!/bin/bash
while [ i -lt 100 ];do
i=1
echo "Look at me count!$"
sleep 1
let "i=$i+1"
done

This does nothing but create random output, for testing. It counts from 1 to 99 on the screen. To run my test, I do the following:
Code:
(noise) &>tmp.txt & spin $! tmp.txt

It works relatively well, but it is messy. I don't like creating a temp file, and I don't like the messy syntax for calling my program. I decided that I would rather move everything into the spin program, to make using it less messy:
Code:
#Spin Psuedo code
#$1 = command I am about to run
(exec $1) &>tmp.txt & spinX $! tmp.txt

By executing the process inside of the spin code, I can get rid of the tmp file later on without changing a lot of scripts (Or move it, or whatever). I can also call it by passing the command to the script, which I find more elegant.

So here is what I would like to know:
1) If possible, I would love to get rid of the tmp file all together, and store the most recent line of output from script 1 into a variable that script 2 can print out instead... is it possible?
2) How can I run a random command that is passed as an argument? Basic ones work fine, but anything with a pipe fails me.

Example of a script:
Code:
#!/bin/bash
#myEcho.sh
echo;echo "Recieved command: ";echo $1;echo;
echo "Attempting to run command: ";echo
exec $1

Example code for passing commands to script:
> myEcho.sh "ls -al" #works
> myEcho.sh 'ls -al' #works
> myEcho.sh "ls -al|grep *.sh" #fail
# Output:
#ls: invalid option -- |
#Try 'ls --help' for more information.
> myEcho.sh "ls -al|grep "*.sh"" #fail
# Output:
#ls: invalid option -- |
#Try ls --help' for more information.
> myEcho.sh 'ls -al|grep *.sh' #fail
# Output:
#ls: invalid option -- |
#Try 'ls --help' for more information.

View 8 Replies View Related

CentOS 5 :: Pass Shell As Command Line Argument When I Ssh To An Account

Jan 25, 2011

I want to have a choice or more preferable pass shell as command line argument when I ssh to an linux account.i.e. If John logs in to account "zzz" on server "abc", by default definition of account "zzz" n server "abc" he get csh.But Sally desires that when she logs in to account "zzz" on server "abc", she needs the login shell to be ksh,and Rick wants bash when he logs in to account "zzz" on server "abc".What is the most non-intrusive / easiest way to achieve this? Each user can set their preference on ssh command line or create a simple alias by each shell, but not sure how to do this.

View 6 Replies View Related

General :: Pass Options To A Kernel Module Through The Boot Parameter?

Nov 4, 2010

I have an issue that is fixed by changing the lpfc driver to run using MSI interrupts. This is done by adding "options lpfc lpfc_use_msi=2" /etc/modprobe.conf.local file.

Is there a way to make this change using kernel boot parameters?

View 1 Replies View Related

Ubuntu :: Write A Base Script Which Will Divide An Argument By 10 And Then Use That Argument In Another Program?

Feb 23, 2010

I'm trying to write a base script which will divide an argument by 10 and then use that argument in another program. Since my argument can be a floating point number, I used bc to accomplish this. Here's an example of a simplified version of what I have so far:

<code>NUM=$(echo "scale=25;$1/10" | bc)
#make sure the first argument was formatted correctly
if [ $? -ne 0 ]

[code]...

View 4 Replies View Related

CentOS 5 :: How Do I Boot Into Rescue Mode With Noapic Kernel Argument

Sep 5, 2009

I installed ubuntu on a second hard drive.Nowhere did the fracken ubuntu installer ask my permission to over-write my mbr but that's exactly what it did.I'm booted off the rescue CD trying to restore the mbr to how centos left it (I'll add ubuntu to grub manually) but I can't boot into rescue.linux rescue results in a kernel panic suggesting I need the noapic argument. Makes sense, I needed that to install and need that in grub.linux rescue noapic boots into the installer, not rescue.How do I boot into rescue mode with the noapic kernel argument?

View 2 Replies View Related

Ubuntu :: "Can't Load Vesafb.ko: Invalid Argument" On Boot?

Feb 13, 2010

Can't load vesafb.ko: Invalid Argument" on boot

View 1 Replies View Related

General :: Automatically Load Kernel Module?

Aug 6, 2010

I'd like openSUSE to automatically load a kernel module (e.g. libsas) at boot time even no device requires it. In Ubuntu, you would add the module name to the file /etc/modules. Is this the correct place for openSUSE as well?

View 1 Replies View Related

General :: Cannot Boot Sda1 - Load Kernel First

Jul 3, 2011

Ubuntu 9.1 is installed in sda1, however, while creating a separate boot partition an error occurred and now I can not boot sda1. I get the message load kernel first. I have tried without success to learn to load a kernel.

View 5 Replies View Related

General :: Triple Boot - Need To Load Kernel First

Aug 15, 2010

I have installed Linux Mint 9 within Win XP and have installed an additional HDD as a Slave on the same IDE cable as my DVD drive. I installed ubuntu on to the additional HDD using the live CD and when I try to boot the computer I am greeted by two versions of GRUB?! First version appears to be the one that comes with Mint and so asks me to boot either Windows or Mint, when I select Mint I get ubuntu's version of Grub, it asks me to boot one of three OS's; here's where it gets weird:

Top of screen says:
GNU GRUB Version 1.98-1ubuntu5-1mint2
If I select Win, it boots fine. If I select Mint it boots fine however if I select Ubuntu it says:
error: no such device
error: file not found
error: you need to load the kernel first

I pressed "e" within grub and was faced with this:
insmod ntfs
set root ='(hd1,1)'
search --no floppy --fs-uuid --set f6422203421e479
loopback loop0 /linuxmint/disks/root.disk
setroot =(loop0)
linux /boot/vmlinuz-2.6.3-21-generic root =dev/sdb1 loop=/linuxmint/disks/root.disk ro quiet splash
initrd/boot/initrd.img-2.6.32-21-generic

View 6 Replies View Related

General :: Grub 0.97 CLI To Load Kernel - And Boot On OpenSuse10

Aug 29, 2010

I unfortunately remove "some" softwares on my OpenSuse10 (preinstalled on my laptop, without cd driver) cause I was running out of space on hd. Icons starts to dissappear ...

Then I have only the Grub 0.97 shell that appears and to use to solve the problem... tried to boot kernel, but said that it "must be loaded before boot".

In the Grub 0.97 black window I have two lines :

I press "b", to boot with the First line : kernel (hd0,2)/boot/vmlinuz ... but the window turns blue and said "all data would be lost", so it shut down the system automatically to avoid this.

I press "e" to edit the command in the boot sequence for the same line, but don't really know what to tell Grub to do.

I must get my important datas back on my hd before "Restore to factory settings" (the last option). Any solution ?

Maybe it is a step on a solution ?

From [url] I downloaded linux kernel 2.6.27.27 on a usb memory stick. Could it be useful ? how to ?

View 9 Replies View Related

General :: How To Load A Kernel 2.6 Module With F Force Option?

Jan 21, 2010

I have a loadable module, simple enough I believe it should run on any 2.6 kernel. I want to force the load and test that assumption. How can I do it?

ismod does not seem to notice the -f in 2.7 modprobe has -f but cannot locate the module.No go. So I read the manpage for modprobe which says: modprobe looks in the module directory /lib/modules/'uname -r'.So I copied MYMODULE.ko to /lib/modules/2.6.(the only directory in here) and type: modprobe -f MYMODULE.ko.Still can't locate MYMODULE.ko.I notice there are no other .ko modules in that directory; so I go in deeper to kernel/drivers/char, guessing about the char directory, and copy MYMODULE.ko there.

View 1 Replies View Related

General :: Update Manager - Error: You Need To Load The Kernel First

May 25, 2011

I updated the Ubuntu version 10.04.1. After updating the program it tells to restart the system. After restarting the system the following message appears:

error: can not read the linux header
error: you need to load the kernel first

View 4 Replies View Related

Ubuntu Installation :: Kernel 2.6.28.1 On 9.10 Grub Kernel Load Error

Jan 4, 2010

Over the past few days I have been trying to install an older kernel (kernel 2.6.28.1) on ubuntu 9.10 64-bit WUBI installation. I compiled, installed, and updated my grub for the kernel. When I reboot, the grub menu correctly gives me the option of booting into the older kernel but when I do so I receive the following error message:

error: you need to load the linux kernel first.

I am at a complete loss on how to fix this. I even downgraded grub but I still get the same error.

View 2 Replies View Related

Ubuntu :: Losetup Disk Encryption - Ioctl: LOOP_SET_STATUS: Invalid Argument, Requested Cipher Or Key Length (128 Bits) Not Supported By Kernel

Dec 14, 2010

In 10.04 I was using the following commands to mount an encrypted disk image:

Code: sudo losetup -f Which tells what loop back device block is available Then I'd type:

Code: sudo losetup -e aes /dev/loop0 /home/user/crypt.img and then enter the device's password

Code: sudo mount -t ext4 /dev/loop0 /media/crypt I've tried this in 10.10 and it hasn't been working (I can't remember if I did anything in 10.04 to make it work). I've installed the loop-aes-utils package and restarted my machine. Every time I try the 2nd step, after entering the password I get: Code: ioctl: LOOP_SET_STATUS: Invalid argument, requested cipher or key length (128 bits) not supported by kernel

View 1 Replies View Related

OpenSUSE Install :: 11.2 From DVD - Load Kernel Operation Hangs At 97% (using Both Normal And Safe Kernel)

Feb 23, 2010

I am an experienced Linux admin and have been using SuSE for many years. My development machine has had every version of SuSE since '02 and although it is a little old, is in good working order. (AMD
2400, 2 gig RAM, 160 Gig IDE disks - SuSE on disk 2) (OpenSuSE 11.1 with the latest kernel works perfectly. This install is on a spare HDD prior to doing a full install on my usual HDD.)

When I try to install SuSE 11.2 from DVD, the load kernel operation hangs at 97% (using both normal and safe kernel), however, I can install from live CD without any problem. I have tried the same DVD on a few "older" machines and had the same problem. I initially thought it was the actual DVD but re-burning has the same problem. I have also tried another DVD writer - same problem.

View 1 Replies View Related

General :: Grub - Error "You Need To Load The Kernel First"

Jan 24, 2011

I installed bt4 alongside my windows and fedora13 partition, but my fedora won't boot after that, so I updated grub to 1.96, but still fedora13 won't boot, it displays the error, "You need to load the kernel first". When I try to boot fedora from grub command line, linux (hd0,6)/boot/<TAB> it does not show any entry, although my fedora partition is intact with vmlinuz and initramfs inside the /boot directory. BTW (hd0,6) is my fedora13 partition, file system on fedora13 is ext4, while on bt4 it is ext3.

View 2 Replies View Related

Ubuntu Installation :: Kernel Not Load In 9.10?

Mar 18, 2010

I m new user for Ubuntu..I m using ubuntu for last 5 Months.I love very much and also i m spreading ubuntu community in my place.I have a problem now to use Ubuntu.When i on the ubuntu...Its says in grub kernel is not load...

View 1 Replies View Related

Ubuntu :: Default Kernel To Load?

Sep 11, 2010

I can choose which kernel I want to boot by default, instead of having to hold the shift key down every time I want to choose the kernel I want to boot into. I am running multiple kernels.

View 1 Replies View Related

Ubuntu :: Manually Load Into 10.4 Kernel-2.6.32-24?

Nov 18, 2010

My machine starts and the grub rescue> flashes .... i tried to manually load into my ubunutu 10.4 kernel-2.6.32-24my commands were

grub rescue>
set prefix=(hdx,y)/boot/grub
insmod linux

[code]....

View 4 Replies View Related

Ubuntu :: Grub2 - How To Load A New Kernel To It

Nov 28, 2010

i have just finish compiling a new kernel from source and would like to know how to load it in to grub2 i know grub the older version was easy to setup with the new kernels but i am not really in to grub2 to know how to load a new kernel to it.

View 1 Replies View Related

Ubuntu :: New Kernel Won't Load In Burg

Jan 15, 2011

I am running Maverick and I want to install kernel version 2.6.35-25. I marked all the available options in Synaptic, but the new kernel won't load in burg. What else am I supposed to install?

View 3 Replies View Related

Ubuntu :: Error: You Need To Load The Kernel First

Jul 16, 2011

Well after a power failure yesterday this is what I get:

Grub loads with 4 options ....

Choose to load Ubuntu I get ...

Error: cant load file Error: you need to load kernel first

I'm a N00b, got ubuntu 11.04 loaded on a 250 gig worked great till power failure

View 3 Replies View Related

General :: Setting Tcp Ip Argument While Booting Up?

Nov 23, 2010

how to set the tcp ip parameter while linux boots up in my board.

Currently i am giving it like : tcp ip=:::::eth0:dhcp

If i have my own static ip and its corresponding mac-id can i change it for my board when i boot up.

View 1 Replies View Related

Ubuntu :: Grub2 \ When Go Boot From A DVD It Says To Load The Kernel First?

Mar 25, 2010

On Grub legacy i used a menu entry to boot from a DVD since the bios on my pc doesn't recognize my DVD burner.... So before on the old grub i can just added this menu entry and it all worked...title DVDroot(hd0,0)kernel /boot/grub/memdisk.bininitrdboot/grub/sbootmgr.dskthen grub 2 came along and that all changed..on the 40_custom file i added this

menuentry "Boot DVD Drive" {
set root=(hd0,0)
linux /boot/grub/memdisk.bin

[code]....

View 4 Replies View Related

Ubuntu :: Panic At Kernel - Lucid Won't Load

Jun 6, 2010

I went to fire up Lucid this after noon and it gave me this error message. I didn't want to write all of that down so I took a picture. After several minutes it did nothing. I then decided to do a hard restart. This time it isn't giving a signal to the monitor. The monitor is less than half a year old, but I tried another. Still nothing. It show's no signal like it's not even hooked up to a machine. It doesn't even show the BIOS menu! I don't know if this is the cause or not but, I left my computer at my mothers house last night were they had a thunderstorm.

I have several applications like Virtual box and Mobloquer that took a hell of a long time to setup. Plus three guest operating systems, and some work that I didn't backup like videos. If we can get this up and running without re-installing.

View 5 Replies View Related

Ubuntu Installation :: Error: You Need To Load The Kernel First 9.10

Jun 28, 2010

I have windows xp and now I have installed UBUNTU 9.10. When my laptop starts it comes up with the option of Windows Xp and Ubuntu. Selecting windows xp works fine here but Selecting UBUNTU comes up with another screen giving three options.

1. UBUNTU
2. UBUNTU recovery and
3. Windows Xp

Selecting any of the above doesnt work here. With option 1 & 2 it gives the error message

error: you need to load the kernel first

I am totally new to this UBUNTU.

View 1 Replies View Related

Ubuntu :: Kernel Takes Almost 2 Minutes To Load?

Jun 29, 2010

Title describes the problem rather well. After selecting Linux 2.6.23-22-generic 64-bit in the GRUB bootloader, I am staring at a black screen with a white flashing underscore for almost 2 minutes (usually between 1min40sec and 2min). The Linux kernel is loading here, and it's taking forever!

Once Plymouth starts it barely even manages to flash into view before it's done and I get to login, so bravo @ Canonical.

But seriously, I need that boot time cut down A LOT.

Since I'm assuming it has quite some relevance, here's all my installed programs: (So if you know any offenders you can point them out)

EDIT: I can see it also lists packages I've removed after installing them. Removed packages are listed as "deinstall" and are, obviously, NOT installed or functioning, but their config files remain I assume.

Code:
acpi-supportinstall
acpidinstall
adduserinstall
adium-theme-ubuntuinstall
aisleriotinstall

[Code].....

View 1 Replies View Related

Ubuntu :: LTSP Kernel Panic - Nothing Seems To Load ?

Jul 18, 2010

I've installed LTSP on 10.04. I can get a couple of (fairly new) laptops to boot from this so all appears to be fine.

But my key goal is to get ASUS K8S-MX motherboard with sis 190 lan to boot so that I can set up a computer lab.

All seems to go well on boot but

When loading essential drivers, nothing seems to load and I get a done.

Then running /scripts/init-premount I get no interfaces found.

Then mounting root file system It starts Running /scripts/nfs-top and drops into kernel panic.

View 2 Replies View Related







Copyrights 2005-15 www.BigResource.com, All rights reserved