VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Adding new SATA drive for home  (Read 987 times)

Andy Price

  • Packager
  • Vectorite
  • ****
  • Posts: 237
Adding new SATA drive for home
« on: December 12, 2010, 08:44:57 pm »

I have two IDE drives in my desktop PC. The 40 GB drive is used for swap, root (hda2) and a couple of spare partitions for testing. The 80 GB drive has a single  partition (hdb1) which is used for home.

I'm going to buy a 500 GB SATA drive to replace the 80 GB IDE drive. For now I want to keep swap and root on the 40 GB drive, but when VL7 comes along I want to install it to the new drive. So I'm thinking of having swap, root, home plus one spare partition at the end of the 500 GB drive.

So my question is this. If I keep the 40 GB drive for now, do I just need to copy everything over from the home partition of the 80 GB drive into the new home partition and then change the entry in fstab (/dev/hdb1 /home ext3 defaults  0 2) to point to the new home in sda3? Any problems likely e.g because the old drive is IDE and the new one SATA.
Thanks
Andy
Logged

bigpaws

  • Vectorian
  • ****
  • Posts: 1869
Re: Adding new SATA drive for home
« Reply #1 on: December 12, 2010, 09:53:53 pm »

That should be all you need. Don't forget to format the drive before
you put in place.

Bigpaws
Logged

Andy Price

  • Packager
  • Vectorite
  • ****
  • Posts: 237
Re: Adding new SATA drive for home
« Reply #2 on: December 14, 2010, 03:00:53 am »

Thanks. Everything went ok. The only tricky bit was making sure that the file/folder ownerships and permissions on the new drive contents matched the old ones, and remembering to copy over the hidden files.
Andy
Logged