Доброе утро, я все с тем же вопросом, подскажите почему я не могу примонтировать диск на виртуальной машине дебиан
Делаю
[console]
mount -t ext4 /dev/sdb /mnt/sdb_120GB/
[/console]
пишет:
[console]
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[/console]
вот что показывает fdisk -l
[console]
Disk /dev/sda: 66.6 GB, 66571993088 bytes
255 heads, 63 sectors/track, 8093 cylinders, total 130023424 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: 0x00008082
Device Boot Start End Blocks Id System
/dev/sda1 * 63 130014044 65006991 83 Linux
Disk /dev/sdb: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders, total 251658240 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/sdb doesn't contain a valid partition table
[/console]
Монтирование диска на вирт машине
Доброе утро, я все с тем же вопросом, подскажите почему я не могу примонтировать диск на виртуальной машине дебиан
Делаю
[console]
mount -t ext4 /dev/sdb /mnt/sdb_120GB/
[/console]
пишет:
[console]
mount: wrong fs type, bad option, bad superblock on /dev/sdb,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[/console]
вот что показывает fdisk -l
[console]
Disk /dev/sda: 66.6 GB, 66571993088 bytes
255 heads, 63 sectors/track, 8093 cylinders, total 130023424 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: 0x00008082
Device Boot Start End Blocks Id System
/dev/sda1 * 63 130014044 65006991 83 Linux
Disk /dev/sdb: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders, total 251658240 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/sdb doesn't contain a valid partition table
[/console]
sdb - это виртуальный диск?
По ходу он не размечен.
sdb - это виртуальный диск?
да это виртуальный диск. а как можно его разметить?
С помощью fdisk, а если установлено то cfdisk /dev/sdb
Или через gparted.
разметил тоже самое
делаю fdisk -l
[console]Disk /dev/sda: 66.6 GB, 66571993088 bytes
255 heads, 63 sectors/track, 8093 cylinders, total 130023424 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: 0x00008082
Device Boot Start End Blocks Id System
/dev/sda1 * 63 130014044 65006991 83 Linux
Disk /dev/sdb: 128.8 GB, 128849018880 bytes
255 heads, 63 sectors/track, 15665 cylinders, total 251658240 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
Device Boot Start End Blocks Id System
/dev/sdb1 63 251658239 125829088+ 83 Linux
[/console]
делаю
[console]mount -t ext4 /dev/sdb1 /mnt/sdb_120GB/
[/console]
[console]mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[/console]
Вы разметили, а форматировать кто будет.?
[console]mkfs.ext4 /dev/sdb1[/console]
После этого монтируйте.
mkfs.ext4 /dev/sdb1
спасибо огромное, а еще подскажите пожалуйста как добавить монтирование при автозагрузки
Для этого нужно внести запись в /etc/fstab, тока я не знаю как у вас там записи идут по разделах или UUID. Покажыте вывод
[console]cat /etc/fstab[/console]
из под рута.
[console]# /etc/fstab: static file system information.
#
# Use 'blkid' to print the universally unique identifier for a
# device; this may be used with UUID= as a more robust way to name devices
# that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
# /dev/sda1 / ext3 errors=remount-ro 0 1
UUID=5f4f3760-b484-4b09-a434-162d43147ad8 / ext3 errors=remount-ro 0 1
/dev/scd0 /media/cdrom0 udf,iso9660 user,noauto 0 0
/dev/scd1 /media/cdrom1 udf,iso9660 user,noauto 0 0
# mount iso to folder to make a local repository
#/mnt/debian-6.0.4-amd64-DVD-1.iso /mnt/debian-6.0.4/1 udf,iso9660 user,loop 0 0
[/console]
Нужно выяснить сначала UUID раздела /dev/sdb1
[console]blkid /dev/sdb1[/console]
И потом полученый UUID вписываете в /etc/fstab
[console]UUID="раздела_/dev/sdb1" /mnt/sdb_120GB ext4 defaults 1 1[/console]
Как то так.
Если нужно какието особенные опцыи монтирования, defaults заменить на нужные опцыи.
примерно так?
[console]# /dev/sdb1
UUID="0a389c6c-0115-4266-838e-81697065d3f0_/dev/sdb1" /mnt/sdb_120GB ext4 defaults 1 1
[/console]
Примерно, но без
_/dev/sdb1"
Я это написал спецыально в скобках, чтобы всё это заменить на нужный UUID. Вот так нужно
[console]UUID=0a389c6c-0115-4266-838e-81697065d3f0 /mnt/sdb_120GB ext4 defaults 1 1[/console]
спасибо большое Вам, Плюсанул как только смог *DRINK*
Да незачто. Удачи.
из под рута
Лишнее, fstab доступен на чтение, а вот для записи уже нужны права рута.