我找到了一些将 Synology NAS 备份到直接连接到 NAS 的外部驱动器的选项。但是是否可以备份到计算机的外部硬盘?
例如,userX 启动他的 PC,windows 自动将他的网络驱动器连接到 NAS,它使用 userX 的凭据连接到 NAS。
NAS 知道 userX 已连接并可以开始将文件备份到用户的外部驱动器。在windows中我也可以设置一个固定的盘符,所以也许NAS可以检查驱动器是否连接?
我找到了一些将 Synology NAS 备份到直接连接到 NAS 的外部驱动器的选项。但是是否可以备份到计算机的外部硬盘?
例如,userX 启动他的 PC,windows 自动将他的网络驱动器连接到 NAS,它使用 userX 的凭据连接到 NAS。
NAS 知道 userX 已连接并可以开始将文件备份到用户的外部驱动器。在windows中我也可以设置一个固定的盘符,所以也许NAS可以检查驱动器是否连接?
我已经格式化(使用GParted)一个外部HDD,因为它是NTFS,但是写入权限被拒绝,然后我尝试了fat32,但文件太小,没有exfat选项,我想要一个密码保护如果插入等时可能。
如果可能的话,我怎样才能让驱动器允许我写入并拥有密码?我的 ext4 进程有什么问题?主扩展 ext4 外置硬盘,全部可见,已安装且可打开但不可写?
我刚刚使用下面的命令尝试过这个,它也没有工作。
Device Boot Start End Sectors Size Id Type
/dev/sdb1 2048 625141759 625139712 298.1G b W95 FAT32
$ sudo wipefs -a /dev/sdb1
wipefs: error: /dev/sdb1: probing initialisation failed: Device or resource busy
david@david-HP-15-Notebook-PC:~$ sudo wipefs -a /dev/sdb1
/dev/sdb1: 8 bytes were erased at offset 0x00000052 (vfat): 46 41 54 33 32 20 20 20
/dev/sdb1: 1 byte was erased at offset 0x00000000 (vfat): eb
/dev/sdb1: 2 bytes were erased at offset 0x000001fe (vfat): 55 aa
david@david-HP-15-Notebook-PC:~$ sudo fdisk /dev/sdb1
Welcome to fdisk (util-linux 2.31.1).
Changes will remain in memory only, until you decide to write them.
Be careful before using the write command.
Device does not contain a recognised partition table.
Created a new DOS disklabel with disk identifier 0x5fd1458f.
Command (m for help): n
Partition type
p primary (0 primary, 0 extended, 4 free)
e extended (container for logical partitions)
Select (default p):
Using default response p.
Partition number (1-4, default 1):
First sector (2048-625139711, default 2048):
Last sector, +sectors or +size{K,M,G,T,P} (2048-625139711, default 625139711):
Created a new partition 1 of type 'Linux' and of size 298.1 GiB.
Command (m for help): t
Selected partition 1
Hex code (type L to list all codes): 7
Changed type of partition 'Linux' to 'HPFS/NTFS/exFAT'.
**Command (m for help): w
The partition table has been altered.
Failed to add partition 1 to system: Invalid argument**
The kernel still uses the old partitions. The new table will be used at the next reboot.
Synching disks.
它说 w 是一个无效的参数,那么我该怎么办,这个 exfat 分区选项在 linux mint 上是否不可用?还是命令变了?
现在这个问题与之前使用的命令一起列出 =
$ sudo wipefs -a /dev/sdb1
wipefs: /dev/sdb1: ignoring nested "dos" partition table on non-whole disk device
wipefs: Use the --force option to force erase.
我现在输入的内容来自一个网站。
(exfat 显然适合在多个系统上使用,因此是首选,ntfs 已经在 gparted 上,ext4 是最后一个选项)除非我不知道 exfat 的其他问题?或者这在linux中不可行?
如果我将硬盘克隆到另一个(更大的)硬盘上已经有数据,旧数据会被删除还是会在旧数据之上添加新数据?
我需要将数据从 2 个较小的硬盘驱动器移动到 1 个较大的驱动器。将第一个驱动器克隆到更大的驱动器后,我想将第二个驱动器克隆到具有来自第一个驱动器的数据的同一个更大的驱动器。
来自第二个驱动器的数据(进入较大的硬盘)会覆盖来自第一个克隆的较大目标驱动器上的预先存在的数据,还是只是在较大的硬盘上预先存在的数据之上添加数据?
我有一个内部 NoteBook HDD 通过 USB 从外部连接到 Linux 机器,并想检查这个 HDD 上是否有某种引导记录。
输出为
sudo file -s /dev/sdb5
是:
/dev/sdb5: data
有没有办法在 Linux 中使用命令行找出是否有任何引导记录,如果有,是什么类型的?
当我从我的文件管理器 (Thunar) 中“安全地删除”一个外部硬盘驱动器时,整个硬盘驱动器会关闭并从/dev
. 因此,我想在幕后,这是通过调用udisksctl power-off -b /dev/sdX
具有相同效果的来完成的。
我认为应该以某种方式重新启动设备。在阅读了https://stackoverflow.com/a/12675749之后,我认为关闭电源可能是通过写入来完成的/sys/bus/usb/devices/usbX/power/control
,但 sysfs 似乎保持不变。
那么,如何在使用 udisksctl 关闭外部设备后再次打开它?对我来说,从文件管理器中卸载分区后无法重新安装分区,这很烦人。
我使用我最近购买的 1T Seagate Backup Plus Slim 外置硬盘ID 0bc2:ab24 Seagate RSS LLC
(NTFS 文件系统)作为备份工具。我想在这个磁盘上运行 Smartmontools 软件,但是当我尝试使用它启用它时
smartctl -s on -d scsi /dev/sdb (as a root)
我得到以下回复:
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.15.0-23-generic] (local b$
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontoo$
=== START OF ENABLE/DISABLE COMMANDS SECTION ===
Informational Exceptions (SMART) disabled
Temperature warning disabled
确实,例如,当我尝试跑步时
smartctl -all -d scsi /dev/sdb
输出是:
smartctl 6.6 2016-05-31 r4324 [i686-linux-4.15.0-23-generic] (local build)
Copyright (C) 2002-16, Bruce Allen, Christian Franke, www.smartmontools.org
=== START OF INFORMATION SECTION ===
Vendor: Seagate
Product: BUP Slim WH
Revision: 0304
Compliance: SPC-4
User Capacity: 1.000.204.885.504 bytes [1,00 TB]
Logical block size: 512 bytes
Logical Unit id: 0x5000000000000001
Serial number: NA9DTQ90
Device type: disk
Local Time is: Wed Jun 20 20:25:13 2018 CEST
SMART support is: Available - device has SMART capability.
SMART support is: Disabled
Temperature Warning: Disabled or Not Supported
=== START OF READ SMART DATA SECTION ===
SMART Health Status: OK
Current Drive Temperature: 0 C
Drive Trip Temperature: 0 C
Error Counter logging not supported
Device does not support Self Test logging
这确认 SMART 支持仍然被禁用,但它是可用的。有谁知道是否以及(如果是)如何启用它?
仅供参考:驱动器连接到运行 Lubuntu 18.04 的旧 32 位笔记本电脑。
lsusb
显示两个外部 USB 硬盘在同一总线上与它们在不同总线上时的速度是否存在差异?
运行最新的 Tails 我已经连接了自动安装的硬盘驱动器。但是,它似乎只是只读的。
有没有办法以读/写方式安装它?或者这是不可能的,因为文件系统是 Apple HFS/HFS+ ?
我使用 dd 命令直接写入 /dev/sdc(外部安装的 1TB 硬盘大小)以测试原始模式下的各种写入速度。(我不关心磁盘上的任何数据)。现在 fdisk 或 gparted 报告的磁盘大小是我写入的数据的大小,我不知道如何恢复完整的磁盘大小。
我使用的命令是:
dd if=/dev/urandom of=/dev/sdc bs=4096 count=[大数]
如下图所示,如果我使用这个命令写入了 128KB 的数据,那么 fdisk 会报告驱动器只有 128KB 的大小。当我尝试写入多达 1TB 的数据时,它会停止在 30GB 并出现设备已满错误。
我曾尝试删除和重新创建分区表,但由于该软件仅识别较小的驱动器大小,因此无济于事。
如何恢复完整的驱动器大小?
PS我也尝试从 if=/dev/zero 开始写作。它以 5GB/s 的速度运行,并停在同一个 32GB 的位置。
PPS 我还尝试从驱动器中移除电源并重新启动它,认为内存中存在导致问题的东西。同样的问题。
# fdisk -l /dev/sdc
Disk /dev/sdc: 29.5 GiB, 31633203200 bytes, 61783600 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
#try to write to entire drive:
# dd if=/dev/zero of=/dev/sdc bs=65536 count=15258788 status=progress
26753171456 bytes (27 GB, 25 GiB) copied, 5.00001 s, 5.4 GB/s
dd: error writing '/dev/sdc': No space left on device
482685+0 records in
482684+0 records out
31633203200 bytes (32 GB, 29 GiB) copied, 5.89003 s, 5.4 GB/s
# dd if=/dev/urandom of=/dev/sdc bs=65536 count=2 status=progress
2+0 records in
2+0 records out
131072 bytes (131 kB, 128 KiB) copied, 0.000660426 s, 198 MB/s
# fdisk -l /dev/sdc
Disk /dev/sdc: 128 KiB, 131072 bytes, 256 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
# dd if=/dev/urandom of=/dev/sdc bs=65536 count=15258788 status=progress
31624462336 bytes (32 GB, 29 GiB) copied, 136 s, 233 MB/s
dd: error writing '/dev/sdc': No space left on device
482685+0 records in
482684+0 records out
31633203200 bytes (32 GB, 29 GiB) copied, 136.038 s, 233 MB/s
我在工作中使用2.7T Porsche Design Desktop Drive(外置硬盘),我需要将它安装在Proxmox 4.4-13服务器上。目前我有一些个人信息,但也有大约 1TB 的免费空间,并且 Proxmox 服务器空间不足。因此,将磁盘插入服务器并执行fdisk -l后,输出为:
Device Boot Start End Sectors Size Id Type
/dev/sdc1 * 63 732566645 732566583 2.7T 7 HPFS/NTFS/exFAT
blkid的输出是:
/dev/sdc1: LABEL="linux" UUID="2AB890F5B890C12D" TYPE="ntfs"
到目前为止,Proxmox 列出了标识符为 sdc1的外部设备。现在我需要为外部硬盘创建一个挂载点。我不会使用/mnt/因为 Proxmox 已经有一些相关信息。该目录将在/home/创建,名称将是mountpoint,因此:
mkdir mountpoint
接下来的步骤显示了使用rw权限安装设备 ( mount ) 、输入安装点文件 ( cd ) 并在 ( ls ) 中列出文件的过程
root@pve02:/home# mount -o rw /dev/sdc1 /home/mountpoint/
root@pve02:/home# cd mountpoint/
root@pve02:/home/mountpoint# ls
admin.jpg BackupsELEKA Pedro $RECYCLE.BIN System Volume Information
root@pve02:/home/mountpoint#
如图所示,挂载过程很好, ls 命令列出了外置硬盘内的所有文件夹。但是,当我尝试创建文件夹(mkdir)甚至创建文件(touch)时,我得到了这个:
root@pve02:/home/mountpoint# mkdir test
mkdir: cannot create directory ‘test’: Read-only file system
root@pve02:/home/mountpoint#
那么为什么?rw选项不是指定允许在外部磁盘上读写吗?我不得不说我试图在文件夹中创建文件夹和文件(Pedro 和 BackupsELEKA),但仍然没有。
问题是这应该是一个简单的过程来实现,没什么大不了的,就像任何其他操作系统一样,为什么这么难?
我在阅读了几篇文章后发布了这个问题,例如: https ://askubuntu.com/questions/333287/external-hard-disk-read-only 和 https://askubuntu.com/questions/47538/how-to -make-read-only-file-system-writable