Acer Aspire A-315-56. Second drive SATA SSD magic.

AlexVolkoff
AlexVolkoff Member Posts: 11

Tinkerer

Hi!

System description:
Acer Aspire A-315-56 laptop
First drive:  M.2 NVME SSD  - Ubuntu 20.04 installed.
Second drive: SATA SSD

Situation:
After power on both drives are present in BIOS.
After Ubuntu loading only First drive present. Second drive not recognized by any disk utilites (fdisk,Gparted..) at all . In dmesg log file has next: "...ata2: SATA link down (SStatus 4 SControl 300)...."
After  doing laptop sleep mode in/out (dislay panel down/up) second drive appear. But, every time I must manually mount second drive.

So, system boot sequence every time is:
1. power on
2. waiting system load
3. display panel down, enter sleep mode
4.display panel up, exit sleep mode
5. mount second drive manually

Tested with three different models of second drives. All are same.
Tested with Windows10  - no problem, second drive always present.

What is the bug with laptop? Or with Ubuntu ? Or with both?




Answers

  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    Does it exist as a device under /dev/SD* where the * could be anything? It could be that it's just not auto-mounting on boot  and the power / sleep cycle is just causing it to treat it like a removable disk 

    If it exists under Dev, you may be able to add it to fstab or through the GUI disk management tab to make it auto mount
  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    " Does it exist as a device under /dev/SD* where the * could be anything?  "

    No, hasn't any /dev/sd* present after OS loaded (only /nvme0n1p1 present at that time), until to sleep/wakeup sequence are done.
    When sleep/wakeup are done /dev/sda appeared.




  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem

    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.


  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.




  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.


  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.


  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.


  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.


  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    UPD. Below is tech info:

    1. After OS loaded, and before sleep/wakeup sequence done

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    nvme0n1     259:0    0   477G  0 disk
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                      
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    2. After sleep/wakeup done:

    user@user-Desktop:~$ grep -i sata /var/log/syslog
    Nov 29 13:32:49 user-Desktop kernel: [    0.769427] ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SAT
    A mode
    Nov 29 13:32:49 user-Desktop kernel: [    0.780942] ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    0.780946] ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    Nov 29 13:32:49 user-Desktop kernel: [    1.096616] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:32:49 user-Desktop kernel: [    2.991541] ata1: SATA link down (SStatus 1 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160863] ata2: SATA link down (SStatus 4 SControl 300)
    Nov 29 13:39:44 user-Desktop kernel: [  448.160900] ata1: SATA link up 6.0 Gbps (SStatus 133 SControl 300)

    user@user-Desktop:~$ lsblk
    NAME        MAJ:MIN RM   SIZE RO TYPE MOUNTPOINT
    sda           8:0    0 447,1G  0 disk  
    ├─sda2        8:2    0  15,7G  0 part  
    └─sda3        8:3    0 431,5G  0 part  
    nvme0n1     259:0    0   477G  0 disk  
    ├─nvme0n1p1 259:1    0   512M  0 part /boot/efi
    └─nvme0n1p2 259:2    0 476,4G  0 part /

    user@user-Desktop:~$ sudo fdisk -l
    Disk /dev/nvme0n1: 476,96 GiB, 512110190592 bytes, 1000215216 sectors
    Disk model: SSDPR-PX500-512-80                       
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: E46E2443-63C9-40FA-90BA-63C10851FB56

    Device           Start        End   Sectors   Size Type
    /dev/nvme0n1p1    2048    1050623   1048576   512M EFI System
    /dev/nvme0n1p2 1050624 1000214527 999163904 476,4G Linux filesystem


    Disk /dev/sda: 447,13 GiB, 480103981056 bytes, 937703088 sectors
    Disk model: UNIC2 S100-480   
    Units: sectors of 1 * 512 = 512 bytes
    Sector size (logical/physical): 512 bytes / 512 bytes
    I/O size (minimum/optimal): 512 bytes / 512 bytes
    Disklabel type: gpt
    Disk identifier: 999B132E-1A0D-AE43-9199-9B6C3C4869AA

    Device         Start       End   Sectors   Size Type
    /dev/sda2  904814592 937701375  32886784  15,7G Linux swap
    /dev/sda3       2048 904814591 904812544 431,5G Microsoft basic data

    Partition table entries are not in disk order.


  • Leostat
    Leostat ACE Posts: 3,043 Pathfinder
    Oops on the multi post aha!

    If you grep for sda in dmesg what shows? info on the drive would be under that rather than sata :) and try a 

    ls /dev/sd*

    after booting but before the sleep
  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    Hi!

    Sorry for multi post.
    I didn't do it on purpose.

    Ok! let's go back to our sheep)

    After booting but before the sleep:

    1. Grep for sda in dmesg show nothing at all.

    2.
    user@user-Desktop:~$ grep -i sata /var/log/dmesg
    [    0.771555] kernel: ahci 0000:00:17.0: AHCI 0001.0301 32 slots 2 ports 6 Gbps 0x3 impl SATA
    mode
    [    0.783078] kernel: ata1: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13100 irq 125
    [    0.783081] kernel: ata2: SATA max UDMA/133 abar m2048@0x4fc13000 port 0x4fc13180 irq 125
    [    1.104435] kernel: ata2: SATA link down (SStatus 4 SControl 300)
    [    2.990414] kernel: ata1: SATA link down (SStatus 1 SControl 300)

    3.
    user@user-Desktop:/dev$ ls /dev/sd*  
    ls: cannot access '/dev/sd*': No such file or directory

    4.
    user@user-Desktop:~$ grep -i sda /var/log/syslog
    Nov 30 08:35:36 user-Desktop systemd[1]: dev-sda2.device: Job dev-sda2.device/start timed out.
    Nov 30 08:35:36 user-Desktop systemd[1]: Timed out waiting for device /dev/sda2.
    Nov 30 08:35:36 user-Desktop systemd[1]: Dependency failed for /dev/sda2.
    Nov 30 08:35:36 user-Desktop systemd[1]: dev-sda2.swap: Job dev-sda2.swap/start failed with res
    ult 'dependency'.
    Nov 30 08:35:36 user-Desktop systemd[1]: dev-sda2.device: Job dev-sda2.device/start failed with
    result 'timeout'.

    Seems, like second drive not present at all for OS before sleep/wakeup sequence will be done.

    In /var/log/dmesg ata1 was present, but after " SATA link down (SStatus 1 SControl 300)" it has disappear for OS.
    When we get SStatus 4, it is mean OK, and OS recognized second drive.
    But SStatus4 we get after sleep/wakeup sequence only, but not after OS boot.

    What is SStatus mean?

    And I see one interesting thing: second drive was recognized by OS as first drive (ata1). Maybe the dog is buried right here?
















  • AlexVolkoff
    AlexVolkoff Member Posts: 11

    Tinkerer

    edited November 2021
     UPD:
    I'm found one book, named "The Essential Guide to Serial ATA and SATA Express". In that book has some explained about SStatus and SControl values.

    "...
    SStatus Register
    The SStatus register is a 32-bit read-only register that conveys the current state of the interface and host
    adapter.
    ...."

    SStatus = 1 is mean that "Device presence detected but Phy communication not established"
    SStatus = 4 is mean that "Device presence detected and Phy communication established"

    "...
    The SControl register is a 32-bit read-write register that provides the interface by which software con-
    trols the serial ATA interface capabilities
    ...."

    SControl = 300 is mean that "Limit speed negotiation to a rate not > Generation 2 communication rate" + "Transitions to the PARTIAL power management state disabled."

    So, in our case it is mean that second drive presence detected but Phy communication not established.