root@dm800se:~# ./media-boot -i /dev/sdb
media-boot: installing on device: /dev/sdb
media-boot: stoping automount reboot to get back
media-boot: stoping udev
./media-boot: line 149: fuser: not found
umount: can't forcibly umount /dev/sdb1: Invalid argument
./media-boot: line 149: fuser: not found
umount: can't forcibly umount /dev/sdb2: No such file or directory
./media-boot: line 149: fuser: not found
umount: can't forcibly umount /dev/sdb3: No such file or directory
./media-boot: line 149: fuser: not found
umount: can't forcibly umount /dev/sdb4: No such file or directory
media-boot: formating /dev/sdb ...
1+0 records in
1+0 records out
512 bytes (512B) copied, 0.056074 seconds, 8.9KB/s
Checking that no-one is using this disk right now ...
OK
Disk /dev/sdb: 1023 cylinders, 247 heads, 62 sectors/track
sfdisk: ERROR: sector 2001048434 does not have an msdos signature
sfdisk: /dev/sdb: unrecognized partition table type
Old situation:
sfdisk: No partitions found
New situation:
Units = mebibytes of 1048576 bytes, blocks of 1024 bytes, counting from 0
Device Boot Start End MiB #blocks Id System
/dev/sdb1 * 0+ 22- 23- 22970+ b W95 FAT32
/dev/sdb2 22+ 538- 516- 528333 82 Linux swap / Solaris
/dev/sdb3 538+ 7649- 7112- 7281807 83 Linux
/dev/sdb4 0 - 0 0 0 Empty
Successfully wrote the new partition table
Re-reading the partition table ...
If you created or changed a DOS partition, /dev/foo7, say, then use dd(1)
to zero the first 512 bytes: dd if=/dev/zero of=/dev/foo7 bs=512 count=1
(See fdisk(8).)
Starting udev
media-boot: stoping udev second time
media-boot: creating mount point dir roots ...
media-boot: creating filesystems on /dev/sdb ...
Setting up swapspace version 1, size = 541008896 bytes
UUID=66bd08dd-6905-46a9-b58e-cff21d498d39
mke2fs 1.42.1 (17-Feb-2012)
Filesystem label=ROOT
OS type: Linux
Block size=4096 (log=2)
Fragment size=4096 (log=2)
Stride=0 blocks, Stripe width=0 blocks
455168 inodes, 1820451 blocks
91022 blocks (5.00%) reserved for the super user
First data block=0
Maximum filesystem blocks=1866465280
56 block groups
32768 blocks per group, 32768 fragments per group
8128 inodes per group
Superblock backups stored on blocks:
32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632
Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done
media-boot: downloading image...
media-boot: unpacking image...