Disk numbers and device names

Currently reading
Disk numbers and device names

196
36
NAS
DS920+, DS918+, DS214+, DS211j
Operating system
  1. Linux
  2. Windows
Mobile operating system
  1. Android
  2. iOS
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
 
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.
 
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
 
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.

Similar threads

Just say "NO". These unsupported articles have been around for years, and they are always plagued by...
Replies
19
Views
1,149
Spent some time tonight. Worked fine for HiKvision, not no-name Chinese. (Pointing at same directory as...
Replies
4
Views
494
  • Solved
Went ahead and swapped the first 10 TB drive out and put in the (minimum RAID size) 8 TB drive. It works...
Replies
6
Views
1,760
The usbshare1 is not a folder, it is the operation system name for the usb disk itself. If you...
Replies
1
Views
1,169
  • Question
You are probably right! If this is the case, I will open a new thread with my questions derived from that...
Replies
5
Views
1,764
yes, will definitely use the move function, its way faster. I just hope it can move my VMs running too...
Replies
8
Views
1,286
Thanks for clarification. Can you change the location of the shared folder that stores the VM to the other...
Replies
3
Views
1,306

Welcome to SynoForum.com!

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

Registration is free, easy and fast!

Back
Top