Prev: NFS issues - betwixt/between different distros
Next: 11.2rc1 live install: LVM partitioner oddity
From: David Bolt on 29 Oct 2009 04:18 On Thursday 29 Oct 2009 07:27, while playing with a tin of spray paint, houghi painted this mural: > Shmuel Metz wrote: >> I don't recall the details, but I've had cases where I edited a >> configuration file manually and Yast later overwrote my changes. I've >> found it to be safer to just use Yast across the board, and only edit >> those files that Yast doesn't handle. > > I have heard about this by people over time, yet I never have noticed it > in the years since at least SuSE 6.3 where I have been using YaST and > edited fstab by hand. I've seen it happen where I've made some changes to /etc/fstab, namely reordering the partition ordering and some other cosmetic changes like making the various columns line up, and then had YaST reorder and destroy the cosmetic changes. However, it's been a while since that happened and, since I now only use the YaST partitioner during the installation, that's not an issue. Interestingly, it do > Sure it changes my settings but only those changes that I select to be > changed. One of my favourite things to do after a fresh install is to go through the /etc/sysconfig files turning on and off various options. > I am not saying it does not happen. I am saying that apparently either I > am very lucky, I do not notice the changes or YaST is afraid of me and > does not dare to change things that I do not want to change. Maybe it's afraid of you. Have you ever wielded a debugger in anger anywhere near YaST? Regards, David Bolt -- Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1 RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02
From: Marcel Bruinsma on 29 Oct 2009 04:28 Am Donnerstag, 29. Oktober 2009 06:51, VWWall a écrit : > Marcel Bruinsma wrote: >> Am Mittwoch, 28. Oktober 2009 20:11, VWWall a écrit : >> >>> Strangely enough, openSUSE already has /dev/disk/by-label, >>> which shows *all* partitions that have been given labels. >> >> Actually, only file system labels are in /dev/disk/by-label, >> not the partition labels assigned upon creation with >> parted. Partitions used as swap or raid member do >> not show. >> > Those assigned partition numbers are shown at the end > of entries in /dev/disk/by-id and also in /dev/disk/by-path. Yes, but partitions also have a label, if you create them with the parted command mkpart, e.g. 'mkpart SuSE_root 64 16777279'. These labels (e.g. SuSE_root) are stored in the partition table inside the disk label, not on the partition itself. > I used /sbin/e2label to label partition sda11 as "PCLOS_root". > It shows in /dev/disk/by-label as such. That is the label of the file system created on partition sda11, which is stored in the super block of that file system (for ext file systems at least, other file system types might store it in a different location of the file system). If you erase the file system (dd if=/dev/zero of=/dev/sda11), the file system label disappears, but the partition label will still be there. The partition label is only removed when the disk label (and thus the partition table) is erased (e.g. dd if=/dev/zero of=/dev/sda). Unfortunately, udev doesn't create links in /dev/disk/by-label for the partition labels, only for the file system labels. -- printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \ 156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\) # Live every life as if it were your last! #
From: Marcel Bruinsma on 29 Oct 2009 04:49 Am Donnerstag, 29. Oktober 2009 08:45, David Bolt a écrit : > On Thursday 29 Oct 2009 02:42, while playing with a tin of spray > paint, Marcel Bruinsma painted this mural: > >> Am Mittwoch, 28. Oktober 2009 20:11, VWWall a écrit : >> >>> Strangely enough, openSUSE already has /dev/disk/by-label, >>> which shows *all* partitions that have been given labels. >> >> Actually, only file system labels are in /dev/disk/by-label, >> not the partition labels assigned upon creation with >> parted. Partitions used as swap > > Yes they do: You're right, the SWAPSPACE2 style swap areas, can be given a label upon creation. That, however, is not the same thing as the partition label, assigned with the mkpart parted command. The swap area label assigned with mkswap is similar to a file system label assigned with mke2fs (or tune2fs). -- printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \ 156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\) # Live every life as if it were your last! #
From: Marcel Bruinsma on 29 Oct 2009 04:52 Am Donnerstag, 29. Oktober 2009 08:56, David Bolt a écrit : > On Thursday 29 Oct 2009 05:51, while playing with a tin of spray > paint, VWWall painted this mural: > >> Marcel Bruinsma wrote: > >>> Actually, only file system labels are in /dev/disk/by-label, >>> not the partition labels assigned upon creation with >>> parted. > > Oh, I missed that part. Partitions don't have labels Of course, partitions have a partition label, which is stored in the partition table, which is part of the disk label. > although they do have types, e.g. 82 is for swap, 83 for > a Linux file system, 8E for one that's able to be a part of > a logical volume. Those partition types are only used for the old, deprecated mbr format (not really a disk label). Of course, mbr doen't provide partition labels (or 64 bit LBAs, or backup, etc.). -- printf -v email $(echo \ 155 141 162 143 145 154 142 162 165 151 \ 156 163 155 141 100 171 141 150 157 157 056 143 157 155|tr \ \\\\) # Live every life as if it were your last! #
From: David Bolt on 29 Oct 2009 05:35
On Thursday 29 Oct 2009 08:49, while playing with a tin of spray paint, Marcel Bruinsma painted this mural: > Am Donnerstag, 29. Oktober 2009 08:45, David Bolt a écrit : >> Yes they do: > > You're right, the SWAPSPACE2 style swap areas, can be given > a label upon creation. That, however, is not the same thing as > the partition label, assigned with the mkpart parted command. Which version of parted are you using? The one supplied with openSUSE 11.1, parted-1.8.8, doesn't support partition labels. There the mkpart command is as follows: mkpart part-type [fs-type] start end part-type is the partition type, primary, extended or logical fs-type is the file system type, and is optional start and end are the start and end of the partition Regards, David Bolt -- Team Acorn: www.distributed.net OGR-NG @ ~100Mnodes RC5-72 @ ~1Mkeys/s openSUSE 10.3 32b | openSUSE 11.0 32b | | openSUSE 10.3 64b | openSUSE 11.0 64b | openSUSE 11.1 64b | openSUSE 11.2rc1 RISC OS 4.02 | RISC OS 3.11 | openSUSE 11.1 PPC | TOS 4.02 |