아버지는 Windows 95 (네덜란드어)로 만든 3.5 인치 "플로피"디스크 한 묶음을 남겼습니다 . 내용을 복사하고 싶습니다. 플로피 드라이브가있는 유일한 컴퓨터는 Ubuntu 12.04.5 LTS를 실행합니다.
udisks
패키지 설치 후
udisks --mount /dev/fd0
에 컨텐츠를 마운트합니다 /media/floppy0
.
이것은 표준 (8.3) DOS 파일 이름을 가진 파일에는 좋지만 다른 것이 있으면 끔찍하게 잘못됩니다.
ls -l /media/floppy0 /bin/ls: cannot access /media/floppy0/vï▐ffφl.: Input/output error /bin/ls: cannot access /media/floppy0/$Θh²çⁿ.tΘ: Input/output error /bin/ls: cannot access /media/floppy0/ëG╟+.|√═: Input/output error /bin/ls: cannot access /media/floppy0/t╛n}φa.2σ═: Input/output error total 13395579
-r-xr-xr-x 1 rp root 1476370920 Dec 25 1959 ╣?.???
-rwxr-xr-x 1 rp root 641204006 Jan 30 1980 └≤½Θ- ps.QR3
-r-xr-xr-x 1 rp root 1346403387 Dec 19 1905 6?|■└ó<|.í7|
-rwxr-xr-x 1 rp root 48514 Jan 1 1980 BL.WDB
-rwxr-xr-x 1 rp root 3728 Aug 25 2000 CADRE.WP
-rwxr-xr-x 1 rp root 2857697280 Dec 31 1979 COM d????????? ? ? ? ? ? ??ëG?╟?+.|√═
-rwxr-xr-x 1 rp root 2294480508 Dec 11 1966 ï?=|Ω
-rwxr-xr-x 1 rp root 152428 Dec 23 1991 KAART2.WKS
-rwxr-xr-x 1 rp root 12909 Jan 1 1980 KABRO.WKS
-rwxr-xr-x 1 rp root 8554 Nov 28 1991 K.BRO drwxr-xr-x 2 rp root 1024 Nov 28 1991 KOPIE
-rwxr-xr-x 1 rp root 47250 Nov 28 1991 L39.ZND
-rwxr-xr-x 1 rp root 0 Dec 19 1991 LIJST39.WEK d????????? ? ? ? ? ? t?╛n}φa.2σ═
-r-xr-xr-x 1 rp root 1963196670 Jan 6 2038 ├┬?.ⁿ?u d????????? ? ? ? ? ? vï▐ffφl?.???
-rwxr-xr-x 1 rp root 21774 Dec 31 1979 WIELEK.WDB
-rwxr-xr-x 1 rp root 22612 Dec 31 1979 WIELGA.WDB
-rwxr-xr-x 1 rp root 23255 Dec 22 1991 WIEL.WBL
-rwxr-xr-x 1 rp root 27044 Jan 1 1980 WIEL.WDB
-rwxr-xr-x 1 rp root 0 Jan 8 1980 δ4ÉIBM.3.2 d????????? ? ? ? ? ? $?Θh²çⁿ?.t?Θ
-rwxr-xr-x 1 rp root 3137341625 Nov 26 1907 Θ╨■φ? s?.├╛?
(단지 무의미한 파일 이름이 아닙니다. rsync
이 플로피의 내용을보고 디스크 공간이 부족한 5GB 파일을 얻었습니다.)
내 생각에는 VFAT 경로 이름 변환이 잘못 시도되거나 전혀 시도되지 않았습니다.
이것을 수정하는 방법?
페이지 나 같은 구글 발견 이 하나 , 그것은 적절한 값을 공급하는 문제이다 제안 및 마운트 옵션 .iocharset
codepage
이것이 사실입니까? 사용할 값은 무엇입니까? 그리고 우선 : 어떻게 공급할까요?
udisks
제공된 마운트 옵션을 자동으로 무시합니다.
$ udisks --mount /dev/fd0 --mount-options='ro,iocharset=utf8,codepage=1252,foo=bar'
Mounted /org/freedesktop/UDisks/devices/fd0 at /media/floppy0
$ fgrep fd0 /proc/mounts
/dev/fd0 /media/floppy0 vfat ro,nosuid,nodev,relatime,uid=1000,fmask=0022,dmask=0022,codepage=437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0
(내가 말한 게 아니야!)
다이렉트는 mount
조용히 실패합니다.
$ sudo mount -t vfat /dev/fd0 /mnt
mount: block device /dev/fd0 is write-protected, mounting read-only
$ fgrep fd0 /proc/mounts
(아무것도 반환하지 않습니다. 마운트가 작동하지 않습니다).
적어도이 방법으로 어떤 codepage
것이 유효한지 확인할 수 있습니다 .
$ sudo mount -t vfat -oro,codepage=850 /dev/fd0 /mnt
$ fgrep fd0 /proc/mounts
$ sudo mount -t vfat -oro,codepage=85 /dev/fd0 /mnt
mount: wrong fs type, bad option, bad superblock on /dev/fd0,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or s
그러나 내가 필요한 것은 실제로 mount
그러한 코드 페이지 를 사용하는 방법 입니다.
뭐가 잘못 되었 니? 또 무엇을 시도 할 수 있습니까?
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다