Bug 88828 - devlabel hangs system when accessing a symlink to an invalid partition
Summary: devlabel hangs system when accessing a symlink to an invalid partition
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: kernel
Version: 9
Hardware: All
OS: Linux
Target Milestone: ---
Assignee: Arjan van de Ven
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2003-04-14 17:49 UTC by Need Real Name
Modified: 2007-04-18 16:53 UTC (History)
0 users

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2004-09-30 15:40:48 UTC

Attachments (Terms of Use)

Description Need Real Name 2003-04-14 17:49:00 UTC
Description of problem:

devlabel hangs system when accessing a symlink to an invalid partition

I created an automounting devlabel symlink to my USB external hard drive's first
partition (/dev/sda1).  However, that partition was an unmountable extended
partition; the first mountable partition was /dev/sda5.  Whenever I plug that
device in, my system freezes - no mouse or keyboard, and it won't even respond
to pings from other machines on the LAN.  Unplugging the device has no effect, a
hard reboot is necessary to recover.

I corrected the problem -- I removed the devlabel entry, remounted the drive,
partitioned and formatted as intended (I made the drive one large vfat
partition), and recreated the devlabel entry.  Now, everything works great.

Version-Release number of selected component (if applicable):

How reproducible:
Every time

Steps to Reproduce:
1. obtain an external USB storage device with the first partition created as an
extended partition
2. attach device; observe device used (sda, sdb, etc -- assume /dev/sda for this
3. devlabel add -d /dev/sda1 -s /dev/external_drive --automount
4. mkdir /mnt/external_drive
5. update /etc/fstab (below should be one line):
echo /dev/external_drive /mnt/external_drive auto
defaults,uid=tfolger,gid=tfolger 0 0 >> /etc/fstab
6. unattach device
7. devlabel reload
   (this is likely unnecessary)
8. re-attach device

Actual results:
System hang

Expected results:
error in message log ("could not mount /dev/sda1 -- device not mountable")

Additional info:
Devlabel is great stuff, and it was worth this trouble.  I finally have my USB
devices automounting on insertion, without having to be careful about what order
I plug them in.  I realize devlabel is mostly for a different purpose (managing
redundant disks in disk arrays), but these capabilities are a great desktop user

Comment 1 Bill Nottingham 2003-04-14 17:54:05 UTC
The fact that it hung the system is a kernel issue.

You might try 2.4.20-9; it has usb-storage fixes.

Comment 2 Need Real Name 2003-04-16 14:43:29 UTC
NEEDINFO ?    What additional info is needed?

Comment 3 Bugzilla owner 2004-09-30 15:40:48 UTC
Thanks for the bug report. However, Red Hat no longer maintains this version of
the product. Please upgrade to the latest version and open a new bug if the problem

The Fedora Legacy project (http://fedoralegacy.org/) maintains some older releases, 
and if you believe this bug is interesting to them, please report the problem in
the bug tracker at: http://bugzilla.fedora.us/

Note You need to log in before you can comment on or make changes to this bug.