LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook
User Name
Password
Linux - Laptop and Netbook Having a problem installing or configuring Linux on your laptop? Need help running Linux on your netbook? This forum is for you. This forum is for any topics relating to Linux and either traditional laptops or netbooks (such as the Asus EEE PC, Everex CloudBook or MSI Wind).

Notices


Reply
  Search this Thread
Old 08-15-2011, 03:08 AM   #1
hellmutleo
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Rep: Reputation: 0
dd_rescue: Problem with Xubuntu (Booting with UUID)


Hi list,
this is my first post in this list, and i was not sure which area to choose.

Working with a Lenovo T61 Laptop and gentoo linux for quite a while i used dd_rescue for
backingmup the whole disk. So when necessary (and there were cases ,-( ) i just changed the system disk against my clone and could continue working.

Recently a switched to Xubuntu-10.10 and are quite satisfied. BUT:
When I put the clone disk in the select bay tray and boot for making a backup the system comes up with
/dev/sdb5 on /
/dev/sdb7 on /home
/dev/sda2 on /boot
The partition numers are what they should be but obviously all partitions should be taken from the the hard disk.
AFAICS this is an effect produced by the booting procedure using UUIDs, which are copied by dd_rescue.

Any idea appreciated


Happy Linux'ing

Hellmut
 
Old 08-15-2011, 03:36 AM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Do I understand you right, that sda is your main disk and sdb is your backup disk?
Then it is as simple as that: Zero out the partition table of the second disk, you can do that in the running system. Just do
Code:
dd if=/dev/zero of=/dev/sdb count=1 bs=512
Make sure that the drives are really in that order before you launch this command! It will zero out the partition table of drive sdb!
If you now reboot your system will start completely from sda and you can start the backup.
 
Old 08-15-2011, 03:41 AM   #3
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 21,126

Rep: Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120Reputation: 4120
** deleted post **

Sorry ...

Last edited by syg00; 08-15-2011 at 03:42 AM.
 
Old 08-15-2011, 06:00 PM   #4
hellmutleo
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
dd_rescue: Problem with Xubuntu (Booting with UUID)

Hi TobiSGD,
thanks for your reply ;-)

You are correct: sda is my system disk and sdb is the clone disk.

I understand your solution.
BUT it does not give me the possibility I had when using gentoo linux:
I could just substitute my system disk by the clone disk and
boot the saved state of my system.

I imagine there could be a possibility to change the UUIDs but in that
case I would have to edit the file(s) which controls the boot process.

Any comment on that?


Best regards

Hellmut
 
Old 08-15-2011, 06:07 PM   #5
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
The procedure I described is only necessary before cloning the disk. After you have cloned the disk it will work the way you want. Detach the original disk, attach the backup disk and your system will work.
 
Old 08-19-2011, 02:46 AM   #6
hellmutleo
LQ Newbie
 
Registered: Feb 2006
Posts: 3

Original Poster
Rep: Reputation: 0
Hi TobiSGD,
to apply the procedure you describe I need to have access to the clone disk. Using it via USB should not be a problem.
But I do not see how to get that working when the clone disk is in the select bay tray. In this situation my notebook
comes up with a mount list like:
/dev/sdb6 on / ...
/dev/sda2 on /boot ...
/dev/sdb7 on /home ...
and I do not even see which one (/dev/sda or /dev/sdb) is the system disk and which is the clone disk.

Hope that makes my problem somewhat more clear.

Thanks for tackling with my problem

Hellmut
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] How to mount by-uuid if the device won't show in /dev/disk/by-uuid untill after blkid /dev/sd* ? masmddr Linux - General 4 01-10-2011 07:38 PM
Change UUID - Edit UUID using the dd command GMHilltop Linux - Newbie 10 10-28-2010 07:39 PM
Xubuntu Booting problem anerudhbalaji Linux - Newbie 3 06-10-2009 03:47 AM
Volume has problems including no uuid in /dev/disk/by-uuid abejarano Linux - Hardware 3 12-31-2008 08:41 PM
xubuntu - booting into root terminal NNP Ubuntu 3 06-11-2006 03:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Laptop and Netbook

All times are GMT -5. The time now is 02:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration