Moving from sdb1 to sda1

Have some feedback, questions, suggestions, or just fancy a chat? Pop it in here.
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Moving from sdb1 to sda1

Post by Burgess85 »

How can I safely move data from sdb1 to sda1?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

Can you be a little bit more specific on what you are trying to to achieve.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Moving from sdb1 to sda1

Post by Burgess85 »

Move everything that is on sdb1 to sda1 currently empty and then format sdb1
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Moving from sdb1 to sda1

Post by Burgess85 »

Everything is on sdb1
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

means you solved it in meantime?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Moving from sdb1 to sda1

Post by Burgess85 »

Joulinar wrote: Sun Jul 25, 2021 9:47 pm means you solved it in meantime?
No how do I move it all over onto the new hard drive?
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

Well you could clone your drive using a tool like Gparted or you simply mount both drives using drive manager and copy all files using cp -p /old/loaction/* /new/location/
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
User avatar
WarHawk
Posts: 773
Joined: Thu Jul 20, 2017 8:55 am

Re: Moving from sdb1 to sda1

Post by WarHawk »

Yup...If I ever need to do a full drive to drive migration

I get a live CD called ventoy

copy the partitionmagic iso to it (along with any other iso I would like to boot)

Boot into the live cd, then ghost it over, this way both drives are not mounted, are not reading/writing anything (just make sure you do a fsck on the source drive to make sure there isn't anything awry)

Safest way to move data without loss or corruption
Burgess85
Posts: 58
Joined: Sat Mar 20, 2021 5:03 pm

Re: Moving from sdb1 to sda1

Post by Burgess85 »

Joulinar wrote: Sun Jul 25, 2021 11:02 pm Well you could clone your drive using a tool like Gparted or you simply mount both drives using drive manager and copy all files using cp -p /old/loaction/* /new/location/
Thank you and then how do I get dietpi to use that location instead as that is where dietpi files are stored.
User avatar
Joulinar
Posts: 5619
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

still recommended way is to clone your drive. Once done, we could check on how to mount the drive correctly.
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply