1 |
On Friday 27 August 2010 11:00:58 Jesús J. Guerrero Botella wrote: |
2 |
> 2010/8/27 Nikos Chantziaras <realnc@×××××.de>: |
3 |
> > On 08/27/2010 10:37 AM, Dale wrote: |
4 |
> >> I been putting this off but it looks like the newer kernels are going to |
5 |
> >> push me to changing this real soon. I have a older system, Abit NF7 2.0 |
6 |
> >> motherboard with the older IDE drives. I'm still using the older IDE |
7 |
> >> drivers. This is what I have currently: |
8 |
> >> |
9 |
> >> hda Actual hard drive OS on this |
10 |
> >> hdb Actual hard drive Not in use |
11 |
> >> hdc Actual hard drive home partition |
12 |
> >> hdd DVD burner Duh! It's a burner. |
13 |
> >> sda Actual hard drive connected through a SATA PCI card. Misc stuff. |
14 |
> > |
15 |
> > The advice by the other posters to label your disks is a good one. I'm |
16 |
> > using labels too. Not sure why I didn't think to mention it :P |
17 |
> > |
18 |
> > Applying labels to your filesystems is trivial. Simply use the e2label |
19 |
> > utility (it's in the sys-fs/e2fsprogs package and installed by default, |
20 |
> > so there's nothing new to emerge). For example, if your hda1 is your |
21 |
> > root partition and your hda2 your swap, you can label them like this: |
22 |
> > |
23 |
> > e2label /dev/hda1 GentooRoot |
24 |
> > e2label /dev/hda2 GentooSwap |
25 |
> > |
26 |
> > Note: hda1, not just hda. You are labeling the filesystem on a |
27 |
> > partition, not the whole drive. |
28 |
> > |
29 |
> > After you label all your filesystems, you simply modify your /etc/fstab |
30 |
> > like this: |
31 |
> > |
32 |
> > Before: |
33 |
> > /dev/hda1 / ext4 noatime 0 1 |
34 |
> > /dev/hda2 none swap sw 0 0 |
35 |
> > |
36 |
> > After: |
37 |
> > /dev/disk/by-label/GentooRoot / ext4 noatime 0 1 |
38 |
> > /dev/disk/by-label/GentooSwap none swap sw 0 0 |
39 |
> > |
40 |
> > That is, you simply change "/dev/blah" to "/dev/disk/by-label/DriveLabel" |
41 |
> > and that's it. |
42 |
> |
43 |
> Or you can do it by uuid, all the info you need can be picked from this |
44 |
> output: |
45 |
> |
46 |
> $ ls /dev/disk/by-uuid/ -l |
47 |
> |
48 |
> Then just add lines to fstab like this: |
49 |
> |
50 |
> UUID="6ea2b219-0bcc-4c90-9960-82a9659e6d0e" / ext4 noatime 0 1 |
51 |
|
52 |
True, except that for mere mortals, Labels are slightly easier to read and |
53 |
understand :) |
54 |
|
55 |
And that, I find, is less prone to mistakes. |
56 |
|
57 |
-- |
58 |
Joost |