我以一种奇怪的方式在单个接口上看到两个 IP 地址。这是我的ifconfig -a输出
eth0 Link encap:Ethernet HWaddr b8:27:eb:26:b1:c8
inet addr:10.0.0.22 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:456 errors:0 dropped:0 overruns:0 frame:0
TX packets:519 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:63643 (62.1 KiB) TX bytes:111910 (109.2 KiB)
Run Code Online (Sandbox Code Playgroud)
这是我的/etc/network/interfaces文件输出
auto lo
iface lo inet loopback
auto eth0
allow-hotplug eth0
iface eth0 inet static
address 10.0.0.22
subnet 255.255.255.0
gateway 10.0.0.1
auto eth1
allow-hotplug eth1
iface eth1 inet static
# address 0
# subnet 255.255.255.0 …Run Code Online (Sandbox Code Playgroud) 我正在运行 Ubuntu 16.10,在安装过程中我添加了我的数据驱动器,它是 ntfs,自动挂载到 /etc/fstab 文件中。条目看起来像这样 -
UUID=EA469A60469A2D77 /alpha ntfs-3g rw,permissions,umask=0022,user,exec,uid=1000,gid=1000,locale=en_US.UTF-8 0 0
Run Code Online (Sandbox Code Playgroud)
我想知道我做错了什么以及如何获得对已安装 NTFS 分区的写访问权限。
编辑1:
Run Code Online (Sandbox Code Playgroud)prenx@prenx4x:~$ sudo lsblk -o NAME,FSTYPE,SIZE,MOUNTPOINT,LABEL NAME FSTYPE SIZE MOUNTPOINT LABEL sdb 111.8G ??sdb2 swap 18.6G [SWAP] ??sdb1 ext4 93.2G / sdc 3.7T ??sdc2 ntfs 3.7T /zeta Zeta ??sdc1 128M sda 953.9G ??sda4 ntfs 952.9G /alpha ALPHA ??sda2 vfat 99M ??sda5 ntfs 450M ??sda3 128M ??sda1 ntfs 300M Recovery
更改任何选项后,我使用 mkdir- 对其进行测试
prenx@prenx4x:/alpha$ mkdir a
mkdir: cannot create directory ‘a’: Read-only file system
prenx@prenx4x:/alpha$ …Run Code Online (Sandbox Code Playgroud)