Odd partition labeling
Phil Oester
kernel at linuxace.com
Fri Jul 15 18:14:10 UTC 2005
On Fri, Jul 15, 2005 at 01:37:32PM -0400, Klaus Steden wrote:
> Me too. I thought it was due to a bug in something I was doing, but if others
> are seeing it ... I've also seen "/12", although not as common as "/" or "/1".
>
> Klaus
On Fri, Jul 15, 2005 at 10:44:13AM -0700, Katrina Gressett wrote:
> I've had the same problem with FC3 and my root partitions. Instead of /
> which I prefer, I get /1. It doesn't seem to make a difference since it
> is just the partion label and every thing mounts the way you expect,
> but I don't like it. You could try a little post script to check and then
> change the disk label with e2label. Just make sure that you also change
> the labels in your boot loader and fstab.
>
> Katrina
Well, at least this confirms that this is probably a bug as opposed to something
I'm screwing up. (BTW - this worked fine in FC1)
What seems to be happening is that anaconda sees an existing label with the same
name, so it appends a 1 (see fsset.py). Since I mount the old root in my PRE,
think I'll now add the additional step of changing the labels so they won't
conflict with the new ones anaconda wants to use. Something like the below:
mkdir -p /mnt/oldroot
for dev in `fdisk -l | grep ^/dev | grep Linux$ | cut -d\ -f 1` ; do
part=`e2label $dev`
if [ "$part" == "/" ] ; then
mount $dev /mnt/oldroot
e2label $dev old_/
else
e2label $dev old_`e2label $dev`
fi
done
Phil
More information about the Kickstart-list
mailing list