Rob625
Posts: 3
Joined: Sun Dec 04, 2011 12:08 pm

Pi SD is readonly on Ubuntu?

Fri Aug 03, 2012 1:56 pm

I received my Pi a couple of days ago and I have got it working with two SD cards, each 4GB. On the first it goes to the GUI, while on the other I have installed webmin and I run the Pi headless (that means with no display, keyboard or mouse, right?).

So far so good. Now I notice that only about 2GB of the 4GB is used, and that there is very little free space in that 2GB. So I would like to increase the partition size. (Or perhaps create another partition that Linux could use, but that is more likely to get complicated, I think). I have a spare PC on which I can run Ubuntu from a CD, and I can plug in the SD card via a USB adaptor. Ubuntu sees the partitions, but it complains that they are read-only. I have checked that the write-protect is off, and I have tried with other (non-Pi) SD cards and can write to those.

Is there something special about the Pi partitions that makes them readonly on another system? What do I do now?

- Rob

jdbennet
Posts: 96
Joined: Sun Jul 22, 2012 2:25 pm

Re: Pi SD is readonly on Ubuntu?

Fri Aug 03, 2012 1:59 pm

What are you using to resize them? gparted?
You need superuser permissions.

JeremyF
Posts: 515
Joined: Wed Jan 25, 2012 9:06 pm
Contact: Website

Re: Pi SD is readonly on Ubuntu?

Fri Aug 03, 2012 2:09 pm

1. Sometimes upon inserting in slot, the tab can pushed to the read only position. Trust me, it happens.
Post the output of

Code: Select all

dmesg | tail
after inserting card. It's probably not this, but check.
2. You need to be root or use sudo
{sig} Setup: Original version Raspberry Pi (B, rev1, 256MB), Dell 2001FP monitor (1600x1200), 8GB Class 4 SD Card with Raspbian and XBMC, DD-WRT wireless bridge

Rob625
Posts: 3
Joined: Sun Dec 04, 2011 12:08 pm

Re: Pi SD is readonly on Ubuntu?

Fri Aug 03, 2012 2:28 pm

I get this:
[ 1342.096144] usb 1-2: USB disconnect, address 3
[ 1345.312035] usb 1-2: new full speed USB device using uhci_hcd and address 4
[ 1345.906110] usb 1-2: configuration #1 chosen from 1 choice
[ 1345.932127] scsi3 : SCSI emulation for USB Mass Storage devices
[ 1345.940677] usb-storage: device found at 4
[ 1345.940684] usb-storage: waiting for device to settle before scanning
[ 1350.941764] usb-storage: device scan complete
[ 1350.949738] scsi 3:0:0:0: Direct-Access Generic- Compact Flash 1.00 PQ: 0 ANSI: 0 CCS
[ 1351.919743] scsi 3:0:0:1: Direct-Access Generic- SM/xD-Picture 1.00 PQ: 0 ANSI: 0 CCS
[ 1351.927752] scsi 3:0:0:2: Direct-Access Generic- SD/MMC 1.00 PQ: 0 ANSI: 0 CCS
[ 1351.935749] scsi 3:0:0:3: Direct-Access Generic- MS/MS-Pro 1.00 PQ: 0 ANSI: 0 CCS
[ 1351.943543] sd 3:0:0:0: Attached scsi generic sg2 type 0
[ 1351.946932] sd 3:0:0:1: Attached scsi generic sg3 type 0
[ 1351.956998] sd 3:0:0:2: Attached scsi generic sg4 type 0
[ 1351.964797] sd 3:0:0:0: [sdb] Attached SCSI removable disk
[ 1351.973102] sd 3:0:0:3: Attached scsi generic sg5 type 0
[ 1352.328733] sd 3:0:0:3: [sde] Attached SCSI removable disk
[ 1352.344869] sd 3:0:0:2: [sdd] 7741440 512-byte logical blocks: (3.96 GB/3.69 GiB)
[ 1352.354815] sd 3:0:0:1: [sdc] Attached SCSI removable disk
[ 1352.359836] sd 3:0:0:2: [sdd] Write Protect is on
[ 1352.359848] sd 3:0:0:2: [sdd] Mode Sense: 03 00 80 00
[ 1352.359854] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1352.422814] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1352.422837] sdd: sdd1 sdd2
[ 1352.450331] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1352.450347] sd 3:0:0:2: [sdd] Attached SCSI removable disk
[ 1354.338906] EXT4-fs (sdd2): INFO: recovery required on readonly filesystem
[ 1354.338919] EXT4-fs (sdd2): write access unavailable, cannot proceed
[ 1458.257231] sd 3:0:0:2: [sdd] 4022272 512-byte logical blocks: (2.05 GB/1.91 GiB)
[ 1458.269427] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1458.284299] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1458.284317] sdd: sdd1
[ 1565.961778] sd 3:0:0:2: [sdd] 7744512 512-byte logical blocks: (3.96 GB/3.69 GiB)
[ 1565.973969] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1565.989848] sd 3:0:0:2: [sdd] Assuming drive cache: write through
[ 1565.989865] sdd: sdd1 sdd2
[ 1568.796984] EXT4-fs (sdd2): INFO: recovery required on readonly filesystem
[ 1568.796998] EXT4-fs (sdd2): write access unavailable, cannot proceed

The slider on the SD card is definitely not at Protect.
- Rob

Rob625
Posts: 3
Joined: Sun Dec 04, 2011 12:08 pm

Re: Pi SD is readonly on Ubuntu?

Fri Aug 03, 2012 3:43 pm

OK, I think there is a problem with the SD-USB adaptor and/or the old PC I was using.

I have tried the same thing on a laptop with a builtin SD slot and everything worked fine. Ubuntu offers GParted (under System, Administration), and it was all pretty easy.

Now I am looking to install Samba so that I can start using a big USB HDD attached to the Pi and share it over my LAN.

- Rob

Return to “Beginners”