Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- =================================================================================
- created by using ubuntu 14.04 live usb with device http://pastebin.com/5dmYS8pY
- =================================================================================
- it@it:~$ sudo su
- root@it:/home/it# fd
- fdformat fdisk
- root@it:/home/it# fd
- fdformat fdisk
- root@it:/home/it# fdisk
- .bash_history Downloads/ .profile
- .bash_logout .gconf/ Public/
- .bashrc .gstreamer-0.10/ Templates/
- .cache/ .ICEauthority Videos/
- .config/ .local/ .Xauthority
- .dbus/ .mozilla/ .xsession-errors
- Desktop/ Music/
- Documents/ Pictures/
- root@it:/home/it# fdisk -l
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
- 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 identifier: 0x17b117b0
- Device Boot Start End Blocks Id System
- /dev/sda1 * 63 192779 96358+ 7 HPFS/NTFS/exFAT
- /dev/sda2 192780 40917554 20362387+ 7 HPFS/NTFS/exFAT
- /dev/sda3 40917555 156264254 57673350 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 4004 MB, 4004511744 bytes
- 255 heads, 63 sectors/track, 486 cylinders, total 7821312 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 identifier: 0x0bb8ff7e
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 63 7821311 3910624+ c W95 FAT32 (LBA)
- root@it:/home/it# fdisk -l
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
- 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 identifier: 0x17b117b0
- Device Boot Start End Blocks Id System
- /dev/sda1 * 63 192779 96358+ 7 HPFS/NTFS/exFAT
- /dev/sda2 192780 40917554 20362387+ 7 HPFS/NTFS/exFAT
- /dev/sda3 40917555 156264254 57673350 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 4004 MB, 4004511744 bytes
- 255 heads, 63 sectors/track, 486 cylinders, total 7821312 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 identifier: 0x0bb8ff7e
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 63 7821311 3910624+ c W95 FAT32 (LBA)
- Disk /dev/sdc: 7914 MB, 7914651648 bytes
- 60 heads, 57 sectors/track, 4519 cylinders, total 15458304 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 identifier: 0x00082559
- Device Boot Start End Blocks Id System
- /dev/sdc1 * 2048 15458303 7728128 b W95 FAT32
- root@it:/home/it# cd /media/
- root@it:/media# cd it/
- root@it:/media/it# ls -a
- . .. C9ED-00EC Tazmania
- root@it:/media/it# cd Tazmania/
- root@it:/media/it/Tazmania# ls -a
- . Local Disk (C) - Shortcut.lnk
- .. Lost Saga
- CJ Netmarble New folder
- Dead Space Ojo di utek2
- desktop.ini Pengaturan mouse Macro
- DragonNest Point Blank
- FFOutput $RECYCLE.BIN
- kali-linux-1.1.0a-amd64.iso Seal Online Indonesia
- kali-linux-1.1.0a-amd64.txt1.sha1sum steam
- kali-linux-1.1.0a-amd64.txt.sha1sum System Volume Information
- root@it:/media/it/Tazmania# dd if=kali-linux-1.1.0a-amd64.iso of=/dev/sdc
- sdc sdc1
- root@it:/media/it/Tazmania# dd if=kali-linux-1.1.0a-amd64.iso of=/dev/sdc bs=512
- ^C27553+0 records in
- 27553+0 records out
- 14107136 bytes (14 MB) copied, 2.91511 s, 4.8 MB/s
- root@it:/media/it/Tazmania# dd -h
- dd: invalid option -- 'h'
- Try 'dd --help' for more information.
- root@it:/media/it/Tazmania# dd --h
- Usage: dd [OPERAND]...
- or: dd OPTION
- Copy a file, converting and formatting according to the operands.
- bs=BYTES read and write up to BYTES bytes at a time
- cbs=BYTES convert BYTES bytes at a time
- conv=CONVS convert the file as per the comma separated symbol list
- count=N copy only N input blocks
- ibs=BYTES read up to BYTES bytes at a time (default: 512)
- if=FILE read from FILE instead of stdin
- iflag=FLAGS read as per the comma separated symbol list
- obs=BYTES write BYTES bytes at a time (default: 512)
- of=FILE write to FILE instead of stdout
- oflag=FLAGS write as per the comma separated symbol list
- seek=N skip N obs-sized blocks at start of output
- skip=N skip N ibs-sized blocks at start of input
- status=WHICH WHICH info to suppress outputting to stderr;
- 'noxfer' suppresses transfer stats, 'none' suppresses all
- N and BYTES may be followed by the following multiplicative suffixes:
- c =1, w =2, b =512, kB =1000, K =1024, MB =1000*1000, M =1024*1024, xM =M
- GB =1000*1000*1000, G =1024*1024*1024, and so on for T, P, E, Z, Y.
- Each CONV symbol may be:
- ascii from EBCDIC to ASCII
- ebcdic from ASCII to EBCDIC
- ibm from ASCII to alternate EBCDIC
- block pad newline-terminated records with spaces to cbs-size
- unblock replace trailing spaces in cbs-size records with newline
- lcase change upper case to lower case
- ucase change lower case to upper case
- sparse try to seek rather than write the output for NUL input blocks
- swab swap every pair of input bytes
- sync pad every input block with NULs to ibs-size; when used
- with block or unblock, pad with spaces rather than NULs
- excl fail if the output file already exists
- nocreat do not create the output file
- notrunc do not truncate the output file
- noerror continue after read errors
- fdatasync physically write output file data before finishing
- fsync likewise, but also write metadata
- Each FLAG symbol may be:
- append append mode (makes sense only for output; conv=notrunc suggested)
- direct use direct I/O for data
- directory fail unless a directory
- dsync use synchronized I/O for data
- sync likewise, but also for metadata
- fullblock accumulate full blocks of input (iflag only)
- nonblock use non-blocking I/O
- noatime do not update access time
- nocache discard cached data
- noctty do not assign controlling terminal from file
- nofollow do not follow symlinks
- count_bytes treat 'count=N' as a byte count (iflag only)
- skip_bytes treat 'skip=N' as a byte count (iflag only)
- seek_bytes treat 'seek=N' as a byte count (oflag only)
- Sending a USR1 signal to a running 'dd' process makes it
- print I/O statistics to standard error and then resume copying.
- $ dd if=/dev/zero of=/dev/null& pid=$!
- $ kill -USR1 $pid; sleep 1; kill $pid
- 18335302+0 records in
- 18335302+0 records out
- 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s
- Options are:
- --help display this help and exit
- --version output version information and exit
- Report dd bugs to bug-coreutils@gnu.org
- GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
- General help using GNU software: <http://www.gnu.org/gethelp/>
- For complete documentation, run: info coreutils 'dd invocation'
- root@it:/media/it/Tazmania# dd --help
- Usage: dd [OPERAND]...
- or: dd OPTION
- Copy a file, converting and formatting according to the operands.
- bs=BYTES read and write up to BYTES bytes at a time
- cbs=BYTES convert BYTES bytes at a time
- conv=CONVS convert the file as per the comma separated symbol list
- count=N copy only N input blocks
- ibs=BYTES read up to BYTES bytes at a time (default: 512)
- if=FILE read from FILE instead of stdin
- iflag=FLAGS read as per the comma separated symbol list
- obs=BYTES write BYTES bytes at a time (default: 512)
- of=FILE write to FILE instead of stdout
- oflag=FLAGS write as per the comma separated symbol list
- seek=N skip N obs-sized blocks at start of output
- skip=N skip N ibs-sized blocks at start of input
- status=WHICH WHICH info to suppress outputting to stderr;
- 'noxfer' suppresses transfer stats, 'none' suppresses all
- N and BYTES may be followed by the following multiplicative suffixes:
- c =1, w =2, b =512, kB =1000, K =1024, MB =1000*1000, M =1024*1024, xM =M
- GB =1000*1000*1000, G =1024*1024*1024, and so on for T, P, E, Z, Y.
- Each CONV symbol may be:
- ascii from EBCDIC to ASCII
- ebcdic from ASCII to EBCDIC
- ibm from ASCII to alternate EBCDIC
- block pad newline-terminated records with spaces to cbs-size
- unblock replace trailing spaces in cbs-size records with newline
- lcase change upper case to lower case
- ucase change lower case to upper case
- sparse try to seek rather than write the output for NUL input blocks
- swab swap every pair of input bytes
- sync pad every input block with NULs to ibs-size; when used
- with block or unblock, pad with spaces rather than NULs
- excl fail if the output file already exists
- nocreat do not create the output file
- notrunc do not truncate the output file
- noerror continue after read errors
- fdatasync physically write output file data before finishing
- fsync likewise, but also write metadata
- Each FLAG symbol may be:
- append append mode (makes sense only for output; conv=notrunc suggested)
- direct use direct I/O for data
- directory fail unless a directory
- dsync use synchronized I/O for data
- sync likewise, but also for metadata
- fullblock accumulate full blocks of input (iflag only)
- nonblock use non-blocking I/O
- noatime do not update access time
- nocache discard cached data
- noctty do not assign controlling terminal from file
- nofollow do not follow symlinks
- count_bytes treat 'count=N' as a byte count (iflag only)
- skip_bytes treat 'skip=N' as a byte count (iflag only)
- seek_bytes treat 'seek=N' as a byte count (oflag only)
- Sending a USR1 signal to a running 'dd' process makes it
- print I/O statistics to standard error and then resume copying.
- $ dd if=/dev/zero of=/dev/null& pid=$!
- $ kill -USR1 $pid; sleep 1; kill $pid
- 18335302+0 records in
- 18335302+0 records out
- 9387674624 bytes (9.4 GB) copied, 34.6279 seconds, 271 MB/s
- Options are:
- --help display this help and exit
- --version output version information and exit
- Report dd bugs to bug-coreutils@gnu.org
- GNU coreutils home page: <http://www.gnu.org/software/coreutils/>
- General help using GNU software: <http://www.gnu.org/gethelp/>
- For complete documentation, run: info coreutils 'dd invocation'
- root@it:/media/it/Tazmania# man dd
- root@it:/media/it/Tazmania# dd if=kali-linux-1.1.0a-amd64.iso of=/dev/sdc bs=512
- 5983104+0 records in
- 5983104+0 records out
- 3063349248 bytes (3.1 GB) copied, 1657.36 s, 1.8 MB/s
- root@it:/media/it/Tazmania# fdisk -l
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
- 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 identifier: 0x17b117b0
- Device Boot Start End Blocks Id System
- /dev/sda1 * 63 192779 96358+ 7 HPFS/NTFS/exFAT
- /dev/sda2 192780 40917554 20362387+ 7 HPFS/NTFS/exFAT
- /dev/sda3 40917555 156264254 57673350 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 4004 MB, 4004511744 bytes
- 255 heads, 63 sectors/track, 486 cylinders, total 7821312 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 identifier: 0x0bb8ff7e
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 63 7821311 3910624+ c W95 FAT32 (LBA)
- Disk /dev/sdc: 7914 MB, 7914651648 bytes
- 179 heads, 32 sectors/track, 2698 cylinders, total 15458304 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 identifier: 0x34b1494d
- Device Boot Start End Blocks Id System
- /dev/sdc1 * 64 5854015 2926976 17 Hidden HPFS/NTFS
- /dev/sdc2 5854016 5983103 64544 1 FAT12
- root@it:/media/it/Tazmania# man read
- root@it:/media/it/Tazmania# man ebd
- No manual entry for ebd
- root@it:/media/it/Tazmania# man end
- root@it:/media/it/Tazmania# gparted
- ======================
- libparted : 2.3
- ======================
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 7 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 6 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 10 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 9 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 29 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 28 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 34 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 38 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 37 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 42 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 41 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 45 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 44 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 51 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 50 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 56 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 55 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 59 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 58 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 64 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 63 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 67 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 66 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 104 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 103 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 109 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 108 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 114 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 113 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 117 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 116 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 120 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 119 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 123 was not found when attempting to remove it
- (gpartedbin:8409): GLib-CRITICAL **: Source ID 122 was not found when attempting to remove it
- root@it:/media/it/Tazmania# end=7gb
- root@it:/media/it/Tazmania# read start _ < <(du -bcm kali-linux-1.1.0a-amd64.iso | tail -1); echo $start
- 2922
- root@it:/media/it/Tazmania# parted /dev/sd
- sda sda1 sda2 sda3 sdb sdb1 sdc
- root@it:/media/it/Tazmania# parted /dev/sdc mkpart primary $start $end
- Warning: You requested a partition from 2922MB to 7000MB.
- The closest location we can manage is 3063MB to 7915MB.
- Is this still acceptable to you?
- Yes/No? yes
- Warning: The resulting partition is not properly aligned for best performance.
- Ignore/Cancel? Ignore
- Information: You may need to update /etc/fstab.
- root@it:/media/it/Tazmania# fdisk -l
- Disk /dev/sda: 80.0 GB, 80026361856 bytes
- 255 heads, 63 sectors/track, 9729 cylinders, total 156301488 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 identifier: 0x17b117b0
- Device Boot Start End Blocks Id System
- /dev/sda1 * 63 192779 96358+ 7 HPFS/NTFS/exFAT
- /dev/sda2 192780 40917554 20362387+ 7 HPFS/NTFS/exFAT
- /dev/sda3 40917555 156264254 57673350 7 HPFS/NTFS/exFAT
- Disk /dev/sdb: 4004 MB, 4004511744 bytes
- 255 heads, 63 sectors/track, 486 cylinders, total 7821312 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 identifier: 0x0bb8ff7e
- Device Boot Start End Blocks Id System
- /dev/sdb1 * 63 7821311 3910624+ c W95 FAT32 (LBA)
- Disk /dev/sdc: 7914 MB, 7914651648 bytes
- 179 heads, 32 sectors/track, 2698 cylinders, total 15458304 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 identifier: 0x34b1494d
- Device Boot Start End Blocks Id System
- /dev/sdc1 * 64 5854015 2926976 17 Hidden HPFS/NTFS
- /dev/sdc2 5854016 5983103 64544 1 FAT12
- /dev/sdc3 5983104 15458303 4737600 83 Linux
- root@it:/media/it/Tazmania# mkfs.ext3 -L persistence /dev/sdc
- sdc sdc1 sdc2 sdc3
- root@it:/media/it/Tazmania# mkfs.ext3 -L persistence /dev/sdc3
- mke2fs 1.42.9 (4-Feb-2014)
- Filesystem label=persistence
- OS type: Linux
- Block size=4096 (log=2)
- Fragment size=4096 (log=2)
- Stride=0 blocks, Stripe width=0 blocks
- 296592 inodes, 1184400 blocks
- 59220 blocks (5.00%) reserved for the super user
- First data block=0
- Maximum filesystem blocks=1216348160
- 37 block groups
- 32768 blocks per group, 32768 fragments per group
- 8016 inodes per group
- Superblock backups stored on blocks:
- 32768, 98304, 163840, 229376, 294912, 819200, 884736
- Allocating group tables: done
- Writing inode tables: done
- Creating journal (32768 blocks): done
- Writing superblocks and filesystem accounting information: done
- root@it:/media/it/Tazmania# e2label /dev/sdc3 persistence
- root@it:/media/it/Tazmania# mkdir -p /mnt/my_usb
- root@it:/media/it/Tazmania# mount /dev/sdb
- sdb sdb1
- root@it:/media/it/Tazmania# mount /dev/sdc3 /mnt/my_usb
- root@it:/media/it/Tazmania# echo "/ union" > /mnt/my_usb/persistence.conf
- root@it:/media/it/Tazmania# umount /dev/sdc3
- root@it:/media/it/Tazmania#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement