최근 Linux 시스템에서 파일을 삭제하는 동안 "플래그를 읽는 동안 잘못된 인수" 문제가 발생했습니다.
내 Linux 파일 시스템에서 일부(매우 큰 파일)를 삭제할 수 없습니다. 나는 무엇을 해야할지 모르겠습니다!
id
uid=1000(elias) gid=1000(elias) ομάδες=1000(elias),4(adm),24(cdrom),27(sudo),29(audio),30(dip),46(plugdev),116(lpadmin),122(sambashare)
ls -ld . ..
drwxrwxrwx 1 elias elias 4096 Feb 17 17:04 .
drwxrwxrwx 1 elias elias 4096 Jul 14 18:33 ..
sudo rm*
rm: cannot remove '01st - O Basikos.avi': Input/output error
rm: cannot remove '02nd - The Pigs.avi': Input/output error
rm: cannot remove '02nd - The Pigs - short2.AVI': Input/output error
rm: cannot remove '03rd - O Glaros.avi': Input/output error
rm: cannot remove '04rth - Gio-Gio.avi': Input/output error
rm: cannot remove '07th - To Paixnidi tis Sfagis.avi': Input/output error
rm: cannot remove '08th - I Drakaina.avi': Input/output error
rm: cannot remove '09th - O Zitianos.avi': Input/output error
rm: cannot remove '10th - Troades.avi': Input/output error
rm: cannot remove '69082056_498303567665424_7547131835499675648_n.png': Input/output error
rm: cannot remove '69507971_2418284725052'$'\350\243\260''78_7036264017014292480_o.jpg': No such file or directory
rm: cannot remove '69515885_2418284525052598_830424852870463488_o.jpg': Input/output error
rm: cannot remove '69584492_2418284805052570_8494867853135052800_o.jpg': Input/output error
rm: cannot remove '69868065_2418284518385932_7450056396264964096_o.jpg': No such file or directory
rm: cannot remove '69936932_2418284865052564_2431600811281743872_o.jpg': No such file or directory
rm: cannot remove '69'$'\350\243\260''37965_2418284665052584_6232500998267469824_o.jpg': No such file or directory
rm: cannot remove '6th - Ta Frouta tou Pneumatos.avi': Input/output error
rm: cannot remove '70447879_2418284535052597_6811504792116920320_o.jpg': Input/output error
rm: cannot remove '70615044_2418284641719253_3543323980268044288_o.jpg': Input/output error
rm: cannot remove 'Ektos - O Epitheoritis.avi': Input/output error
rm: cannot remove 'Melina Tanagri.avi': Input/output error
rm: cannot remove 'Vraveia.avi': Input/output error
그리고 lstr...
elias@eliasc:/media/elias/MyPassport/Events - Personal - Vids/Theatrikoi Diagonismoi 33oi-Zografou-2019a$ lsattr
lsattr: Invalid argument While reading flags on ./01st - O Basikos.avi
lsattr: Invalid argument While reading flags on ./02nd - The Pigs - short2.AVI
lsattr: Invalid argument While reading flags on ./02nd - The Pigs.avi
lsattr: Invalid argument While reading flags on ./03rd - O Glaros.avi
lsattr: Invalid argument While reading flags on ./04rth - Gio-Gio.avi
lsattr: Invalid argument While reading flags on ./07th - To Paixnidi tis Sfagis.avi
lsattr: Invalid argument While reading flags on ./08th - I Drakaina.avi
lsattr: Invalid argument While reading flags on ./09th - O Zitianos.avi
lsattr: Invalid argument While reading flags on ./10th - Troades.avi
lsattr: Invalid argument While reading flags on ./69082056_498303567665424_7547131835499675648_n.png
lsattr: Invalid argument While reading flags on ./69507971_2418284725052裰78_7036264017014292480_o.jpg
lsattr: Invalid argument While reading flags on ./69515885_2418284525052598_830424852870463488_o.jpg
lsattr: Invalid argument While reading flags on ./69584492_2418284805052570_8494867853135052800_o.jpg
lsattr: Invalid argument While reading flags on ./69裰37965_2418284665052584_6232500998267469824_o.jpg
./69868065_2418284518385932_7450056396264964096_o.jpg: No such file or directory
./69936932_2418284865052564_2431600811281743872_o.jpg: No such file or directory
lsattr: Invalid argument While reading flags on ./6th - Ta Frouta tou Pneumatos.avi
lsattr: Invalid argument While reading flags on ./70447879_2418284535052597_6811504792116920320_o.jpg
lsattr: Invalid argument While reading flags on ./70615044_2418284641719253_3543323980268044288_o.jpg
lsattr: Invalid argument While reading flags on ./Ektos - O Epitheoritis.avi
lsattr: Invalid argument While reading flags on ./Melina Tanagri.avi
./Vraveia.avi: Input/output error
그리고 ls -lQ*
elias@eliasc:/media/elias/MyPassport/Events - Personal - Vids/Theatrikoi Diagonismoi 33oi-Zografou-2019a$ ls -lQ *
ls: cannot access '69868065_2418284518385932_7450056396264964096_o.jpg': No such file or directory
ls: cannot access '69936932_2418284865052564_2431600811281743872_o.jpg': No such file or directory
ls: cannot access 'Vraveia.avi': Input/output error
-rwxrwxrwx 1 elias elias 15053658390 Sep 6 2019 "01st - O Basikos.avi"
-rwxrwxrwx 1 elias elias 458762716 Sep 6 2019 "02nd - The Pigs - short2.AVI"
-rwxrwxrwx 1 elias elias 10775490376 Sep 7 2019 "02nd - The Pigs.avi"
-rwxrwxrwx 1 elias elias 12010358308 Sep 9 2019 "03rd - O Glaros.avi"
-rwxrwxrwx 1 elias elias 7789788922 Sep 9 2019 "04rth - Gio-Gio.avi"
-rwxrwxrwx 1 elias elias 7377647868 Sep 12 2019 "07th - To Paixnidi tis Sfagis.avi"
-rwxrwxrwx 1 elias elias 7289683606 Sep 16 2019 "08th - I Drakaina.avi"
-rwxrwxrwx 1 elias elias 8526826412 Oct 14 2019 "09th - O Zitianos.avi"
-rwxrwxrwx 1 elias elias 9300601002 Oct 14 2019 "10th - Troades.avi"
-rwxrwxrwx 1 elias elias 1343557 Sep 6 2019 "69082056_498303567665424_7547131835499675648_n.png"
-rwxrwxrwx 1 elias elias 143518 Sep 11 2019 "69507971_2418284725052\350\243\26078_7036264017014292480_o.jpg"
-rwxrwxrwx 1 elias elias 151257 Sep 11 2019 "69515885_2418284525052598_830424852870463488_o.jpg"
-rwxrwxrwx 1 elias elias 0 Feb 18 00:43 "69584492_2418284805052570_8494867853135052800_o.jpg"
-rwxrwxrwx 1 elias elias 159896 Sep 11 2019 "69\350\243\26037965_2418284665052584_6232500998267469824_o.jpg"
-rwxrwxrwx 1 elias elias 13958209594 Sep 11 2019 "6th - Ta Frouta tou Pneumatos.avi"
-rwxrwxrwx 1 elias elias 145183 Sep 11 2019 "70447879_2418284535052597_6811504792116920320_o.jpg"
-rwxrwxrwx 1 elias elias 0 Feb 18 00:44 "70615044_2418284641719253_3543323980268044288_o.jpg"
-rwxrwxrwx 1 elias elias 11083624324 Sep 14 2019 "Ektos - O Epitheoritis.avi"
-rwxrwxrwx 1 elias elias 7974938232 Sep 16 2019 "Melina Tanagri.avi"
그리고 dmseg....
[ 84.158595] audit: type=1400 audit(1594676419.746:51): apparmor="ALLOWED" operation="file_mmap" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/usr/sbin/aa-exec" pid=1582 comm="aa-exec" requested_mask="rm" denied_mask="rm" fsuid=0 ouid=0
[ 84.158602] audit: type=1400 audit(1594676419.746:52): apparmor="ALLOWED" operation="file_mmap" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/lib/x86_64-linux-gnu/ld-2.23.so" pid=1582 comm="aa-exec" requested_mask="rm" denied_mask="rm" fsuid=0 ouid=0
[ 84.159084] audit: type=1400 audit(1594676419.746:53): apparmor="ALLOWED" operation="open" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/etc/ld.so.cache" pid=1582 comm="aa-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 84.159152] audit: type=1400 audit(1594676419.746:54): apparmor="ALLOWED" operation="open" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/lib/x86_64-linux-gnu/libpthread-2.23.so" pid=1582 comm="aa-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 84.159157] audit: type=1400 audit(1594676419.746:55): apparmor="ALLOWED" operation="file_mmap" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/lib/x86_64-linux-gnu/libpthread-2.23.so" pid=1582 comm="aa-exec" requested_mask="rm" denied_mask="rm" fsuid=0 ouid=0
[ 84.159326] audit: type=1400 audit(1594676419.746:56): apparmor="ALLOWED" operation="open" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/lib/x86_64-linux-gnu/libc-2.23.so" pid=1582 comm="aa-exec" requested_mask="r" denied_mask="r" fsuid=0 ouid=0
[ 84.159330] audit: type=1400 audit(1594676419.746:57): apparmor="ALLOWED" operation="file_mmap" profile="snap.anbox.container-manager//null-/usr/sbin/aa-exec" name="/lib/x86_64-linux-gnu/libc-2.23.so" pid=1582 comm="aa-exec" requested_mask="rm" denied_mask="rm" fsuid=0 ouid=0
[ 84.195823] bridge: filtering via arp/ip/ip6tables is no longer available by default. Update your scripts to load br_netfilter if you need this.
[ 84.203002] IPv6: ADDRCONF(NETDEV_UP): lxcbr0: link is not ready
[ 84.243401] nf_conntrack version 0.5.0 (16384 buckets, 65536 max)
[ 93.236203] kauditd_printk_skb: 7 callbacks suppressed
[ 93.236204] audit: type=1326 audit(1594676428.826:65): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1582 comm="anbox" exe="/snap/anbox/158/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7f718849fb9a code=0x7ffc0000
[ 93.284036] resource sanity check: requesting [mem 0x000c0000-0x000fffff], which spans more than PCI Bus 0000:00 [mem 0x000d0000-0x000d3fff window]
[ 93.284203] caller os_map_kernel_space.part.8+0x10b/0x150 [nvidia] mapping multiple BARs
[ 93.497901] audit: type=1326 audit(1594676429.086:66): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1582 comm="anbox" exe="/snap/anbox/158/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7f718849fb9a code=0x7ffc0000
[ 93.500379] audit: type=1326 audit(1594676429.090:67): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1582 comm="anbox" exe="/snap/anbox/158/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7f718849fb9a code=0x7ffc0000
[ 93.505450] audit: type=1326 audit(1594676429.094:68): auid=4294967295 uid=0 gid=0 ses=4294967295 pid=1582 comm="anbox" exe="/snap/anbox/158/usr/bin/anbox" sig=0 arch=c000003e syscall=165 compat=0 ip=0x7f718849fb9a code=0x7ffc0000
[12326.801458] perf: interrupt took too long (2538 > 2500), lowering kernel.perf_event_max_sample_rate to 78750
[17231.226813] perf: interrupt took too long (3213 > 3172), lowering kernel.perf_event_max_sample_rate to 62250
[23067.074788] perf: interrupt took too long (4030 > 4016), lowering kernel.perf_event_max_sample_rate to 49500
[24415.334432] audit: type=1400 audit(1594700750.025:69): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/9436/usr/lib/snapd/snap-confine" pid=21658 comm="apparmor_parser"
[24415.334440] audit: type=1400 audit(1594700750.025:70): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="/snap/core/9436/usr/lib/snapd/snap-confine//mount-namespace-capture-helper" pid=21658 comm="apparmor_parser"
[24415.630792] audit: type=1400 audit(1594700750.321:71): apparmor="STATUS" operation="profile_replace" profile="unconfined" name="snap.hugo.hugo" pid=21660 comm="apparmor_parser"
[24415.804123] audit: type=1400 audit(1594700750.493:72): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.hugo" pid=21662 comm="apparmor_parser"
[24415.815070] audit: type=1400 audit(1594700750.505:73): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap-update-ns.core" pid=21663 comm="apparmor_parser"
[24415.833547] audit: type=1400 audit(1594700750.521:74): apparmor="STATUS" operation="profile_replace" info="same as current profile, skipping" profile="unconfined" name="snap.core.hook.configure" pid=21664 comm="apparmor_parser"
[30198.603216] usb 3-9: new high-speed USB device number 6 using xhci_hcd
[30198.752148] usb 3-9: New USB device found, idVendor=058f, idProduct=6366
[30198.752150] usb 3-9: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[30198.752151] usb 3-9: Product: Mass Storage Device
[30198.752153] usb 3-9: Manufacturer: Generic
[30198.752154] usb 3-9: SerialNumber: 058F63666433
[30198.752667] usb-storage 3-9:1.0: USB Mass Storage device detected
[30198.752757] scsi host8: usb-storage 3-9:1.0
[30199.887649] scsi 8:0:0:0: Direct-Access Multiple Card Reader 1.00 PQ: 0 ANSI: 0
[30199.888108] sd 8:0:0:0: Attached scsi generic sg3 type 0
[30201.023835] sd 8:0:0:0: [sdc] 31387648 512-byte logical blocks: (16.1 GB/15.0 GiB)
[30201.024168] sd 8:0:0:0: [sdc] Write Protect is off
[30201.024169] sd 8:0:0:0: [sdc] Mode Sense: 03 00 00 00
[30201.024469] sd 8:0:0:0: [sdc] No Caching mode page found
[30201.024472] sd 8:0:0:0: [sdc] Assuming drive cache: write through
[30201.028920] sdc: sdc1
[30201.030266] sd 8:0:0:0: [sdc] Attached SCSI removable disk
[30219.804093] FAT-fs (sdc1): Volume was not properly unmounted. Some data may be corrupt. Please run fsck.
dmesg | grep EXT4 .....
dmesg | grep EXT4
[ 6.161317] EXT4-fs (sdb2): mounted filesystem with ordered data mode. Opts: (null) [ 14.696792] EXT4-fs (sdb2): re-mounted. Opts: errors=remount-ro
제안한대로 나는 다음을 수행했습니다.
sudo gedit /etc/default/grub
추가됨: GRUB_CMDLINE_LINUX="fsck.mode=force fsck.repair=yes" 그런 다음 update-grub
.
내 하드 드라이브가 부팅 시 자동으로 마운트되지 않습니다. fsck가 그것을 전혀 확인하지 않는 것을 볼 수 있습니다.
DISKS 유틸리티는 이 HDD에서 NTFS 형식의 데이터를 찾습니다. Windows 파일 시스템을 사용하지 않고 어떻게 무결성을 확인할 수 있나요?
답변1
2020년 7월 15일 현재, Linux에서 NTFS로 포맷된 하드 드라이브의 파일 시스템 무결성을 확인하는 옵션이 없습니다.
내가 뭘 한거지?
- Windows Enterprise 무료 평가판 ISO를 다운로드했습니다.
sudo apt-get remove virtualbox virtualbox-dkms virtualbox*
- 다음에서 최신 Virtualbox를 설치하세요.여기
- Virtualbox extpack의 일치하는 버전을 다운로드하세요.
- 디스크 그룹에 추가되었습니다. 사용자로서 다음으로 인해 액세스 거부 하드 디스크 오류가 발생했습니다.
sudo usermod -a -G disk $USER
sudo usermod -a -G vboxusers $USER
- 달리기
sudo /sbin/vboxconfig
- VirtualBox를 실행하고 파일 -> 기본 설정 -> 확장명에 Virtualbox extpack을 추가하세요.
- 컴퓨터를 다시 시작하세요
- 다음 명령을 사용하여 NTFS 물리적 하드 드라이브(USB 또는 비USB)에 대한 링크를 만듭니다.
VBoxManage internalcommands createrawvmdk -filename "</path/to/file>.vmdk" -rawdisk /dev/sdX
- 머신 생성 -> 새로 만들기 -> Windows 10(64비트)(일치하는 항목) -> 가상 디스크 생성
- 다운로드한 Windows Enterprise 무료 평가판 ISO 이미지가 첨부되어 있습니다.
- 새로 생성된 가상 Windows 이미지-->기본 설정->저장소->ntfs 하드 드라이브가 연결된 vmdk 이미지
- 실패할 수도 있습니다. 괜찮아요. 나에게도 실패했습니다. 찾았기 때문에 참고합니다. 그것은 당신에게 유용할 수 있습니다.
- 가상 Windows 이미지-->기본 설정->USB로 이동하여 USB 3을 확인하고 NTFS HDD를 추가하세요.
- 가상 Windows Enterprise 무료 평가판 컴퓨터를 실행하세요.
- 계속, 컴퓨터 복구(왼쪽 아래), 문제 해결, 명령 프롬프트 실행을 클릭합니다.
- 예를 들어 다음과 같이 작성하여 디스크로 이동하십시오. 씨:
- 예를 들어 디스크인지 확인하십시오. 목차
- 디스크에 있을 때 chkdsk /f를 실행하세요.
이 프로세스는 NTFS 파일 시스템의 오류를 수정했습니다. 나는 그것이 당신에게도 도움이되기를 바랍니다.
Linux에서만 더 간단한 솔루션을 찾으면 게시해 주세요.