Re: usb read only

2015-08-31 Thread Liam O'Toole
On 2015-08-30, atux  wrote:
> This is a multi-part message in MIME format.
> --010609010802020702010907
> Content-Type: text/plain; charset=utf-8; format=flowed
> Content-Transfer-Encoding: 7bit
>
> hello everyone.
>
> i have a usb stick that it gets recognised as read only.
> how do i fix that issue, so i could format it and have a usable usb stick?
> i have tried with dosfsck -a without success
>
> Disk /dev/sdb: 31.4 GB, 31449415680 bytes
> 19 heads, 19 sectors/track, 170151 cylinders, total 61424640 sectors
> Units = sectors of 1 * 512 = 512 bytes
> Sector size (logical/physical): 512 bytes / 512 bytes
> I/O size (minimum/optimal): 512 bytes / 512 bytes
> Disk identifier: 0x10635f1f
>
> Device Boot  Start End  Blocks   Id  System
> /dev/sdb1   *806461424639307082887  HPFS/NTFS/exFAT
> *root@netbook:~#* dosfsck -a /dev/sdb1
> dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN
> open: Read-only file system
> *root@netbook:~#*
>
> even gparted has it recognised as read only

Did you install from a USB stick, by any chance? The installer can leave
a 'ro' entry for the stick in /etc/fstab.

>
> --010609010802020702010907
> Content-Type: text/html; charset=utf-8
> Content-Transfer-Encoding: quoted-printable

[...]

Please post in plain text only.

-- 

Liam




Re: usb read only

2015-08-31 Thread Thomas Schmitt
Hi,

atux wrote
> > even gparted has it recognised as read only

What exactly did it report ?

What permissions are shown with

  ls -l /dev/sdb


Liam O'Toole wrote:
> The installer can leave a 'ro' entry for the stick in /etc/fstab.

If so, then block device level write operations should
succeed.


Caution:
This test will zeroize partitioning. Do not try if
you still want to read the data from the USB stick.
(Creating the same partition start and size again would
make the filesystem accessible again. It depends on your
skills with the partition editor.)

The following command will write 512 bytes from /dev/null
over the MBR and partition table (where /dev/sdb1
is marked). Afterwards the stick should appear unpartitioned
and partition editors should be willing to work.
If device file permissions are sufficient.

Just make sure that you really address the stick by /dev/sdb,
and not your second hard disk.

  dd if=/dev/null bs=512 count=1 of=/dev/sdb

The dd command is about what is proposed for putting a Debian
ISO onto USB stick:
  https://www.debian.org/CD/faq/#write-usb


Have a nice day :)

Thomas



usb read only

2015-08-30 Thread atux

hello everyone.

i have a usb stick that it gets recognised as read only.
how do i fix that issue, so i could format it and have a usable usb stick?
i have tried with dosfsck -a without success

Disk /dev/sdb: 31.4 GB, 31449415680 bytes
19 heads, 19 sectors/track, 170151 cylinders, total 61424640 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x10635f1f

   Device Boot  Start End  Blocks   Id  System
/dev/sdb1   *806461424639307082887  HPFS/NTFS/exFAT
*root@netbook:~#* dosfsck -a /dev/sdb1
dosfsck 3.0.13, 30 Jun 2012, FAT32, LFN
open: Read-only file system
*root@netbook:~#*

even gparted has it recognised as read only