

4.Windows 10, AD-managed environment, WD My Passport external. If the remounting command does not fix the error, then we can proceed to repair the file system on the drive.

Mount: /media/chris/Ubuntu-Server 22.04 LTS amd64:Ĭannot remount /dev/sdb1 read-write, is write-protected. For example, the mount command gives the following output when the command fails: $ sudo mount -o remount,uid=1000,gid=1000,rw /dev/sdb1 However, this quick-fix does not work for all HDD crash situations. The values of these options come from the output of the previous mount command in section 2. /dev/sdb1 – indicates the name of the device.gid=1000 – assigns the group with id=1000 as the group owner of the drive.uid=1000 – makes the user with id=1000 the owner of the drive.remount – remounts the drive over the same mount point with the same previous options.The ensuing are the roles of the comma-separated options in the command: The -o flag allows the mount command to use a comma-separated list of options. The drive /dev/sdb1 mounted on /media/chris/Ubuntu-Server 22.04 LTS amd64 is a read-only device. Also, the output of the mount command shows the mount point of each HDD partition. Similarly, rw indicates a device mounted as read/write. Generally, SATA device names follow the pattern /dev/sd, while NVMe device names have the pattern /dev/nvmen.įrom the output, we can identify the read-only devices with ro as the initial attribute in the parentheses. dev/sdb1 on /media/chris/Ubuntu-Server 22.04 LTS amd64 type iso9660 dev/sdb4 on /media/chris/writable type ext4 (rw,nosuid,nodev,relatime,uhelper=udisks2) dev/fuse on /run/user/1000/doc type fuse (rw,nosuid,nodev,relatime,user_id=1000,group_id=1000) Mqueue on /dev/mqueue type mqueue (rw,nosuid,nodev,noexec,relatime) Hugetlbfs on /dev/hugepages type hugetlbfs (rw,relatime,pagesize=2M) Tmpfs on /dev/shm type tmpfs (rw,nosuid,nodev,inode64) dev/sda5 on / type ext4 (rw,relatime,errors=remount-ro)

Devpts on /dev/pts type devpts (rw,nosuid,noexec,relatime,gid=5,mode=620,ptmxmode=000)
