Synology diskstation – diskcheck

Courtesy of https://://www.haschenweng.info

The Synology does not have a facility to check the file-system during boot up, and the following instructions will allow you to run a file-system repair (if possible, make a backup of critical files before):

1 Make sure that you have SSH enabled and log into the Synology via SSH
2 Shutdown all services except SSH (this will unmount the volume):

syno_poweroff_task -d

3 Enable the volume:

vgchange -ay

4 Check for errors, but do not fix:

e2fsck -nvf -C 0 /dev/vg1/lv

5 Try to fix the file-system errors

e2fsck -pvf -C 0 /dev/vg1/lv

6 If -pvf can’t work, use -yvf instead.

e2fsck -yvf -C 0 /dev/vg1/lv

7 Reboot the Synology

Sæt etiket på din usb disk

Etiketten

Faktisk er det ikke disken du sætter etiket på men partitionen

e2label /dev/sdXY "Min Disk"

tune2fs -L "Min Disk" /dev/sdXY

Find disk og partition

Men hvordan finder du nu sdXY?

~ >>> lsblk                                                                    
NAME    MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
sda       8:0    0 223,6G  0 disk 
├─sda1    8:1    0   513M  0 part /boot/efi
├─sda2    8:2    0  31,3G  0 part /
├─sda4    8:4    0  15,6G  0 part 
├─sda5    8:5    0  15,6G  0 part 
├─sda6    8:6    0  15,6G  0 part 
├─sda7    8:7    0  15,6G  0 part 
├─sda8    8:8    0  15,6G  0 part 
├─sda9    8:9    0  15,6G  0 part 
└─sda10   8:10   0  98,1G  0 part /media/home
sdb       8:16   0   1,4T  0 disk 
├─sdb1    8:17   0  29,8G  0 part 
└─sdb2    8:18   0   1,3T  0 part /media/builder
sdc       8:32   0   1,8T  0 disk 
└─sdc1    8:33   0   1,8T  0 part /media/usb/data-2000
sdd       8:48   0   477G  0 disk 
└─sdd1    8:49   0 419,1G  0 part /media/usb/data-512
sde       8:64   0 238,5G  0 disk 
└─sde1    8:65   0 238,5G  0 part /media/vbox
sdf       8:80   0 238,5G  0 disk 
└─sdf1    8:81   0 238,5G  0 part /media/fhdata
sdg       8:96   0 232,9G  0 disk 
└─sdg1    8:97   0   200G  0 part /media/sources
sdh       8:112  0 465,8G  0 disk 
└─sdh1    8:113  0 465,8G  0 part /media/build
sdn       8:208  1   980M  0 disk /run/media/fh/sysrcd-4.9.4

Mere info om Etiketter og partitioner

Binære forkortelser og størrelser

Enheder
Binær
bit b 1 b
byte B 8 b
Decimal
kilobit kb 1.000 b 10^3 b
kilobyte kB 1.000 B 10^3 B
megabit Mb 1.000 kb 10^6 b 1.000.000 b
megabyte MB 1.000 kB 10^6 B 1.000.000 B
gigabit Gb 1.000 Mb 10^9 b 1.000.000.000 b
gigabyte GB 1000 MB 10^9 B 1.000.000.000 B
Transmission
1 bps bps b/s
~ 0,001 kbps kb/s
~ 0,125 Bps B/s
~ 0,45 kBph kB/h
~ 0,0075 kBpmin kB/min
1 kbps 1.000 bps b/s
~ 1 kbps kb/s
~ 125 Bps B/s
~ 450 kBph kB/h
~ 7,50 kBpmin kB/min
1 Mbps 1.000.000 bps b/s
~ 1.000 kbps kb/s
~ 125.000 Bps B/s
~ 450.000 kBph kB/h
~ 7.500 kBpmin kB/min
Standard
Før 1999 Nuværende
bit b 1 bit = 1 bit bit 1 b
byte B 1 B = 8 bit byte 1 B = 8 b
Transmission
kilobit kbit/kb 1 kbit = 1024 b kilobit 1 kb = 1000 b
kilobyte kB 1 kB = 1024 B kilobyte 1 kB = 1000 B
megabit Mbit 1 Mbit = 1024 kb megabit 1 Mb = 1000 kb
megabyte MB 1 MB = 1024 kB megabyte 1 MB = 1000 kB
gigabit Gbit/Gb 1 Gbit = 1024 Mb gigabit 1 Gb = 1000 Mb
gigabyte GB 1 GB = 1024 MB gigabyte 1 GB = 1000 MB
Lager
kibibit Kibit kibibit 1 Kib = 1024 b
kibibyte KiB kibibyte 1 KiB = 1024 B
mebibit Mibit/Mib mebibit 1 Mib = 1024 Kib
mebibyte Mibit/MiB mebibyte 1 MiB = 1024 KiB
gibibit Gibit/Gib gibibit 1 Gib = 1024 Mib
gibibyte GiB gibibyte 1 GiB = 1024 MiB
Sammenligning
Decimal IEC
kilobyte 1000 kB kibibyte 1024 KiB
megabyte 1000^2 MB mebibyte 1024^2 MiB
gigabyte 1000^3 GB gibibyte 1024^3 GiB
terabyte 1000^4 TB tebibyte 1024^4 TiB
petabyte 1000^5 PB pebibyte 1024^5 PiB
exabyte 1000^6 EB exbibyte 1024^6 EiB
zettabyte 1000^7 ZB zebibyte 1024^7 ZiB
yottabyte 1000^8 YB yobibyte 1024^8 YiB

Hastighedsberegner
Standarder og bit/byte-omregner