访问其他 HDD ubuntu 服务器 CLI

访问其他 HDD ubuntu 服务器 CLI

这很可能是这个论坛上问过的最基本的问题,但我找不到任何答案。我在硬盘上安装了 Ubuntu Server,并安装了两个额外的硬盘用于文件存储。安装过程很顺利,添加另外两个硬盘也很顺利。

Disk /dev/sda: 250.1 GB, 250059350016 bytes
255 heads, 63 sectors/track, 30401 cylinders, total 488397168 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: 0x000e69a4

   Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *        2048      499711      248832   83  Linux
/dev/sda2          501758   488396799   243947521    5  Extended
/dev/sda5          501760   488396799   243947520   8e  Linux LVM

Disk /dev/sdb: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0xe2b08df4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdb1            2048  3907029167  1953513560   83  Linux

Disk /dev/sdc: 2000.4 GB, 2000398934016 bytes
81 heads, 63 sectors/track, 765633 cylinders, total 3907029168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x147347c4

   Device Boot      Start         End      Blocks   Id  System
/dev/sdc1            2048  3907029167  1953513560   83  Linux

Disk /dev/mapper/Movieland--vg-root: 245.6 GB, 245631025152 bytes
255 heads, 63 sectors/track, 29862 cylinders, total 479748096 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

Disk /dev/mapper/Movieland--vg-root doesn't contain a valid partition table

Disk /dev/mapper/Movieland--vg-swap_1: 4169 MB, 4169138176 bytes
255 heads, 63 sectors/track, 506 cylinders, total 8142848 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

Disk /dev/mapper/Movieland--vg-swap_1 doesn't contain a valid partition table

The two 2TB drives have been mounted to /media/primarydrive and /media/backupdrive.

/dev/mapper/Movieland--vg-root on / type ext4 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
sysfs on /sys type sysfs (rw,noexec,nosuid,nodev)
none 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)
/dev/sdb1 on /media/primarydrive type ext4 (rw)
/dev/sdc1 on /media/backupdrive type ext4 (rw)
/dev/sda1 on /boot type ext2 (rw)

现在的问题是,我实际上如何访问这些驱动器并将文件放入其中?

我想将电影放入 /media/primarydrive/movies,但当我创建目录并尝试访问它时,系统提示“没有这样的文件或目录”。我需要做什么才能使用这些驱动器?抱歉,文字太多了,但根据我的研究,这些是这些论坛上最常见的两个回复的答案。提前谢谢您。

答案1

如果驱动器已安装,您可以将目录更改为它们吗?

cd /media/primarydrive

如果可以的话,你能为它们创建一个文件夹吗?

mkdir mymovies

(或mkdir /media/primarydrive/mymovies从任何其他位置)

您能否发布文件的内容/etc/fstab,告诉我们安装了哪些驱动器、如何安装以及安装到哪里。

相关内容