Windows 10을 Ubuntu 20.10으로 교체한 후 "D:" 파티션의 상태를 표준화하려고 합니다.

Windows 10을 Ubuntu 20.10으로 교체한 후 "D:" 파티션의 상태를 표준화하려고 합니다.

좋은 아침입니다. 교체 후 "D:" 파티션 상태를 정상화하려고 합니다.윈도우 10그리고우분투 20.10...다음과 같이 나타납니다마이크로소프트 기본 데이터해당 파티션에 있는 폴더나 파일을 건드릴 수 없습니다(/dev/sda5: 권한이 거부되었습니다.)

예를 들어: 내가 시도할 때sudo rmdir "DumpStack.log.tmp"

rmdir: 'DumpStack.log.tmp'를 삭제할 수 없습니다: 읽기 전용 파일 시스템

나는 다음을 시도했지만 성공하지 못했습니다. https://askubuntu.com/a/1148959/1067284 https://askubuntu.com/a/809251/1067284

결과sudo ntfsfix /dev/sda5주문하다:

Mounting volume... The disk contains an unclean file system (0, 0).
Metadata kept in Windows cache, refused to mount.
FAILED
Attempting to correct errors... 
Processing $MFT and $MFTMirr...
Reading $MFT... OK
Reading $MFTMirr... OK
Comparing $MFTMirr to $MFT... OK
Processing of $MFT and $MFTMirr completed successfully.
Setting required flags on partition... OK
Going to empty the journal ($LogFile)... OK
Checking the alternate boot sector... OK
NTFS volume version is 3.1.
NTFS partition /dev/sda5 was processed successfully.

결과sudo fdisk -l주문하다:

Disk /dev/loop0: 97.74 MiB, 102486016 bytes, 200168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop1: 55.36 MiB, 58052608 bytes, 113384 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop2: 62.09 MiB, 65105920 bytes, 127160 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop3: 50.67 MiB, 53133312 bytes, 103776 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop4: 55.32 MiB, 58007552 bytes, 113296 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop5: 60.98 MiB, 63942656 bytes, 124888 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop6: 217.89 MiB, 228478976 bytes, 446248 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop7: 30.94 MiB, 32440320 bytes, 63360 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/sda: 465.76 GiB, 500107862016 bytes, 976773168 sectors
Disk model: ST500LT012-9WS14
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disklabel type: gpt
Disk identifier: FB9C0653-A6A2-4171-92BC-68CD5820A715

Device         Start       End   Sectors   Size Type
/dev/sda1       2048    206847    204800   100M EFI System
/dev/sda2     206848    239615     32768    16M Microsoft reserved
/dev/sda3     239616 408274943 408035328 194.6G Linux filesystem
/dev/sda4  408274944 409597951   1323008   646M Windows recovery environment
/dev/sda5  409600000 976773119 567173120 270.4G Microsoft basic data


Disk /dev/loop8: 178.98 MiB, 187674624 bytes, 366552 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop9: 169.3 MiB, 177528832 bytes, 346736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop10: 290.44 MiB, 304545792 bytes, 594816 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop11: 125.85 MiB, 131960832 bytes, 257736 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes


Disk /dev/loop12: 25.53 MiB, 26771456 bytes, 52288 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
  • 저는 해당 파티션을 삭제하지 않았습니다(Windows 복구 환경그리고마이크로소프트는 보유하고 있다) 및 Ubuntu Install-Process 왜냐하면 Ubuntu가 이를 대체할 것이라고 생각하기 때문입니다.

결과fdisk /dev/sda5주문하다:

Welcome to fdisk (util-linux 2.36).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

fdisk: cannot open /dev/sda5: Permission denied

결과sudo fdisk /dev/sda5주문하다:

Welcome to fdisk (util-linux 2.36).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.

The device contains 'ntfs' signature and it will be removed by a write command. See fdisk(8) man page and --wipe option for more details.

Device does not contain a recognized partition table.
Created a new DOS disklabel with disk identifier 0xdbf257c4.

Command (m for help): m

Help:

  DOS (MBR)
   a   toggle a bootable flag
   b   edit nested BSD disklabel
   c   toggle the dos compatibility flag

  Generic
   d   delete a partition
   F   list free unpartitioned space
   l   list known partition types
   n   add a new partition
   p   print the partition table
   t   change a partition type
   v   verify the partition table
   i   print information about a partition

  Misc
   m   print this menu
   u   change display/entry units
   x   extra functionality (experts only)

  Script
   I   load disk layout from sfdisk script file
   O   dump disk layout to sfdisk script file

  Save & Exit
   w   write table to disk and exit
   q   quit without saving changes

  Create a new label
   g   create a new empty GPT partition table
   G   create a new empty SGI (IRIX) partition table
   o   create a new empty DOS partition table
   s   create a new empty Sun partition table


Command (m for help): t
No partition is defined yet!

결과마운트 | grep sda주문하다:

/dev/sda3 on / type ext4 (rw,relatime,errors=remount-ro)
/dev/sda1 on /boot/efi type vfat (rw,relatime,fmask=0077,dmask=0077,codepage=437,iocharset=iso8859-1,shortname=mixed,errors=remount-ro)
/dev/sda5 on /media/johnm/301265D312659E9A type fuseblk (ro,nosuid,nodev,relatime,user_id=0,group_id=0,default_permissions,allow_other,blksize=4096,uhelper=udisks2)

제가 원하는 유일한 것은 읽기/쓰기 권한이 있는 일반 파티션으로 다시 변경하는 것입니다. 이 파티션에 데이터가 정말 필요해요!

답변1

모두들 고마워요. 제 친구가 제게 이 훌륭한 방법을 알려줬는데 정말 매력적이네요 :D

umount /dev/sda5
mkdir /sda5
mount /dev/sda5 /sda5
ls /sda5

다음 줄을 추가하십시오./etc/fstab(시스템을 다시 시작할 때마다 파티션을 /sda5 폴더에 마운트하십시오. UUID={YOUR_UUID} /sda5 ntfs-3g defaults 0 0 ){YOUR_UUID}파티션을 얻은 파티션의 UUID로 바꿔야 합니다.sudo 블록주문하다.

그런 다음 파티션은 다음 위치에 있어야 합니다./sda5읽기/쓰기 권한이 있음

관련 정보