외부 USB 드라이버를 연결하면 다음 메시지가 표시됩니다.
Error mounting: mount exited with exit code 1: helper failed with:
Unprivileged user can not mount NTFS block devices using the external FUSE
library. Either mount the volume as root, or rebuild NTFS-3G with integrated
FUSE support and make it setuid root. Please see more information at
http://tuxera.com/community/ntfs-3g-faq/#unprivileged
이것이 내가 현재 가지고 있는 것입니다 sudo fdisk -l
:
nazar_art@nazar-desctop:~/Desktop/Big JAVA/bj4_code/ch24/time$ sudo fdisk -l
Disk /dev/sda: 160.0 GB, 160041885696 bytes
255 heads, 63 sectors/track, 19457 cylinders, total 312581808 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 identifier: 0x000e28b8
Device Boot Start End Blocks Id System
/dev/sda1 * 2048 310484991 155241472 83 Linux
/dev/sda2 310487038 312580095 1046529 5 Extended
/dev/sda5 310487040 312580095 1046528 82 Linux swap / Solaris
Disk /dev/sdb: 1015 MB, 1015808000 bytes
31 heads, 32 sectors/track, 2000 cylinders, total 1984000 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 identifier: 0x00000000
Device Boot Start End Blocks Id System
/dev/sdb1 * 31 1983999 991984+ 6 FAT16
Disk /dev/sdd: 7751 MB, 7751073792 bytes
255 heads, 63 sectors/track, 942 cylinders, total 15138816 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 identifier: 0xc3072e18
Device Boot Start End Blocks Id System
/dev/sdd1 * 63 15138815 7569376+ 7 HPFS/NTFS/exFAT
그리고 gksudo gedit /etc/fstab
:
# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
# / was on /dev/sda1 during installation
UUID=5f5d330f-d5f2-4157-9496-94f1dce2f181 / ext4 errors=remount-ro 0 1
# swap was on /dev/sda5 during installation
UUID=84747ef4-6f50-49bc-9df1-fcba364ba299 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sdc1 /media/sdc1 auto uid=1000,noauto,users,exec 0 0
/dev/sdd1 /media/sdd1 auto uid=1000,noauto,users,exec 0 0
/dev/sdb1 /media/sdb1 auto uid=1000,noauto,users,exec 0 0
고쳐 쓰다:
설치되어 있는지 확인하십시오 ntfs-3g
.
nazar_art@nazar-desctop:~$ dpkg -s ntfs-3g
Package: ntfs-3g
Status: install ok installed
Priority: optional
Section: otherosfs
Installed-Size: 1422
Maintainer: Ubuntu Developers <[email protected]>
Architecture: amd64
Version: 1:2012.1.15AR.1-1ubuntu1.2
Replaces: libntfs-3g75, ntfsprogs
Depends: debconf (>= 0.5) | debconf-2.0, libc6 (>= 2.14), libfuse2 (>= 2.8.1), libgcrypt11 (>= 1.4.5), libgnutls26 (>= 2.12.6.1-0), initramfs-tools (>= 0.99), initscripts (>= 2.88dsf-13.3)
Pre-Depends: multiarch-support, fuse
Conflicts: libntfs-3g75, ntfsprogs (<< 1:2011.10.9AR.1-3~)
Description: read/write NTFS driver for FUSE
NTFS-3G uses FUSE (Filesystem in Userspace) to provide support for the NTFS
filesystem used by Microsoft Windows. It can:
.
* create, remove, rename, or move files, directories, hard links, and streams;
* read and write files, including streams, sparse files, and transparently
compressed files;
* handle special files like symbolic links, devices, and FIFOs;
* provide standard management of file ownership and permissions, including
POSIX ACLs.
.
This package also contains the tools previously available in the ntfsprogs
package.
Homepage: http://www.tuxera.com/community/ntfs-3g-advanced/
Original-Maintainer: Daniel Baumann <[email protected]>
통과한 USB 드라이브를 정확하게 식별합니다.LSBLK:
nazar_art@nazar-desctop:~$ lsblk
NAME MAJ:MIN RM SIZE RO TYPE MOUNTPOINT
sda 8:0 0 149.1G 0 disk
├─sda1 8:1 0 148.1G 0 part /
├─sda2 8:2 0 1K 0 part
└─sda5 8:5 0 1022M 0 part [SWAP]
sdb 8:16 1 7.2G 0 disk
└─sdb1 8:17 1 7.2G 0 part
sdc 8:32 1 968.8M 0 disk
└─sdc1 8:33 1 968.8M 0 part /media/sdc1
sr0 11:0 1 1024M 0 rom
이것은 sdb1입니다. 이 외장 USB 드라이브입니다.
수동으로 다시 마운트해 보세요.
nazar_art@nazar-desctop:~$ sudo mount /media/sdb1
[sudo] password for nazar_art:
The disk contains an unclean file system (0, 0).
The file system wasn't safely closed on Windows. Fixing.
이제 모든 것이 보입니다.
- 왜 이런 일이 일어나는 걸까요?
- 이 문제를 어떻게 해결하나요?
답변1
이 오류는 파일 시스템을 마운트하려고 할 때 권한이 부족함을 나타냅니다. 플러그인 마운트를 수행하는 프로그램이 루트가 아닌 사용자(아마도 로그인에 사용된 사용자 계정)로 실행되고 있는 것으로 의심됩니다.
fstab에 이 users
옵션이 포함되어 있지만 설치 프로세스의 일부에는 여전히 루트 액세스가 필요한 것으로 보입니다.
이 문제를 해결하려면 루트로 수동으로 설치를 수행하십시오. 이 작업을 수행해야 합니다.
sudo mount /media/sdd1
마운트를 수행하는 프로그램이 루트로 실행되도록 시스템을 구성하는 것이 가능해야 하지만 이는 말처럼 간단하지 않습니다.