From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1E3WWy-0000YW-AQ for garchives@archives.gentoo.org; Fri, 12 Aug 2005 10:12:52 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.4/8.13.4) with SMTP id j7CAB3VJ011278; Fri, 12 Aug 2005 10:11:03 GMT Received: from mail.pnpitalia.it (85-18-21-122.ip.fastwebnet.it [85.18.21.122]) by robin.gentoo.org (8.13.4/8.13.4) with ESMTP id j7CA6jf4021297 for ; Fri, 12 Aug 2005 10:06:45 GMT Received: from localhost (localhost [127.0.0.1]) by mail.pnpitalia.it (Postfix) with ESMTP id 707967AD6F8 for ; Fri, 12 Aug 2005 12:07:44 +0200 (CEST) Received: from mail.pnpitalia.it ([127.0.0.1]) by localhost (db [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 14864-01 for ; Fri, 12 Aug 2005 12:07:44 +0200 (CEST) Received: from [192.168.4.153] (unknown [192.168.4.153]) by mail.pnpitalia.it (Postfix) with ESMTP id E0DAC7AD6F6 for ; Fri, 12 Aug 2005 12:07:43 +0200 (CEST) Message-ID: <42FC74F1.8090400@pnpitalia.it> Date: Fri, 12 Aug 2005 12:07:45 +0200 From: Bastian Balthazar Bux User-Agent: Mozilla Thunderbird 1.0.6 (Windows/20050716) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] TWO (probably stupid) questions about partitions References: <42FBC032.3020508@pnpitalia.it> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at db X-Archives-Salt: b5358a3c-ff32-4ca9-92dd-9452b4fe52b0 X-Archives-Hash: c65ebc81eb92f380ad7bcfaed72d2367 Fernando Meira wrote: > Hi Francesco, > > thanks for your reply. > You gave me a new idea. > I can't create 2 partition as you proposed, but only one. This because I > already have 3 primary and 1 extended. Yes.. big mess.. have to fix it > later... > So, what I will do is this: > - leave around 32M in the beginning of the disk for a future /boot when > I can alter the partitions table freely. > - create hda1, starting after 32M until the end of spare disk. sound good, 50 Mb instead of 32? 18 Mb are not so much nowadays. This also don't change the partition scheme of your HD probably making win more happy. > - move the system from hda4 to hda1, the way you said. BTW, "cp -a" or > "rsync" would get better results? "cp -a" work for me (TM) , rsync make not much sense when the destination is empty. > > Question: I had a bootable flag on my windoze partition before (hda1), > though /boot was in hda4. Now should I move it to where /boot will stay, > right? keep the bootable flag *only* on the win partition, it's the only one that need it. > > Thanks, > Fernando. > On 8/11/05, *Bastian Balthazar Bux* > wrote: > > Fernando Meira wrote: > > Hi, > > > > this is how my disk is divided: > > Disk /dev/hda: 40.0 GB, 40007761920 bytes > > 255 heads, 63 sectors/track, 4864 cylinders > > Units = cylinders of 16065 * 512 = 8225280 bytes > > > > Device Boot Start End Blocks Id System > > /dev/hda1 * 1 1275 10241406 7 HPFS/NTFS > > /dev/hda2 1276 4208 23559322+ f W95 Ext'd > (LBA) > > /dev/hda3 4209 4271 506047+ 82 Linux swap > / Solaris > > /dev/hda4 4272 4864 4763272+ 83 Linux > > /dev/hda5 1276 4208 23559291 b W95 FAT32 > > > > Now I want to clean hda1 (which has windows) and mount there /usr and > > point $PORTAGE_TMPDIR there (because my gentoo system, in hda4, > run out > > of space). Once I'm doing this, I could split that partition into > > smaller ones (e.g. to create /boot), but hda1 needs to be > Extended. So, > > > > 1. Can /boot be inside an Extended partition? Would probably be > place in > > hda6... > > Don't know > > > 2. In case of not changing my boot config (my doing Q1), will I > need to > > re-install my bootloader in MBR anew? Or on other words, will MBR be > > erased when cleaning hda1? > > MBR is not erased, but it need to know where /boot is, whit grub you > need to repeat the > > grub > root (hd0,x) > setup (hd0) > quit > > phase. > > Having different partitions for an home system (with the exception of > /boot in hda1 ) has always revealed useless for me. > Also allocating 100 Mb for hda1/boot your first partition is much > bigger > than the actual "/dev/hda4" . > > What about to move your entire system in that place ? When finished this > leave to you the entire space hda4 space and the choice of what to with > that. > > The easyer way I know to to this is > 1) have handy a bootable livecd/resque disk. > 2) substituite hda1 with > - hda1 = "/boot" = 50-100 Mb > - hda2 = "/" = all the rest > 3) mkfs.[your preferred] /dev/hda1 > 4) mkfs.[your preferred] /dev/hda2 > 5) Stop all services you can > 6) mkdir /mnt/TheFuture /mnt/ThePast > 7) mount -obind / /mnt/ThePast > 8) mount /dev/hda2 /mnt/TheFuture > 9) mkdir /mnt/TheFuture/boot > 10) mount /dev/hda1 /mnt/TheFuture/boot > 11) cp -a /mnt/ThePast/* /mnt/TheFuture/ > 12) check with "ls -al /mnt/ThePast/" if there are hidden file to copy > 13) change /mnt/TheFuture/etc/fstab /boot/grub/grub.conf > 14) rerun your bootloader install phase (if grub see before) > > reboot > > Try to boot each of your S.O. > Warning the previous mentioned hda1 may be called hdaX from the > partitioner, check it. > > Hint, groub admit editing of the boot parameters pressing "e" key, may > be handy if there are any mistake in grub.conf > > > > > Question extra :) : what tends to be bigger /etc or /usr ? > > check it yourself > > #du -sh /etc /usr > > "usr" is the bigger partition in the system usually > > > > > Thanks, > > Fernando > > > HIH, Francesco > -- > gentoo-user@gentoo.org mailing list > > -- .................................................................... . These pages are best viewed by coming to my house and looking at . . my monitor. [S. Lucas Bergman (on his website)] . .................................................................... -- gentoo-user@gentoo.org mailing list