From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pigeon.gentoo.org ([208.92.234.80] helo=lists.gentoo.org) by finch.gentoo.org with esmtp (Exim 4.60) (envelope-from ) id 1OpQiH-0005dx-62 for garchives@archives.gentoo.org; Sat, 28 Aug 2010 19:05:13 +0000 Received: from pigeon.gentoo.org (localhost [127.0.0.1]) by pigeon.gentoo.org (Postfix) with SMTP id CC642E11CA for ; Sat, 28 Aug 2010 19:05:10 +0000 (UTC) Received: from mx.virtyou.com (mx.virtyou.com [94.23.166.77]) by pigeon.gentoo.org (Postfix) with ESMTP id 84840E11B2 for ; Sat, 28 Aug 2010 18:25:29 +0000 (UTC) Received: from weird.localnet (p4FF07B33.dip.t-dialin.net [79.240.123.51]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx.virtyou.com (Postfix) with ESMTPSA id 4DCC94A800C for ; Sat, 28 Aug 2010 20:25:29 +0200 (CEST) From: Alex Schuster To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Re: Old IDE drives and the "newer" PATA kernel drivers Date: Sat, 28 Aug 2010 20:25:24 +0200 User-Agent: KMail/1.13.5 (Linux/2.6.34-tuxonice; KDE/4.5.0; x86_64; ; ) References: <4C776B2A.4040201@gmail.com> <201008271206.08994.wonko@wonkology.org> <4C77B042.6050304@gmail.com> In-Reply-To: <4C77B042.6050304@gmail.com> Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@lists.gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 Content-Type: Text/Plain; charset="utf-8" Content-Transfer-Encoding: 7bit Message-Id: <201008282025.26140.wonko@wonkology.org> X-Archives-Salt: c0271a22-9fb7-4ba3-ae6b-56f6ac7929db X-Archives-Hash: 0fa0d38f17e0d08b0df10fe826653a4e Dale writes: > It would be nice if something like *fdisk could edit the labels tho. > It would be so much easier. I didn't see anything in the man pages > tho. I'd like this, too. cfdisk displays them, but is not abel to edit. > I looked into LVM a good while ago. It's just to much for me to keep > up with since I just have a desktop system here. It has its good > points but just way overkill for what I have here. It's not that complicated. In a nutshell: Choose the partitions you want to use for LVM, and prepare them to be physical volumes: pvcreate /dev/sda[678] Create a volume group out of these partitions: vgcreate myvg /dev/sda[678] Create logical volumes in this volume group: lvcreate -L 5G -n lvm1 myvg lvcreate -L 2G -n lvm2 myvg Use these logical volumes just as disk partitions: mke2fs -j -L fs_on_lvm /dev/myvg/lvm1 mount /dev/myg/lvm1 /mnt/fs_on_lvm The file system is too small? Just extend its size by 1G, without unmouning: lvresize -L +1G /dev/myvg/lvm1 The volume groups is getting full, no space to add LVMs? Add other partitions. If you like, even from a 2nd drive: pvcreate /dev/sdb5 vgextend myvg /dev/sdb5 So, it's of course more complicated than just firing up cfdisk, create partitions and file systems on them, but you have much more flexibility. Once you have LVM, you do not have to care what the actual device names of your drives are. If sda becomes sdb and vice versa, no problem, and nothing to worry about. LVM does not use the device name, it scans each partition and uses the LVM UUIDs on them to identify what is what. Wonko