Ubuntu :: Automatic OS Detection Won't Find It When Run The Mkconfig Command On Grub2's Wik

Dec 15, 2010

I changed the grub2 on my /dev/sda to Arch's version, instead of Ubuntu's, and now I keep booting into the initramfs prompt whenever I try to use Ubuntu. The automatic OS detection won't find it when I run the mkconfig command on grub2's wiki, and I currently have the following in /etc/grub.d/40_custom:

Code:

enuentry "Ubuntu Linux" {
set root=(hd0,3)
linux /boot/vmlinuz-2.6.35-23-generic
initrd /boot/initrd.img-2.6.35-23-generic root=dev/sda3 ro quiet
}

Which according to my partition layout, and a double check on gparted, is correct. Do I need to flag it as boot or something else? I tried putting Ubuntu's grub2 back on with the live cd but it kept saying /dev/ was busy.

View 9 Replies


ADVERTISEMENT

Fedora Installation :: Automatic Swap Detection And Mount?

Jun 8, 2011

I've installed FC 15 on a USB stick (it is not a live usb, it is a regular installation on a usb stick), and I am looking for a way to automatically detect and mount swap partitions on a host system where usb stick is plugged in. I am using many FC boxes and almost all of them have a swap partition on the hard drive and I would like to use them even if I boot my system from a usb stick.

View 4 Replies View Related

Ubuntu Installation :: Automatic Grub2 Choice On Remote Reboot?

Jan 10, 2010

I'm trying to figure out if I can do a remote reboot (eg over ssh) and specify a new grub2 os choice for the next boot only (once), in order to boot windows remotely once, but then back to linux on the next reboot.I found this related post for grub, but won't work for grub2 ( I never tried it with grub for a remote reboot)[URL]which suggests changing the default menu option with the once flag:

[root@localhost ~]# echo "savedefault --default=2 --once" | grub --batch
[root@localhost ~]# reboot

I'm just starting to work with grub2 and am not at all clear whether I can do anything similar

View 4 Replies View Related

Programming :: Detection Of A Command In Shell?

Apr 2, 2010

I would like to know if there is any way to detect a command if it going to be executed in the shell?

Eg:
Cmd: sudo apt-get clean I want a C program to be called before this cmd is executed.

View 8 Replies View Related

Ubuntu Installation :: Dual Boot With Debian - Write /dev/sda1 To The Bootloader Rather Than /dev/hda1 Using Grub-mkconfig?

Aug 19, 2010

I installed Debian on my PC and then installed Ubuntu. This worked fine and I could dual boot between the two. The PATA disk was /dev/hda on debian and (I think) /dev/sda on Ubuntu. I copied the entire disk to a sata disk using dd from knoppix and put the PATA one to one side. Now the Ubuntu comes up fine but when I boot debian, it complains about references to /dev/hda1, which is present in grub - root=/dev/hda1. Debian now expects sda references rather than hda references. How do I persuade Ubuntu to write /dev/sda1 to the bootloader rather than /dev/hda1 using grub-mkconfig?

View 1 Replies View Related

Hardware :: Automatic Native Command Queueing?

Sep 14, 2010

Is NCQ(Native Command Queueing) usually automatically enabled by libata when a disk supports it? I am using libata.force=ncq in my command line and wonder if forcing it might hurt the drive.

View 5 Replies View Related

Networking :: MTR Command Automatic Restart Of Statistics?

May 9, 2011

I have been searching this on the internet bu havent found anything so far.Is it possible to run the matt's traceroute utility and have it restart at intervals of 1 seconds?

View 2 Replies View Related

Software :: Automatic Downloader For Command Line

Jun 23, 2010

Have you anyone knows/uses some automatic downloader with automatic captcha recognition system for most popular sites like rapidshare, hotfile, megaupload and so on. I need possibility to run it from command line as I have headless system.

View 1 Replies View Related

Ubuntu Installation :: Grub2 Does Not Find Filesystem?

Jan 11, 2010

Here is my problem. Grub2 outputs error: unknown filesystem. Then when i use "ls" command it outputs this:
(hd0), (hd0,4), (hd0,2), (hd1) and when i "ls (hd0,4)/ or any of them it says: error: no such disk

So, heres my story. I dual boot vista and ubuntu from my main 320GB hdd. Today i tried to fresh install 9.10 on a different external hdd. The 500GB hard drive already had two partitions, a 30GB Fat32 and the rest NTFS. both of these partitions had about 17GB used on them. I installed off a cd and i shrunk the NTFS to allow for more partitions. I made a 4gb swap as logical at the end then a primary ext4 / partition in front of it. The drives are Fat32 sdg0, ntfs sdg1, then an sdg3 (which im confused about and says is extension), and sdg4 (with linux) and sdg5 (swap). When finished with the partitions it asked me to select where to mount the ntfs and i said /windows. When i tried to boot up it did not recognize my external apparently because it was plugged in via firewire. I switched to usb and it booted but then i got the error message in grub. Also, when i switched from firewire to usb the drive changed from sdb to sdg. How do i fix this problem? Will reinstalling ubuntu fix this? Is there an easier way? I tried reinstalling grub but it did not work.

View 1 Replies View Related

Ubuntu :: Grub2 Can Not Find Device For /, Big Mess-up?

Feb 24, 2010

I had grub trouble with a hardware change and have been trying to solve this. I think I have done more harm then good. I can not boot into Ubuntu or Windows 7. Here is the boot info script and other info on my problem. Can someone please help me with this,

Code:
Processing triggers for libc-bin ...
ldconfig deferred processing now taking place
ubuntu@ubuntu:~$ sudo os-prober
/dev/sda1:Windows 7 (loader):Windows:chain

[Code]....

View 9 Replies View Related

Ubuntu :: Get Grub2 Find Newly Installed O/s

Mar 19, 2010

I'm playing with my hard drive partitions and trying out different O/S versions so I want Grub2 to be aware of them on its boot menu. Currently I'm using the maintainer's version of Grub2 that came with karmic. Do I have to do a re-install of Grub2 or is there a makefile I can use? Specific commands that I would need be nice.

View 5 Replies View Related

Fedora Networking :: Enable Automatic DHCP Through Command Line?

Jul 15, 2011

How to enable automatic DHCP on Fedora15, in network settings, i chose method Automatic DHCP on IPv4 settings and in proxy settings , i chose method as automatic. However, it is not working.

View 1 Replies View Related

General :: Grub2 Does Not Find Windows XP

Dec 5, 2010

Sda2 is normally xp windows, but it installs a wrong partition type, and when I apply the mbr.bin, it works again with grub2, nope, it says:

Code:
autochk not found

Code:
# fdisk -l
Disk /dev/sda: 60.0 GB, 60011642880 bytes
255 heads, 63 sectors/track, 7296 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x0005c9c1 .....

If I put the mbrofxp.bin (bs=512 count=1), then xp boots well but no grub2 so no linux

View 1 Replies View Related

CentOS 5 :: Network Installer Automatic Settings (Script Or Command Line)

Nov 2, 2009

Next week we will get a new Server for rent with a preinstalled Debian. If we download the Networkinstaller and put it in Grub, it is possible to set some settings with a script or commandline? We need SSH and the Network haves to run. So we have to set up the Networkadress , Gateway and Netmasq. So if the Networkinstaller is booting that we get direcly access with SSH to install CentOS. It is possible?

View 1 Replies View Related

Ubuntu :: Error "grub-mkconfig Not Successfully Completed..login As Root"

Jun 20, 2011

i have ubuntu 11.04 natty OS running on my laptop.i customize splash images using grub customizer but now its not working with error "grub-mkconfig not successfully completed..login as root".

View 9 Replies View Related

Ubuntu :: Grub2--script Command Doubt?

Feb 23, 2010

I am on my way to coustomize grub2 n believe me i am trying very hard.....I found out about writing our own scriptslike

