家庭服务器未挂载外部磁盘

家庭服务器未挂载外部磁盘

当我将闪存驱动器或硬盘驱动器插入本地服务器(运行 debian squeeze)时,机器似乎没有将设备安装在 /media/usb* 中。我是否缺少一个步骤?我真正跑步:

sudo fdisk -l

输出如下:

Disk /dev/mtdblock0: 1 MB, 1048576 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mtdblock0 doesn't contain a valid partition table

Disk /dev/mtdblock1: 4 MB, 4194304 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x002e5490

Disk /dev/mtdblock1 doesn't contain a valid partition table

Disk /dev/mtdblock2: 531 MB, 531628032 bytes
255 heads, 63 sectors/track, 64 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Disk /dev/mtdblock2 doesn't contain a valid partition table

Disk /dev/sda: 3965 MB, 3965190144 bytes
255 heads, 63 sectors/track, 482 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x94fd41a3

Device Boot      Start         End      Blocks   Id  System
/dev/sda1   *           1         474     3807373+  83  Linux

Disk /dev/sdb: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x8d399bc0

Device Boot      Start         End      Blocks   Id  System
/dev/sdb1   *           1       60800   488375968+   7  HPFS/NTFS

任何帮助深表感谢

答案1

你安装了图形用户界面吗?我认为桌面版本中的自动安装是由文件浏览器完成的,因此它可能在您的服务器上不可用。您可能必须实施自己的自动安装解决方案。如果始终是同一个闪存驱动器,您可以使用 mtab/fstab。我很快用谷歌搜索了一种更自动的方法,结果出现了:http://www.monperrus.net/martin/automounting+usb+flash+drives+on+linux+with+udev+and+pmount

相关内容