Linux on Libretto L5
[[ Backup and Partitioning ]]

17th Aug., 2002
Modified 26th Aug., 2002


Backup(by NFS)



0.Summary
    Backup the MBR and the hidden partition for recovery from the HDD so that you can restore your PC to initial pre-installed condition. You can forget about this process if you are ready to buy the recovery CDs and a CDROM drive when you want to get it back, or if you feel like throw WinXP into a rubbish box. I'm one of users who would not mind erasing Win, but I prefer to try to make a dual boot PC that is equal to the pre-install product PC by Toshiba. It requires you to pay additional a few hundreds dollars in comparison with a normal model.
    The method I took was quite simple. Pull out the HDD from Libretto and connect to a desktop PC, them dump images to restore by Linux. However, this is troublesome and risky because you can easily damage your hardware in the process of dismounting and putting the HDD back.
    I recently have confirmed the way to backup the data by using an NFS mount. I first introduce the latter way.
1.Preparing PC-UNIX server PC
    1)Put Installation Images on PC
      On the Mother Ship, put the installation files on the harddisk or mount an installation CD, then get the PC ready to become an install server through an ftp or NFS protocol. You may connect your L5 to an installation server on the Net directly, of course, but maybe it's faster to put the images on the Mother Ship first so far.
    2)NFS server setup
      Prepare a directory that has enough space(more than 2.2GB in the Japanese version) to store the images to be backed up on the PC. Then make a directory to be mounted from Libretto L5 by NFS. The followings are an example in case the name of the directory is '/home/tmp'.
        (1) su
        (2) mkdir /home/tmp
        (3) chmod a+rw /home/tmp
        (4) add the follwing line to '/etc/exports'
          /home *(rw)
          -> this makes any other hosts to mount '/home' directory of the NFS server at read/write mode.
        (5) /etc/rc.d/init.d/nfs start
          -> start nfsd server.
2.Boot Libretto L5 up
    1)Create Boot Image on CF
      Create a boot CF(Compact Flash memory) card with 'bootnet.img' for a network installation according to the article of "1.Making a boot CF card" on Install page.
    2)Boot with Image on CF
      Insert the CF card into the PCMCIA slot, then power on pressing the F12 key. Using the right arrow key, select PCMCIA card as a boot device, then press ENTER.
      When a boot process message appears, enter 'text' and press ENTER to start installation in the text mode.
      Following ftp or NFS installation procedure, read the installer image in from the server(You will see a welcome message to start installation).
3.Mount Server's FS by NFS
    1)Move to the console of L5 pressing Alt + F2 keys(or Alt + F6).
    2)Make a mount point.
      mkdir /mnt/runtime/nfs
    3)Mount the server's FS by NFS. 192.168.1.20 here is the IP address of the server.
      mount -w 192.168.1.20:/home /mnt/runtime/nfs
    It may take a few minutes or more to finish mounting. Please sit tight and wait.
    4)Confirm if the FS is actually mounted by 'df' command, then move to the working directory to store the backup images.
      cd /mnt/runtime/nfs/tmp
4.Backup MBR
    Save the MBR of the HDD as 'LibrettoMBR.img'. Use the following command.
      dd if=/dev/hdd of=LibrettoMBR.img count=1
5.Backup the Hidden partition.
    Backup the hidden partition of the HDD. Since the partion is about 2GB big, divide it into four parts that is suitable for burning into CDRs.
      1)dd if=/dev/hdd4 of=LibRcvr-1.img count=1100
      2)dd if=/dev/hdd4 of=LibRcvr-2.img skip=1100 count=1100
      3)dd if=/dev/hdd4 of=LibRcvr-3.img skip=2200 count=1100
      4)dd if=/dev/hdd4 of=LibRcvr-4.img skip=3300
6.Unmount FS
    Confirm the backup image files were transferred in the directory '/home/tmp' on the server PC correctly, then unmount the file system by NFS.
    You may continue the network installation following this step.


Backup(by direct HDD connection to desktop PC)



