Boise Linux Group Meeting Report - January 3rd, 2013 - System Rescue CD's, Backup and Recovery

The first meeting of the year was held on January 3rd at the Boise Public Library! with 8 members present and almost as many laptop computers in attendance! Clint led off the meeting with his planned presentation of System Rescue Tools as listed here. He had brought two computers networked together for the demonstration of these tools. Live CD Shown: (available as LiveCD's that can be created as bootable USB devices) SystemRescueCD PartedMagic fsarchiver and cloezilla demoa. fsarchiver is included on both CD's and clonezilla is included on PartedMagic. His first presentation was on using System RescueCD, a gentoo based, and showed the results of performing system file backups and full system image filesystem backups that can be restore filesystems to partitions smaller than the original partition. The demo was based on the information available from the SystemRescueCD manual pages. Process: (all steps are performed at the command line) identify the partitions: fsarchiver probe -v * /dev/sda1 is identified as our Windows system Drive C partition. cd /mnt mkdir windows ntfs-3g -o ro /dev/sda1 /mnt/windows create softlink to /mnt/windows/Documents and Settings/DemoUser/My Documents root@sysresccd cd /mnt create a softlink in /mnt called documents to save a lot of typing: root@sysresccd ln -s /mnt/windows/Documents\ and\ Settings/DemoUser/My\ Documents documents show link created: root@sysresccd ls lrwxrwxrwx 1 root root 57 Jan 2 17:59 documents -> /mnt/windows/Documents and Settings/DemoUser/My Documents root@sysresccd cd documents show contents of 'My Documents' linked inside documents: root@sysresccd ls root@sysresccd cd .. login to remote system (2nd system) system to access storage device (USB 2 TB storage device): root@sysresccd ssh On remote system: [root@fed17clt ~]# cd /run/media/tinslecl/FreeAgent\ GoFlex\ Drive/ [root@fed17clt documents]# mkdir documents [root@fed17clt documents]# cd documents/ copy all the contents of 'documents' including subdiretories and files [root@fed17clt documents]# rsync -r -t root@ . fsarchiver use: Tutorial on moving Windows to another hard drive. backup - root@sysresccd cd /mnt root@sysresccd mkdir storage root@sysresccd mount /dev/sdb1 /mnt/storage root@sysresccd cd /mnt/storage root@sysresccd ls root@sysresccd mkdir fsarchiver_test root@sysresccd cd fsarchiver_test root@sysresccd dd if=/dev/sda of=/mnt/storage/fsarchiver_test/backup.mbr bs=512 count=1 (create copy of mbr for restore if needed) root@sysresccd fsarchiver savefs /mnt/storage/fsarchiver_test/windows.fsa /dev/sda1 (took about an hour to create a 6GB archive of the Windows partition) restore - (new hard drive) create destination partition of sufficient size on new hard drive before restoring root@sysresccd dd if=/mnt/storage/fsarchiver_test/backup.mbr of=/dev/sda bs=512 count=1 (restore mbr on new hard drive) root@sysresccd fsarchiver restfs /mnt/storage/fsarchiver_test/windows.fsa id=0,dest=/dev/sda1 We spent about 30 minutes discussing different ways of restoring Grub including making a back of the mbr as above and the grub install processes detailed on the following web links: fixing grub: System Rescuce Cd -Repairing Grub Reinstall Grub 2 in Fedora 17 How to Repair GRUB2 When Ubuntu Won't Boot How to repair, restore, install grub-2 with a Ubuntu live cd. Process: sudo mount /dev/sdXY /mnt sudo mount --bind /dev /mnt/dev sudo mount --bind /dev/pts /mnt/dev/pts sudo mount --bind /proc /mnt/proc sudo mount --bind /sys /mnt/sys Now we jump into that using chroot. sudo chroot /mnt Now install, check, and update grub. This time you only need to add the partition letter (usually a) to replace X. Example: grub-install /dev/sda, grub-install recheck /dev/sda grub-install /dev/sdX grub-install --recheck /dev/sdX update-grub Now you can exit you mounted hard disk, and unmount. exit sudo umount /mnt/dev sudo umount /mnt/dev/pts sudo umount /mnt/proc sudo umount /mnt/sys sudo umount /mnt During the presentation, Clint's system had a couple of LVM partitions which led into a rather lenthy explanation on how LVM worked, the benefits of using LVM over traditional disk management tools and disk partitions. Clint demonstrated the graphical Logical Volume Manager tool that can be installed on both Fedora and Ubuntu as well as the ease of use features built into Logical Volume Manager tool. Change Password with SystemRescueCD Linux-Mazine Article on Changing Windows passwords. To begin, boot into SystemRescueCd and using fdisk to list existing partitions like this: fdisk -l Next, look for an NTFS partition that appears to be the Windows system partition. For example, you might see a line that reads: /dev/sda3 (NTFS) Once you have found the correct NTFS drive (assuming it is /dev/sda3), use the ntfs command: (PartMagic mkdir -p /mnt/windows) ntfs-3g /dev/sda3 /mnt/windows [-o force] This command mounts the NTFS drive on /dev/sda3 onto your local /mnt/windows/ drive. If this mount isn't available, create it as follows: mkdir /mnt/windows Once you've mounted the NTFS drive onto the /mnt/windows/ drive, change to it: cd /mnt/windows/Windows/System32/config Now, you are ready to use the chntpw command to list the Windows accounts in the SAM database: chntpw -l SAM The result of the preceding command will be a list of user account names. Next, you can select the account name that requires a password reset. In this case, I'll assume you want to change the account of a user named James Stanger: chntpw -u "James Stanger" Once you issue the above command, you will see a menu of various options. To reset the password, press 1 and Enter. You will be asked to confirm that you want to reset this account, so press the y key and Enter. The account is now reset. To reboot, enter the reboot command and press Enter. You'll find you can get into your account (e.g., James Stanger) without entering a password. SystemRescueCd makes it pretty easy. The preceding steps will simply change the password. If you want to get full read-write access to a Windows disk, you can enter the command ntfs-3g /dev/sda1 /mnt/windows Member Darin then suggested we take a look at Pulse Audio Volume Control, pavucontrol, system which is not installed by default on many distributions but is installable as a package. Clint was running Fedora 16 on his laptop and installed from the command line with 'yum -y instsall pavucontrol so we could take a look at it and how to use it. This volume control system provides the ability to monitor audio 'streams' from specific applications in addition to the regular audio that might be heard in the speakers. Very handy if you recording off the internet or using one of the audio appliations such as Audacity. More information is available at freedesktop and tomubuntu Also discussed was the latest version of Ultimate Edition 3.5 just released today and based on Ubuntu 12.04 LTS and not on the newest version Ubuntu 12.10. Next meeting will be held on February 7th, 2013. Meeting agenda is currently an open meeting.