我一直在使用网上的一些指南,但遇到了一个奇怪的问题。我在第一个驱动器 sda1、sda2、sda3 和 sda4 上设置了 4 个分区,我可以看到那里有 sdb1、sdb2 和 sdb3,我猜这是驱动器上以前的分区。
我的问题是,我看到的所有关于设置新硬盘的指南都谈到针对应该是原始设备的 sda 或 sdb 运行 fdisk。
我的问题是这些设备 /dev/sda 或 /dev/sdb 不存在。运行fdisk -l
也没有返回任何内容。
有人能给我指出正确的方向吗?
提前致谢
Command line: BOOT_IMAGE=/boot/bzImage-3.2.13-xxxx-grs-ipv6-64 root=/dev/sda1 ro
Kernel command line: BOOT_IMAGE=/boot/bzImage-3.2.13-xxxx-grs-ipv6-64 root=/dev/sda1 ro
sd 0:0:0:0: [sda] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 0:0:0:0: Attached scsi generic sg0 type 0
sd 1:0:0:0: [sdb] 3907029168 512-byte logical blocks: (2.00 TB/1.81 TiB)
sd 1:0:0:0: [sdb] 4096-byte physical blocks
sd 1:0:0:0: [sdb] Write Protect is off
sd 1:0:0:0: [sdb] Mode Sense: 00 3a 00 00
sd 1:0:0:0: [sdb] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
sd 1:0:0:0: Attached scsi generic sg1 type 0
sd 0:0:0:0: [sda] 4096-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 00 3a 00 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, doesn't support DPO or FUA
libceph: loaded (mon/osd proto 15/24, osdmap 5/6 5/6)
sda: sda1 sda2 sda3 sda4
sd 0:0:0:0: [sda] Attached SCSI disk
sdb: sdb1 sdb2 sdb3
sd 1:0:0:0: [sdb] Attached SCSI disk
md: invalid raid superblock magic on sdb1
md: sdb1 does not have a valid v0.90 superblock, not importing!
md: invalid raid superblock magic on sdb2
md: sdb2 does not have a valid v0.90 superblock, not importing!
EXT3-fs (sda1): error: couldn't mount because of unsupported optional features (240)
EXT2-fs (sda1): error: couldn't mount because of unsupported optional features (240)
EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (sda1): re-mounted. Opts: errors=remount-ro
Adding 1047548k swap on /dev/sda4. Priority:-1 extents:1 across:1047548k
EXT4-fs (sda2): mounted filesystem with ordered data mode. Opts: (null)
EXT4-fs (sda3): mounted filesystem with ordered data mode. Opts: (null)
答案1
输入此命令:
sudo /dev/MAKEDEV sd
这将运行该MAKEDEV
程序并告诉它重新创建丢失的/dev/sd*
设备文件。
答案2
经过大约半天的谷歌搜索,我想我已经找到了答案。您可以重新创建设备节点。一旦我重新创建了 /dev/sda 和 /dev/sdb,一切都会好起来。fdisk -l 工作正常,我能够根据需要设置分区和挂载点
我重新创建设备节点所遵循的网页如下 http://geekyschmidt.com/2011/03/12/why-is-my-devsda-missing