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

Re: Moving from sdb1 to sda1

Post by Burgess85 »

Joulinar wrote: Mon Jul 26, 2021 11:17 pm still recommended way is to clone your drive. Once done, we could check on how to mount the drive correctly.
Both drives are already mounted in dietpi
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

but I guess you would need to clone the drives before hand as first step. Cloning will sure your data are consistent.

Anyway, let's have a look to your drive configuration

Code: Select all

lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
cat /etc/fstab
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 »

Can I use move dietpi user data in drive manager?
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

does you have your userdata directory located on the disk only? or anything else? and pls try to answer my questions I raised before?
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: Thu Jul 29, 2021 12:33 am does you have your userdata directory located on the disk only? or anything else? and pls try to answer my questions I raised before?

Code: Select all

root@Burgess-Server:~# lsblk -o name,fstype,label,size,ro,type,mountpoint,partuuid,uuid
NAME FSTYPE LABEL   SIZE RO TYPE MOUNTPOINT PARTUUID                             UUID
sda               931.5G  0 disk
└─sda1
     ext4         931.5G  0 part /mnt/Inter 8e9950e7-3f22-4243-8f1f-71c27d72d799 a996e635-1af2-4b5a-85d8-256e7c2b958a
sdb                 2.7T  0 disk
└─sdb1
     ext4           2.7T  0 part /mnt/WDExt 82fff9eb-410c-4a4c-8ab8-c93c3d5d8557 29fded8e-390f-474c-bf35-6000a3b88593
mmcblk0
│                  29.8G  0 disk
├─mmcblk0p1
│    vfat   boot    256M  0 part /boot      9730496b-01                          5DE4-665C
└─mmcblk0p2
     ext4   rootfs
                   29.5G  0 part /          9730496b-02                          7295bbc3-bbc2-4267-9fa0-099e10ef5bf0

Code: Select all

root@Burgess-Server:~# cat /etc/fstab
# You can use "dietpi-drive_manager" to setup mounts.
# NB: It overwrites and re-creates physical drive mount entries on use.
#----------------------------------------------------------------
# NETWORK
#----------------------------------------------------------------


#----------------------------------------------------------------
# TMPFS
#----------------------------------------------------------------
tmpfs /tmp tmpfs size=1938M,noatime,lazytime,nodev,nosuid,mode=1777
tmpfs /var/log tmpfs size=50M,noatime,lazytime,nodev,nosuid,mode=1777

#----------------------------------------------------------------
# MISC: ecryptfs, vboxsf (VirtualBox shared folder), gluster, bind mounts
#----------------------------------------------------------------


#----------------------------------------------------------------
# SWAP SPACE
#----------------------------------------------------------------


#----------------------------------------------------------------
# PHYSICAL DRIVES
#----------------------------------------------------------------
PARTUUID=9730496b-02 / ext4 noatime,lazytime,rw 0 1
PARTUUID=9730496b-01 /boot vfat noatime,lazytime,rw 0 2
UUID=29fded8e-390f-474c-bf35-6000a3b88593 /mnt/WDExternal ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
UUID=a996e635-1af2-4b5a-85d8-256e7c2b958a /mnt/InternalSSD ext4 noatime,lazytime,rw,nofail,noauto,x-systemd.automount
root@Burgess-Server:~#
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

I'm guessing you're storing dietpi user data only on the first disk correct? If yes, you should be able to use drive manager to move data over to the new disk.
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: Fri Jul 30, 2021 1:22 pm I'm guessing you're storing dietpi user data only on the first disk correct? If yes, you should be able to use drive manager to move data over to the new disk.
Yes and is that where Apache files are also stored?
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

Not sure what you mean by Apache files. But web server root directory is /var/www/ and should be located on your SD card.
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: Fri Jul 30, 2021 8:32 pm Not sure what you mean by Apache files. But web server root directory is /var/www/ and should be located on your SD card.
I thought that all files were in the hard drive?
User avatar
Joulinar
Posts: 5617
Joined: Sat Nov 16, 2019 12:49 am

Re: Moving from sdb1 to sda1

Post by Joulinar »

Again, which files you are looking for?
Pls let us know if a solution is working. This could help others if they hit by similar situation. Your DietPi Team
Post Reply