Раздел создал.
Вывод fdisk до создания раздела:
Код: Выделить всё
/home/admin # fdisk -l
Disk /dev/mtdblock0: 1 MB, 1048576 bytes
255 heads, 63 sectors/track, 0 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/mtdblock0 doesn't contain a valid partition table
Disk /dev/sda: 240.0 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sda doesn't contain a valid partition table
Disk /dev/sdb: 240.0 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Disk /dev/sdb doesn't contain a valid partition table
Создал раздел:
Код: Выделить всё
/home/admin # fdisk /dev/sda
Device contains neither a valid DOS partition table, nor Sun, SGI, OSF or GPT disklabel
Building a new DOS disklabel. Changes will remain in memory only,
until you decide to write them. After that the previous content
won't be recoverable.
The number of cylinders for this disk is set to 29185.
There is nothing wrong with that, but this is larger than 1024,
and could in certain setups cause problems with:
1) software that runs at boot time (e.g., old versions of LILO)
2) booting and partitioning software from other OSs
(e.g., DOS FDISK, OS/2 FDISK)
Command (m for help): p
Disk /dev/sda: 240.0 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
Command (m for help): n
Command action
e extended
p primary partition (1-4)
p
Partition number (1-4): 1
First cylinder (1-29185, default 1): Using default value 1
Last cylinder or +size or +sizeM or +sizeK (1-29185, default 29185): Using default value 29185
Command (m for help): p
Disk /dev/sda: 240.0 GB, 240057409536 bytes
255 heads, 63 sectors/track, 29185 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Device Boot Start End Blocks Id System
/dev/sda1 1 29185 234428481 83 Linux
Command (m for help): w
The partition table has been altered!
Calling ioctl() to re-read partition table
С созданием файловой системы, что-то похоже пошло не так:
Код: Выделить всё
/home/admin # mkfs.ext4 /dev/sda1
mke2fs 1.41.14 (22-Dec-2010)
ext2fs_check_if_mount: Can't check if filesystem is mounted due to missing mtab file while determining whether /dev/sda1 is mounted.
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
14655488 inodes, 58607120 blocks
2930356 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=0
1789 block groups
32768 blocks per group, 32768 fragments per group
8192 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
4096000, 7962624, 11239424, 20480000, 23887872
Writing inode tables: done
Creating journal (32768 blocks): mkfs.ext4: Can't check if filesystem is mounted due to missing mtab file
while trying to create journal
при создании ext3 похожая ошибка.
При монтировании выдает ошибку:
Код: Выделить всё
/home/admin # mount /dev/sda1 /mnt/sda1
mount: mounting /dev/sda1 on /mnt/sda1 failed: Invalid argument
В mount тоже ничего нет:
Код: Выделить всё
/home/admin # mount
rootfs on / type rootfs (rw)
/dev/root on / type ext2 (rw,relatime,errors=continue)
proc on /proc type proc (rw,relatime)
devpts on /dev/pts type devpts (rw,relatime,gid=5,mode=620)
sysfs on /sys type sysfs (rw,relatime)
/dev/ram0 on /tmp type tmpfs (rw,relatime,size=131072k)
/dev/ram0 on /tmp/cdrs type tmpfs (rw,relatime,size=524288k)
/dev/ram0 on /tmp/logs type tmpfs (rw,relatime,size=524288k)
/dev/ram0 on /mnt/ram type tmpfs (rw,relatime,size=65536k,mode=755)
ubi0:fs on /tmp/fs type ubifs (rw,relatime)
ubi1:fs_upd on /tmp/fs_upd type ubifs (rw,relatime)
ubi2:disk on /tmp/disk type ubifs (rw,relatime)
Что с этим можно сделать?