Re: Will this HD swapping work OK? What to beware of?

news_at_celticbear.com
Date: 10/06/05


Date: 6 Oct 2005 12:38:23 -0700


John-Paul Stewart wrote:
> news@celticbear.com wrote:
> > I've a Fedora Core 3 system with two 160GB drives.
> > We desperately need to improve...everything in that box.
> > So, can I take a completely different box, load Fedora Core 4 on it,
> > then add in the two HD from the old box and mount them, in FSTAB
> > assuming it doesn't do it automatically, and all data will be fine?
> >
> > I'm pretty certain it will work fine with the 2nd drive in the old box,
> > but what about the 1st drive? Since it has the / and /boot partitions
> > on it?
>
> It shouldn't be a problem, unless you're using 'e2label' or similar to
> mount partitions by label. Check /etc/fstab on the exising box. Does
> it say something like:
>
> /dev/hda1 / ext3 defaults 0 0
>
> -or-
>
> BOOT / ext3 defaults 0 0
>
Here's what mine says:
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /dev/shm tmpfs defaults 0 0
none /proc proc defaults 0 0
none /sys sysfs defaults 0 0
/dev/hda3 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
/dev/hdc1 /hdc1 ext3 defaults 2 1

> If it uses the first form, you're good to go. If it uses the second
> form (i.e., a label rather than /dev/whatever) you might run into
> problems if there are partitions with the same label on the disk(s) in
> the new system. Check its fstab, too. You might want to change some of
> the labels on the old disk so they aren't the same as the ones on the
> new disk and/or edit fstab to refer to /dev entries instead.

Would it be less...risky to change the labels on the old box, shut it
down and move the drives as the 2nd and 3rd drives in the new box, then
install FC4 on the new box and let it see and install the old drives
and give the labels it wants to the new 1st drive (hda0)?

Or install FC4 on the new box, change IT'S labels, then move the old
drives over and add them to FSTAB?

I hate asking such probably simple questions, but I SO don't want to
risk any data...as there's many gigs of it and it's not backed up.
(Yeah I know! One of the reasons I'm moving the drives to a new box is
so I can eventually put in a DVD burner or DAT drive or some other
means of back up.)

Thanks for the feedback!
Liam



Relevant Pages

  • Re: Will this HD swapping work OK? What to beware of?
    ... Check its fstab, too. ... >>the labels on the old disk so they aren't the same as the ones on the ... > install FC4 on the new box and let it see and install the old drives ... > drives over and add them to FSTAB? ...
    (comp.os.linux.misc)
  • Re: Will this HD swapping work OK? What to beware of?
    ... Check its fstab, too. ... >>the labels on the old disk so they aren't the same as the ones on the ... > install FC4 on the new box and let it see and install the old drives ... > drives over and add them to FSTAB? ...
    (comp.os.linux.hardware)
  • Re: Will this HD swapping work OK? What to beware of?
    ... Check its fstab, too. ... Would it be less...risky to change the labels on the old box, ... down and move the drives as the 2nd and 3rd drives in the new box, ... Or install FC4 on the new box, change IT'S labels, then move the old ...
    (comp.os.linux.misc)
  • Re: unable to access sda2 on boot
    ... I'm assuming that means its fstab i'll have to mess with? ... I'm running Fedora Core 2.6.20-1.2925.fc6 ... That's drives, not ports, it doesn't count unused ports. ... The resume message means the system couldn't find the drive partition to ...
    (Fedora)
  • Re: unable to access sda2 on boot - SOLVED
    ... which FC I want to boot 2.6.20 or 2.6.19. ... Should I start with the fstab changes you suggested? ... That's drives, not ports, it doesn't count unused ports. ... > The resume message means the system couldn't find the drive partition to ...
    (Fedora)