cat<<EOF
menuentry "Reboot"
{

[code]....

View 9 Replies View Related

Ubuntu :: Command To Locate Where Grub2 Is Installed?

May 14, 2010

I'm trying to find out which partition grub2 is installed in. Is there a command for this, as I suspect that I may have told it to install to the wrong partition during the upgrade from Karmic to Lucid, and now, I suspect that I've crippled the boot sector for my vista installation

View 6 Replies View Related

Software :: Grub2 Find The Grub.cfg File?

Mar 10, 2010

How does Grub2 find the grub.cfg file?

I have (among others) these partitions:
/dev/sda5 'newsys' - my current system partition (Ubuntu Karmic, 64-bit)
/dev/sda2 'oldsys' - the original system partition
/dev/sda1 'boot' - mounted at /boot when running 'newsys'

[Code]...

View 8 Replies View Related

Debian :: Solved - Grub2 Cannot Find Root Device?

Jul 23, 2011

I have a raid array using mdadm made up of two drives. The drives have two parts, the first for boot information and the 2nd for LVM. Everything but /boot is under LVM management. Originly the two drives were hooked up to a sata controller in a computer with no on-board sata. However I was not able to get the computer to boot to a sata drive off of that controller. So there was an IDE drive with the MBR that loaded grub.

Now the computer in that setup seems to have died. So the drives were moved to another computer with an on-board sata controller and now the bootup works as far as getting to the grub menu. However after the grub menu the error message "Cannot find root device"

I found the boot info script [URL].. note at the time that was run the computer was running with one drive that has a full Debian install with the raid drive in question mounted and chrooted into. The script was ran from the chroot envirment.[URL]..

View 2 Replies View Related

Debian Installation :: GRUB2 Can't Find Encrypted Device?

Nov 14, 2010

I've installed a Squeeze-based distro - Crunchbang - with an encrypted root partition (no LVM), and it won't boot.

Here's what I get: Loading initial ramdisk. Loading, Gave up waiting for root device ALERT! /dev/mapper/hda5_crypt does not exist. Dropping to a shell!

Here's my partition table:
hda1 - Windows (Truecrypted)
hda2 - GRUB2
hda5 - /
hda6 - unused swap

[Code]...

What should I look for? Where do I go from the initramfs shell? Do I chroot? What then? This might be a Crunchbang issue (although others blame LVM which I didn't use, and it's the original Debian installer after all), but there's gotta be a reason it doesn't boot

View 1 Replies View Related

General :: Find Mechanism With Irregular Expression (find Command) Or Perl?

Sep 7, 2010

I have 4 Linux machines with cluster.My target is to find all kind of IP address (xxx.xxx.xxx.xxx) in every file in the linux system remark: need to scan each file in the linux system and verify if the file include IP address if yes need to print the IP as the following

more /etc/inet/file.example1

182.23.2.4
255.255.0.0
10.10.1.1

View 1 Replies View Related

General :: Find/grep/wc Command To Find Matching Files - Print Filename And Word Count?

Sep 11, 2009

I am trying to do a find/grep/wc command to find matching files, print the filename and then the word count of a specific pattern per file. Here is my best (non-working) attempt so far:

wc `find . ( -name "*.as" -o -name "*.mxml" ) -exec grep -H HeightResizableList {}` ;

View 10 Replies View Related

General :: Command Line - Use Find To Find Text Files?

Jul 15, 2011

Is there a way to specify to find that I only want text files (and not binary files)? Grep has an option to exclude binary files, so I thought find probably has a similar feature, but I've been unable to find it.

View 2 Replies View Related

Ubuntu :: A Command To Find A Command With A Specific Substring?

Mar 19, 2011

want to know if Ubuntu provides a command to search for a command having a specific word.e.g.If I know a command contains editor as a substring but don't know exactly what the command is,then is there a way to find that command or the list of commands having editor as a substring.

View 1 Replies View Related

Ubuntu :: Find Command Does Not Find All Files?

Aug 9, 2011

The find command does not seem to find all files in my directory hierarchy. My home directory is automounted from a server. The command to illustrate this is:find | sed -e 's/^.///' | sed -e 's//.*//' | sort -uThe result misses several directories. Likewise, a find of a particular file, like:find . -iname *sample* -printwhere sample_file.txt resides in one of the directories that is missing in the first find command, finds nothing

View 4 Replies View Related

General :: Find Setuid Files Using FIND Command?

Jan 25, 2009

I know how to search for normal files but can you let me know " How to search for 5 setuid files on the system. Also explain, for each file, why setuid mechanism is necessary for the command to function properly"

View 1 Replies View Related

General :: Find A File In Directories Without Using Find Command?

Aug 3, 2010

am new to linux and trying to find a file in sub directories using find command as:find .-name *.jpg -type fBut I am unable to get the result as find command is not permitted by the server administrator.Is there any way to find files without using find command.

View 14 Replies View Related

General :: Setting Command-line Console Resolution Vbeinfo In Grub2 Does Not Report All Resolutions?

May 6, 2010

I have a Asus EEE PC 1005P which I installed a Command-line system on using the Alternate Installer CD of Ubuntu Lucid Lynx. Altough I think this is a general linux and grub2 question. I do not have (or want) the X Window System installed. I want to change my console screen resolution (not inside X) to 1024x600. But it isn't reported when I use vbeinfo inside grub:

grub> vbeinfo
VBE info: version: 3.0 OEM software rev: 1.0
total memory: 8128 KiB
List of compatible video modes:
Legend: P=Packed pixel, D=Direct color, mask/pos=R/G/B/reserved
0x112: 640 x 480 x 32 Direct, mask: 8/8/8/8 pos: 16/8/0/24

[Code]...

Does it mean I have the driver? how to set it to 1024 x 600 in grub2?

View 1 Replies View Related

Programming :: Way To Find Core Files In System With Out Using "Find" Command

Jul 30, 2010

Is there any way to find the core files with out using the FIND command?

View 1 Replies View Related

Ubuntu Installation :: Grub2 Can't Load Window 7 After Recovered Grub2 Using Live Cd To Boot Windows 7

Mar 7, 2010

i initilally installed ubuntu 9.10 then installed windows 7 ,then i recovered grub2 using livecd as told in the post [URL] i did "sudo update-grub" and got windows 7 menu entry but when i select that entry windows 7 does not load but the grub2 is reloaded again.
i cant boot to windows 7.

Windows 7 have 100 mb partition "System Reserved" the grub2 points to that partition but still windows 7 not loaded.

sudo fdisk -l
Disk /dev/sda: 320.1 GB, 320072933376 bytes
255 heads, 63 sectors/track, 38913 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk identifier: 0x3c3a81f5

[Code]....

View 3 Replies View Related







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