• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 233
  • Last Modified:

Upgrading - a little basic help please

Hello.

I have a server setup running RH8 and I want to upgrade to Fedora Core.  On a different computer, I installed the latest FC4 test and got everything working and the bugs out and its ready for my purposes.  So..

I want to do a fresh clean install on a new hard drive, then copy certain files and folders from the old hard drive onto the new one.

I'm not a native Linux user, so I have some questions:

1) How do I temporarily mount the 2nd (older) hard drive but be sure that the system doesn't boot from it - I want to then remove that hdd to use in a different machine. I want to mount it only to copy files from it.  Shouldn't be a problem, but I'm concerned that if it is there during install that the system will then complain that its not there later. So should I physically connect the drive only after intalling FC? Or does it not matter?  What commands do I use to mount it and access it? (sorry, I've never had a multi-drive setup in Linux before)

2) When I copy said files and folders, can I do it in such a way that timestamps, permissions, and ownership are NOT changed in any way?  Command please?

I know I can probably look this stuff up but its important that I avoid any pitfalls so I decided to ask here just to be sure.  Thanks.
0
s_mack
Asked:
s_mack
  • 2
  • 2
1 Solution
 
wesly_chenCommented:
> I physically connect the drive only after intalling FC?
If you are not very familiar with the install/boot process, then this is the better way for you.

If you have IDE HD, then put your new disk as primary master and
put the older disk as primary slave or secondary master.
After installation, as root:
mkdir /old_disk
fdisk -l /dev/hdb  (for primary slave)
fdisk -l /dev/hdc  (for secondary master)
mount /dev/hdb1 /old_disk    (assume you connect as primary slave and the / partition on fdisk is /dev/hdb1)

If you have multiple partitions on old disk, then you need to create multiple directories /old_disk2, /old_disk3....
and mount them separately.

> timestamps, permissions, and ownership are  NOT changed in any way?
Use
cp -pr
or
tar cf - /path-to-data | ( cd /path-to-destination-dir ; tar xf -)
0
 
s_mackAuthor Commented:
Excellent!  Thank you very much for the detailed response.
0
 
s_mackAuthor Commented:
Oh - and after I'm done copying, is there anything I have to do to prepare for physical removal of the second (old) hard disk?   ie. is there an opposite set of commands to:  

mkdir /old_disk
fdisk -l /dev/hdb  (for primary slave)
fdisk -l /dev/hdc  (for secondary master)
mount /dev/hdb1 /old_disk    (assume you connect as primary slave and the / partition on fdisk is /dev/hdb1)
0
 
wesly_chenCommented:
> prepare for physical removal of the second (old) hard disk?
Just shutdown and power off the Linux box is enough.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: C++ 11 Fundamentals

This course will introduce you to C++ 11 and teach you about syntax fundamentals.

  • 2
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now