安裝為唯讀 fat32 的外接硬碟

安裝為唯讀 fat32 的外接硬碟

我的 Ubuntu 機器已將外部硬碟設定為唯讀。該驅動器是 2TB,我已將其配置為 fat32,以便幾乎所有內容都可以對其進行讀取/寫入。我知道透過使用該網站上的搜尋框,一個修復方法是「sudo nautilus」。我轉到檔案總管中的硬碟,右鍵單擊屬性。在權限下,我告訴它允許讀/寫,但它說它是一個只讀文件系統...我從一些谷歌搜索中知道,有機會通過卸載驅動器然後強制安裝來修復。我聽說這會導致資料遺失,並且磁碟機上的內容很重要(這就是為什麼我不重新格式化磁碟機)。如果有幫助的話,我只是重新安裝了Ubuntu,所以我不知道我的舊配置文件是否是權限選項卡下的“驅動器所有者”,因為我將其設置為相同的用戶名...我知道如果我轉到Windows電腦我可以告訴它取得所有權,然後我可以停用只讀。 Ubuntu 沒有辦法做到這一點嗎?

gnomes@gnomes:~$ mount
/dev/sda1 on / type ext4 (rw,errors=remount-ro,commit=0)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
fusectl on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
udev on /dev type devtmpfs (rw,mode=0755)
devpts on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
tmpfs on /run type tmpfs (rw,noexec,nosuid,size=10%,mode=0755)
none on /run/lock type tmpfs (rw,noexec,nosuid,nodev,size=5242880)
none on /run/shm type tmpfs (rw,nosuid,nodev)
binfmt_misc on /proc/sys/fs/binfmt_misc type binfmt_misc (rw,noexec,nosuid,nodev)
gvfs-fuse-daemon on /home/gnomes/.gvfs type fuse.gvfs-fuse-daemon (rw,nosuid,nodev,user=gnomes)
/dev/sdb1 on /media/THIRSTY 2TR_ type vfat (rw,nosuid,nodev,uid=1000,gid=1000,shortname=mixed,dmask=0077,utf8=1,showexec,flush,uhelper=udisks)
/home/gnomes/.Private on /home/gnomes type ecryptfs (ecryptfs_check_dev_ruid,ecryptfs_cipher=aes,ecryptfs_key_bytes=16,ecryptfs_unlink_sigs,ecryptfs_sig=40584e1d6fa2a33e,ecryptfs_fnek_sig=83ad2a5a52a1069e)
gnomes@gnomes:~$ 

穩定表:

# /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=839b800b-ce92-4d72-ad5b-0e84de7c74be /               ext4    errors=remount-ro 0       1
# swap was on /dev/sda5 during installation
#UUID=e25b3b92-d693-4c93-8e08-2470aa0f5152 none            swap    sw              0       0
/dev/mapper/cryptswap1 none swap sw 0 0

我剛剛在這個可能的姊妹網站上找到了這個https://superuser.com/questions/105769/external-hard-drive-is-read-only-how-to-change-owner-ubuntu 我想知道這是否是解決方案,因為我的驅動器位於 fat 32 而不是 nfts,以及這是否會擦除我的外部設備上的任何數據

編輯-驅動器已發布它的名稱是“THIRSTY 2TR”

我嘗試了 sudo mount -o remount,rw '/media/THIRSTY 2TR' 但它什麼也沒做...它會產生一個像 ^ 這樣的箭頭,但面向之後

我搞砸了,我得到了這個,看起來很有希望,但對像我這樣的菜鳥來說毫無意義

gnomes@gnomes:~$ sudo mount -o remount,rw '/media/THIRSTY 2TR'
[sudo] password for gnomes: 
gnomes@gnomes:~$ sudo mount -THIRSTY 2TR remount,rw '/media/THIRSTY 2TR'
mount: invalid option -- 'T'
Usage: mount -V                 : print version
       mount -h                 : print this help
       mount                    : list mounted filesystems
       mount -l                 : idem, including volume labels
