到底哪里出了问题

My Book Live  / 求助大神  / 只看大图  / 倒序浏览   © 著作权归作者本人所有

铁威马
公网ip
花生壳

#楼主# 2018-1-18 10:55

跳转到指定楼层
装个系统怎么那么难,这个方法二烦得要死,不能直接弄个4T镜像写一写吗
IMG_20180118_104223.jpg
IMG_20180118_104438.jpg
IMG_20180118_104626.jpg
IMG_20180118_104700.jpg
IMG_20180118_104711.jpg
IMG_20180118_104730.jpg
IMG_20180118_104809.jpg
楼主热帖
那是云论坛 - 国内最开放NAS交流平台
http://www.nasyun.com
分享淘帖
回复

使用道具

0

精华

21

帖子

277

积分

发烧玩家

Rank: 2

云币
0
贡献
6
活跃
226
精华
0
dutaotao 发表于 2018-1-18 11:33
root@sysresccd /root % fdisk -l

Disk /dev/loop0: 317.1 MiB, 332468224 bytes, 649352

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 /dev/sda: 20 GiB, 21474836480 bytes, 41943040 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
Disklabel type: gpt
Disk identifier: F24FCD0C-734A-4E32-8E5F-A3C379507358

Device       Start      End  Sectors  Size Type
/dev/sda1  1032192  5031935  3999744  1.9G Linux RAID
/dev/sda2  5031936  9031679  3999744  1.9G Linux RAID
/dev/sda3    30720  1032191  1001472  489M Linux

filesystem
/dev/sda4  9031680 41940991 32909312 15.7G Linux

filesystem

Partition table entries are not in disk order.
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168

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
Disklabel type: gpt
Disk identifier: B795E8FF-31A8-4F11-A34C-6E1B9B1D43FA


Disk /dev/sdc: 7.5 GiB, 8002732032 bytes, 15630336 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
Disklabel type: dos
Disk identifier: 0x6f20736b

Device     Boot      Start        End    Sectors   Size Id

Type
/dev/sdc1  ?     778135908 1919645538 1141509631 544.3G 72

unknown
/dev/sdc2  ?     168689522 2104717761 1936028240 923.2G 65

Novell Netware 386
/dev/sdc3  ?    1869881465 3805909656 1936028192 923.2G 79

unknown
/dev/sdc4  ?    2885681152 2885736650      55499  27.1M  d

unknown

Partition table entries are not in disk order.
root@sysresccd /root % mkdir /mnt/usb
root@sysresccd /root % mount -t vfat /dev/sdc /mnt/usb
root@sysresccd /root % cd /mnt/usb
root@sysresccd /mnt/usb % mdadm -S /dev/md0
mdadm: stopped /dev/md0
root@sysresccd /mnt/usb % ./debrick.sh rootfs.img /dev/sdb

destroy

********************** DISK           

**********************

script will use the following disk:

Model: ST4000VX 000-1F4168 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

is this REALLY the disk you want? [y] y

********************** IMAGE         

**********************


********************** IMPLEMENTATION

**********************

everything is now prepared!
device:       /dev/sdb
image_img:    rootfs.img
destroy:      true

this is the point of no return, continue? [y] y

dd: error writing ‘/dev/sdb1’: No space left on device
10+0 records in
9+0 records out
10395648 bytes (10 MB) copied, 0.231762 s, 44.9 MB/s
dd: error writing ‘/dev/sdb2’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00339713 s, 0.0 kB/s
dd: error writing ‘/dev/sdb3’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0029964 s, 0.0 kB/s
dd: error writing ‘/dev/sdb4’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00727841 s, 0.0 kB/s
Testing with pattern 0x00: done                           

                     
Reading and comparing: done                                

                 
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of

commands.
(parted) mklabel gpt                                       

               
(parted) mkpart primary 528M  2576M                        

               
(parted) mkpart primary 2576M 4624M                        

               
(parted) mkpart primary 16M 528M                           

               
(parted) mkpart primary 4624M -1M                          

               
(parted) set 1 raid on                                    

               
(parted) set 2 raid on                                    

               
(parted) quit                                             

               
Information: You may need to update /etc/fstab.

Warning: blocksize 65536 not usable on most systems.      

               
mke2fs 1.42.12 (29-Aug-2014)
mkfs.ext4: Device size reported to be zero.  Invalid

partition specified, or
        partition table wasn't reread after running fdisk,

due to
        a modified partition being busy and in use.  You

may need to reboot
        to re-read your partition table.


