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