подключение доп. жесткого к регистратору nvr | Ubiquiti форум UBNT: инструкции, настройка

подключение доп. жесткого к регистратору nvr

kolchanoff

новичок
18 Июл 2014
3
0
0
Народ помогите советом , уже второй день бьюсь с подключением жесткого , с офф сайта есть инструкция http://community.ubnt.com/t5/UniFi-Video-Frequently-Asked/airVision-How-to-add-an-external-disk-to-the-NVR-appliance/ta-p/639179, все идет норм пока до 7 шага не доходишь , и дальше все колом .

login as: root/ubnt
root/ubnt@10.10.155.14's password:
Linux airVisionNVR 3.7.10-ubnt #1 SMP Wed Feb 27 13:38:29 PST 2013 x86_64

.__ ____ __.__ .__ _________ _________
_____ |__|_____\ \ / |__| _____|__| ___ ___ \ \ \ / \____ \
\__ \ | \_ __ \ Y | |/ ___/ |/ _ \ / \ / | \ Y | _/
/ __ \| || | \/\ /| |\___ \| ( <_> ) | \ / | \ /| | \
(____ /__||__| \___/ |__/____ >__|\___/|__|__/ \___|_ /\___/ |__|_ /
\/ (c) 2013 Ubiquiti \/ Networks, Inc. \/ \/


Welcome to airVision NVR!

Last login: Fri Sep 12 10:27:35 2014 from 10.10.155.11
root@airVisionNVR:~# fdisk -l

Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x0009fd15

Device Boot Start End Blocks Id System
/dev/sda1 * 4096 1957887 976896 83 Linux
/dev/sda2 1957888 976773119 487407616 f W95 Ext'd (LBA)
/dev/sda5 1959936 9771007 3905536 82 Linux swap / Solaris
/dev/sda6 9773056 15624191 2925568 83 Linux
/dev/sda7 15626240 976773119 480573440 8e Linux LVM
Note: sector size is 4096 (not 512)

Disk /dev/sdb: 4000.8 GB, 4000787025920 bytes
34 heads, 11 sectors/track, 2611643 cylinders, total 976754645 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x909ae5e6

Device Boot Start End Blocks Id System
/dev/sdb1 256 976754644 3907017556 83 Linux

Disk /dev/mapper/lvm-data0: 492.1 GB, 492105105408 bytes
255 heads, 63 sectors/track, 59828 cylinders, total 961142784 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x00000000

Disk /dev/mapper/lvm-data0 doesn't contain a valid partition table
root@airVisionNVR:~# cd /srv
root@airVisionNVR:/srv# fdisk /dev/sdb
Note: sector size is 4096 (not 512)

Command (m for help): n
Partition type:
p primary (1 primary, 0 extended, 3 free)
e extended
Select (default p): p
Partition number (1-4, default 2): 2
No free sectors available

Command (m for help): 1
1: unknown command
Command action
a toggle a bootable flag
b edit bsd disklabel
c toggle the dos compatibility flag
d delete a partition
l list known partition types
m print this menu
n add a new partition
o create a new empty DOS partition table
p print the partition table
q quit without saving changes
s create a new empty Sun disklabel
t change a partition's system id
u change display/entry units
v verify the partition table
w write table to disk and exit
x extra functionality (experts only)

Command (m for help): d
Selected partition 1

Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (256-976754644, default 256): 976754644

Command (m for help): d
Selected partition 1

Command (m for help): n
Partition type:
p primary (0 primary, 0 extended, 4 free)
e extended
Select (default p): p
Partition number (1-4, default 1): 1
First sector (256-976754644, default 256): 256
Last sector, +sectors or +size{K,M,G} (256-976754644, default 976754644): 976754644

Command (m for help): t
Selected partition 1
Hex code (type L to list codes): 83

Command (m for help): p

Disk /dev/sdb: 4000.8 GB, 4000787025920 bytes
34 heads, 11 sectors/track, 2611643 cylinders, total 976754645 sectors
Units = sectors of 1 * 4096 = 4096 bytes
Sector size (logical/physical): 4096 bytes / 4096 bytes
I/O size (minimum/optimal): 4096 bytes / 4096 bytes
Disk identifier: 0x909ae5e6

Device Boot Start End Blocks Id System
/dev/sdb1 256 976754644 3907017556 83 Linux

Command (m for help): w
The partition table has been altered!

Calling ioctl() to re-read partition table.
Syncing disks.
root@airVisionNVR:/srv# fsck.ext4 -y /dev/sdb1
e2fsck 1.42.5 (29-Jul-2012)
ext2fs_open2: Bad magic number in super-block
fsck.ext4: Superblock invalid, trying backup blocks...
fsck.ext4: Bad magic number in super-block while trying to open /dev/sdb1

The superblock could not be read or does not describe a correct ext2
filesystem. If the device is valid and it really contains an ext2
filesystem (and not swap or ufs or something else), then the superblock
is corrupt, and you might try running e2fsck with an alternate superblock:
e2fsck -b 8193 <device>

root@airVisionNVR:/srv# fsck. ext4 -y /dev/sdb1
-bash: fsck.: command not found
root@airVisionNVR:/srv# fsck.ext4 -y /dev/sdb1^C
root@airVisionNVR:/srv# mke2fs /dev/sdb1
mke2fs 1.42.5 (29-Jul-2012)
Filesystem label=
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
244195328 inodes, 976754389 blocks
48837719 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=4294967296
29809 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, 71663616, 78675968,
102400000, 214990848, 512000000, 550731776, 644972544

Allocating group tables: done
Writing inode tables: 1380/29809