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 > Redhat > Fedora User

LinkBack Thread Tools
Old 02-18-2010, 12:21 PM
Timothy Murphy
Default Success: How to move my / partition

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
To unsubscribe or change subscription options:
Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines

Thread Tools

All times are GMT. The time now is 12:07 AM.

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