|
||||||||||
|
|
9. Setting up a dual partition9.1. PartitioningThe procedures described here will partition the flash memory device in two pieces -- one of the partitions will be formatted in ext2 and the other in vfat. This may be handy when the device is to be used to transport data between two (or more) Linux machines (ext2) and between Linux and Windows machines (vfat)
In this section we describe how to set up a dual partition for the memory stick: One half of the device will be devoted to the vfat filesystem, and the other will be ext2. In this way your device will be more versatile, but also a little shattered. The procedure will be given in somewhat less detailed than in Section 8.1 . Note that the procedure of the previous section is repeated and that the hex code for each file type is explicitly entered (lines following the entry "t": Win95 = b; Linux = 83). When the partition will only be for Linux, this is unnecessary -- Linux is the default. Also note that the vfat partition goes on first -- that is the way Windows would have it.
The choice of splitting the device right in the middle (1--444; 445--888 for a 128 MB memory stick) is arbitrary. Any other well-conceived splitting would be fine. If you had more than one partition to begin with, the "delete" part of the procedure would have to be repeated. 9.2. Making a dual ext2/vfat systemThis step is a repetition of Section 8.2. The first step makes the dos partition, the second makes the Linux ext2 partition.
9.3. Tests -- ext2 and vfatSimply carry out the tests of Section 7.4 and Section 8.3 on the two devices separately. The mount commands would be
to mount both partitions on your device. 9.4. Configuring Linux for the dual partitionThe Linux machine you did the partitioning on, will be configured for the dual partition. Evidently you need to carry the keychain to another Linux machine. There you will find that it only sees /dev/sda1. This is, perhaps, a shortcoming of the kernel. The workaround is as follows: On the new host machine do (keychain plugged in but not mounted)
Your device with its partitions should be there. Data on your keychain should be untouched. For a single partition this is not necessary. | |||||||||
|
|
|
Home :: Copyright :: Privacy :: Credits :: Get a free Linuxinfor Email Account Document on this page is part of "USB Flash Memory HOWTO". See Index Page for more info about Authorship and Copyright. 1999-2008 Linuxinfor.com. No rights reserved. |