Disk numbers and device names

Currently reading
Disk numbers and device names

62
9
NAS
DS918+, DS916+, DS214+, DS211j
Hi!

I'm querying my Synology metrics using SNMP. Some metrics do return disk numbers like disk1, disk2 and more others return sda, sdb, sdc, sdd, sdq and even sdr.

Now, I'm trying to find out which disk number corresponds to which device name. Is there any Linux command that will give me those associations? Command df does not, just checked.

Thx,
Michael
 

jeyare

Subscriber
1,579
529
NAS
1811+, 3x 1813+, 718+, 214play ... multisite Ubiquiti Unifi networks (USG-Pro,PoE,NanoHD)
Operating system
Linux, Windows
Mobile operating system
Android, iOS
in Synology is valid this setup:
- physical Disk1 to Disk-n ... from left bay to right, or from upper bay to lowest
- then use CLI command: lsblk --nodeps -no name,serial,type,tran
you will see output like this:
sda 0000000012400917BA30 disk sata
sdb 0000000012400917BA96 disk sata
sr0 4B583242334C453233353320 rom usb

or command: inxi -Dxx
then you will see:
Drives: HDD Total Size: 810.2GB (42.9% used)
ID-1: /dev/sdc model: ST3160827AS size: 160.0GB serial: 5MT2HMH6
ID-2: /dev/sdb model: WDC_WD3200JD size: 320.1GB serial: WD-WCAMR1302926
ID-3: /dev/sda model: ST380817AS size: 80.0GB serial: 4MR2EWBE
ID-4: /dev/sdd model: ST3250824AS size: 250.1GB serial: 9ND08GKX
last - you need mapping your MBI.
 
62
9
NAS
DS918+, DS916+, DS214+, DS211j
Hi,

just found some time to check your suggestions, however, none of those commands exist on my NAS. I tried using lsblk or inxi within SSH, even with sudo, to no avail: command not found.

Maybe I missed something?

Michael
 

jeyare

Subscriber
1,579
529
NAS
1811+, 3x 1813+, 718+, 214play ... multisite Ubiquiti Unifi networks (USG-Pro,PoE,NanoHD)
Operating system
Linux, Windows
Mobile operating system
Android, iOS
you need to install Optware to your NAS:
1. find right bootstrap script by used CPU in yourNAS ... name contains “bootstrap”
here
If you don’t know what CPU is in your NAS, here is a help

2. download bootstrap script:
wget link-to-the-script ....include http://

3. make the scrip executable:
chmod +x name-of-the-script

4. run the script:
sh name-of-the-script

5. for clean installation, remove the script
rm name-of-the-script

6. Restart your NAS

7. update or upgrade your packages:
/opt/bin/ipkg update
/opt/bin/ipkg upgrade

when your ipkg failed to start, delete (uncomment) # from these rows in .. /root/.profil
#PATH=/sbin:/bin:/usr/sbin:/usr/bin:/usr/syno/sbin:/usr/syno/bin:/usr/local/sbin:/usr/local/bin
#export PATH


then you can install your tools by:

ipkg install name-of-the-tools

done
 

Create an account or login to comment

You must be a member in order to leave a comment

Create account

Create an account on our community. It's easy!

Log in

Already have an account? Log in here.

Welcome to SynoForum.com!

SynoForum.com is an unofficial Synology forum for NAS owners and enthusiasts.

Registration is free, easy and fast!

Trending threads

Top