Debian Installation :: How To Get UUID For Root In Grub CFG
Mar 15, 2015
I am running Wheezy as my main OS in the first drive in my desktop. I use the 2nd drive for data. I am trying to add another OS to multiboot. When I ran grub-update in Wheezy, I am getting device letter for the root device instead of UUID in grub.cfg, in the os-prober section. Like this
Code: Select allsearch --no-floppy --fs-uuid --set=root 6ee49a8e-a619-49c7-9f66-51a5ca9a48cc
linux /boot/vmlinuz-316-x86_64 root=/dev/sdb3
initrd /boot/initramfs-316-x86_64.img
In the same file, UUID was used for the existing kernels.
Code: Select alllinux /boot/vmlinuz-3.2.0-4-686-pae root=UUID=c2eecf02-d427-4f2e-9fd0-9db61256cbac ro quiet
echo 'Loading initial ramdisk ...'
initrd /boot/initrd.img-3.2.0-4-686-pae
How can I get UUID instead of /dev/sdb3 for the 2nd OS?
View 3 Replies
ADVERTISEMENT
Aug 17, 2010
when my grub references the UUID for the root= parameter, I get a kernel crash. If I change the root= parameter to /dev/<partition>, grub boots without a problem (f13 64-bit)
[Code]....
View 8 Replies
View Related
Sep 21, 2010
I am using Debian lenny (kernel 2.6.26-2-686).
I changed my menu.lst to use
root=UUID=<long uuid string>
instead of the good old
root=/dev/sd...
I did that because, if I boot with a usb drive attached to my computer, sda become sdb and therefor nothing works anymore since my friend Kernel can't mount it's root partition. BTW, it works wonders using the UUIDs. The story darkens each time there is a kernel update, dist-upgrade resets my menu.lst back using the /dev/sd... format. and BANG... no more booting again. I am good to change my menu.lst back each time.
View 2 Replies
View Related
Mar 22, 2010
I have a Netbook Remix install on an SD card that won't boot. Grub2 in the recovery mode shows it fails finding the root files by using UUID. It's my first Grub2 install and I'm not sure how to go about debugging it. The machine boots the same version from a USB stick.
View 1 Replies
View Related
Feb 21, 2015
I'm trying to manually boot (from the GRUB console) into a system set up as follows: crypt partition -> LVM -> root LV, and I'm having some trouble figuring out how to do this from the GRUB console.
I have successfully manually booted a system which is set up as just LVM -> VG -> root LV. All I have to do is load the LVM module. In GRUB, that partition shows up as (hd0,gpt5). Once I load the GRUB LVM module, I can see the logical volume within the LVM as well. (My volume group name is "caesar", and the single logical volume is named "root".)
Code: Select allgrub> ls
... (hd0,gpt5) ...
grub> insmod lvm
grub> ls
... (lvm/caesar-root) ...
It's fairly simple to manually boot:
Code: Select allgrub> set root=(lvm/caesar-root)
grub> linux /vmlinuz root=/dev/mapper/caesar-root
grub> initrd /initrd.img
grub> boot
Where I am having difficulty is in trying to insert crypt before LVM. I can set up such a scheme, and put a minimal installation on it, without issues. It's booting into it upon reboot that I can't figure out. Once I load the GRUB crypto, cryptodisk and luks modules, I can mount the crypto partition:
Code: Select allgrub> ls
... (hd0,gpt5) ...
grub> insmod crypto
grub> insmod cryptodisk
grub> insmod luks
grub> cryptomount (hd0,gpt5)
Attempting to decrypt master key...
Enter passphrase for hd0,gpt5 (<long hex string here>): <type my password>
Slot 0 opened
grub> ls
... (crypto0) ...
At this point, GRUB sees the crypto partition as (crypto0). But the GRUB LVM module doesn't see "inside" of the crypto partition, so I don't see the root logical volume within the LVM listed; all I see is (crypto0).
Code: Select allgrub> insmod lvm
grub> ls
... (crypt0) ...
Setting it as root doesn't work:
Code: Select allgrub> set root=(crypto0)
grub> ls /
error: disk `crypto0' not found.
So, How do I get GRUB to "see" LVM inside the crypto partition?
View 0 Replies
View Related
Dec 14, 2015
Been doing some installations in a newly upgraded machine where I'm setting up two instances of 8.2 in slightly different configurations.Installing from netinst AMD64 DVD with firmware non-free. First installation goes smooth as then the second changes the UUID of the swap partition, meaning that the first then can't find it. To add insult to injury the second installation doesn't install GRUB in the MBR of the HDD.
Nothing different or special about the installation which is standard graphical with manual allocation of previously set up partitions. I don't touch the swap drive in the partitioner - just point to the correct partitions for / and /home as I want them. This is exactly as I've done before, many times.Setup asks me if I want to install GRUB in MBR and I answer "No" (because it would otherwise load in MBR of sda where I want it on sdb) then point to sdb in the next screen. Again really nothing different to what I've done dozens of times.
View 7 Replies
View Related
Feb 16, 2010
Something wrong regarding grub2 (on 9.10). Yesterday everything worked fine and has done for several months. I didn't mess with anything yet when I booted from grub today it informed me that my UUID doesn't exist and that it's given up waiting for root device. I should also mention that it no longer does the 3 second count down either (not sure if thats significant). I can boot into my other linux and windows without issue. This only seems to affect all the ubuntu boot option. This is all way beyond me but I've searched around and tried the fix where you add all_generic_ide to the boot command but that didn't work. I also worked out how to check the UUID but the number look alright.
grub.cfg and blkid below:
# DO NOT EDIT THIS FILE
# It is automatically generated by /usr/sbin/grub-mkconfig using templates from /etc/grub.d and settings from /etc/default/grub
### BEGIN /etc/grub.d/00_header ###
if [ -s /boot/grub/grubenv ]; then
have_grubenv=true
load_env
fi .....
View 4 Replies
View Related
Mar 5, 2010
I posted this first to thread 'Boot problem - "Gave up waiting for root device.", (initramfs)' then realized that I should start a new thread because the problem is not the same. On boot the splash goes black and nothing happens, On a recovery boot it drops into shell BusyBox and messages indicate that the root partition cannot be found. After booting from CD Gparted GUI partition information shows no label or ssid for the root partition sda2. The data for the root partition appears to be there. how to fix this? My /home, swap, and / are on separate partitions formatted ext3. I have a recent backup only for my data. I would like to avoid having to rebuild my system from scratch.
View 9 Replies
View Related
Jul 14, 2010
I've been away from Fedora for a long time, since FC3/4. I seem to recall that at that time grub in Fedora used the standard drive notation such as /dev/sdax instead of the current UUID. Can anyone tell me why this change was made?
Seems to me that using UUIDs presents severe problems if a drive has to be replaced as the restore media (we all backup, don't we?) would not work without modification. How does one determine trhe UUID of a new drive to change the restore media? Sounds like a chickenand-egg routine. There must be some way which I haven't run accross yet. I do notice through experimentation that the standard notation still works, at least in /etc/fstab.
View 7 Replies
View Related
Mar 26, 2010
Is there something special I have to do to get grub to use UUID's? I am putting a couple of extra drives into a 9.10 system (default installation) with a SCSI drive for the OS. That SCSI drive was sda when I built the machine but of course gets bumped when I add these other drives. The fstab file contains UUID's. All attempts to boot with the other drives attached fail.
View 1 Replies
View Related
Feb 7, 2016
i use a 3rd party boot mgr.i installed jessie over etch on my old computer & only choice i saw for grub was sda & sdb where i wanted to install on sdb9.i tried installing it from my wheezy partition & it did but i ended up with 2 boots to wheezy.so i went back to etch.
my question is how to get grub on sdb9 like it was on etch.is there a trick or did i miss a prompt? on another note, that bug where the format hangs if you try & install over an old system is a little irritating. can't believe it hasn't been fixed.
View 4 Replies
View Related
Apr 27, 2010
I would like to create a 10.04 lucid install on a reiser4 partition, every guide I have seen either only puts a reiser4 directory, or uses grub legacy. These are what the steps I believe I would need to do to accomplish this.
* Partiton my drive with
/(to have ubuntu installed), /(to have ubuntu copied over)
* install kernel source, tools ect... to build a reiser4 enabled kernel
[code]....
View 8 Replies
View Related
Jul 21, 2010
After I installed Linux OS(for example:SuSE10,redhat5),the [root] parmeter of [kernel] in created grub.conf seems that sometimes it's defined to device name.sometimes it's defined to Label or sometimes UUID. So ,I want to know what is that relative to? Hard disk type or OS version or both?
View 1 Replies
View Related
Sep 21, 2010
I was installing sqeeze i386 on my laptop VOSTRO 1400 and got this the 'grub-pc' package failed to install into /target/. without the GRUB boot loader, the installed system will not boot.
View 3 Replies
View Related
Nov 1, 2010
If I boot on a live-CD, then enter in a terminal the following commands:
sudo mount /dev/sda1 /mnt
sudo grub-install --root-directory=/mnt /dev/sda
sudo umount /mnt
..does it install Grub-pc in /dev/sda1 ? even if Grub was already installed in /dev/sda1 ? Furthermore, are the 3 above commands equivalent to the below ones ?
sudo mount /dev/sda1 /mnt
sudo mount --bind /dev /mnt/dev
sudo mount --bind /sys /mnt/sys[code].....
View 4 Replies
View Related
Jun 6, 2011
I just updated my server from Ubuntu 8.04 to 10.04 and now it cannot go past grub, at boot time, it would "give up waiting for root device", asking me to check whether I gave the right "root=..." or if I should increase the "rootdelay=..." in the command line argument and end up with the initramfs.
The machine is a Dell Poweredge 2900 with a HW RAID controller (I hope that should not matter, but just in case...). I tried to follow the instructions there to make sure grub is setup correctly, but without any luck.
Below is the output from the bootinfoscript (while running on the LiveCD). Anybody has any idea what can be the problem or what I could do to debug this ? I am running out of ideas.
[Code]...
View 1 Replies
View Related
Jun 15, 2010
I have two encrypted partitions which I cannot find UUID numbers for.
/etc/crypttab looks like this:
[Code]....
and *sometimes this works, other times I have to edit the file and /etc/init.d/cryptdisks restart.
Obviously I should use UUIDs here and in fstab but blkid does not list those partitions
[Code]....
View 4 Replies
View Related
May 9, 2011
I have, as I have in the past, copy/pasted a partition using gparted to get a working OS to another place.
I have always done this in the past to a different drive. Never paid much attention to the UUID.
This time I did it on the same drive. The partitions have the same UUID. This is not a good thing.
The copied OS boots and mounts fine as I edited the fstab to go by /dev/sdxy (where x is the drive and y the partition). My grub uses a custom menu using symbolic menu entries so it goes by the partition definition instead of UUID too.
I would really like to change the UUID on that partition.
View 8 Replies
View Related
Dec 20, 2010
Problem: I have installed two Ubuntu servers, 10.04 32-bit and 10.10 64-bit, in a multi-boot environment (also have FDOS and WinXPsp3). The 64-bit will not boot because grub can't find the UUID for the disk with the 64-bit system.
Brief Background: Installed 10.04 LTS two months ago with no problems. 10.04 is in a primary partition on hda with FDOS.
Installed 10.10 (64-bit) in a new primary partition on the same hd. The install seemed to go ok, but the MBR and the fs on the 10.04 were corrupted; could not boot. Restored drive, and rebuilt grub.
Installed 10.10 on separate hd (hdb). In grub step all OS's were recognized so I pointed the grub to hda. Grub failed to boot.
Rebuilt grub from 10.04 on hda. All systems recognized but 10.10 will not boot because it says it cannot locate the UUID specified.
Compared the grub.cfg for both systems, the UUID specified for hdb is the same. Also, when I mount the drive for 10.10 on the 10.04 system the drive UUID is consistent.
I know I must be missing some thing, but I know not what. Have searched and can't find any clues. All other OS's boot ok.
Hardware: AMD64 4GB, 2 internal IDE drives (hda and hdb), 1 internal SATA (hdc WinXP), various USB and Firewire Drives (no bootable systems).
View 6 Replies
View Related
Apr 7, 2010
As recommended, I'm creating a new thread for my configuring GRUB problems commented first hereWe are setting up a new version of a custom system, we are migrating to Ubuntu Karmic from another distribution (Slackware). Besides small differences between these systems (most of them from the most recent versions of software used by the latest Ubuntu, such as GRUB 2), it has been decided that the new system will run an union root partition using aufs and tempfs, basically, we are following the steps provided heree install the system to a new hard drive from an already running Ubuntu Karmic system, usingdebootstrap/chroot, we move the disk to another sytem, so we have to correct disk references, we are able to run this system and it behaves correctly the first time it boots, it bypasses the GRUB menu since there are no other systems detected. However, after halting the system and booting it, the GRUB menu appears with a new "recovery" option, we've managed to remove this recovery option usingGRUB_DISABLE_LINUX_RECOVERY=trueBut then, the GRUB menu appears again, this time with only one option to boot: our system installation. But when this GRUB menu appears, it has no default timeout and so it stays forever unless ENTER is pressed to boot into the selected entry.
The main problem is that we are unable to configure GRUB inside the new installation because it always returns this message:grub-probe error cannot find a device for /If we boot the system "normally" (mounting root to a normal partition), we are able to configure GRUB properly, but it does not behave the same when using the union file system as /We are only looking for a way to bypass the GRUB menu and boot our system, do you have any advice on how to properly configure the GRUB menu for our system
View 3 Replies
View Related
Sep 1, 2011
The problem after couple installations (10.10 --> 10.04 --> 10.10 --> 10.04-3) is that system goes to "busybox" after complaining about missing root device. I already have come to conclusion that this problem could be solved by telling the system that the root device is at sda1. However, I'm not able to start grub (by pressing "ESC") at boot before problems start. I'm able to start live-cd and I tried to install "over" the old one (same partitions without format, same username). No luck.
And in the busybox /proc/modules is empty for example. And the grub has worked with previous installations.
View 3 Replies
View Related
Jun 30, 2011
I have a debian 6 system in my basement acting as a media server. Debian is on a separate HDD from the raid drives and there is one external drive. Under normal conditions the Debian HDD shows up as /dev/sdk and the external shows up as /dev/sdl, no problems here because I use UUID for mounting. The problem is sometimes this drive isn't picked up on restarts (its old and I think the issue is the power supply in the base of it, to be solved later) . This wouldn't be a problem but it some how shuffles the drive addresses and the Debian HDD becomes /dev/sde, this in turn messes up a script that does a weekly dd of that hard drive. I am only really worried about this for when I go on vacation and I wont be at home if the power goes out.
So, is there a way to address the entire hard drive (not just a partition) other than the dev file? Why did this change from Debian 5 to 6? I never had this problem before with 5.
In case you are wondering, I find it easier recover from an image rather than do a reinstall, then get all the updates and software, then put in all the backed up files.
View 3 Replies
View Related
May 16, 2011
System Fossil age laptop, Debian testing with lilo. SymptomAfter an upgrade (2nd week May), custom kernel compiled, kernel panics on boot, saying unable to mount root drive. (or more precise, unable to mount whatever uuid device). Stock kernel can boot. Workaround Instead of uuid on kernel option, use prehistoric root=/dev/XXX.
edit:The kernel which panics is 2.6.38 (make oldconfig, all default answer from 2.5.32 config)Stock is 2.6.32 On 2.6.38 after boot with tweak, the command "uuid" looks good.
View 2 Replies
View Related
Nov 30, 2010
just installed ubuntu 10.10 on my external usb hdd from my 8gb flash drive doing this on a laptop, my primary hdd (internal) is running windows (230gb of 250gb used) so i got an external hdd (2tb) and I decided to install ubuntu on it
[Code]....
View 1 Replies
View Related
Jan 19, 2016
I am running Debian 3.2.0-0.bpo.2-amd64 on hyper-v, my / volume ran out of space and is sitting at 100%, I have extended the disk size on hyper-v, however when I go to Fdisk I see duplicates of each disk.
I have total of 2 vhds on the vm, so I see 4 disks under fdisk. Here is the output of fdisk
root@apachevm:~# fdisk -l
Disk /dev/sda: 107.4 GB, 107374182400 bytes
255 heads, 63 sectors/track, 13054 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0009bfe8
[CODE]....
View 2 Replies
View Related
Jun 24, 2011
Upon booting my LVM wheezy setup, I get
fsck.ext3: Unable to resolve 'UUID=theUUID'
where "theUUID" (without the quotes) is the UUID
I believe this is caused by me trying to get lvm to use the external /boot because when I had unmounted the external /boot, it was creating a /boot in root. So, I booted a live cd and mounted the external /boot where /boot in the root volume is supposed to be. Basically, I think the problem is that I need to make my /boot (which is the only ext3 partition in the entire system and I want it that way) "relate itself" to the lvm root so that it boots into the system. As mentioned earlier, in the live CD, I made the external /boot mount itself in the root's /boot but I don't know how to tell the system to do this on its own while booting without my assistance. I chrooted from the live cd which involved a lot of tedious stuff but basically the important stuff I did were:
grub-install /dev/sdb
update-grub
update-initramfs -u
P.S.I get the issue in the Subject of this topic by telling tune2fs to mark the external /boot, lvm / and /home partitions as "dirty."
View 2 Replies
View Related
Jul 6, 2010
After doing the proposed security updates (re)booting stalls with a message like:One or more mounts listed in /etc/fstab cannot be mounted yet /home: waiting for UUID.In the escape shell I can see from /etc/fstab that /home was mounted to /dev/sda6. But when calling blkid this device is missing.Trying to mount /home I get the error:mount: special device UUID=... does not exist.In other threads I have read that the UUID-entry for /home in /etc/fstab has to be corrected. But how do I get the correct UUID? Will making a live-CD, booting from it and then calling blkid give me the UUID for /dev/sda6?
View 4 Replies
View Related
Apr 13, 2011
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.
View 3 Replies
View Related
Dec 15, 2010
UUIDs make fstab hard to read, so.. Is it possible to use udev rules to prevent HDs to change device, instead of using UUID in /etc/fstab?
View 2 Replies
View Related
Apr 3, 2009
I have 2 CPUs Which are Intel and AMD based. I used F9 before and didnt have any issues while I removed the hdd that I'd installed F9 on INTEL based and then put my hdd on my AMD based cpu. Well it booted and ran perfectly no issues came up.And then I've done the upgrade to F10 (clean install on INTEL). I do the same case above.But I got error msgs it said that the UUID cannot be found (I was using label on F9 fstab and worked fine).
I put back my hdd to intel based cpu and then try to edit my fstab and menu.lst (change UUID to LABEL). WOW I thought by changing UUID from fstab and menu.lst would resolve my problem but it doesnt solve anything. My devices (sda1/2/3, /boot, and /home) cannot be reconized.Well do you guys know how to change UUID to LABEL? and what exactly my problem?
View 2 Replies
View Related