Re: how to move a reiserfs partition



In alt.os.linux.suse, on Sat 29 April 2006 12:33, oy
<oyinfo@xxxxxxxxxxxxxx> wrote:

Hello everyone,

I deleted and fomatted my win xp partition and hope to make use of its
space. The three partitions are now:

/dev/hda1 linux reiserfs (was the win partition, now empty)
/dev/hda2 linux swap
/dev/hda3 linux reiserfs (the working linux installation)

I want to move the complete linux installation on hda3 to hda1 because
hda1 was larger.

Not bad reasoning, but you might have been better to create a
separate /home partition

And the smaller hda3 partition can then be used for
my experimental purposes such as LFS etc. To do that, i booted using a
rescue CD.

Why go to the trouble of getting a Rescue CD, when your Install media
can boot you into a "rescue system" which is fully compatible with your
installation?


Problem is that the parted tool in the rescue CD dosen't support
reiserfs file system without the libreiserfs
(http://reiserfs.osdn.org.ua).

Good illustration of why you would have been better using your original
install media. But you don't need parted, you only need reiserfs
support - available through the "rescue" system on your install media.

At a pinch, you could just boot to single user mode, but I would not do
that as first choice.


But i could not install anything
because i am running the linux from the rescue CD.

That is the downside of running a rescue CD that is not compatible with
your filesystem :-(

Any idea will be appreciated!

Boot from your original install CD1 or DVD and choose "Rescue System"

Log in as root

Make two mount points (e.g. /mnt/hda1 and /mnt/hda3) using the mkdir
command

mount /dev/hda3 to /mnt/hda3 and /dev/hda1 to /mnt/hda1

cp -a /mnt/hda3/* /mnt/hda1

After the cp has finished, you will need to adjust the grub install to
look on hd(0,0) for its stage 2 rather than on hd(0,2) but I cannot
recall the precise steps for that.
--
Robert HULL

Archival or publication of this article on any part of thisishull.net
is without consent and is in direct breach of the Data Protection Act
.



Relevant Pages

  • Re: Do I need "Parted Magic"?
    ... I'll likely just install it to one of my spare computers for now ... CDs also have a rescue thing built in too, ... That's likely the sales gimmick, but if you'll be using Linux, you can ... This is why I hate when people ask me for help with Windows questions. ...
    (alt.linux)
  • Re: disk rescue
    ... In general, boot from your rescue system, if you have one. ... If you do not have a rescue system, you should obtain a bootable Linux ... can repair GRUB or LILO either by performing a fake install (e.g. ...
    (comp.unix.questions)
  • Re: Finding Linux Partition
    ... > Since changing my hard drive containing a Linux partition to the ... > that involves making rescue diskettes. ... > Linux off my install CD and somehow run a program to locate the new ... Hold your install CD up to the screen so we can tell if you can use the ...
    (alt.linux)
  • Re: how to move a reiserfs partition
    ... I deleted and fomatted my win xp partition and hope to make use of its ... /dev/hda1 linux reiserfs ... Problem is that the parted tool in the rescue CD dosen't support ...
    (alt.os.linux.suse)
  • error while booting into linux rescue with boot CD...
    ... 'linux rescue'.. ... from packages import readPackages, checkDependencies, do Install ... & after the above messeges it ask to reboot system. ... pls tell me what's the problem with the linux rescue & how to get rid ...
    (linux.redhat)