FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Debian > Debian User

 
 
LinkBack Thread Tools
 
Old 05-22-2010, 12:08 PM
Klistvud
 
Default Cloned Lenny OS partition: bumped into hibernate and grub2 issues

Howdy, fellow users of this magnificient OS called Debian!

I've recently swapped the hard drive on my box, after cloning my Lenny
(and other) partition(s) from the old drive that was becoming too
small. I just did

dd if=/dev/hda2 of=/dev/hdb2
After changing the UUID of the new partition and manually making some
minor adjustments to /boot/grub/grub.cfg and /etc/fstab, the system
boots OK, but there are two glitches I can't seem to sort out:


1. hibernation bails out with the message "Cannot find swap device",
although there IS a big enough, and actively used swap partition on the
new drive; and
2. update-grub still refers to the OS partition by the old UUID, which
is no longer correct. In order to boot, I must manually edit grub.cfg,
but I'd like this fixed *properly*.


I suspect both issues are related to the changed UUIDs of both the swap
and the OS partitions.


Now, my questions to the savants out there:
1. How do I tell the hibernation scripts that there IS a swap device,
but with another UUID?
2. Where do the grub2 scripts get their UUIDs from, so I can replace
the wrong UUIDs with the right ones?


--
TIA,

Klistvud
Certifiable Loonix User #481801
http://bufferoverflow.tiddlyspot.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1274530100.3111.2@compax">http://lists.debian.org/1274530100.3111.2@compax
 
Old 05-23-2010, 01:40 AM
Tom H
 
Default Cloned Lenny OS partition: bumped into hibernate and grub2 issues

On Sat, May 22, 2010 at 8:08 AM, Klistvud <quotations@aliceadsl.fr> wrote:
>
> I've recently swapped the hard drive on my box, after cloning my Lenny (and
> other) partition(s) from the old drive that was becoming too small. I just
> did dd if=/dev/hda2 of=/dev/hdb2
>
> After changing the UUID of the new partition and manually making some minor
> adjustments to /boot/grub/grub.cfg and /etc/fstab, the system boots OK, but
> there are two glitches I can't seem to sort out:
>
> 1. hibernation bails out with the message "Cannot find swap device",
> although there IS a big enough, and actively used swap partition on the new
> drive; and
>
> 2. update-grub still refers to the OS partition by the old UUID, which is no
> longer correct. In order to boot, I must manually edit grub.cfg, but I'd
> like this fixed *properly*.
>
> I suspect both issues are related to the changed UUIDs of both the swap and
> the OS partitions.
>
> Now, my questions to the savants out there:
> 1. How do I tell the hibernation scripts that there IS a swap device, but
> with another UUID?
> 2. Where do the grub2 scripts get their UUIDs from, so I can replace the
> wrong UUIDs with the right ones?

Re 1. Your swap partition's UUID must be different. Check
"/etc/initramfs-tools/". There is a "resume" file (in that dir or in a
subdir) that will have your swap partition's UUID.

Re 2. What do you mean by "After changing the UUID of the new
partition"? After "dd...", did your run "tune2fs -U ..." on your root
partition (or the equivalent for xfs, ...; I am assuming that you have
just one partition)? If you didn't, your root partition still has the
same UUID and update-grub is picking it up correctly (in which case, I
have no idea idea how you are booting up!).


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTin0JzLSSk1lQVKKF3R5_YjtYnON5gxP6Wh5YKdv@mail .gmail.com">http://lists.debian.org/AANLkTin0JzLSSk1lQVKKF3R5_YjtYnON5gxP6Wh5YKdv@mail .gmail.com
 
Old 05-23-2010, 08:02 AM
Klistvud
 
Default Cloned Lenny OS partition: bumped into hibernate and grub2 issues

Dne, 23. 05. 2010 03:40:54 je Tom H napisal(a):


Re 1. Your swap partition's UUID must be different. Check
"/etc/initramfs-tools/". There is a "resume" file (in that dir or in a
subdir) that will have your swap partition's UUID.


Thanx, Tom H. It worked.



Re 2. What do you mean by "After changing the UUID of the new
partition"? After "dd...", did your run "tune2fs -U ..." on your root
partition (or the equivalent for xfs, ...; I am assuming that you have
just one partition)? If you didn't, your root partition still has the
same UUID and update-grub is picking it up correctly (in which case, I
have no idea idea how you are booting up!).



You're perfectly right. Was looking at the wrong partition (I currently
have a mess of partitions on my drives, some of which are clones of
others ...). Now, after my usual cup of coffee, and with a clearer
grasp of things thanx to your comment, update-grub suddenly decided to
work perfectly again ;P


--
Regards,

Klistvud
Certifiable Loonix User #481801
http://bufferoverflow.tiddlyspot.com


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: 1274601738.6845.0@compax">http://lists.debian.org/1274601738.6845.0@compax
 
Old 05-24-2010, 10:24 AM
Tom H
 
Default Cloned Lenny OS partition: bumped into hibernate and grub2 issues

On Sun, May 23, 2010 at 4:02 AM, Klistvud <quotations@aliceadsl.fr> wrote:
> Dne, 23. 05. 2010 03:40:54 je Tom H napisal(a):
>>
>> Re 1. Your swap partition's UUID must be different. Check
>> "/etc/initramfs-tools/". There is a "resume" file (in that dir or in a
>> subdir) that will have your swap partition's UUID.
>
> Thanx, Tom H. It worked.
>
>> Re 2. What do you mean by "After changing the UUID of the new
>> partition"? After "dd...", did your run "tune2fs -U ..." on your root
>> partition (or the equivalent for xfs, ...; I am assuming that you have
>> just one partition)? If you didn't, your root partition still has the
>> same UUID and update-grub is picking it up correctly (in which case, I
>> have no idea idea how you are booting up!).
>
> You're perfectly right. Was looking at the wrong partition (I currently have
> a mess of partitions on my drives, some of which are clones of others ...).
> Now, after my usual cup of coffee, and with a clearer grasp of things thanx
> to your comment, update-grub suddenly decided to work perfectly again ;P

You're welcome.


--
To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
Archive: AANLkTilgWfuMSiT-Z4gNyivp-Gu7RjG4mZqnksrTj7XV@mail.gmail.com">http://lists.debian.org/AANLkTilgWfuMSiT-Z4gNyivp-Gu7RjG4mZqnksrTj7XV@mail.gmail.com
 

Thread Tools




All times are GMT. The time now is 08:26 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org