Gentoo Archives: gentoo-user

From: Fernando Meira <fmeira@×××××.com>
To: gentoo-user@l.g.o
Subject: Re: [gentoo-user] TWO (probably stupid) questions about partitions
Date: Thu, 11 Aug 2005 22:08:59
Message-Id: a3c2e88b05081115045a201721@mail.gmail.com
In Reply to: Re: [gentoo-user] TWO (probably stupid) questions about partitions by Bastian Balthazar Bux
1 Hi Francesco,
2
3 thanks for your reply.
4 You gave me a new idea.
5 I can't create 2 partition as you proposed, but only one. This because I
6 already have 3 primary and 1 extended. Yes.. big mess.. have to fix it
7 later...
8 So, what I will do is this:
9 - leave around 32M in the beginning of the disk for a future /boot when I
10 can alter the partitions table freely.
11 - create hda1, starting after 32M until the end of spare disk.
12 - move the system from hda4 to hda1, the way you said. BTW, "cp -a" or
13 "rsync" would get better results?
14
15 Question: I had a bootable flag on my windoze partition before (hda1),
16 though /boot was in hda4. Now should I move it to where /boot will stay,
17 right?
18
19 Thanks,
20 Fernando.
21 On 8/11/05, Bastian Balthazar Bux <BastianBalthazarBux@×××××××××.it> wrote:
22 >
23 > Fernando Meira wrote:
24 > > Hi,
25 > >
26 > > this is how my disk is divided:
27 > > Disk /dev/hda: 40.0 GB, 40007761920 bytes
28 > > 255 heads, 63 sectors/track, 4864 cylinders
29 > > Units = cylinders of 16065 * 512 = 8225280 bytes
30 > >
31 > > Device Boot Start End Blocks Id System
32 > > /dev/hda1 * 1 1275 10241406 7 HPFS/NTFS
33 > > /dev/hda2 1276 4208 23559322+ f W95 Ext'd (LBA)
34 > > /dev/hda3 4209 4271 506047+ 82 Linux swap / Solaris
35 > > /dev/hda4 4272 4864 4763272+ 83 Linux
36 > > /dev/hda5 1276 4208 23559291 b W95 FAT32
37 > >
38 > > Now I want to clean hda1 (which has windows) and mount there /usr and
39 > > point $PORTAGE_TMPDIR there (because my gentoo system, in hda4, run out
40 > > of space). Once I'm doing this, I could split that partition into
41 > > smaller ones (e.g. to create /boot), but hda1 needs to be Extended. So,
42 > >
43 > > 1. Can /boot be inside an Extended partition? Would probably be place in
44 > > hda6...
45 >
46 > Don't know
47 >
48 > > 2. In case of not changing my boot config (my doing Q1), will I need to
49 > > re-install my bootloader in MBR anew? Or on other words, will MBR be
50 > > erased when cleaning hda1?
51 >
52 > MBR is not erased, but it need to know where /boot is, whit grub you
53 > need to repeat the
54 >
55 > grub
56 > root (hd0,x)
57 > setup (hd0)
58 > quit
59 >
60 > phase.
61 >
62 > Having different partitions for an home system (with the exception of
63 > /boot in hda1 ) has always revealed useless for me.
64 > Also allocating 100 Mb for hda1/boot your first partition is much bigger
65 > than the actual "/dev/hda4" .
66 >
67 > What about to move your entire system in that place ? When finished this
68 > leave to you the entire space hda4 space and the choice of what to with
69 > that.
70 >
71 > The easyer way I know to to this is
72 > 1) have handy a bootable livecd/resque disk.
73 > 2) substituite hda1 with
74 > - hda1 = "/boot" = 50-100 Mb
75 > - hda2 = "/" = all the rest
76 > 3) mkfs.[your preferred] /dev/hda1
77 > 4) mkfs.[your preferred] /dev/hda2
78 > 5) Stop all services you can
79 > 6) mkdir /mnt/TheFuture /mnt/ThePast
80 > 7) mount -obind / /mnt/ThePast
81 > 8) mount /dev/hda2 /mnt/TheFuture
82 > 9) mkdir /mnt/TheFuture/boot
83 > 10) mount /dev/hda1 /mnt/TheFuture/boot
84 > 11) cp -a /mnt/ThePast/* /mnt/TheFuture/
85 > 12) check with "ls -al /mnt/ThePast/" if there are hidden file to copy
86 > 13) change /mnt/TheFuture/etc/fstab /boot/grub/grub.conf
87 > 14) rerun your bootloader install phase (if grub see before)
88 >
89 > reboot
90 >
91 > Try to boot each of your S.O.
92 > Warning the previous mentioned hda1 may be called hdaX from the
93 > partitioner, check it.
94 >
95 > Hint, groub admit editing of the boot parameters pressing "e" key, may
96 > be handy if there are any mistake in grub.conf
97 >
98 > >
99 > > Question extra :) : what tends to be bigger /etc or /usr ?
100 >
101 > check it yourself
102 >
103 > #du -sh /etc /usr
104 >
105 > "usr" is the bigger partition in the system usually
106 >
107 > >
108 > > Thanks,
109 > > Fernando
110 >
111 >
112 > HIH, Francesco
113 > --
114 > gentoo-user@g.o mailing list
115 >
116 >

Replies

Subject Author
Re: [gentoo-user] TWO (probably stupid) questions about partitions Bastian Balthazar Bux <BastianBalthazarBux@×××××××××.it>
Re: [gentoo-user] TWO (probably stupid) questions about partitions Benno Schulenberg <benno.schulenberg@×××××.com>