Bug 77826 - [ext2fs] ext2fs usb filesystem will not mount RW
Summary: [ext2fs] ext2fs usb filesystem will not mount RW
Status: Closed FIXED
Alias: None
Product: Base System
Classification: Unclassified
Component: kern (show other bugs)
Version: Unspecified
Hardware: Any Any
: Normal Affects Only Me
Assignee: Jaakko Heinonen
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-02-21 04:00 UTC by Edwin Oakes
Modified: 2009-12-12 16:12 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Edwin Oakes 2005-02-21 04:00:47 UTC
An attached USB Maxor 160 gig drive is divided into 3 partitions. Partition
1 and 2 are ext2fs and partition 3 is msdos.freesbie@freesbie:~# umount
/mnt/usb.0

freesbie@freesbie:~# mount -t ext2fs  /dev/da0s1 /mnt/usb.0
ext2fs: /dev/da0s1: Operation not permitted
 mount -t ext2fs -r  /dev/da0s1 /mnt/usb.0
mount
..
/dev/da0s3 on /mnt/dos.2 (msdosfs, local)
/dev/da0s1 on /mnt/usb.0 (ext2fs, local, read-only)
freesbie@freesbie:~# mount -uw /dev/da0s1
ext2fs: /dev/da0s1: Operation not permitted

In short the msdos partition will mount read/write but the ext2fs will
only mount read only.

I see the same or a very similar problem using freeBSD 4.9

The ext2 partition mount read/write under Redhat Linux 9.0 sucessfully.

Fix: 

I have not located any fix or reference to this problem searching the internet.
How-To-Repeat: Any time I connect the drive to a freeBSD system on this hardware I see
the same problem.
Comment 1 Edwin Oakes 2005-02-22 04:12:11 UTC
The uname for the freebsd 4.9 system:
abbyBSD-~$ uname -a
FreeBSD abbyBSD.WORKGROUP 4.9-RELEASE FreeBSD 4.9-RELEASE #1: Sun Feb 15 
17:14:24 MST 2004     
root@abbyBSD.WORKGROUP:/usr/src/sys/compile/ABBY_EX2  i386
abbyBSD-~$

The ext2fs partitions on the system hard disk will mount read/write.

abbyBSD-~$ mount
/dev/ad0s4a on / (ufs, local)
procfs on /proc (procfs, local)
/dev/ad0s1 on /suse (ext2fs, local)
abbyBSD-~$


Booting another computer (normally running windowsXP) from the

freesbie.livecd 5.3-RELEASE-p2 cd, the same Maxor usb disk ext2fs 
partitions would only mount read only.

I do not have a second usb disk with a partition formated with ext2fs

Tom Oakes
Comment 2 aditya sarawgi 2009-05-10 15:52:32 UTC
This bug seems to be fixed in 8.0-CURRENT. Maybe the file systems on your usb hard disk has some feature that is only RO only compatible. Please test 
the bug using 8.0-CURRENT or 7.2-RELEASE.

Cheers,
Aditya Sarawgi
Comment 3 Mark Linimon freebsd_committer freebsd_triage 2009-05-18 05:32:40 UTC
Responsible Changed
From-To: freebsd-bugs->freebsd-fs

Over to maintainer(s).
Comment 4 Jaakko Heinonen freebsd_committer freebsd_triage 2009-11-02 17:22:10 UTC
State Changed
From-To: open->feedback

Note that submitter has been asked for feedback. 


Comment 5 Jaakko Heinonen freebsd_committer freebsd_triage 2009-11-02 17:22:10 UTC
Responsible Changed
From-To: freebsd-fs->jh

Track.
Comment 6 Jaakko Heinonen freebsd_committer freebsd_triage 2009-12-12 16:07:26 UTC
State Changed
From-To: feedback->closed

Feedback timeout. The problem is not believed to exist in recent FreeBSD 
versions.