Re: disaster recovery Q's

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Friday 13 November 2009, Tom H wrote:
>> In my experience,
>> the UUID is also embedded internal to the initrd.img
>> and this also should be consistent with the UUID in grub.conf
>>
>> [root@localhost clean]# less init
>>
>> near the end look for "mkrootdev" line:
>> echo Creating root device.
>> mkrootdev -t ext3 -o defaults,ro
>> UUID=54c84c0a-040b-43bd-8887-202519baaae2
>>
>> So my question remains:
>> If i try to use labels instead of UUID, do i have to modify this
>> mkrootdev line in init (initrd.img) ?

I believe this was Tom H's question, not mine although I am the threads OP.

>As long as the UUID in init (in initrd) and the root entry in
>grub.conf (whether UUID, LABEL, or /dev/xxxx) point to the same
>partition, you are OK.
>
You may want to check your facts on that actually being in the initrd file.  
My 2.6.32-rc6 initrd, copied from the failing drive with 'rsync -avcAX src 
target' syntax, which I booted with after swapping a new drive onto the sata1 
connector, did not require a rebuild, I simply changed grub.conf to use a 
'root=LABEL=sea-slash' while in rescue mode and chroot'ed, fixed a couple of 
other typu's, did a 'grub-install /dev/sda" and rebooted.  If its in there, 
then it is apparently being over-ridden by the data in the new /etc/fstab.

I have since installed 2.6.32-rc7, and as noted in a previous msg a few 
minutes ago, the machine is obviously much snappier now.

Logically, the root (hd0,0) must over-ride any UUID's that may be in the 
initrd.img, otherwise it could not possibly have found even the grub.conf to 
show me at boot time.

Some _real_ docs on grub would be VERY nice.

>That it why you can switch the grub.conf entries without having to
>change the UUID (or whatever other way that you are pointing to the
>root partition).

In my case, /boot is a separate partition, so in base 0 notation, its all 
'root (hd0,0)' on a line by itself. And it Just Works(TM)  I can, in a 
different grub.conf stanza on (hd0,0)/grub/grub.conf, specify root (hd3,0), 
then the UUID of the / partition that contains another distributions / 
directory and boot to it just fine.



-- 
Cheers, Gene
"There are four boxes to be used in defense of liberty:
 soap, ballot, jury, and ammo. Please use in that order."
-Ed Howdershelt (Author)
The NRA is offering FREE Associate memberships to anyone who wants them.
<https://www.nrahq.org/nrabonus/accept-membership.asp>

Diplomacy is to do and say, the nastiest thing in the nicest way.
		-- Balfour

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux