LINUX.ORG.RU

Сообщения Wenti

 

sfdisk не может открыть диск

Форум — Linux-hardware

Пытаюсь установить Manjaro. Установка ломается в самом начале на выолнении команды sfdisk /dev/sda

# sfdisk /dev/sda
sfdisk: cannot open /dev/sda: Input/output error

Подскажите, пожалуйста, что с этим можно сделать. Всё записать нулями?

Выполнение parted /dev/sda print

# parted /dev/sda print
Model: ATA TOSHIBA MQ02ABD1 (scsi)
Disk /dev/sda: 1000GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags: 

Number  Start  End  Size  File system  Name  Flags

Выполнение smartctl -a /dev/sda

# smartctl -a /dev/sda
smartctl 7.1 2019-12-30 r5022 [x86_64-linux-5.6.7-1-MANJARO] (local build)
Copyright (C) 2002-19, Bruce Allen, Christian Franke, www.smartmontools.org

=== START OF INFORMATION SECTION ===
Device Model:     TOSHIBA MQ02ABD100H
Serial Number:    26LPT0NHT
LU WWN Device Id: 5 000039 6d1c08c47
Firmware Version: HEF01C
User Capacity:    1,000,204,886,016 bytes [1.00 TB]
Sector Sizes:     512 bytes logical, 4096 bytes physical
Rotation Rate:    5400 rpm
Form Factor:      2.5 inches
Device is:        Not in smartctl database [for details use: -P showall]
ATA Version is:   ATA8-ACS (minor revision not indicated)
SATA Version is:  SATA 3.0, 6.0 Gb/s (current: 6.0 Gb/s)
Local Time is:    Fri May  1 07:24:42 2020 MSK
SMART support is: Available - device has SMART capability.
SMART support is: Enabled

=== START OF READ SMART DATA SECTION ===
SMART overall-health self-assessment test result: PASSED
See vendor-specific Attribute list for marginal Attributes.

General SMART Values:
Offline data collection status:  (0x84) Offline data collection activity
                                        was suspended by an interrupting command from host.
                                        Auto Offline Data Collection: Enabled.
Self-test execution status:      ( 117) The previous self-test completed having
                                        the read element of the test failed.
Total time to complete Offline 
data collection:                (  120) seconds.
Offline data collection
capabilities:                    (0x51) SMART execute Offline immediate.
                                        No Auto Offline data collection support.
                                        Suspend Offline collection upon new
                                        command.
                                        No Offline surface scan supported.
                                        Self-test supported.
                                        No Conveyance Self-test supported.
                                        Selective Self-test supported.
SMART capabilities:            (0x0003) Saves SMART data before entering
                                        power-saving mode.
                                        Supports SMART auto save timer.
Error logging capability:        (0x01) Error logging supported.
                                        General Purpose Logging supported.
Short self-test routine 
recommended polling time:        (   2) minutes.
Extended self-test routine
recommended polling time:        ( 209) minutes.
SCT capabilities:              (0x003d) SCT Status supported.
                                        SCT Error Recovery Control supported.
                                        SCT Feature Control supported.
                                        SCT Data Table supported.

SMART Attributes Data Structure revision number: 16
Vendor Specific SMART Attributes with Thresholds:
ID# ATTRIBUTE_NAME          FLAG     VALUE WORST THRESH TYPE      UPDATED  WHEN_FAILED RAW_VALUE
  1 Raw_Read_Error_Rate     0x002f   100   100   050    Pre-fail  Always       -       0
  2 Throughput_Performance  0x0027   100   100   050    Pre-fail  Always       -       0
  3 Spin_Up_Time            0x0023   100   100   002    Pre-fail  Always       -       2833
  4 Start_Stop_Count        0x0032   100   100   000    Old_age   Always       -       33827
  5 Reallocated_Sector_Ct   0x0033   100   100   010    Pre-fail  Always       -       8
  7 Seek_Error_Rate         0x002f   100   100   050    Pre-fail  Always       -       0
  8 Seek_Time_Performance   0x0025   100   100   050    Pre-fail  Offline      -       0
  9 Power_On_Hours          0x0032   062   062   000    Old_age   Always       -       15538
 10 Spin_Retry_Count        0x0033   253   100   030    Pre-fail  Always       -       0
 12 Power_Cycle_Count       0x0032   100   100   000    Old_age   Always       -       2526
183 Runtime_Bad_Block       0x0032   100   100   001    Old_age   Always       -       1
184 End-to-End_Error        0x0033   100   100   097    Pre-fail  Always       -       0
185 Unknown_Attribute       0x0032   100   100   001    Old_age   Always       -       65535
187 Reported_Uncorrect      0x0032   001   001   000    Old_age   Always       -       65535
188 Command_Timeout         0x0032   100   099   000    Old_age   Always       -       3
189 High_Fly_Writes         0x003a   100   100   001    Old_age   Always       -       0
190 Airflow_Temperature_Cel 0x0022   059   035   040    Old_age   Always   In_the_past 41 (Min/Max 28/43 #130)
191 G-Sense_Error_Rate      0x0032   100   100   000    Old_age   Always       -       198
192 Power-Off_Retract_Count 0x0022   100   100   000    Old_age   Always       -       47253225614
193 Load_Cycle_Count        0x0032   052   052   000    Old_age   Always       -       482266
194 Temperature_Celsius     0x0022   059   035   040    Old_age   Always   In_the_past 41 (Min/Max 28/43 #130)
196 Reallocated_Event_Count 0x0032   100   100   000    Old_age   Always       -       1
197 Current_Pending_Sector  0x0032   100   100   000    Old_age   Always       -       6336
199 UDMA_CRC_Error_Count    0x0032   200   253   000    Old_age   Always       -       0

SMART Error Log Version: 1
ATA Error Count: 65535 (device log contains only the most recent five errors)
        CR = Command Register [HEX]
        FR = Features Register [HEX]
        SC = Sector Count Register [HEX]
        SN = Sector Number Register [HEX]
        CL = Cylinder Low Register [HEX]
        CH = Cylinder High Register [HEX]
        DH = Device/Head Register [HEX]
        DC = Device Command Register [HEX]
        ER = Error register [HEX]
        ST = Status register [HEX]
Powered_Up_Time is measured from power on, and printed as
DDd+hh:mm:SS.sss where DD=days, hh=hours, mm=minutes,
SS=sec, and sss=millisec. It "wraps" after 49.710 days.

Error 65535 occurred at disk power-on lifetime: 15538 hours (647 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 08 00 40 00 40  Error: UNC at LBA = 0x00004000 = 16384

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 08 00 40 00 40 00      01:31:57.160  READ FPDMA QUEUED
  47 00 01 12 00 00 a0 00      01:31:57.160  READ LOG DMA EXT
  47 00 01 00 00 00 a0 00      01:31:57.159  READ LOG DMA EXT
  47 00 01 13 00 00 a0 00      01:31:57.159  READ LOG DMA EXT
  47 00 01 00 00 00 a0 00      01:31:57.159  READ LOG DMA EXT

Error 65534 occurred at disk power-on lifetime: 15538 hours (647 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 d0 00 40 00 40  Error: UNC at LBA = 0x00004000 = 16384

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 d0 00 40 00 40 00      01:31:53.737  READ FPDMA QUEUED
  ea 00 00 00 00 00 a0 00      01:31:53.737  FLUSH CACHE EXT
  ec 00 01 00 00 00 00 00      01:31:53.726  IDENTIFY DEVICE
  60 08 00 00 00 00 40 00      01:31:53.712  READ FPDMA QUEUED
  47 00 01 12 00 00 a0 00      01:31:53.711  READ LOG DMA EXT

Error 65533 occurred at disk power-on lifetime: 15538 hours (647 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 88 01 08 00 40  Error: UNC at LBA = 0x00000801 = 2049

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 a0 00 00 00 40 00      01:31:53.544  READ FPDMA QUEUED
  60 08 98 00 00 00 40 00      01:31:53.533  READ FPDMA QUEUED
  60 08 90 00 00 40 40 00      01:31:53.525  READ FPDMA QUEUED
  60 08 88 00 08 00 40 00      01:31:53.517  READ FPDMA QUEUED
  60 08 58 00 00 10 40 00      01:31:53.515  READ FPDMA QUEUED

Error 65532 occurred at disk power-on lifetime: 15538 hours (647 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 f8 01 08 00 40  Error: UNC at LBA = 0x00000801 = 2049

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 78 00 00 01 40 00      01:31:53.317  READ FPDMA QUEUED
  60 08 f8 00 08 00 40 00      01:31:53.317  READ FPDMA QUEUED
  47 00 01 12 00 00 a0 00      01:31:53.317  READ LOG DMA EXT
  47 00 01 00 00 00 a0 00      01:31:53.316  READ LOG DMA EXT
  47 00 01 13 00 00 a0 00      01:31:53.316  READ LOG DMA EXT

Error 65531 occurred at disk power-on lifetime: 15538 hours (647 days + 10 hours)
  When the command that caused the error occurred, the device was active or idle.

  After command completion occurred, registers were:
  ER ST SC SN CL CH DH
  -- -- -- -- -- -- --
  40 41 f0 00 40 00 40  Error: UNC at LBA = 0x00004000 = 16384

  Commands leading to the command that caused the error were:
  CR FR SC SN CL CH DH DC   Powered_Up_Time  Command/Feature_Name
  -- -- -- -- -- -- -- --  ----------------  --------------------
  60 08 00 00 08 00 40 00      01:31:49.890  READ FPDMA QUEUED
  60 08 f0 00 40 00 40 00      01:31:49.890  READ FPDMA QUEUED
  47 00 01 12 00 00 a0 00      01:31:49.890  READ LOG DMA EXT
  47 00 01 00 00 00 a0 00      01:31:49.890  READ LOG DMA EXT
  47 00 01 13 00 00 a0 00      01:31:49.889  READ LOG DMA EXT

SMART Self-test log structure revision number 1
Num  Test_Description    Status                  Remaining  LifeTime(hours)  LBA_of_first_error
# 1  Short offline       Completed: read failure       50%     14686         8064
# 2  Extended offline    Aborted by host               90%     10759         -
# 3  Short offline       Completed without error       00%     10759         -

SMART Selective self-test log data structure revision number 1
 SPAN  MIN_LBA  MAX_LBA  CURRENT_TEST_STATUS
    1        0        0  Not_testing
    2        0        0  Not_testing
    3        0        0  Not_testing
    4        0        0  Not_testing
    5        0        0  Not_testing
Selective self-test flags (0x0):
  After scanning selected spans, do NOT read-scan remainder of disk.
If Selective self-test is pending on power-up, resume after 0 minute delay.

Выполнение fsck /dev/sda

# fsck /dev/sda
fsck from util-linux 2.35.1
e2fsck 1.45.6 (20-Mar-2020)
ext2fs_open2: Bad magic number in super-block
fsck.ext2: Superblock invalid, trying backup blocks...
fsck.ext2: Bad magic number in super-block while trying to open /dev/sda

The superblock could not be read or does not describe a valid ext2/ext3/ext4
filesystem.  If the device is valid and it really contains an ext2/ext3/ext4
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
    e2fsck -b 8193 <device>
 or
    e2fsck -b 32768 <device>

/dev/sda contains `DOS/MBR boot sector; partition 1 : ID=0xee, start-CHS (0x0,0,2), end-CHS (0x3ff,255,63), startsector 1, 1953525167 sectors, extended partition table (last)' data

После выполнения e2fsck -b 8193 /dev/sda и e2fsck -b 32768 /dev/sda ничего не меняется.

 

Wenti
()

Ошибка при установке opencv2-opt

Форум — Desktop

Пытаюсь установить timedoctorpro из AUR, для него необходимо opencv2-opt. Но при билде получаю ошибку:

[ 10%] Building CXX object modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o
In file included from /tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg.cpp:45:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘AVStream* icv_add_video_stream_FFMPEG(AVFormatContext*, AVCodecID, int, int, int, double, int)’:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1484:21: error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
         c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                     ^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1484:21: note: suggested alternative: ‘AV_CODEC_FLAG_GLOBAL_HEADER’
         c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                     ^~~~~~~~~~~~~~~~~~~~~~~~
                     AV_CODEC_FLAG_GLOBAL_HEADER
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp: In function ‘int icv_av_write_frame_FFMPEG(AVFormatContext*, AVStream*, uint8_t*, uint32_t, AVFrame*)’:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1512:30: error: ‘AVFMT_RAWPICTURE’ was not declared in this scope
     if (oc->oformat->flags & AVFMT_RAWPICTURE) {
                              ^~~~~~~~~~~~~~~~
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1512:30: note: suggested alternative: ‘AVFMT_NOFILE’
     if (oc->oformat->flags & AVFMT_RAWPICTURE) {
                              ^~~~~~~~~~~~~~~~
                              AVFMT_NOFILE
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘void CvVideoWriter_FFMPEG::close()’:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1686:35: error: ‘AVFMT_RAWPICTURE’ was not declared in this scope
         if( (oc->oformat->flags & AVFMT_RAWPICTURE) == 0 )
                                   ^~~~~~~~~~~~~~~~
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1686:35: note: suggested alternative: ‘AVFMT_NOFILE’
         if( (oc->oformat->flags & AVFMT_RAWPICTURE) == 0 )
                                   ^~~~~~~~~~~~~~~~
                                   AVFMT_NOFILE
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp: In member function ‘bool CvVideoWriter_FFMPEG::open(const char*, int, double, int, int, bool)’:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1920:32: error: ‘AVFMT_RAWPICTURE’ was not declared in this scope
     if (!(oc->oformat->flags & AVFMT_RAWPICTURE)) {
                                ^~~~~~~~~~~~~~~~
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:1920:32: note: suggested alternative: ‘AVFMT_NOFILE’
     if (!(oc->oformat->flags & AVFMT_RAWPICTURE)) {
                                ^~~~~~~~~~~~~~~~
                                AVFMT_NOFILE
In file included from /tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg.cpp:45:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp: In static member function ‘static AVStream* OutputMediaStream_FFMPEG::addVideoStream(AVFormatContext*, AVCodecID, int, int, int, double, AVPixelFormat)’:
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:2214:25: error: ‘CODEC_FLAG_GLOBAL_HEADER’ was not declared in this scope
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                         ^~~~~~~~~~~~~~~~~~~~~~~~
/tmp/yaourt-tmp-wenti/aur-opencv2-opt/src/opencv-2.4.13.3/modules/highgui/src/cap_ffmpeg_impl.hpp:2214:25: note: suggested alternative: ‘AV_CODEC_FLAG_GLOBAL_HEADER’
             c->flags |= CODEC_FLAG_GLOBAL_HEADER;
                         ^~~~~~~~~~~~~~~~~~~~~~~~
                         AV_CODEC_FLAG_GLOBAL_HEADER
make[2]: *** [modules/highgui/CMakeFiles/opencv_highgui.dir/build.make:180: modules/highgui/CMakeFiles/opencv_highgui.dir/src/cap_ffmpeg.cpp.o] Error 1
make[1]: *** [CMakeFiles/Makefile2:1211: modules/highgui/CMakeFiles/opencv_highgui.dir/all] Error 2
make: *** [Makefile:163: all] Error 2

Как это можно исправить?

 ,

Wenti
()

Archlinux не находит wifi сети

Форум — Desktop

Не могу подключиться к любому wifi.

Вывод wifi-menu:

$ sudo wifi-menu 
Scanning for networks... failed
No networks found

ip link:

$ ip link
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN mode DEFAULT group default qlen 1000
    link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
2: eno1: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc fq_codel state UP mode DEFAULT group default qlen 1000
    link/ether 70:5a:0f:23:08:d7 brd ff:ff:ff:ff:ff:ff
3: wlo1: <BROADCAST,MULTICAST> mtu 1500 qdisc noop state DOWN mode DEFAULT group default qlen 1000
    link/ether 6e:fc:dc:b1:c9:f4 brd ff:ff:ff:ff:ff:ff

lspci -k:

( Вывод lspci -k )

sudo ip link set wlo1 up:

$ sudo ip link set wlo1 up
RTNETLINK answers: Operation not possible due to RF-kill

 , ,

Wenti
()

Перемещение Polygon. relocate

Форум — Development

(В Java новичек) Хочу изменить положение Polygon figure (по углам Polygon way). На первой итерации перемещается, потом нет, хотя getLayoutX и getLayoutY выдают правильное изменение. requestLayout() ничего не меняет.

private void move() {
        double x, y;
        double offsetX = figure.getLayoutBounds().getMaxX()/2, offsetY = figure.getLayoutBounds().getMaxY()/2;
        for (int i=0; i<way.getPoints().size(); i+=2){
            x = way.getPoints().get(i);
            y = way.getPoints().get(i+1);
            figure.relocate(x-offsetX, y-offsetY);
            PauseTransition pause = new PauseTransition(Duration.seconds(1));
            pause.play();
        }
    }

 ,

Wenti
()

Установка, разметка c UEFI, но MBR.

Форум — Linux-install

Впервые столкнулся с UEFI. Насколько я понял GPT для UEFI, а MBR для BIOS, и менять крайне не рекомендуется. efivar проверил. Но cgdisk /dev/sda выдает: Could not load partitions from '/dev/sda'! Aborting!

gdisk /dev/sda выдает:

Caution: invalid main GPT header, but valid backup; regerating main header from backup!

Caution! After loading partitions, the CRC doesn't check out!
Warning! Main partition table CRC mismatch! Loaded backup partition table instead of main partition table!

Warning! One or more CRCs don't match. You should repair the disk! Partition table scan:
MBR: MBR only
BSD: not present
APM: not present
GPT: damaged

Found valid MBR and corrupt GPT. Which do you want to use? (Using the GPT MAY permit recovery of GPT data.)
1 - MBR
2 - GPT
3 - Create blank GPT

Ноутбук новый на нем только FreeDOS и документация (судя по всему, в виде линукса, efi в /sys/firmware/ нет).

Что лучше делать в таком случае: все равно использовать GPT или UEFI+MBR или вообще BIOS по привычке?

 , , ,

Wenti
()

Расположение кнопок заголовка.

Форум — Desktop

Как в Chromium перенести кнопки свернуть, максимизировать, закрыть налево? Использовать системный заголовок не подходит, т.к. отнимает место да выглядит плохо. Можно ли это сделать без залезания в исходный код?

 , ,

Wenti
()

Настроить раскладку клавиатуры по умолчанию; для всех окон.

Форум — General

Раскладку клавиатуры меняю в autostart: setxkbmap -layout ru,us -variant -option grp:alt_shift_toggle. Стоит sbxkb для отображения в трее. (При установке раскладку клавиатуры loadkeys не выполнял, оставив по умолчанию)

При включении по умолчанию русская раскладка и для каждого окна своя. Как сделать, чтобы раскладка была общей на все приложения и по умолчанию была английской? Можно ли это сделать без xxkb?

 , ,

Wenti
()

Не обновляется/перерисовывается рабочий стол

Форум — Desktop

Ноутбук с двумя видеокартами (Nvidia, Intel). Решил перейти на arch. Сначала ставил на виртуальную с awesome, потом с openbox. Проблема появлялась и там, но не разбирался, т.к. думал, что из-за виртуалки. Сейчас поставил arch с openbox, рабочий стол все так же не обновляется/перерисовывается. Т.е. при закрытии приложения, изображение его остается, след за окном при смещении и т.д. В самих приложениях (chromium, xterm) все нормально. Пытался устанавливать различные драйвера, bumblebee. Никакого итога.

 ,

Wenti
()

RSS подписка на новые темы