From OpenSCADAWiki
Jump to: navigation, search

For creating the live disk image on the FAT (ALTLinux), all operation should be done from root: $ su -

  • Connect the target disk and obtain it's address: $ dmesg
  • Mount: $ mkdir /mnt/tmp; mount /dev/sd{x}1 /mnt/tmp
  • Unpack the contents of an archive on the mounted disk: $ cd /mnt/tmp; tar xvf /var/tmp/LP8x81-ALTLinux6-OpenSCADA_0.9+r2302-i586-plc-rt1-up.flash.tar
  • Find out the UUID for the filesystem of the target disk: $ blkid | grep /dev/sd{x}1
  • Modify the file "/mnt/tmp/syslinux/syslinux.cfg" at the end of the line "append initrd=alt0/full.cz live ... disk,uuid:4EB3-0478", where it is necessary to set the previously obtained UUID.
  • Add or modify the file "/mnt/tmp/syslinux/lang" for specify the locale-language of the interface by default, for the Russian language it is necessary to specify "ru_RU", otherwise it will be English.
  • Unmount the disk: $ umount /dev/sd{x}1
  • Initialize the MBR of the disk to the correct value: $ ms-sys -s /dev/sd{x}
  • Initialize the boot loader: $ syslinux /dev/sd{x}1