--- trunk/www/onepage.html 2011/06/06 18:57:10 180 +++ trunk/www/onepage.html 2011/06/22 16:47:21 181 @@ -86,7 +86,7 @@
umount /dev/sdc4
dd if=~/clonezilla-sysresccd-full-mod-3.2.0.iso of=/dev/sdc bs=512
And that's it. Your usb device is ready to boot!!!
--If your usb device is more than 400MB in size, the above command will leave the remaining space unused. To verify it, execute the command: -
-fdisk -l /dev/sdc
-You should get something similar to this:
-
-Disk /dev/sdc: 1048 MB, 1048576000 bytes
-64 heads, 32 sectors/track, 1000 cylinders, total 2048000 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: 0x77a5188f
-
- Device Boot Start End Blocks Id System
-/dev/sdc1 * 1 384 393216 17 Hidden HPFS/NTFS
-
-As you can see, we are currently using 348 out of 1000 cylinders of the disk. The remaining disk space (~600MB) can still be used, executing the following commands: -
-
-fdisk /dev/sdc
-command (m for help): n (create new partition)
-command action
- e extended
- p primary partition (1-4)
-p
-partition number (1-4): 4 (create partition sdc4)
-first cylinder (385-1000, default 385):
-using default value 385
-last cylinder, +cylinders or +size{k,m,g} (385-1000, default 1000):
-using default value 1000
-
-command (m for help): p (display partition table)
-
-disk /dev/sdc: 1048 mb, 1048576000 bytes
-64 heads, 32 sectors/track, 1000 cylinders
-units = cylinders of 2048 * 512 = 1048576 bytes
-sector size (logical/physical): 512 bytes / 512 bytes
-i/o size (minimum/optimal): 512 bytes / 512 bytes
-disk identifier: 0x77a5188f
-
- device boot start end blocks id system
-/dev/sdc1 * 1 384 393216 17 hidden hpfs/ntfs
-/dev/sdc4 385 1000 630784 83 linux
-
-
-command (m for help): t (change partition type)
-partition number (1-4): 4
-hex code (type l to list codes): b
-changed system type of partition 4 to b (w95 fat32)
-
-command (m for help): p (display partition table)
-
-disk /dev/sdc: 1048 mb, 1048576000 bytes
-64 heads, 32 sectors/track, 1000 cylinders
-units = cylinders of 2048 * 512 = 1048576 bytes
-sector size (logical/physical): 512 bytes / 512 bytes
-i/o size (minimum/optimal): 512 bytes / 512 bytes
-disk identifier: 0x77a5188f
-
- device boot start end blocks id system
-/dev/sdc1 * 1 384 393216 17 hidden hpfs/ntfs
-/dev/sdc4 385 1000 630784 b w95 fat32
-
-command (m for help): w (write partition table to disk and exit)
-The partition table has been altered!
-
-Calling ioctl() to re-read partition table.
-
-WARNING: Re-reading the partition table failed with error 16: Device or resource busy.
-The kernel still uses the old table. The new table will be used at
-the next reboot or after you run partprobe(8) or kpartx(8)
-Syncing disks.
-
-At this point you should disconnect and reconnect your usb device. When it's recognised, you can format the partition you've just created -
--mkdosfs -F 32 /dev/sdc4 -
--The partition is now ready for use!!! -
If the "easy" way does not work there is an alternative; you will use the Clonezilla-SysRescCD ISO file (or CD) to copy and modify a couple of files on the USB disk, and finally make it bootable, using syslinux and its configuration file syslinux.cfg.
@@ -501,10 +417,21 @@
cp -r /mnt/mycd/* /mnt/usbdevice umount /mnt/mycd; rmdir /mnt/mycd cd /mnt/usbdevice -rm isolinux/*.cfg -mv isolinux/* . -rmdir isolinux -cd; umount /dev/sdc4 +cp syslinux/*.cfg isolinux +cp syslinux/*.png isolinux +rm -rf syslinux +mv isolinux syslinux +
First thing you have to do is find where syslinux is installed. The best way to do that is look for a file named vesamenu.c32. You can use locate, find, or any other distribution specific tool for that. In Debian (and its derivatives like Ubuntu, LMDE etc.) this file is under /usr/lib/syslinux, so I'll just use that for the following code. +cd syslinux In either case, unmount the device and delete the mount point (directory). +cd; umount /dev/sdc4 Finally make your USB device bootable, by executing syslinux /dev/sdc4 @@ -517,12 +444,13 @@ mount /dev/sr0 /mnt/mycdmkdir /mnt/usbdevice mount /dev/sdc4 /mnt/usbdevice -cp -r /mnt/mycd/* /mnt/usbdevice +cp -rv /mnt/mycd/* /mnt/usbdevice umount /mnt/mycd cd /mnt/usbdevice -rm isolinux/*.cfg -mv isolinux/* . -rmdir isolinux +cp syslinux/*.cfg isolinux +cp syslinux/*.png isolinux +rm -rf syslinux +mv isolinux syslinux cd; umount /dev/sdc4 Finally make your USB device bootable, by executing syslinux /dev/sdc4 @@ -534,9 +462,10 @@ You will have to
Now all you have to do is make your USB disk bootable. In order to do that you have to open a DOS window (in Windows XP press "Start / Run " and type cmd). Then type at DOS prompt: K: fdisk -l /dev/sdc You should get something similar to this:
-Disk /dev/sdc: 1031 MB, 1031798272 bytes
fdisk /dev/sdc and issue "Command: " a (toggle a bootable flag) and "Partition number:" 4 (for /dev/sdc4). As stated previously, Clonezilla-SysRescCD USB is booted by syslinux through its configuration file syslinux.cfg. This file loads sysresc.cfg in order to boot SystemRescueCD. mkdir /mnt/usbdevice After executing these commands, you will have a new sysresc.cfg file, and a backup file called sysresc.bak (in case things go wrong). mkdir /mnt/usbdevice If, in addition to that, you had to use the boot parameter usbstick, then it would be: mkdir /mnt/usbdevice In case something goes wrong with your new settings, you can always rename sysresc.bak to sysresc.cfg, either from linux or Windows. +Using the extra space [^]++If your usb device is more than 450MB in size, the above procedure will leave the remaining space unused. To verify it, execute the command: + +fdisk -l /dev/sdc +You should get something similar to this: +
+Disk /dev/sdc: 4043 MB, 4043309056 bytes +As you can see, we are currently using 1461914 out of 7897088 sectors of the disk. The remaining disk space (~3GB) can still be used, to save backups, for example, executing the following commands: + +
+# fdisk /dev/sdc +At this point you should disconnect and reconnect your usb device. When it's recognised, you can format the partition you've just created + ++mkdosfs -F 32 /dev/sdc4 + ++The partition is now ready for use!!! + Boot parameters [^]Booting a linux system means loading a kernel, which is actually the operating system. Well, this is not exactly true, and it is not the only thing that happens during boot up phase, but it is not my intension to explain it here. |