Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.debian.user > #267209

Re: testing new sdm drive

From "Alexander V. Makartsev" <avbetev@gmail.com>
Newsgroups linux.debian.user
Subject Re: testing new sdm drive
Date 2024-02-10 02:40 +0100
Message-ID <I5Kvv-96aU-1@gated-at.bofh.it> (permalink)
References <I56Rr-8H2c-9@gated-at.bofh.it> <I5bHr-8JRe-3@gated-at.bofh.it> <I5HHj-936t-5@gated-at.bofh.it>
Organization linux.* mail to news gateway

Show all headers | View raw


[Multipart message — attachments visible in raw view] - view raw

On 10.02.2024 03:34, gene heskett wrote:
> On 2/8/24 07:22, Alexander V. Makartsev wrote:
>> This is how I would test it.
>> First create a new GPT partition table and a new 2TB partition:
>>      $ sudo gdisk /dev/sdX check
>>
>> /!\  Make double sure you've selected the right device by using 
>> "lsblk" and "blkid" utilities.  /!\
>> /!\                            It could change from 'sdm' to another 
>> name after reboot.                              /!\
>>
>> At gdisk prompt press "o" to create a new GPT table, next press "n" 
>> to create a new partition, accept default values by pressing "enter".
>> To verify setup press "p", to accept configuration and write it to 
>> device press "w". check
>>
>> Next format partition to ext4 filesystem:
>>      $ sudo mkfs.ext4 -m 0 -e remount-ro /dev/sdX1 check
>>
>> Next mount the filesystem:
>>      $ sudo mkdir /mnt/disktest check
>>      $ sudo mount /dev/sdX1 /mnt/disktest check
>>
>> Next create reference 1GB file filled with dummy data:
>>      $ cd /mnt/disktest check
>>      $ sudo fallocate -l 1G ./reftestfile check
>>      $ sudo badblocks -w -s -t random ./reftestfile check
>>
>> Now we can use script to create 1830 1GB files and check their checksum:
>>      $ for i in $(seq 1830); do sudo dd if="./reftestfile" 
>> of="./testfile${i}" status=none; md5sum -b "./testfile${i}" ;done
>>
>> This procedure will take a very long time to complete. "md5sum" will 
>> output the checksum for each file and they should be equal to 
>> checksum of "reftestfile":
>>      $ md5sum -b ./reftestfile
> Got a problem Alexander:
> I had to put the script someplace else. So I put it in my private 
> /home/gene/bin as disktest.txt with nano. couldn't find it.
> But:
> gene@coyote:/mnt/disktest$ sudo /home/gene/bin/disktest.txt
> sudo: /home/gene/bin/disktest.txt: command not found
If you put that 'for' loop one-liner inside, I think you forgot to make 
"/home/gene/bin/disktest.txt" executable:
     $ chmod +x /home/gene/bin/disktest.txt

> And:
> gene@coyote:/mnt/disktest$ ls /home/gene/bin/disktest.txt
> /home/gene/bin/disktest.txt
> So I think I found the problem with my script, ancient eyeballs can't 
> tell the diff between () and{} so I fixed that but it still won't run 
> or be killed. I don't care how big you've made the t-bird font, by the 
> time you've read 2 more msgs, its back to about 6 point text.  Grrrrrrr.
>
> So I fired up a root session of htop, found about 8 copies of dd 
> showing and started killing them but cannot kill the last 2 in the D 
> state.
>
> And cannot find .disktest.txt running in a root htop and the2 copy's 
> of dd can't be killall'd.
>
It's not possible for me to know what went wrong.
Have you created "reftestfile" inside "/mnt/disktest" directory?
How many "testfile*" files, if any, were created on the filesystem 
mounted at "/mnt/disktest"?
Was there anything relevant in the syslog about "sdm" drive after the test?
If you'd followed my instructions step by step, you'd end up inside 
"/mnt/disktest" directory and for the last step all you had to do is 
copy and paste that one-liner 'for' loop into the command line.
It's a long line and it really meant to be copied and pasted not typed 
by hand, and also to give you the idea of the process, so you could 
adjust it if needed.
I've tested it again on my computer and it worked as expected, 
synchronously created "testfiles" inside current directory and 
calculated their hashes one by one.


-- 
With kindest regards, Alexander.

⢀⣴⠾⠻⢶⣦⠀
⣾⠁⢠⠒⠀⣿⡁ Debian - The universal operating system
⢿⡄⠘⠷⠚⠋⠀ https://www.debian.org
⠈⠳⣄⠀⠀⠀⠀

Back to linux.debian.user | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-08 08:20 +0100
  Re: testing new sdm drive "Alexander V. Makartsev" <avbetev@gmail.com> - 2024-02-08 13:30 +0100
    Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-08 20:30 +0100
      Re: testing new sdm drive "Alexander V. Makartsev" <avbetev@gmail.com> - 2024-02-08 21:20 +0100
        Re: testing new sdm drive <tomas@tuxteam.de> - 2024-02-09 06:50 +0100
          Re: testing new sdm drive Stefan Monnier <monnier@iro.umontreal.ca> - 2024-02-09 14:00 +0100
            Re: testing new sdm drive <tomas@tuxteam.de> - 2024-02-09 14:10 +0100
              Re: testing new sdm drive Dan Ritter <dsr@randomstring.org> - 2024-02-09 14:40 +0100
                Re: testing new sdm drive tomas@tuxteam.de - 2024-02-09 15:00 +0100
                Re: testing new sdm drive Max Nikulin <manikulin@gmail.com> - 2024-02-09 16:30 +0100
              Re: testing new sdm drive Stefan Monnier <monnier@iro.umontreal.ca> - 2024-02-09 15:30 +0100
                Re: testing new sdm drive <tomas@tuxteam.de> - 2024-02-09 17:20 +0100
        Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-09 10:10 +0100
      Re: testing new sdm drive David Christensen <dpchrist@holgerdanske.com> - 2024-02-09 08:30 +0100
    Re: testing new sdm drive Linux-Fan <Ma_Sys.ma@web.de> - 2024-02-08 21:40 +0100
      Re: testing new sdm drive David Christensen <dpchrist@holgerdanske.com> - 2024-02-09 08:30 +0100
      Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-10 17:10 +0100
      Re: testing new sdm drive continued gene heskett <gheskett@shentel.net> - 2024-02-10 17:30 +0100
        Re: testing new sdm drive continued David Christensen <dpchrist@holgerdanske.com> - 2024-02-11 01:00 +0100
    Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-09 23:40 +0100
      Re: testing new sdm drive "Alexander V. Makartsev" <avbetev@gmail.com> - 2024-02-10 02:40 +0100
        Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-10 18:30 +0100
        Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-03-26 09:40 +0100
          Re: testing new sdm drive David Wright <deblis@lionunicorn.co.uk> - 2024-03-26 17:00 +0100
  Re: testing new sdm drive David Christensen <dpchrist@holgerdanske.com> - 2024-02-08 19:30 +0100
    Re: testing new sdm drive David Christensen <dpchrist@holgerdanske.com> - 2024-02-08 19:40 +0100
    Re: testing new sdm drive Dan Ritter <dsr@randomstring.org> - 2024-02-08 20:10 +0100
    Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-09 10:00 +0100
      Re: testing new sdm drive David Christensen <dpchrist@holgerdanske.com> - 2024-02-10 06:50 +0100
        Re: testing new sdm drive gene heskett <gheskett@shentel.net> - 2024-02-10 18:30 +0100

csiph-web