Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.
Bug 155629 - hotplug installes pendrive readonly
Summary: hotplug installes pendrive readonly
Alias: None
Product: Red Hat Enterprise Linux 4
Classification: Red Hat
Component: kernel
Version: 4.0
Hardware: i386
OS: Linux
Target Milestone: ---
: ---
Assignee: Pete Zaitcev
QA Contact: Brian Brock
Depends On:
TreeView+ depends on / blocked
Reported: 2005-04-22 00:02 UTC by Kostadin Koruchev
Modified: 2012-06-20 13:31 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2012-06-20 13:31:01 UTC
Target Upstream Version:

Attachments (Terms of Use)

Description Kostadin Koruchev 2005-04-22 00:02:20 UTC
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.7) Gecko/20050416 Red Hat/1.0.3-1.4.1 Firefox/1.0.3

Description of problem:
The USB pendrive is installed read-only.
After (1) unmount (by selecting the screen icon) and 
(2) mounting it as a root
(3) writing some file
The directory and the data on the pendrive are destroyed
and the directory listing  shows arbitrary names.
Other directories are destroyed too.

The capacity of the pendrive is 512MB,
The filesystem is vfat (correctly detected according to mtab /fstab).

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

How reproducible:

Steps to Reproduce:
1. unmount the RO FS mounted by hotplug
2. mount the pendrive mount /dev/sdb1 /mnt/pendirve
3. mkdir /mnt/pendirve
4. echo "aa" > /mnt/pendirve/mydir/aaa
5. umount /mnt/pendirve


Actual Results:  After step 4 :
the directory .... mydir/* is destroyed.
Other directories too.

The pendrive is totally functional on other system after fsck.

Expected Results:  file /mnt/pendirve/aaa with contents aa.
File system integrity of the pendrive.

Additional info:

The action of hotplug is very annoying and 
probably can cause security problems 
(files and probably executable appear from nothing in the system),
without any permition (by default).

Comment 1 Kostadin Koruchev 2005-04-22 00:11:43 UTC
kudzu tells:

class: HD
bus: SCSI
detached: 0
device: sdb
driver: ignore
desc: "Usb Flash Disk"
host: 1
id: 0
channel: 0
lun: 0
generic: sg1

It is possible that the bug is in the kernel or the driver,
but I can't set 2 modules.

Comment 2 Bill Nottingham 2005-04-22 03:51:34 UTC
What's the output of dmesg while this happens? Any errors?

Comment 3 Dave Jones 2005-04-22 03:59:44 UTC
what manufacturer/module is your pendrive ?

Comment 4 Jiri Pallich 2012-06-20 13:31:01 UTC
Thank you for submitting this issue for consideration in Red Hat Enterprise Linux. The release for which you requested us to review is now End of Life. 
Please See

If you would like Red Hat to re-consider your feature request for an active release, please re-open the request via appropriate support channels and provide additional supporting details about the importance of this issue.

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