Changes between Version 9 and Version 10 of SmallSteps


Ignore:
Timestamp:
12/19/10 13:24:30 (2 years ago)
Author:
stappers
Comment:

prepare disk for recieving data

Legend:

Unmodified
Added
Removed
Modified
  • SmallSteps

    v9 v10  
    327327}}} 
    328328 
     329Further preparation of our virtual disk. It uses ''loop device technique''. 
     330 
     331For the ''swap'' partition 
     332 
     333{{{ 
     334sudo losetup --find --show --offset $[3750016*512] tile 
     335}}} 
     336'''may show''' 
     337{{{ 
     338/dev/loop6 
     339}}} 
     340where the ''6'' is more likely to be ''0'' 
     341 
     342{{{ 
     343sudo mkswap /dev/loop6 
     344}}} 
     345gives 
     346{{{ 
     347Setting up swapspace version 1, size = 227471 kB 
     348no label, UUID=a31d5609-3a58-4c26-8078-4c7641e3d7df 
     349}}} 
     350 
     351{{{ 
     352sudo losetup --detach /dev/loop6 
     353}}} 
     354 
     355For the ''data'' partition 
     356 
     357{{{ 
     358sudo losetup --find --show --offset $[32*512] tile 
     359}}} 
     360'''may show''' 
     361{{{ 
     362/dev/loop6 
     363}}} 
     364where the ''6'' is more likely to be ''0'' 
     365 
     366{{{ 
     367LANG=C sudo mkfs -t ext3 /dev/loop6 1874992 
     368}}} 
     369gives 
     370{{{ 
     371mke2fs 1.41.3 (12-Oct-2008) 
     372Filesystem label= 
     373OS type: Linux 
     374Block size=4096 (log=2) 
     375Fragment size=4096 (log=2) 
     376117360 inodes, 468748 blocks 
     37723437 blocks (5.00%) reserved for the super user 
     378First data block=0 
     379Maximum filesystem blocks=482344960 
     38015 block groups 
     38132768 blocks per group, 32768 fragments per group 
     3827824 inodes per group 
     383Superblock backups stored on blocks:  
     384        32768, 98304, 163840, 229376, 294912 
     385 
     386Writing inode tables: done                             
     387Creating journal (8192 blocks): done 
     388Writing superblocks and filesystem accounting information: done 
     389 
     390This filesystem will be automatically checked every 32 mounts or 
     391180 days, whichever comes first.  Use tune2fs -c or -i to override. 
     392}}} 
     393 
     394{{{ 
     395sudo tune2fs -c 0 -i 0 /dev/loop6 
     396}}} 
     397gives 
     398{{{ 
     399tune2fs 1.41.3 (12-Oct-2008) 
     400Setting maximal mount count to -1 
     401Setting interval between checks to 0 seconds 
     402}}} 
     403 
     404{{{ 
     405sudo mkdir -p /mnt/target 
     406sudo mount /dev/loop6 /mnt/target 
     407df /mnt/target 
     408}}} 
     409gives 
     410{{{ 
     411/dev/loop6             1845484     35564   1716172   3% /mnt/target 
     412}}} 
    329413 
    330414To be continued  (by stappers)