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
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]..
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
Grub2 fails when trying to boot into Win 7 from Grub2 menu. No such a device. I did run boot_info_script055.sh Here is the result:
Boot Info Script 0.55 dated February 15th, 2010 ============================ Boot Info Summary: ============================== => Grub 2 is installed in the MBR of /dev/sda and looks for (UUID=34c6661d-7609-441c-b7b9-1d60d1e44fd5)/boot/grub.
Recently, I created a device sc0 through device mapper. The divice could be found in /dev/mapper/sc0. My problem is that the device doesn't exist in /dev/partitions which will block my following test.BTW, I found dm-0 in /dev/partitions. Is it the same as /dev/mapper/sc0? But the device /dev/dm-0 doesn't exist!
I used to have 2 HDDs for ubuntu: 1 x 80GB and 1 x 500GB The 500GB disk was my /home directory and is now used exclusively for Windows 7. I have now moved /home to the 80GB drive and have modified /etc/fstab to point /home to /home rather than /dev/sdb1. However, I cannot boot into ubuntu. I have tried using Super Boot Disk cd-rom but still no joy. I think I need to fix grub and have tried by booting into a Live-CD and following a tutorial I found on the forums but it complains about not being able to find a device.map I guess this has something to do with the fact that the 500GB HDD is now gonoe but am not sure how to resolve this issue. how to recreate this file but the command failed.
I just compiled my first own kernel (I'm using Arch Linux), following the tutorial on the german site. Now I tried to boot it, I ended up failing with this message: Code: Waiting 10 seconds for device /dev/sda1 ... Root device '/dev/sda1' doesn't exist, Attempting to create it. ERROR: Unable to determine major/minor number of root device '/dev/sda1' Here is the important part of my menu.lst:
[Code]....
I simply copy&pasted the Arch-entry, i.e. I also had the disk by uuid there. The failure message was the same, just the root device name was the different name Also, at first I did not have the initrd line in my menu.lst (as written in my tutorial that I may not need it). In this case I had this error message:
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.
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.
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.
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'
So I've a computer with a lot of disks which is running Ubuntu 9.04. The setup is made od a software raid 1 array of 200 MB for use in /boot (md0), then another raid1 array of the remaining space as a unique PV for the LVM2 vg0. This vg0 is split in many lv, for /, /usr .... and swap. A few days back, one of the raid1 disk went wrong. So as the raid is built on 160Gb disks and nobody in my town sells so little disks I bought a couple of 320GB disks. The partitioning was made like the original partitions, except that the second partition is way bigger than it was. I replaced the failed disk in the arrays, and now I've an md0 of 200 MB and an md1 of roughly 150GB as it was previously and all is in sync. This replacement was made using a rescue disk (in order to be sure that the machine was not locking anything...)
So I thought it was fine. But upon reboot on the hard disks, I get a fast GRUB message "error: no such device : <UUID ending in 4ec05>. when I start the first Ubuntu entry I get the same error. So I edit the boot entry, remove the "search --no-floppy --fs-uuid --set <UUID ending in 4ec05> " and boot the damn thing. When booted I ran :
I have been working on this for a week now, and I am still getting an error on boot up from GRUB 2.
It tells me "ALERT!! /dev/sda5 not found" basically. I've tried purging and reinstalling GRUB 2 (from within Ubuntu and from a Live CD) to no avail. I never had any boot problems running karmic (9.10); these problems appeared and have persisted upon upgrading to lucid (10.4, which included upgrading from GRUB Legacy, I believe), and then on to maverick (10.10).
This error takes about 20-30sec to crop up in the boot sequence, and then I am given an "(initram)" prompt. If I wait a few seconds and then type "exit," the system boots up quickly with no problems (aside from issues w/ plymouth, but that's for another thread).
I have included the "Results.txt" file generated by boot_info_script.
Code: Boot Info Script 0.55 dated February 15th, 2010 ============================= Boot Info Summary: ============================== => Grub 2 is installed in the MBR of /dev/sda and looks on the same drive in partition #1 for (,msdos1)/grub.
What command do I need to use to find the device name of drives , in particular an inserted USB drive that is not mounted yet ?Everywhere I search tell me to do this:
Code: tail -f /var/log/messages But that file doesn't exist
A month or so ago I installed the beta version of FF4 - it was too buggy and gave me problems so I uninstalled and went back to FF3.x.x -or so I thought. For some reasons it set the PPA for daily updates and I ended up with Namoroka updating nearly every day, at present version 3.6.13pre.
I disabled the repositories and have been using it but I have noticed at times it 'freezes' i.e. high CPU use and also when typing into a textbox, like this the text is slow to appear. I want to go back to my original FF3.x.x version that came with 10.10. Can anyone point me to a tutorial or take time out to reply here with a procedure to do this?
Edit: I have checked with nautilus and I seem to have various firefox folders all over the place - and a bunch more mozilla folders :
I have this software I want to use to extract data from a Polar heart rate monitor. Everything related to sound is working flawlessly. I just need to know the device name of the front microphone ("microphone" 2" in sound properties) so that I can insert it in the following cli command for a script: "rs200_decode -m /dev/XXX -b -o /home/user/dumb.bin"
I checked the forums but I only see references to /dev/dsp, /dev/audio, etc. I don't have any of those but rather /dev/snd/controlC0, hwC0D2, pcmC0D0c, pcmC0D0p, pcmC0D1p and pcmC0D2c.
I'm using Ubuntu 10.10 32-bit. The sound card is a generic HDA Intel audio chip. Lspci outputs: Audio device: Intel Corporation 82801JI (ICH10 Family) HD Audio Controller.
I edited my /etc/sudoers file the other day to add timestamp_timeout=0 to cause sudo to ask for a password every time. I used visudo in sudo mode and when it came to saving it appeared to want to save the file as sudoers.tmp so I edited this to sudoers. Anyway some how may edit failed. I booted up into terminal and reedited and somehow lost all access to the sudo mode. I think the file ended up with the wrong permissions.
After a fresh install I don't want to mess this up again. So please, please tell me how to save it. Should I save as sudoers.tmp or sudoers? I presume a could have made a typo, but am assuming not. I don't want to reinstall ubuntu and all the packages again.
Is there a way to permanently mess up a pre-made dvd? i would like to be able to mess up a dvd through software, that way there would be no proof of tampering. (i want a few new movies on blueray ) i would like it to run in ubuntu, but a windows program is fine. these are factory dvds btw, not dvdrw.
How do you find the device (e.g. /dev/*) for a mounted USB drive in Linux (Ubuntu 10.04)? I'm trying to format a Cruzer USB flash drive, and when I plug it in, the icon for the mounted filesystem appears on my desktop. However, when I open GParted, it doesn't list the filesystem as an option to partition.
The recommendations I've found through Google include monitoring tail -f /var/log/messages, which they claim should list the device name when the drive is mounted, but this never happens for me. I've also read that the USB drive would usually be linked to /dev/sdb, but this appears as a broken link on my filesystem. How else would I find the device?
I switched to the linux-image-rt kernel a while back, and decided yesterday to switch back to linux-image-generic. Unfortunately, I couldn't remember how to do this properly, so I just uninstalled all of the linux-rt related packages and then changed the /vmlinuz and /initrd.img symbolic links back to what they used to be and rebooted. So now the machine gets stuck in a memtest whenever I boot from the HD. I'm having trouble figuring out how to fix things from a rescue CD. If I try chroot /mnt/hd (where my old system was), and then update-grub, for example, I get: /usr/sbin/grub-probe: error: cannot find a device for / (is /dev mounted?). So, basically I'm completely lost, but also sure that a working system isn't more than a few simple commands away. Can anyone throw me a bone?
I have a device (not a pc) connected to my pc via ethernet, it dose not show up in networks, I was hoping there was a way of scanning to detect for it, is there a way of seeing content of it is basically what I'm asking?
for the first time I've gotten my hands on a ASRock ION 330HT and set it up as a front end to my existing front/backend which sits in the living room. I have EVERYTHING working but I've found an annoyance which is probably as a result of one of my screw-ups.
Basically - the backend (/frontend) stores it's videos in the default /var/lib/mythtv/ blah blah blah. This has always worked. I copy my video files there, rescan and bob's your uncle.
With the ASRock, I'd like to store some files locally, so currently the videos folder is set to /var/jan/Videos. I'll work on smb mounting later.
When I scan that, the videos also show and bob's my second uncle.
HOWEVER. After the scan from the ASRock, my MAIN box also is looking for files in /home/jan/Videos (which doesn't exist there) and finds nothing. If I rescan - all is good again. Then going back the the ASRock, IT is then looking for the files in /var/lib/mythtv etc. and finds nothing.
Why should setting in EITHER frontend mess with the setting in the other? That kind of defeats the purpose of having multiple front ends with multiple hardware/software configurations right?
My main account 'dave' runs as admin etc This was the output of 'groups dave': dave adm dialout cdrom plugdev lpadmin sambashare admin I was trying to add dave to the user group 'media-www' and i ran this command: 'usermod -G media-www dave' Then after another 'groups dave': dave : dave media-www It seems to have removed all the other groups! How do I restore this?
How can I find which /dev/? device to mount my USB hard drive on redhat 3 taroon, I've been googling a lot and checked log files and still no clue. I'm trying my last chance with you experts, # /sbin/fdisk -lgives nothing about the USB drive
# lsusb -vv Bus 004 Device 005: ID 059f:0951 LaCie, Ltd Device Descriptor:
I have a microphone that I connected via USB. When I do dmesg it shows [37830.040274] usb 5-1: new full speed USB device using uhci_hcd and address 4 How do I find out what /dev/??? identifier has been associated with the device? I want to record something using XVidCap and need to set the microphone for it to work.