Error When Resizing SD Card
#1
I am trying to create an Ubuntu  Linux Image SD using the instructions below.

It works fine (Ubuntu boots using the new SD card and I can log in) except for when I open the terminal and try to resize the SD card using:

"Execute resize_rootfs.sh script to resize the root partition in order to fully utilize the SD Card"

I  get the error:

"This scrip requires root"

[email=Ubuntu@localhost$:/]Ubuntu@localhost$:/[/email]

How do I solve this?



Ubuntu Linux Image [20160530] based on Longsleep build, updated by Pine64
[Image: Logo_ubuntu.jpg]
  • Thanks to longsleep works, the Linux build progress rapidly, This is a build based on longsleep works and may not have all bell and whistles from longsleep and Sunxi community. For latest build, you can create one and following this thread
  • Suitable for 1GB/2GB Pine A64+ Board, not suitable for 512MB Pine A64 Board due to system memory constrain
  • DD image (for 8GB and above SD Card):
  • Included Mate Desktop, Firebox Browser, Thunderbird Email, and LibreOffice Suite.
  • Login with
    • username: ubuntu
    • password: ubuntu
  • Execute resize_rootfs.sh script to resize the root partition in order to fully utilize the SD Card
  Reply
#2
are you typing "sudo" (or "sudo su" before executing the command) prior to the command?
  Reply
#3
No. I wasn't typing sudo before the command.

It worked now! Thanks!
  Reply
#4
just for reference, you can also use gparted in GUI Wink
You can find me on IRC, Discord and Twitter


  Reply
#5
Thanks.

That's good to know.
  Reply


Possibly Related Threads…
Thread Author Replies Views Last Post
  systemd-gpt-auto-generator: failed to dissect: input/output error jeanclaude.magras@gmail.com 0 2,821 12-11-2019, 04:10 PM
Last Post: jeanclaude.magras@gmail.com
  How to backup to be able to recover from SD card failure Dagremote 1 3,291 11-11-2017, 08:10 AM
Last Post: Luke
  config error installing XML-RPC on longsleep Ubuntu tinkertom 2 5,110 02-22-2017, 06:50 AM
Last Post: MarkHaysHarris777
  Error load mate desktop environment b.simp404 2 4,468 01-21-2017, 02:24 PM
Last Post: wizkidcom
  GStreamer: XIO: fatal IO error 11 (Resource temporarily unavailable) on X server Pander 0 3,315 10-27-2016, 06:09 AM
Last Post: Pander
  Network Access Error coolnine98 5 7,821 06-29-2016, 06:15 PM
Last Post: coolnine98
  System program problem detected error ebclr 0 2,343 05-15-2016, 09:18 PM
Last Post: ebclr
  Mounting USB hard drive - error registering v4l2 subdevice Ruckus 4 6,389 05-13-2016, 06:48 AM
Last Post: Ruckus
  Startx Error jl_678 1 4,115 05-07-2016, 09:58 AM
Last Post: jl_678

Forum Jump:


Users browsing this thread: 1 Guest(s)