Excellent response, I will try it and let you know.
Mkohan
On 3/19/06, Les Mikesell <lesmikesell@xxxxxxxxx> wrote:
On Sun, 2006-03-19 at 22:48, M.K wrote:
> I have stand alone server(FC2)
> Could you tell me more detail instructions to copy my data to
> a USB and with ssh to another server.
I'm not sure if rescue mode will recognize a USB disk or
not. If it does, it should show up as /dev/sda1. You can
mkdir /tmp/usb
mount /dev/sdb1 /tmp/usb
then copy things there. If the USB drive has a FAT filesystem
you'll lose some of the file attributes (ownership, modes, etc.)
and may have problems with some filenames if you copy the files
directly, so it might be better to use a tar archive. For that,
cd to the directory you want to save and:
tar -czvf /tmp/usb/my-tar.tgz .
(that last '.' specifies the current directory).
For rsync over ssh to another system you would let rescue
mode active your network, chroot to /mnt/sysinstall as it
suggests, then cd to the directory you want to save and:
rsync -essh -av . othermachine:/path/to/directory
It should prompt for the root password on the other machine,
then copy the files.
>
> > my data are on local directory.
> > How could I login in as a root to see my local dir.
> > -result With "ls" command in shell prompt:
> > bin etc linuxra mnt
> > oldtmp
> > sbin sys usr
> > dev lib
> > lost+fund modules proc
> > selinux temp var
>
> If rescue mode was able to find your partitions and
> mount them normally and you followed the instructions
> with the 'chroot' command, everything should appear
> in it's usual locations from your shell prompt. That
> is, if your files are in your home directory it would
> be /home/your_login.
>
> I don't know how find those directories.
> Do I need to login in shell mode? if response is yes with which
> command?
You should be logged in as root already in rescue mode. You
need to 'chroot /mnt/sysinstall' when it tells you. That puts
you at the root (/) of your installed system. From there just
cd to the directory you want. Use pwd (print working directory)
to confirm where you are and ls to list the files there. You
can cd with an absolute path (starting with /) or if you omit
the leading / the directory you specify is relative to your
current position.
--
Les Mikesell
lesmikesell@xxxxxxxxx
--
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list