Success: How to move my / partition

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

 



Timothy Murphy wrote:

>>> I want to move the / partition on a (very ancient) Fedora-12 desktop
>>> from one SCSI disk to another (/dev/sdb3 to /dev/sda6),
>>> because the second disk is showing some signs of sickness.
> 
>>> Any help or suggestions gratefully received.
>>> 
>> You may want to take a look at the gparted project - they have hard
>> drive install documentation as well, as CD/USB/PXE boot images.
>> 
>> http://gparted.sourceforge.net/livehd.php
> 
> I followed this advice, which enabled me to run the gparted Live CD
> from my hard disk.
> I found I had to choose the command-line interface,
> as if I chose the default X interface I was asked for the root password,
> which I did not know. (Pressing Return did not work.)
> However, the command-line interface opened with root as user.
> 
> I copied my current / to the new partition with "cp -a".
> I then added a new stanza to grub.conf with root=UUID=<new UUID>,
> and made a similar change to fstab.
> 
> To my surprise, when I re-booted I found it was with the old / ,
> and /etc/fstab had been re-written with the old UUID.
> (/boot/grub/grub.conf still had the new UUID, but this was ignored.)

The system, with / on the new partition, seems to be working fine.

[I followed Mikkel's advice, and used the gparted Live CD on the hard disk,
copying the old system to its new place with "cp -a".]

I found that I had made a silly mistake;
I had modified the old /etc/fstab rather than the new one.

However, I am surprised that the root=UUID=... in the kernel line
in /boot/grub/grub.conf does not seem to have any effect;
if there is a conflict with /etc/fstab it is the latter that is followed.

Also, there did not seem to be any need to modify initrd in any way -
I am using the same one with no change.
I'm not sure why it should be necessary to modify initrd?
I opened mine up, and it did not seem to contain any mention of sda or sdb .

-- 
Timothy Murphy  
e-mail: gayleard /at/ eircom.net
tel: +353-86-2336090, +353-1-2842366
s-mail: School of Mathematics, Trinity College, Dublin 2, Ireland

-- 
users mailing list
users@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe or change subscription options:
https://admin.fedoraproject.org/mailman/listinfo/users
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
[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