Re: Strange Fedora Booting problem: can not mount "LABEL=*"partitions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Apr 15, 2004 at 10:50:03AM -0700, Guolin Cheng wrote:
> 
>  Thanks. But the problem got debugged&fixed, the answer was post on
> fedora-list about 2 weeks ago. 
> 
> The problem is: the /etc/blkid.tab file works as an old unappropriate
> disk partitions cache for fsck|blkid commands when stystem image is
> installed to a different arch (scsi->ide) machine, the old cache will
> mislead fsck|blkid at the first run and only the first run, since the
> first run will update /etc/blkid.tab file. 

What version of e2fsprogs were you testing with?  I've just tested
using the latest version of e2fsprogs, and it works just fine.  In the
test below, I corrupt /etc/blkid.tab by swapping /dev/hda and
/dev/hdc.  This might correspond with might happen after disks get
switched around.  I run fsck in debugging mode to make sure it gets
the correct devices, despite the corrupted /etc/blkid.tab file.  As
you can see, it works fine:

# sed -e 's/hda/hdz/g' -e 's/hdc/hda/g' -e 's/hdz/hdc/' -e 's/0x03/0xf3/' -e s'/0x16/0x03/' -e 's/0xf3/0x16/' /etc/blkid.tab  > /tmp/blkid.tab.broken

# cp /tmp/blkid.tab.broken /etc/blkid.tab

# fsck -AVN -a
fsck 1.35 (28-Feb-2004)
Checking all file systems.
[/sbin/fsck.ext3 (1) -- /] fsck.ext3 -a /dev/hda1
[/sbin/fsck.ext3 (1) -- /usr] fsck.ext3 -a /dev/hda3
[/sbin/fsck.ext3 (1) -- /debian] fsck.ext3 -a /dev/hda5

# e2label /dev/hda1
root

# e2label /dev/hda3
usr

# e2label /dev/hda5
Debian

The only thing I can think of is that you might have been using an
older version of e2fsprogs that was buggy....

						- Ted
# /etc/fstab: static file system information.
#
# <file system>	<mount point>	<type>	<options>		<dump>	<pass>
LABEL=root	/		ext3	noatime,errors=remount-ro 0	1
/dev/hda2	none		swap	sw			0	0
LABEL=usr	/usr		ext3	noatime,errors=remount-ro 0	2
LABEL=Debian	/debian		ext3	ro,noatime,user		0	2
#/dev/hdc1	/dos		vfat	uid=15806		0	0
proc		/proc		proc	defaults		0	0
binfmt_misc	/proc/sys/fs/binfmt_misc binfmt_misc defaults	0	0
tmp		/tmp		tmpfs	defaults		0	1
/dev/fd0	/floppy		auto	user,noauto		0	0
/dev/cdrom	/cdrom		iso9660	unhide,ro,user,noauto		0	0
fs:/            /fs     nfs     noauto,user,exec,suid,intr      0 0
fs:/vicepa      /fs/vicepa nfs  noauto,user,exec,suid,intr      0 0
fs:/u2          /fs/u2  nfs     noauto,user,exec,suid,intr      0 0
fs:/u3          /fs/u3  nfs     noauto,user,exec,suid,intr      0 0
fs:/u4          /fs/u4  nfs     noauto,user,exec,suid,intr      0 0
fs:/u5          /fs/u5  nfs     noauto,user,exec,suid,intr      0 0
fs:/u6          /fs/u6  nfs     noauto,user,exec,suid,intr      0 0
fs:/usr         /fs/usr nfs     noauto,user,exec,suid,intr      0 0
<device DEVNO="0x1601" TIME="1182412900" UUID="14484e10-81bb-417a-9ae5-6115bbcdf792" TYPE="ext2">/dev/hdc1</device>
<device DEVNO="0x1602" TIME="1182412900" TYPE="swap">/dev/hdc2</device>
<device DEVNO="0x1603" TIME="1182412900" UUID="afc6b073-ad8b-4440-931d-5558e3618fa9" SEC_TYPE="ext3" TYPE="ext2">/dev/hdc3</device>
<device DEVNO="0x0301" TIME="1182412900" UUID="14484e10-81bb-417a-9ae5-6115bbcdf792" TYPE="ext2" LABEL="root" SEC_TYPE="ext3">/dev/hda1</device>
<device DEVNO="0x0302" TIME="1182412900" TYPE="swap">/dev/hda2</device>
<device DEVNO="0x0303" TIME="1182412900" UUID="afc6b073-ad8b-4440-931d-5558e3618fa9" SEC_TYPE="ext3" TYPE="ext2" LABEL="usr">/dev/hda3</device>
<device DEVNO="0x0305" TIME="1182412900" LABEL="Debian" UUID="eaf43bde-8da2-4844-aed7-80729e93bd13" SEC_TYPE="ext3" TYPE="ext2">/dev/hda5</device>
<device DEVNO="0x0306" TIME="1182412901" UUID="8ee7a0eb-b8e3-4d33-b831-48f1a0d51dc3" SEC_TYPE="ext3" TYPE="ext2">/dev/hda6</device>
<device DEVNO="0x0307" TIME="1182412901" UUID="4036-F32E" TYPE="msdos">/dev/hda7</device>
<device DEVNO="0x1604" TIME="1182412901" UUID="516dee8c-6313-4f25-809d-12f0d16b6614" TYPE="ext2">/dev/hdc4</device>
_______________________________________________

Ext3-users@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/ext3-users

[Index of Archives]         [Linux RAID]     [Kernel Development]     [Red Hat Install]     [Video 4 Linux]     [Postgresql]     [Fedora]     [Gimp]     [Yosemite News]

  Powered by Linux