|
OpenBSD General Other questions regarding OpenBSD which do not fit in any of the categories below. |
|
Thread Tools | Display Modes |
|
|||
usb flash drive insists on being read-only
I have a 2GB usb flash drive which contains some old Debian files that I want to delete.
I've tried mounting it with "-o rw" and also tried "mount -u -o rw" when it's mounted but it remains obstinately read-only. Is there any way to fix this or should I ditch the drive? |
|
|||
It's cd9660, which seems odd.
|
|
|||
The contents are unimportant. I'd thought about reformatting but I don't know how to go about doing that in OBSD. Would I use newfs after first running disklabel?
|
|
|||
Many thanks, Iggimi; very useful info, as always.
|
|
||||
You're welcome. For clarity, what this creates is an OpenBSD-only removable device. The MBR will keep all other OSes from scribbling on it unless you tell them to reformat. They will recognize the MBR, and the one entry in the partition table will inform the OS that the drive is reserved for something they know nothing about.
If you want a storage device that can be used with other OSes, then the MBR becomes the tool to define a filesystem (such as FAT) that can be shared among the OSes. An OpenBSD disklabel is not actually needed, because when there is no on-disk disklabel, OpenBSD will read the MBR partition table and create a virtual disklabel, assigning disklabel partitions to MBR partitions that it recognizes, starting with partition "i". (If you have an MBR *and* a disklabel, the two must be manually kept in sync, as OpenBSD will not scan for foreign filesystems in the MBR partition table, and will use the disklabel instead.) Last edited by jggimi; 9th March 2018 at 09:16 PM. Reason: edit: added the last paragraph |
Thread Tools | |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
formatting USB Flash Drive | amphibious | OpenBSD Installation and Upgrading | 4 | 20th April 2017 01:49 AM |
External USB Drive suddenly Read only | kerasi | OpenBSD General | 8 | 17th March 2015 01:12 PM |
Creating USB flash drive drive image from FreeBSD disc1.iso | FBSD | Guides | 1 | 10th February 2010 04:42 PM |
Backup to USB flash drive | giga | FreeBSD General | 5 | 8th December 2008 11:06 PM |
USB flash drive | criglerj | NetBSD General | 1 | 26th July 2008 01:25 AM |