Linux Partition On SD Card Is Read Only File System
Linux Partition On SD Card Is Read Only File System
1344 views
Mark K.'s profile photo
Mark K.
unread,
Dec 2, 2008, 6:26:41 PM
to Beagle Board
Last week I received my Beagle Board and the functional tests are OK.
So now I'd like to get Angstrom running on this board and made the
FAT32 and Linux partitions on a 2 GB SD card.
I have followed all the instructions on the LinuxBootFormat wiki and
everything looked fine.
When I want to untar the Angstrom .tar.bz2 file onto the Linux
partition, it gives errors indicating that this partition is a Read
Only File System, so I can't copy anything to this partition.
Kind regards,
Mark
beaglenewb's profile photo
beaglenewb
unread,
Dec 2, 2008, 7:31:49 PM
to Beagle Board
I believe what your problem is, is that you got it set to read only.
The way to fix this is when you see the SD card mounted on the
desktop, right-click and change its settings. You should see that in
the menu when you right click it will show you that you can change
from read only to writable. Hope this works for you.
Sevey
Mark K.'s profile photo
Mark K.
unread,
Dec 2, 2008, 8:08:19 PM
to Beagle Board
Thanks for your suggestion!
Mark
> > Mark- Tekst uit oorspronkelijk bericht niet weergeven -
>
> - Tekst uit oorspronkelijk bericht weergeven -
Tamer S. Mohamed's profile photo
Tamer S. Mohamed
unread,
Dec 2, 2008, 8:57:12 PM
to [email protected]
Use
sudo tar
Robert Nelson's profile photo
Robert Nelson
unread,
Dec 2, 2008, 9:01:47 PM
to [email protected]
>
> Thanks for your suggestion!
>
> When I right-click on the mounted SD card it shows that it is
> writeable.
> I am also logged in as root, so I should have write permissions as
> well.
>
> Could it be a hardware problem?
> With this hardware I managed to make and format the partitions...
>
> Mark
Did it automount the card? It may have mounted it with a nodev or
something. Type 'mount' from root and report the results.
Regards,
--
Robert Nelson
http://www.rcn-ee.com/
This is the output (Sorry it's very long, but I removed many lines
from the tar output):
root@Knoppix:/# mount
rootfs on / type rootfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
/dev/hda on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/dev/cloop2 on /KNOPPIX2 type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw)
/UNIONFS on /UNIONFS type aufs (rw,xino=/ramdisk/.aufs.xino,br:/
ramdisk=rw:/KNOPPIX=rr:/KNOPPIX2=rr)
/proc/bus/usb on /proc/bus/usb type usbfs (rw)
/dev/pts on /dev/pts type devpts (rw)
root@Knoppix:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda 4.2G 4.2G 0 100% /cdrom
/dev/cloop 7.4G 7.4G 0 100% /KNOPPIX
/dev/cloop2 3.4G 3.4G 0 100% /KNOPPIX2
/ramdisk 1.6G 9.8M 1.6G 1% /ramdisk
/UNIONFS 1.6G 9.8M 1.6G 1% /UNIONFS
root@Knoppix:/# mount /dev/sdb1
root@Knoppix:/# mount /dev/sdb2
root@Knoppix:/# mount
rootfs on / type rootfs (rw)
/proc on /proc type proc (rw)
/sys on /sys type sysfs (rw)
/dev/hda on /cdrom type iso9660 (ro)
/dev/cloop on /KNOPPIX type iso9660 (ro)
/dev/cloop2 on /KNOPPIX2 type iso9660 (ro)
/ramdisk on /ramdisk type tmpfs (rw)
/UNIONFS on /UNIONFS type aufs (rw,xino=/ramdisk/.aufs.xino,br:/
ramdisk=rw:/KNOPPIX=rr:/KNOPPIX2=rr)
/proc/bus/usb on /proc/bus/usb type usbfs (rw)
/dev/pts on /dev/pts type devpts (rw)
/dev/sdb1 on /media/sdb1 type vfat
(rw,nosuid,nodev,uid=1000,gid=1000,fmask=0000,dmask=0000,codepage=cp437,iocharset=i
so8859-1,shortname=winnt)
/dev/sdb2 on /media/sdb2 type ext3 (rw,nosuid,nodev,data=ordered)
root@Knoppix:/# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/hda 4.2G 4.2G 0 100% /cdrom
/dev/cloop 7.4G 7.4G 0 100% /KNOPPIX
/dev/cloop2 3.4G 3.4G 0 100% /KNOPPIX2
/ramdisk 1.6G 10M 1.6G 1% /ramdisk
/UNIONFS 1.6G 10M 1.6G 1% /UNIONFS
/dev/sdb1 400M 94M 306M 24% /media/sdb1
/dev/sdb2 1.5G 35M 1.4G 3% /media/sdb2
root@Knoppix:/# cd /media/sdb2
root@Knoppix:/media/sdb2# sudo tar -xvjf /media/sdb1/Angstrom-
Beagleboard-demo-image-glibc-ipk-2008.1-test.20080920-
beagleboard.rootfs.tar.bz2
----- Now many lines with errors follow. I'll show just a few of these
lines...
Regards,
Mark
Robert Nelson's profile photo
Robert Nelson
unread,
Dec 2, 2008, 10:56:43 PM
to [email protected]
> root@Knoppix:/# mount
> rootfs on / type rootfs (rw)
> /proc on /proc type proc (rw)
> /sys on /sys type sysfs (rw)
> /dev/hda on /cdrom type iso9660 (ro)
> /dev/cloop on /KNOPPIX type iso9660 (ro)
> /dev/cloop2 on /KNOPPIX2 type iso9660 (ro)
> /ramdisk on /ramdisk type tmpfs (rw)
> /UNIONFS on /UNIONFS type aufs (rw,xino=/ramdisk/.aufs.xino,br:/
> ramdisk=rw:/KNOPPIX=rr:/KNOPPIX2=rr)
> /proc/bus/usb on /proc/bus/usb type usbfs (rw)
> /dev/pts on /dev/pts type devpts (rw)
> /dev/sdb1 on /media/sdb1 type vfat
>
(rw,nosuid,nodev,uid=1000,gid=1000,fmask=0000,dmask=0000,codepage=cp437,iocharset=i
so8859-1,shortname=winnt)
> /dev/sdb2 on /media/sdb2 type ext3 (rw,nosuid,nodev,data=ordered)
---------------------------------------------------------------^^^^-----^^^^^^
(evil) should be (rw) only....
Okay, with the mmc card umounted,
then
Regards,
--
Robert Nelson
http://www.rcn-ee.com/
with
sudo /dev/sdb2 /tmp/disk1
--
Robert Nelson
http://www.rcn-ee.com/
Mark
Philip Balister's profile photo
Philip Balister
unread,
Dec 3, 2008, 3:45:10 PM
to [email protected]
Have you checked if the write protect switch on the card is in the
correct position?
Philip
Mark
____________________________________________________________________________
This email and any files transmitted with it are confidential and are
intended solely for the use of the individual or entity to which they are
addressed. Access to this e-mail by anyone else is unauthorised. If you are
not the intended recipient, any disclosure, copying, distribution or any
action taken or omitted to be taken in reliance on it, is prohibited. E-mail
messages are not necessarily secure. Archos does not accept responsibility
for any changes made to this message after it was sent.
Mark
--
Robert Nelson
http://www.rcn-ee.com/
Mark
Mark K.'s profile photo
Mark K.
unread,
Dec 3, 2008, 10:22:11 PM
to Beagle Board
Now I've tried it with the Knoppix live DVD and a new card.
/dev/sdb1 is a USB flash memory stick
/dev/sdc1 is the FAT32 partition with the boot files
/dev/sdc2 is the ext3 partition where I would like to untar the
Angstrom demo image to.
And now come all the error lines. The last lines are:
Mark
Robert Nelson's profile photo
Robert Nelson
unread,
Dec 3, 2008, 10:56:10 PM
to [email protected]
> root@Knoppix:/ramdisk/home/knoppix#
>
> It shows that "rw" is changed into "ro".
> Only 2 folders named "dev" and "usr" have been untarred to sdc2.
>
Mark -
That's very strange it switched between rw & ro, I've attached a line
by line console log of what i did in ubuntu to get it correctly untar
onto the SD card.
Regards,
--
Robert Nelson
http://www.rcn-ee.com/
****************************
SD card is
Fat32 : /dev/sdd1
ext3 : /dev/sdd2
voodoo@voodoo-desktop:~$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
/dev/sdd2 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sdd1 on /media/disk-1 type vfat
(rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)
voodoo@voodoo-desktop:~$
voodoo@voodoo-desktop:~$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
/dev/sdd1 on /media/disk-1 type vfat
(rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)
voodoo@voodoo-desktop:~$
voodoo@voodoo-desktop:~$ mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
/dev/sdd1 on /media/disk-1 type vfat
(rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)
/dev/sdd2 on /tmp/disk1 type ext3 (rw)
voodoo@voodoo-desktop:~$
Switch to Superuser
voodoo@voodoo-desktop:~$ sudo su
root@voodoo-desktop:/home/voodoo# mount
/dev/sda1 on / type ext3 (rw,relatime,errors=remount-ro)
/dev/sdd1 on /media/disk-1 type vfat
(rw,nosuid,nodev,uhelper=hal,shortname=mixed,uid=1000,utf8,umask=077,flush)
/dev/sdd2 on /tmp/disk1 type ext3 (rw)
root@voodoo-desktop:/home/voodoo#
root@voodoo-desktop:/home/voodoo# exit
voodoo@voodoo-desktop:~$ sync
voodoo@voodoo-desktop:~$ sudo umount /tmp/disk1/
Mark
John (USP)'s profile photo
John (USP)
unread,
Dec 4, 2008, 7:51:55 AM
to [email protected]
I had a similar problem on my Dell Laptops. The integrated SD card reader
wasn't SDHC compliant. I purchased a small USB/SDHC reader and now
everything works fine. The one I used is:
http://shop3.frys.com/product/5448039?site=sr:SEARCH:MAIN_RSLT_PG
Regards,
Mark
Regards,
Mark
Both my SD and SDHC readers are USB based and made by Targus. The SD
only version is model number: TGR-SD20. Unfortunately, the SDHC
reader does not have a model number on it, but I do remember the
packaging stating that the reader supports SDHC.
-Preston
Mark K.'s profile photo
Mark K.
unread,
Dec 10, 2008, 10:04:50 PM
to Beagle Board
Today I installed Ubuntu on a laptop PC with a new card reader.
The whole procedure worked!!!
I think that the method described by Robert Nelson in this thread
should be integrated in the LinuxBootDiskFormat wiki, because when the
partitions are automounted, they are mounted with nodev.
Thanks everybody for your help! Now I can really start playing with
my Beagle Board.
Regards,
Mark
Sign in to reply