1.Pulling out HDD
    You don't have to screw off the screws on the back of case. Front of the function keys, you'll find a long and slender cover. It can be taken off and then you can remove the keyboard itself. By taking off some flat cables and screws, the HDD can be removed.
2.Connicting to a desktop PC
    Using a 2.5in HDD -> 3.5in HDD converter, connect the HDD to an IDE I/F of a desktop PC with Linux. Here I presume that the IDE connection is secondary slave. That will be /dev/hdd on Linux if you don't connect one or more ATAPI CD drive.
    Then boot Linux on the desktop PC.
3.Backup MBR
    Save the MBR of the HDD as 'LibrettoMBR.img'. Use the following command.
      dd if=/dev/hdd of=LibrettoMBR.img count=1
4.Backup the Hidden partition.
    Backup the hidden partition of the HDD. Since the partion is about 2GB big, divide it into four parts that is suitable for burning into CDRs.
      1)dd if=/dev/hdd4 of=LibRcvr-1.img count=1100
      2)dd if=/dev/hdd4 of=LibRcvr-2.img skip=1100 count=1100
      3)dd if=/dev/hdd4 of=LibRcvr-3.img skip=2200 count=1100
      4)dd if=/dev/hdd4 of=LibRcvr-4.img skip=3300
5.Assemble the HDD
    Please carefully take the HDD back to Libretto :-).
6.You can reorganize the partition here.
    It can be done later, but you may delete and create the partition here with Linux fdisk command.



Reorganize the partition table



0.Summary
    Create a new partition for Linux on the HDD where WinXP and hidden recovery partitions are previously kept. Usually 'fips' is used to reorganize partitions but the pre-installed WinXP area is in NTFS format and the fips does not work with the format. I've heard that there are available products, but I had no intention to spend money as I mentioned previously.
    The method I introducing here is dangerous. For example, you will see an error message after recovery procedure of WinXP written on the section 2. I have encountered no problems in using WinXP so far, but I cannot guarantee that there are no hidden disorders.I strongly require you to do this on your own risk,please.
    The method is as follows:

    1)Delete NTFS partition of WinXP(primary-1).
    2)Create an NTFS area with new smaller size.
    3)Create Linux fs and Linux swap partition. You may do this at an installation time.
    4)Recover WinXP on the NTFS part created as above, by normal Librette recovery procedure.
1.Delete and create NTFS partition
    Delete NTFS partion of the pre-installed WinXP. From here to 3. below, I suppose using fdisk command of Linux is proper. So I boot a Linux installer and run fdisk. If you include the backup task written above, making new partitions at the stage is easier.
    1)Format a CF card(a PCMCIA ATA memory card is also available) as a Linux installation disk as written below. If you don't have a Linux PC, format a memory card as a Win boot disk(ex. format /s) and boot. Then you can use loadlin.exe to boot Linux from Win. I've heard that loadlin.exe does not work on WinNT(including 2K and XP, of course) or WinME(not confirmed).
    2)Boot from the CF card by CF boot function of Libretto. The way to do so is explained on the manual(Power on pressing F12 key, then use -> key and select a boot device). Using PXE is another solution at boot process.
    3)Delete primary-first (the pre-installed WinXP's NTFS) partion using Linux fdisk command.
    4)Create new partion for NTFS at primary-first. I've assigned 8G for the area out of whole 20GB.
    5)Change the primary-first partition to NTFS(ID=7). Probably FAT32(ID=c) is also available, and in this case you can access WinXP C: drive directly from Linux and you don't have to create a share partition.
    6)Write the change to the HDD using 'w' command of fdisk.
    7)Reboot Libretto.
    Make sure the recovery hidden partition (primary-fourth) will remain unchanged. Otherwise you will not be able to restore WinXP without recovery CDs.
2.Reinstall WinXP with recovery procedure
    By Libretto's HDD recovery procedure (power on with '0' key pressed), reinstall WinXP from the hidden partition to the newly made C: drive area.
    When the recovery has been completed, you will see an error message saying 'The recovery process failed. Would you like to try again?'. Just ignore it and answer 'NO'.




Index

Prev:Summary and Conditions<- ->Next:Install

Home

E-mail: neyubacca@yahoo.co.jp