Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
wiki:waitusb [2013/01/07 14:43] – [LABEL Version] replaced "drive" with "partition" since it is more correct; removed incorrect note about blkid lvernswiki:waitusb [2013/05/13 22:23] (current) – [LABEL Version] changed info about the location of the mtools config file lverns
Line 1: Line 1:
 +**//This page was most recently tested on Core 4.7.6//**
 ====Basic Form==== ====Basic Form====
 The form of this bootcode is as follows The form of this bootcode is as follows
Line 12: Line 13:
 ==Change the label of a ext* partition== ==Change the label of a ext* partition==
 Install e2fsprogs.tcz : Install e2fsprogs.tcz :
-   tce-load -wi e2fsprogs.tcz+   tce-load -wil e2fsprogs.tcz
 Then set the label of a partition that is formatted with the ext2, ext3, or ext4 partition. For example, let us say that I want to change the label of /mnt/sda2. The proper command will look something like this. Then set the label of a partition that is formatted with the ext2, ext3, or ext4 partition. For example, let us say that I want to change the label of /mnt/sda2. The proper command will look something like this.
    e2label /dev/sda2 "mylabeledpartition"    e2label /dev/sda2 "mylabeledpartition"
  
 ==NTFS== ==NTFS==
-FIXME+There are very few instances where you would want to wait on a ntfs partition, but here are the instructions anyway.\\ Install ntfsprogs.tcz 
 +   tce-load -iwl ntfsprogs.tcz 
 +Change the label of your partition 
 +   ntfslabel DEVICE LABEL 
 +Where DEVICE is the ntfs partition that you want to label, and where LABEL is the label you want to use. 
 +Example: 
 +   ntfslabel /dev/sda1 old_files
 ==Change the label of a FAT* partition== ==Change the label of a FAT* partition==
-Install mtools.tcz : +Install mtools.tcz and glibc_gconv.tcz: 
-   tce-load -wi mtools.tcz +   tce-load -wil mtools.tcz 
-You may also need glibc_gconv.tcz : +   tce-load -wil glibc_gconv.tcz   
-   tce-load -wi glibc_gconv.tcz+
 You can then change the label of a FAT partition like this: You can then change the label of a FAT partition like this:
    mlabel -i /dev/X ::mylabel    mlabel -i /dev/X ::mylabel
 Where X is the name of the drive (e.g. sdb1) and where mylabel is the label you want to give your device (e.g. "shared_partition"). Where X is the name of the drive (e.g. sdb1) and where mylabel is the label you want to give your device (e.g. "shared_partition").
-**mtools.tcz** can be a little gnarly to work with. If you need to create a configuration file, you are best off naming it /etc/mtools.config because ~/.mtoolsrc seems to be ignored.+**mlabel** can be a little annoying to work with and may ask you to add line to its configuration file. This file can be named /etc/mtools.config or ~/.mtoolsrc  For best results simply make /etc/mtools.config and ~/.mtoolsrc identical.
  
 ==OTHER==  ==OTHER== 
Line 39: Line 45:
 ====Advantages of the Different Forms=== ====Advantages of the Different Forms===
 Using the basic form is a quick fix and might allow the system to slow down for devices other than hard drives and usb drives.\\  LABELs are short and human-readable; however, since they are user defined, there is a possibility that your system might have two drives with the same label. This isn't a serious issue, but lets say you have two devices sda1 and sdb1. They both have the label "CORE". sda1 starts very quickly, while sdb1 starts very slowly. Unfortunately, the device that you want to wait for is sdb1. If you use the bootcode "waitusb=20:LABEL=CORE" then the system will wait until sda1 starts and will boot before sdb1 has time to get going.\\  Using the basic form is a quick fix and might allow the system to slow down for devices other than hard drives and usb drives.\\  LABELs are short and human-readable; however, since they are user defined, there is a possibility that your system might have two drives with the same label. This isn't a serious issue, but lets say you have two devices sda1 and sdb1. They both have the label "CORE". sda1 starts very quickly, while sdb1 starts very slowly. Unfortunately, the device that you want to wait for is sdb1. If you use the bootcode "waitusb=20:LABEL=CORE" then the system will wait until sda1 starts and will boot before sdb1 has time to get going.\\ 
-Technically speaking, using UUID doesn't eliminate that risk entirely; however, since UUIDs are longer and usually contain a large variety of characters, the theoretical probability of two devices in a given system having the same UUID is lowered.+Technically speaking, using UUID doesn't eliminate that risk entirely; however, since UUIDs are longer and usually contain a large variety of characters, the theoretical probability of two devices in a given system having the same UUID is drastically lowered.
 On the downside, UUIDs are not at all readable and copying them by hand is quite nasty, so if your setup requires you to type in your boot codes upon every boot, then the UUID version is not for you. On the downside, UUIDs are not at all readable and copying them by hand is quite nasty, so if your setup requires you to type in your boot codes upon every boot, then the UUID version is not for you.
  
Print/export
QR Code
QR Code wiki:waitusb (generated for current page)