1 |
On 30/09/2013 12:27, Daniel Campbell wrote: |
2 |
> On 09/30/2013 04:31 AM, Alan McKinnon wrote: |
3 |
>> On 30/09/2013 01:31, Daniel Campbell wrote: |
4 |
>> |
5 |
>> |
6 |
>>> Curious; how is merging two filesystems done? I don't have a separate |
7 |
>>> /usr and am completely unaffected by this change, but it's somewhat |
8 |
>>> interesting to me. /usr stores some pretty important data on it, and I |
9 |
>>> imagine you'd need to mount it somewhere else in order to move the |
10 |
>>> files from it to /'s /usr dir. Is a Live environment recommended |
11 |
>>> instead? How would you mitigate the leftover partition, assuming it's |
12 |
>>> not adjacent to /'s partition? |
13 |
>> |
14 |
>> |
15 |
>> Because /usr is continually in use, boot using a livecd of your choice. |
16 |
>> In that environment, use fdisk (or whichever *disk you like) to make any |
17 |
>> changes to partitions you know you will need. |
18 |
>> |
19 |
>> Mount your gentoo / somewhere convenient |
20 |
>> Mount your gentoo /usr somewhere convenient |
21 |
>> |
22 |
>> copy the latter over to the former |
23 |
>> edit fstab |
24 |
>> reboot |
25 |
>> |
26 |
>> It really is just a case of moving a large number of files around, but |
27 |
>> because those very files are always in use you have to do it in livecd |
28 |
>> environment. |
29 |
>> |
30 |
>> There's no exact checklist one can follow to guarantee a 100% result |
31 |
>> blindly. Instead, as this is Gentoo, we assume users built their system |
32 |
>> knowing what they were doing and can appropriately deal with their |
33 |
>> config themselves. RAID and LVM for example may need attention, but the |
34 |
>> user is usually equipped to deal with that and knows what t do. |
35 |
>> |
36 |
>> |
37 |
>>> |
38 |
>>> I don't run an initramfs, thankfully, but I keep a pretty simple |
39 |
>>> system in terms of filesystems: /, /boot, and /home. |
40 |
>>> |
41 |
>> |
42 |
> My suspicions were mostly correct, then. If the merge is that simple, I |
43 |
> see no reason not to do it if one doesn't want to roll an initramfs. |
44 |
> However, I imagine moving partitions around in gparted or something |
45 |
> similar would be quite a wait if / and /usr weren't adjacent on the drive. |
46 |
|
47 |
Indeed, this is the part where it can get hairy, and it all totally |
48 |
depends on how the user decided to lay out their partitions. |
49 |
|
50 |
Eyeballs and brains form the solution here, not computers and scripts :-) |
51 |
|
52 |
|
53 |
> |
54 |
> Thanks for the simple-but-thorough explanation. :) |
55 |
> |
56 |
|
57 |
|
58 |
-- |
59 |
Alan McKinnon |
60 |
alan.mckinnon@×××××.com |