LinuxQuestions.org
Latest LQ Deal: Complete CCNA, CCNP & Red Hat Certification Training Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-09-2008, 09:48 AM   #1
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Rep: Reputation: 30
after copying partition, how to deal with fstab when it references by UUID ?


I'm completely confused:

I duplicated all partitions (yes, I kept types, size and position the same) from /dev/sdb to /dev/sda. (/dev/sdb is the original, working linux-only drive). Don't know if it's relevant, but the old is a SATA, the new a PATA.

I then went through the mystifying process of installing grub onto /dev/sda. That seemed to work, as specify that drive in the bios boot menu does startup linux.

But then, if sdb is left enabled (in bios), the machine does boot; all looks normal, but /dev/sdb1 is mounted on "/", and sda isn't even mounted.

I checked /etc/fstab (yes, the one in sda), and it referenced by UUID. So I tried to change that entry to use "/dev/sda" in place of the UUID, changing nothing else on said line. And it did exactly that: changed nothing. It still boots using /dev/sdb1 for "/".

If I disable the sdb drive in bios, the boot just hangs at"Loading, please wait".

What am I doing wrong?

Last edited by lumix; 12-09-2008 at 09:55 AM.
 
Old 12-09-2008, 11:02 AM   #2
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
chainload the other.

Grub on /sdb boots

press c

>root (hd0,0) (or try (hd1,0))
>chainloader +1
>boot

If it works make a suitable entry in menu.lstor grub.conf
 
Old 12-09-2008, 11:03 AM   #3
amani
Senior Member
 
Registered: Jul 2006
Location: Kolkata, India
Distribution: Debian 64-bit GNU/Linux, Kubuntu64, Fedora QA, Slackware,
Posts: 2,766

Rep: Reputation: Disabled
chainload the other.

Grub on /sdb boots

press c

>root (hd0,0) (or try (hd1,0))
>chainloader +1
>boot

If it works make a suitable entry in menu.lst or grub.conf
 
Old 12-09-2008, 11:42 AM   #4
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
Thanks for the tip.

I'll give that a try, but my goal is to get rid of the original drive, and also to understand why the new drive doesn't load (or somehow mounts the old drive).
 
Old 12-09-2008, 08:51 PM   #5
lumix
Member
 
Registered: Mar 2007
Distribution: Hardy (Gnome on Ubuntu 8.04) on Compaq N600c laptop
Posts: 323

Original Poster
Rep: Reputation: 30
Any other thoughts on why this might be happening?
 
Old 12-09-2008, 10:59 PM   #6
syg00
LQ Veteran
 
Registered: Aug 2003
Location: Australia
Distribution: Lots ...
Posts: 15,989

Rep: Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217Reputation: 2217
Quote:
Originally Posted by lumix View Post
I duplicated all partitions
How ? - precisely.
Quote:
I then went through the mystifying process of installing grub onto /dev/sda. That seemed to work, as specify that drive in the bios boot menu does startup linux.
Again how - precisely. Your supposition isn't supported by the following evidence.
Quote:
But then, if sdb is left enabled (in bios), the machine does boot; all looks normal, but /dev/sdb1 is mounted on "/", and sda isn't even mounted.
...
If I disable the sdb drive in bios, the boot just hangs at"Loading, please wait".
Looks like you haven't updated grub to use the correct disk. If it was me I'd pull the old disk out, and fix things from a liveCD. Tell us what you did, we can suggest fix(s).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
LVM PV UUID Disappeared After Resizing Underlying Partition intrados Linux - Software 3 11-11-2008 04:12 AM
UUID, grub, and fstab radiodee1 Debian 4 09-16-2008 06:56 AM
How to clone HD when using UUID in fstab? Frank64 Linux - General 5 03-09-2008 03:17 PM
UUID: wrong values in Ubuntu /etc/fstab files grautu Ubuntu 7 05-05-2007 05:28 PM
Formating a FAT32 partition, putting the partition correctly into FSTAB, and more. squall14716 Linux - General 14 10-27-2003 11:16 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 05:52 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration