Adding an SSD external drive

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
deff
Posts: 9
Joined: Fri Feb 10, 2017 12:51 am

Adding an SSD external drive

Post by deff »

Hi all,

I am sure an had account before but don't know what happened since I have had a install for a while using dietpi running kodi. I am now using this mainly for music with an IQAUDIO Dac.

I thought that I will add an external drive (SSD) and move my music from the USB flash drive. I am on the latest update. I have a 120Gb SSD which has 50GB NTFS parttion, a 2GB FAT partition since this was my windows boot until, I replaced with a larger drive. I have formatted the rest of the space as ext4

Device Boot Start End Sectors Size Id Type
/dev/sdb1 * 2048 4196351 4194304 2G b W95 FAT32
/dev/sdb2 4198400 122920959 118722560 56.6G 7 HPFS/NTFS/exFAT
/dev/sdb3 122920960 250068991 127148032 60.6G 83 Linux

I can see the partition as "/dev/sdb3 122920960 250068991 127148032 60.6G 83 Linux*. However when I try to use the dietpi-drive_manager to setup, it can't see it only the 2GB partion ( /dev/sdb1 * 2048 4196351 4194304 2G b W95 FAT32) which it mount


#FSTAB

#External Drives---------------------------------------------------
#NB: Please use dietpi-drive_manager to setup and control your external drives.
/dev/sda1 /mnt/usb_1 auto defaults,noatime,nofail,x-systemd.automount 0 0
/dev/sdb1 /mnt/usb_2 auto defaults,noatime,nofail,x-systemd.automount 0 0
/dev/sdc1 /mnt/usb_3 auto defaults,noatime,nofail,x-systemd.automount 0 0
/dev/sdd1 /mnt/usb_4 auto defaults,noatime,nofail,x-systemd.automount 0 0
/dev/sde1 /mnt/usb_5 auto defaults,noatime,nofail,x-systemd.automount 0 0

If I try to put the entry in fstab and mount this is not working either. I am sure it is something. Any help welcomed

Thanks in advance

Deff
deff
Posts: 9
Joined: Fri Feb 10, 2017 12:51 am

Re: Adding an SSD external drive

Post by deff »

I have done this manually instead of using the dietpi-drive_manager.

Thanks all

Deff
deff
Posts: 9
Joined: Fri Feb 10, 2017 12:51 am

Re: Adding an SSD external drive

Post by deff »

I am back again. I moved the userdata to the new location on the SSD and everything appear ok. I removed the old flash drive but during boot I am getting the following

Timed out waiting for the device dev-sdb3.device
Dependency failed for /mnt/ssdhdd.

I put back the old flash drive but getting the same.

Any ideas what has gone wrong?

Thanks
User avatar
Fourdee
Site Admin
Posts: 2783
Joined: Tue Feb 06, 2007 1:36 pm

Re: Adding an SSD external drive

Post by Fourdee »

deff wrote:I removed the old flash drive but during boot I am getting the following
By removing the old flash drive, your new SSD is most likely moved to /dev/sda3

You can check this with:

Code: Select all

blkid
Edit /etc/fstab and modify /dev/sdb3 to /dev/sda3.
Ideally you should be using UUID's for the mount, again these are available in blkid.

Just bear in mind, manually editing the USB drive mounts in /etc/fstab may render dietpi-drive_manager unstable, as the entries it expects wont be available. Avoid using it in this case.

DietPi-Drive_Manager only supports the 1st partition of a drive. Ideally, if you plan to dedicate the drive to a system, format the drive in DietPi-Drive_Manager to create 1 partition.
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal or become a DietPi patron.
deff
Posts: 9
Joined: Fri Feb 10, 2017 12:51 am

Re: Adding an SSD external drive

Post by deff »

Fourdee,

Thanks. You were right on both counts. I edited /etc/fstab frrom /dev/sdb3 to /dev/sda3. This fixed the issue but the DietPi-Drive_Manager had problems. I have decided to use the whole drive

Regards
Post Reply