November 21, 2019, 06:47:49 pm

News:

Have you visited the Allwinner Chipset wiki? - http://linux-sunxi.org/


How to enable write permission?

Started by Teetertank, January 29, 2014, 06:08:51 pm

Previous topic - Next topic

Teetertank

I'm a noob trying to edit the a line in the code to adjust screen resolution using nano, but get an error due to write protection being enabled. The operating system is on an SD card and am using Cubietruck.

I am logged in as root and used line:

sudo nano /boot/uEnv.txt

It returns an: "Error  - write only file system"

Could someone guide me on enabling editing please?




Jono

Quote from: Teetertank on January 29, 2014, 06:08:51 pm
I'm a noob trying to edit the a line in the code to adjust screen resolution using nano, but get an error due to write protection being enabled. The operating system is on an SD card and am using Cubietruck.

I am logged in as root and used line:

sudo nano /boot/uEnv.txt

It returns an: "Error  - write only file system"

Could someone guide me on enabling editing please?

Umount /dev/nanda or /dev/nand1
And mount it again

Saegematz

mount -o remount, rw /dev/nanda
or
mount -o remount, rw /dev/nand1
it depends on your device

Teetertank

January 30, 2014, 07:39:22 pm #3 Last Edit: January 30, 2014, 08:18:53 pm by Teetertank
Quote from: Jono on January 29, 2014, 10:48:47 pm
Umount /dev/nanda or /dev/nand1
And mount it again



Thanks for suggestions. But still not having any joy.

Device is Cubietruck, operating system is on SD card.

I tried typing the following:
Umount /dev/nanda      response: not found
Umount/dev/nand1     response: not mounted

I then tried typing:
mount -o remount, rw /dev/nanda    response: you must specify the filesystem type
mount -o remount, rw /dev/nand1    response: can't find dev/nand1 in /etc/fstab or /etc/mtab

Is the SD card classed as nand? do I need to add in reference to /boo/uEnv?

Jono

Quote from: Teetertank on January 30, 2014, 07:39:22 pm
I tried typing the following:
Umount /dev/nanda      response: not found
Umount/dev/nand1     response: not mounted

I then tried typing:
mount -o remount, rw /dev/nanda    response: you must specify the filesystem type
mount -o remount, rw /dev/nand1    response: can't find dev/nand1 in /etc/fstab or /etc/mtab

Is the SD card classed as nand? do I need to add in reference to /boo/uEnv?

Try

sudo mkdir /mnt/nand1
sudo mount /dev/nand1 /mnt/nand1

Then navigate to the directory "/mnt/nand1" where partition "nand1" will be mounted
Hope it helps


Check how is nand as defined in the partition table this command
cat /proc/partitions

bLakKCuBie

January 31, 2014, 06:17:08 am #5 Last Edit: January 31, 2014, 06:20:02 am by bLakKCuBie
take a look at cat /proc/partitions as described above

and have a look how your sdcard is known there. nanda/b/c is definetaly the nand. so you need your sdcard.

if you dont know post your output. i dont have sdcard installation. in the tutorials it is stated as

mmcblk0p1

if you never installed a system on nand you cant find your uEnv.txt you know ;)

then mount the sdcard-partition and you will be happy

wantmymoneyback

Hello.
I misread this yesterday or I think I could maybe have helped you.
I use ex, instead of nano.
As su, fdisk -l
This will give you the list of mounted files systems.
The uSD card should be mmcblk0p1, mmcblk0p2, and mmcblk0p3; which are boot, swap, and rootfile system, respectively.
In Fedora, mmcblk0p1 is mounted as /boot/uboot. Thus cd /boot/uboot puts you in the directory
to edit uboot and other files.
Is nano a visual editor? Some times you can not operate graphics as root, so that may be your problem.
The fdisk -l should also list all of your nand partitions.

Using mount -t fat (or vfat) /dev/mmcblk0p1 /mnt may also work for you.
I just cd /boot/uboot with Fedora but have mounted it to /mnt also for editing.
I've had problems using gedit or mousepad (with XFCE) as root.