destroying was done, would you like to continue with

installation? [y] y

mdadm: /dev/sdb1 is not a block device
mdadm: Cannot find /dev/md0: No such file or directory
mke2fs 1.42.12 (29-Aug-2014)
The file /dev/md0 does not exist and no size was

specified.
mdadm: error opening /dev/md0: No such file or directory

synchronize raid... mdadm: Cannot find /dev/md0: No such

file or directory
done

copying image to disk...
dd: writing to ‘/dev/md0’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00578766 s, 0.0 kB/s
mount: /dev/md0 is not a block device (maybe try `-o

loop'?)
cp: cannot stat ‘/mnt/md0/usr/local/share/bootmd0.scr’:

No such file or directory
./debrick.sh: line 359:

/mnt/md0/etc/nas/service_startup/ssh: No such file or

directory
umount: /mnt/md0: not mounted
mdadm: /dev/md0 does not appear to be an md device
BLKGETSIZE: Inappropriate ioctl for device
BLKGETSIZE: Inappropriate ioctl for device

all done! device should be debricked!

root@sysresccd /mnt/usb %
回复 支持 反对

使用道具 举报

0

精华

21

帖子

277

积分

发烧玩家

Rank: 2

云币
0
贡献
6
活跃
226
精华
0
dutaotao 发表于 2018-1-18 11:33
root@sysresccd /root % fdisk -l

Disk /dev/loop0: 317.1 MiB, 332468224 bytes, 649352

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 /dev/sda: 20 GiB, 21474836480 bytes, 41943040 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
Disklabel type: gpt
Disk identifier: F24FCD0C-734A-4E32-8E5F-A3C379507358

Device       Start      End  Sectors  Size Type
/dev/sda1  1032192  5031935  3999744  1.9G Linux RAID
/dev/sda2  5031936  9031679  3999744  1.9G Linux RAID
/dev/sda3    30720  1032191  1001472  489M Linux

filesystem
/dev/sda4  9031680 41940991 32909312 15.7G Linux

filesystem

Partition table entries are not in disk order.
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168

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
Disklabel type: gpt
Disk identifier: B795E8FF-31A8-4F11-A34C-6E1B9B1D43FA


Disk /dev/sdc: 7.5 GiB, 8002732032 bytes, 15630336 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
Disklabel type: dos
Disk identifier: 0x6f20736b

Device     Boot      Start        End    Sectors   Size Id

Type
/dev/sdc1  ?     778135908 1919645538 1141509631 544.3G 72

unknown
/dev/sdc2  ?     168689522 2104717761 1936028240 923.2G 65

Novell Netware 386
/dev/sdc3  ?    1869881465 3805909656 1936028192 923.2G 79

unknown
/dev/sdc4  ?    2885681152 2885736650      55499  27.1M  d

unknown

Partition table entries are not in disk order.
root@sysresccd /root % mkdir /mnt/usb
root@sysresccd /root % mount -t vfat /dev/sdc /mnt/usb
root@sysresccd /root % cd /mnt/usb
root@sysresccd /mnt/usb % mdadm -S /dev/md0
mdadm: stopped /dev/md0
root@sysresccd /mnt/usb % ./debrick.sh rootfs.img /dev/sdb

destroy

********************** DISK           

**********************

script will use the following disk:

Model: ST4000VX 000-1F4168 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

is this REALLY the disk you want? [y] y

********************** IMAGE         

**********************


********************** IMPLEMENTATION

**********************

everything is now prepared!
device:       /dev/sdb
image_img:    rootfs.img
destroy:      true

this is the point of no return, continue? [y] y

dd: error writing ‘/dev/sdb1’: No space left on device
10+0 records in
9+0 records out
10395648 bytes (10 MB) copied, 0.231762 s, 44.9 MB/s
dd: error writing ‘/dev/sdb2’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00339713 s, 0.0 kB/s
dd: error writing ‘/dev/sdb3’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0029964 s, 0.0 kB/s
dd: error writing ‘/dev/sdb4’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00727841 s, 0.0 kB/s
Testing with pattern 0x00: done                           

                     
Reading and comparing: done                                

                 
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of

commands.
(parted) mklabel gpt                                       

               
(parted) mkpart primary 528M  2576M                        

               
(parted) mkpart primary 2576M 4624M                        

               
(parted) mkpart primary 16M 528M                           

               
(parted) mkpart primary 4624M -1M                          

               
(parted) set 1 raid on                                    

               
(parted) set 2 raid on                                    

               
(parted) quit                                             

               
Information: You may need to update /etc/fstab.

Warning: blocksize 65536 not usable on most systems.      

               
mke2fs 1.42.12 (29-Aug-2014)
mkfs.ext4: Device size reported to be zero.  Invalid

partition specified, or
        partition table wasn't reread after running fdisk,

due to
        a modified partition being busy and in use.  You

may need to reboot
        to re-read your partition table.


destroying was done, would you like to continue with

installation? [y] y

mdadm: /dev/sdb1 is not a block device
mdadm: Cannot find /dev/md0: No such file or directory
mke2fs 1.42.12 (29-Aug-2014)
The file /dev/md0 does not exist and no size was

specified.
mdadm: error opening /dev/md0: No such file or directory

synchronize raid... mdadm: Cannot find /dev/md0: No such

file or directory
done

copying image to disk...
dd: writing to ‘/dev/md0’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00578766 s, 0.0 kB/s
mount: /dev/md0 is not a block device (maybe try `-o

loop'?)
cp: cannot stat ‘/mnt/md0/usr/local/share/bootmd0.scr’:

No such file or directory
./debrick.sh: line 359:

/mnt/md0/etc/nas/service_startup/ssh: No such file or

directory
umount: /mnt/md0: not mounted
mdadm: /dev/md0 does not appear to be an md device
BLKGETSIZE: Inappropriate ioctl for device
BLKGETSIZE: Inappropriate ioctl for device

all done! device should be debricked!

root@sysresccd /mnt/usb %
回复 支持 反对

使用道具 举报

0

精华

21

帖子

277

积分

发烧玩家

Rank: 2

云币
0
贡献
6
活跃
226
精华
0
dutaotao 发表于 2018-1-18 11:33
root@sysresccd /root % fdisk -l

Disk /dev/loop0: 317.1 MiB, 332468224 bytes, 649352

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 /dev/sda: 20 GiB, 21474836480 bytes, 41943040 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
Disklabel type: gpt
Disk identifier: F24FCD0C-734A-4E32-8E5F-A3C379507358

Device       Start      End  Sectors  Size Type
/dev/sda1  1032192  5031935  3999744  1.9G Linux RAID
/dev/sda2  5031936  9031679  3999744  1.9G Linux RAID
/dev/sda3    30720  1032191  1001472  489M Linux

filesystem
/dev/sda4  9031680 41940991 32909312 15.7G Linux

filesystem

Partition table entries are not in disk order.
Disk /dev/sdb: 3.7 TiB, 4000787030016 bytes, 7814037168

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
Disklabel type: gpt
Disk identifier: B795E8FF-31A8-4F11-A34C-6E1B9B1D43FA


Disk /dev/sdc: 7.5 GiB, 8002732032 bytes, 15630336 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
Disklabel type: dos
Disk identifier: 0x6f20736b

Device     Boot      Start        End    Sectors   Size Id

Type
/dev/sdc1  ?     778135908 1919645538 1141509631 544.3G 72

unknown
/dev/sdc2  ?     168689522 2104717761 1936028240 923.2G 65

Novell Netware 386
/dev/sdc3  ?    1869881465 3805909656 1936028192 923.2G 79

unknown
/dev/sdc4  ?    2885681152 2885736650      55499  27.1M  d

unknown

Partition table entries are not in disk order.
root@sysresccd /root % mkdir /mnt/usb
root@sysresccd /root % mount -t vfat /dev/sdc /mnt/usb
root@sysresccd /root % cd /mnt/usb
root@sysresccd /mnt/usb % mdadm -S /dev/md0
mdadm: stopped /dev/md0
root@sysresccd /mnt/usb % ./debrick.sh rootfs.img /dev/sdb

destroy

********************** DISK           

**********************

script will use the following disk:

Model: ST4000VX 000-1F4168 (scsi)
Disk /dev/sdb: 4001GB
Sector size (logical/physical): 512B/4096B
Partition Table: gpt
Disk Flags:

Number  Start  End  Size  File system  Name  Flags

is this REALLY the disk you want? [y] y

********************** IMAGE         

**********************


********************** IMPLEMENTATION

**********************

everything is now prepared!
device:       /dev/sdb
image_img:    rootfs.img
destroy:      true

this is the point of no return, continue? [y] y

dd: error writing ‘/dev/sdb1’: No space left on device
10+0 records in
9+0 records out
10395648 bytes (10 MB) copied, 0.231762 s, 44.9 MB/s
dd: error writing ‘/dev/sdb2’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00339713 s, 0.0 kB/s
dd: error writing ‘/dev/sdb3’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.0029964 s, 0.0 kB/s
dd: error writing ‘/dev/sdb4’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00727841 s, 0.0 kB/s
Testing with pattern 0x00: done                           

                     
Reading and comparing: done                                

                 
GNU Parted 3.2
Using /dev/sdb
Welcome to GNU Parted! Type 'help' to view a list of

commands.
(parted) mklabel gpt                                       

               
(parted) mkpart primary 528M  2576M                        

               
(parted) mkpart primary 2576M 4624M                        

               
(parted) mkpart primary 16M 528M                           

               
(parted) mkpart primary 4624M -1M                          

               
(parted) set 1 raid on                                    

               
(parted) set 2 raid on                                    

               
(parted) quit                                             

               
Information: You may need to update /etc/fstab.

Warning: blocksize 65536 not usable on most systems.      

               
mke2fs 1.42.12 (29-Aug-2014)
mkfs.ext4: Device size reported to be zero.  Invalid

partition specified, or
        partition table wasn't reread after running fdisk,

due to
        a modified partition being busy and in use.  You

may need to reboot
        to re-read your partition table.


destroying was done, would you like to continue with

installation? [y] y

mdadm: /dev/sdb1 is not a block device
mdadm: Cannot find /dev/md0: No such file or directory
mke2fs 1.42.12 (29-Aug-2014)
The file /dev/md0 does not exist and no size was

specified.
mdadm: error opening /dev/md0: No such file or directory

synchronize raid... mdadm: Cannot find /dev/md0: No such

file or directory
done

copying image to disk...
dd: writing to ‘/dev/md0’: No space left on device
1+0 records in
0+0 records out
0 bytes (0 B) copied, 0.00578766 s, 0.0 kB/s
mount: /dev/md0 is not a block device (maybe try `-o

loop'?)
cp: cannot stat ‘/mnt/md0/usr/local/share/bootmd0.scr’:

No such file or directory
./debrick.sh: line 359:

/mnt/md0/etc/nas/service_startup/ssh: No such file or

directory
umount: /mnt/md0: not mounted
mdadm: /dev/md0 does not appear to be an md device
BLKGETSIZE: Inappropriate ioctl for device
BLKGETSIZE: Inappropriate ioctl for device

all done! device should be debricked!

root@sysresccd /mnt/usb %
回复 支持 反对

使用道具 举报

0

精华

21

帖子

277

积分

发烧玩家

Rank: 2

云币
0
贡献
6
活跃
226
精华
0
dutaotao 发表于 2018-1-18 11:34
各位帮忙看看
回复 支持 反对

使用道具 举报

0

精华

551

帖子

2840

积分

搞机大神

Rank: 3Rank: 3

云币
0
贡献
47
活跃
2329
精华
0
wjq998 发表于 2018-9-19 09:16
看得我头晕了

点评

就是娘的复杂的要死,要先装linux系统再在系统里安装主机的系统,我现在直接用3T的镜像写入硬盘,再扩容到4t完美  详情 回复 发表于 2018-11-30 21:33
回复 支持 反对

使用道具 举报

0

精华

21

帖子

277

积分

发烧玩家

Rank: 2

云币
0
贡献
6
活跃
226
精华
0
dutaotao 发表于 2018-11-30 21:33

就是娘的复杂的要死,要先装linux系统再在系统里安装主机的系统,我现在直接用3T的镜像写入硬盘,再扩容到4t完美
回复 支持 反对

使用道具 举报

0

精华

4

帖子

48

积分

入门用户

Rank: 1

云币
0
贡献
0
活跃
44
精华
0
cnszhubin 发表于 2018-12-16 23:51
用方法2一次成功;
感觉难度主要在拆壳子上,分析如何拆装,然后最后一步还弄两遍(导光棒掉了一次)
回复 支持 反对

使用道具 举报

0

精华

4

帖子

48

积分

入门用户

Rank: 1

云币
0
贡献
0
活跃
44
精华
0
cnszhubin 发表于 2018-12-16 23:53
已设置、更新好,现在正在走全面测试中。
捕获.JPG
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关于作者

dutaotao

发烧玩家

  • 主题

    3

  • 帖子

    21

  • 关注者

    2

那是云自营淘宝
快速回复 返回列表 搜索 官方QQ群
懒人地图 百度地图 谷歌地图手机版|小黑屋|智能生活 , 上那是云 |闽ICP备12025514号-3