create account

LINUXOPOLIS # 17-JANUARY-2020 ~ DISK-MANAGEMENT by wglenz

View this thread on: hive.blogpeakd.comecency.com
· @wglenz · (edited)
$0.07
LINUXOPOLIS # 17-JANUARY-2020 ~ DISK-MANAGEMENT
<center><h3>DISK-MANAGEMENT</h3><b>Building a Linux Habitat<br>willi glenz @ telegram</b><br><a href="https://steempeak.com/@wglenz">Published with SteemPeak</a><br>[home](https://steempeak.com/@wglenz) ~ [previous](https://steempeak.com/linux/@wglenz/linuxopolis-2019-12-30-disk)</center>

<center>![screenshot by willi glenz](https://files.steempeak.com/file/steempeak/wglenz/r7qJSSBX-image.png)</center>

</center>
```
$ vim ~/.config/fish/functions/gdisk-management.fish

function gdisk-management --description 'disk-management'
    clear; echo
    echo '=========================================================================='
    echo '                              DISK-MANAGEMENT                             '
    echo '=========================================================================='
    echo ' # apt install smartmontools gsmartcontrol gddrescue testdisk             '
    echo '--------------------------------------------------------------------------'
    echo ' # badblocks -v /dev/sdb                                                  '
    echo ' # blkid /dev/sda1                                                        '
    echo ' # cfdisk /dev/sda                                                        '
    echo ' $ cat /sys/devices/virtual/thermal/thermal_zone0/temp                    '
    echo ' $ df -hT --exclude=squashfs                                              '
    echo ' # du -a /home/user | sort -nr | head -n 10                               '
    echo ' # du -hs / 2> /dev/null                                                  '
    echo ' # du -kx /home/user | sort -nr -k1 | head -n 10                          '
    echo ' $ du -h --max-depth=1 | sort -rh                                         '
    echo ' $ du -sch ~                                                              '
    echo ' $ du -sk ~/* | sort -r -n | head -10                                     '
    echo ' # gdisk /dev/sda                                                         '
    echo ' # fdisk -l                                                               '
    echo ' # fdisk -l /dev/sda                                                      '
    echo ' # hwinfo --disk                                                          '
    echo ' # hwinfo --short | less                                                  '
    echo ' $ lsblk                                                                  '
    echo ' # lshw -short -class disk                                                '
    echo ' # lshw -short | less                                                     '
    echo ' # mount -o loop /home/user/iso/xyz.iso /mnt/                             '
    echo ' # mount -t tmpfs -o size=2048M tmpfs /media/ramdisk                      '
    echo ' $ mount | column -t                                                      '
    echo ' # parted /dev/sda                                                        '
    echo ' # smartctl -a /dev/sda | less -N                                         '
    echo ' # smartctl -i /dev/sda                                                   '
    echo ' $ sync                                                                   '
    echo ' # tune2fs -l /dev/sda2 | less -N                                         '
    echo ' # tune2fs -l /dev/sdb	                                                '	
    echo ' # tune2fs -m 0 /dev/sdb                                                  '	
    echo '--------------------------------------------------------------------------'
    echo ' ddrescue testdisk                                                        '
    echo '=========================================================================='
    echo; read
    clear; lsblk; read
    clear; sudo fdisk -l
    echo
end
```

<br>
```
SOURCES
 man-pages ............................................................ $ man ddrescue testdisk
 smartctl ......................................... wiki.unraid.net/Understanding_SMART_Reports
 picture ................................................. screenshoot by me ~ my gnome-desktop
```
👍  , , , , , , , , , , , , , , ,
👎  
properties (23)
authorwglenz
permlinklinuxopolis-17-january-2020-disk-management
categorylinux
json_metadata{"app":"steempeak/2.2.7","format":"markdown","tags":["linux","debian","bash","fish","opensource"],"users":["wglenz"],"links":["/@wglenz","/@wglenz","/linux/@wglenz/linuxopolis-2019-12-30-disk"],"image":["https://files.steempeak.com/file/steempeak/wglenz/r7qJSSBX-image.png"]}
created2020-01-17 08:00:00
last_update2020-01-17 11:25:24
depth0
children0
last_payout2020-01-24 08:00:00
cashout_time1969-12-31 23:59:59
total_payout_value0.033 HBD
curator_payout_value0.032 HBD
pending_payout_value0.000 HBD
promoted0.000 HBD
body_length4,121
author_reputation1,727,575,717,311
root_title"LINUXOPOLIS # 17-JANUARY-2020 ~ DISK-MANAGEMENT"
beneficiaries
0.
accountsteemchiller
weight100
1.
accountsteempeak
weight100
max_accepted_payout1,000,000.000 HBD
percent_hbd0
post_id94,475,444
net_rshares414,672,199,813
author_curate_reward""
vote details (17)