So far the informational part. Next the mounting.
The command is `mount [-t fstype] something somewhere'.
Details found in /etc/fstab may be omitted.
       mount -a [-t|-O] ...     : mount all stuff from /etc/fstab
       mount device             : mount device at the known place
       mount directory          : mount known device here
       mount -t type dev dir    : ordinary mount command
Note that one does not really mount a device, one mounts
a filesystem (of the given type) found on the device.
One can also mount an already visible directory tree elsewhere:
       mount --bind olddir newdir
or move a subtree:
       mount --move olddir newdir
One can change the type of mount containing the directory dir:
       mount --make-shared dir
       mount --make-slave dir
       mount --make-private dir
       mount --make-unbindable dir
One can change the type of all the mounts in a mount subtree
containing the directory dir:
       mount --make-rshared dir
       mount --make-rslave dir
       mount --make-rprivate dir
       mount --make-runbindable dir
A device can be given by name, say /dev/hda1 or /dev/cdrom,
or by label, using  -L label  or by uuid, using  -U uuid .
Other options: [-nfFrsvw] [-o options] [-p passwdfd].
For many more details, say  man 8 mount .
gnomes@gnomes:~$ 

當我嘗試以另一種方式做到這一點時,我得到了這個

gnomes@gnomes:~$ sudo mount -o remount,rw '/dev/sdb1 on /media/THIRSTY 2TR'
[sudo] password for gnomes: 
mount: can't find /dev/sdb1 on /media/THIRSTY 2TR in /etc/fstab or /etc/mtab
gnomes@gnomes:~$ 

我今天嘗試了這個。

gnomes@gnomes:~$ sudo dosfsck -a /dev/THIRSTY 2TR
[sudo] password for gnomes: 
usage: dosfsck [-aAflrtvVwy] [-d path -d ...] [-u path -u ...]
               device
  -a       automatically repair the file system
  -A       toggle Atari file system format
      -d path  drop that file
  -f       salvage unused chains to files
  -l       list path names
  -n       no-op, check non-interactively without changing
  -p       same as -a, for compat with other *fsck
  -r       interactively repair the file system
  -t       test for bad clusters
  -u path  try to undelete that (non-directory) file
  -v       verbose mode
  -V       perform a verification pass
  -w       write changes to disk immediately
  -y       same as -a, for compat with other *fsck

我嘗試使用後綴和我輸入的命令,但它只是再次彈出相同的列表

答案1

我終於解決我的問題了!我在 ubuntu 11.10 中使用磁碟實用工具並嘗試檢查檔案系統。它彈出一個錯誤,說磁碟已安裝,資料遺失。然後我繼續取消並卸載驅動器,然後進行掃描。大約三分鐘後,出現一個框,顯示 240 kb 資料因寫入時卸載錯誤而出現錯誤。我點擊“確定”刪除,現在我的外部設備已啟動並正在運行,具有完整的讀取/寫入功能!

答案2

我有類似的問題。今天,我嘗試將目錄複製到我的外部 Seagate FreeAgent 1.5TB 外部硬碟 (FAT32 lba)。上面的所有內容突然變成了唯讀。即使使用 sudo,我也無法更改目錄的權限。嘗試了我能想到的一切,甚至啟動了令人討厭的 Windows Vista 分割區,該分割區已經破壞了另一個磁碟機上無數年的資料。

我發現一個很小的子目錄有一個錯誤,我無法刪除它,所以我重新啟動了機器,嘗試回溯(僅限根發行版)和Xubutu,但沒有成功。我讀到一些 Windows 用戶遇到類似問題,並再次啟動該問題,卻發現在啟動過程中出現了可怕的 chkdsk 螢幕。

好吧,這一次,它沒有銷毀我的驅動器上的所有內容,而是找到並「修復」了錯誤的子目錄。它創建了愚蠢且無用的“FOUND.001”目錄,並將錯誤目錄的內容放入其中,我立即使用 Xubuntu 將其刪除。驅動器現在已修復,我不願意承認這一點,但 Windows chkdsk 修復了它。

我不建議將此作為解決檔案系統問題的第一件事,因為根據我的經驗,它總是會破壞完美的檔案系統,但在 IT 30 多年的這個實例中,它實際上做了一些好事。無論如何,在重新格式化和銷毀資料之前,請嘗試將其作為最後的手段。

相關內容