Hi there!
Thank you very much for the help!
Even if it’s one year later I hope you are still there because I followed @bromham instructions :
I have the WD 1TB drive and it arrived unformatted. To check whether yours has any partitions defined:
sudo fdisk -l /dev/sda
If no partitions are listed, create a primary partition:
sudo fdisk /dev/sda
and type" n" to create a partition, “p” to make it primary and “1” to make it the first partition. Accept defaults for first and last sector to make the partition span the entire disk. When the partition has been created, you may like to change it to NTFS so it’s visible via Samba. To do this, type “t” and choose option “7”. Finally type “p” to display the partition table to check it looks OK. If you’re happy with it, type “w” to write the new partition table to the disk and “q” to quit fdisk.
[All this from memory, so don’t necessarily take it literally but it should help. Nothing changes on the disk until you type the “w”, so you can always abort with “q”.]
The partition will need to be formatted. Assuming NTFS:
sudo mkfs.ntfs -f -v -I -L Pi-Drive /dev/sda1
On reboot, you should find the disk auto-mounted under /media.
but I can’t do the last step as I get those results :
osmc@osmc:/media$ sudo fdisk -l /dev/sda
Disk /dev/sda: 349,3 GiB, 375049420800 bytes, 732518400 sectors
Geometry: 255 heads, 63 sectors/track, 45597 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: sun
osmc@osmc:/media$ sudo fdisk /dev/sda
Welcome to fdisk (util-linux 2.29.2).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Command (m for help): n
Partition number (1-8, default 1): 1
First sector (0-732515805, default 0): 0
Last sector or +sectors or +size{K,M,G,T,P} (0-732515805, default 732515805): 732515805
Created a new partition 1 of type 'Linux native' and of size 349,3 GiB.
Command (m for help): t
Selected partition 1
Partition type (type L to list all types): 7
Changed type of partition 'Linux native' to 'SunOS var'.
Command (m for help): p
Disk /dev/sda: 349,3 GiB, 375049420800 bytes, 732518400 sectors
Geometry: 255 heads, 63 sectors/track, 45597 cylinders
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: sun
Device Start End Sectors Size Id Type Flags
/dev/sda1 0 732515804 732515805 349,3G 7 SunOS var
Command (m for help): w
The partition table has been altered.
Calling ioctl() to re-read partition table.
Syncing disks.
osmc@osmc:/media$ q
-bash: q : commande introuvable
osmc@osmc:/media$ cd /
osmc@osmc:/$ sudo mkfs.ntfs -f -v -I -L Pi-Drive /dev/sda1
Failed to access '/dev/sda1': Aucun fichier ou dossier de ce type
The device doesn't exist; did you specify it correctly?
Can you help me find out what is the problem please?