· 8 years ago · Nov 25, 2017, 06:24 PM
1Copying MBR...
21+0 records in
31+0 records out
4448 bytes (448 B) copied, 0.000602456 s, 744 kB/s
5Partitioning disk sdb...
6Checking that no-one is using this disk right now ...
7OK
8
9Disk /dev/sdb: 243201 cylinders, 255 heads, 63 sectors/track
10
11sfdisk: ERROR: sector 0 does not have an msdos signature
12 /dev/sdb: unrecognized partition table type
13Old situation:
14No partitions found
15New situation:
16Units = sectors of 512 bytes, counting from 0
17
18 Device Boot Start End #sectors Id System
19/dev/sdb1 * 2048 19531775 19529728 83 Linux
20/dev/sdb2 19531776 27344895 7813120 82 Linux swap / Solaris
21/dev/sdb3 27344896 3907029167 3879684272 83 Linux
22/dev/sdb4 0 - 0 0 Empty
23Warning: partition 1 does not end at a cylinder boundary
24Successfully wrote the new partition table
25
26Re-reading the partition table ...
27
28If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
29to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
30(See fdisk(8).)
31Copying root partition
321192+0 records in
331192+0 records out
349999220736 bytes (10 GB) copied, 357.816 s, 27.9 MB/s
35Copying swap partition
36476+1 records in
37476+1 records out
384000317440 bytes (4.0 GB) copied, 163.231 s, 24.5 MB/s
39Creating home partition sdb3
40mke2fs 1.41.14 (22-Dec-2010)
41Filesystem label=
42OS type: Linux
43Block size=4096 (log=2)
44Fragment size=4096 (log=2)
45Stride=0 blocks, Stripe width=0 blocks
46121241600 inodes, 484960534 blocks
4724248026 blocks (5.00%) reserved for the super user
48First data block=0
49Maximum filesystem blocks=4294967296
5014800 block groups
5132768 blocks per group, 32768 fragments per group
528192 inodes per group
53Superblock backups stored on blocks:
54 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
55 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968,
56 102400000, 214990848
57
58Writing inode tables: done
59Creating journal (32768 blocks): done
60Writing superblocks and filesystem accounting information: done
61
62This filesystem will be automatically checked every 31 mounts or
63180 days, whichever comes first. Use tune2fs -c or -i to override.
64mkdir: cannot create directory `/tmp/alperton_tmp': File exists
65Unpack home folder to sdb3
66tar: /srv/secure/htpc/2011-05-11//home.tar.gz: Cannot open: No such file or directory
67tar: Error is not recoverable: exiting now
68umount: /tmp/alperton_tmp: device is busy.
69 (In some cases useful info about processes that use
70 the device is found by lsof(8) or fuser(1))
71Done copying...
72Fixing grub...
73Installation finished. No error reported.
74Done!
75simon@simon-laptop:~/2011-05-20$ sync
76simon@simon-laptop:~/2011-05-20$ sudo ./deploy.sh
77[sudo] password for simon:
78./deploy.sh: line 11: cd: /srv/secure/htpc/2011-05-11/: No such file or directory
79Copying MBR...
801+0 records in
811+0 records out
82448 bytes (448 B) copied, 3.8717e-05 s, 11.6 MB/s
83Partitioning disk sdb...
84Warning: /dev/sdb is not a block device
85Disk /dev/sdb: cannot get geometry
86
87Disk /dev/sdb: 0 cylinders, 255 heads, 63 sectors/track
88read: Inappropriate ioctl for device
89
90sfdisk: read error on /dev/sdb - cannot read sector 0
91 /dev/sdb: unrecognized partition table type
92Old situation:
93No partitions found
94Warning: given size (19529728) exceeds max allowable size (0)
95Warning: given size (7813120) exceeds max allowable size (0)
96New situation:
97Units = sectors of 512 bytes, counting from 0
98
99 Device Boot Start End #sectors Id System
100/dev/sdb1 * 2048 19531775 19529728 83 Linux
101/dev/sdb2 19531776 27344895 7813120 82 Linux swap / Solaris
102/dev/sdb3 27344896 27344895 0 83 Linux
103/dev/sdb4 0 - 0 0 Empty
104Warning: partition 3 has size 0 but is not marked Empty
105Warning: partition 1 extends past end of disk
106
107sfdisk: read error on /dev/sdb - cannot read sector 0
108Re-reading the partition table ...
109BLKRRPART: Inappropriate ioctl for device
110
111If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
112to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
113(See fdisk(8).)
114Copying root partition
115dd: writing `/dev/sdb1': No space left on device
116494+0 records in
117493+0 records out
1184143673344 bytes (4.1 GB) copied, 137.847 s, 30.1 MB/s
119Copying swap partition
120dd: writing `/dev/sdb2': No space left on device
1211+0 records in
1220+0 records out
1230 bytes (0 B) copied, 0.317792 s, 0.0 kB/s
124Creating home partition sdb3
125mke2fs 1.41.14 (22-Dec-2010)
126Could not stat /dev/sdb3 --- No such file or directory
127
128The device apparently does not exist; did you specify it correctly?
129mkdir: cannot create directory `/tmp/alperton_tmp': File exists
130mount: special device /dev/sdb3 does not exist
131Unpack home folder to sdb3
132tar: /srv/secure/htpc/2011-05-11//home.tar.gz: Cannot open: No such file or directory
133tar: Error is not recoverable: exiting now
134umount: /tmp/alperton_tmp: device is busy.
135 (In some cases useful info about processes that use
136 the device is found by lsof(8) or fuser(1))
137Done copying...
138Fixing grub...
139mount: /dev/sdb1 is not a block device (maybe try `-o loop'?)
140mount: mount point /tmp/alperton_tmp/dev does not exist
141chroot: failed to run command `grub-install': No such file or directory
142umount: /tmp/alperton_tmp/dev: not found
143umount: /tmp/alperton_tmp: device is busy.
144 (In some cases useful info about processes that use
145 the device is found by lsof(8) or fuser(1))
146Done!