You are not logged in.

#1 2014-10-22 14:59:46

dafero
Member
From: /home/dafero
Registered: 2014-03-22
Posts: 30

How to change '/' (root) mount point

Hello,

I bought a new SSD and I want to start using it as my '/' partition without loosing any data from my current setup. Using a livecd, I copied all the files from the current '/' to the SSD.

OK, now I want the system to start using the /dev/sdb2 as '/' and not /dev/sda3.

Any ideas about how can I do it? I edited the /etc/fstab but when I start the system, it always takes the old location.

Thanks!

Offline

#2 2014-10-22 15:04:39

smirky
Member
From: Bulgaria
Registered: 2013-02-23
Posts: 277
Website

Re: How to change '/' (root) mount point

If you want to keep your old HDD (or SSD), you can just cp everything to the new SSD and reconfigure the root path of your bootloader. Anyway, that could be a bad idea it's best if you create a boot partition in the new SSD, make it bootable, move the bootloader, change the root path and then cp everything over.


Personal spot  ::  https://www.smirky.net/  ::  Try not to get lost!

Offline

#3 2014-10-22 15:34:27

karol
Archivist
Registered: 2009-05-06
Posts: 25,440

Re: How to change '/' (root) mount point

Offline

#4 2014-10-22 16:20:55

allonsy
Member
Registered: 2014-04-28
Posts: 26

Re: How to change '/' (root) mount point

You are going to need to reinstall grub (or whichever bootloader you use) and regenerate your bootloader cfg/menu file. You are also going to need to fix your fstab file to reflect these changes.

Offline

#5 2014-10-22 21:10:05

teateawhy
Member
From: GER
Registered: 2012-03-05
Posts: 1,138
Website

Re: How to change '/' (root) mount point

The old installation is booted because of the BIOS boot order. Press a special key right after starting the computer, during BIOS post, and select the SSD as boot device. To make this permanent  you need to modify the BIOS boot order.  I'm surprised you were able to install arch linux without knowing these basics.
http://en.wikipedia.org/wiki/BIOS#Boot_priority

Offline

#6 2014-10-23 07:13:19

dafero
Member
From: /home/dafero
Registered: 2014-03-22
Posts: 30

Re: How to change '/' (root) mount point

Thanks everyone for your responses!

The thing is, I have /boot and /home still in the HDD since my SSD is kinda small (32Gb). I might move /boot (less than 100Mb) also to the SSD and follow your advises.
I may have to read a lot more but hey, this is what I am here for: to learn.

Offline

Board footer

Powered by FluxBB