UPDATED (June 2021): 17-distro multi-boot image for Pinephone (incl. 3GiB variant)
#95
(11-28-2020, 07:42 PM)K_Research Wrote: Hello I made it to this step in the instructions

sudo echo ", +" | sfdisk -n -N 2 /dev/sdb2
sfdisk: cannot open /dev/sdb2: Permission denied


And when I try the next command I get

sudo echo ", +" | sfdisk -N 2 /dev/sdb2
sfdisk: cannot open /dev/sdb2: Permission denied



Suggestions?

Thanks
Where did that command come from? The elevated permissions from sudo only apply as far as the pipe '|' so sfdisk runs as the normal user, hence the permission denied. If you remove the first sudo, and insert one between the pipe and sfdisk, you'll probably get what was intended. As always when using sudo, make sure you know exactly what it's doing before running it!

UPDATE: It looks like you were trying to follow https://xnux.eu/log/#toc-resizing-the-pa...-the-image but using sudo, and changing the block device. I think you should be using /dev/sdb not /dev/sdb2 - the whole device not the second partition on that device.
  Reply


Messages In This Thread
RE: UPDATED: 17-distro multi-boot image for Pinephone (incl. 3GiB variant) - by wibble - 11-29-2020, 06:30 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Pinephone Pro Neural Processing Unit biketool 0 131 03-26-2025, 11:01 AM
Last Post: biketool
  contact sales pinephone janjansen1312 2 369 03-17-2025, 07:29 PM
Last Post: tllim
  PinePhone Pro P. Siera 4 1,679 03-14-2025, 07:00 PM
Last Post: Kevin Kofler
  [Article] PR Test Bot for PinePhone (Avaota-A1 SBC / Apache NuttX RTOS) lupyuen 0 206 03-08-2025, 02:43 PM
Last Post: lupyuen
Star Selling my Pinephone Pro Explorer Edition zheyon 0 504 01-31-2025, 02:27 PM
Last Post: zheyon
  PinePhone earpiece too quiet Waffelo 3 737 01-01-2025, 09:41 PM
Last Post: Kevin Kofler
Question WhatsApp & Pinephone - What are the alternatives for collaborative comms? danimations 15 20,466 12-27-2024, 03:02 AM
Last Post: biketool
  eSIM on PinePhone just_a_q 9 6,435 12-25-2024, 04:16 AM
Last Post: zetabeta
  US Mobile, via T-Mobile, won't support Pinephone Pro - SOLVED, SIMPLY jovval 13 8,613 12-05-2024, 04:38 PM
Last Post: tllim
  Pinephone compatibility with Telstra, now that 3 G shutdown and 5 G available tracyanne 0 522 12-04-2024, 10:53 PM
Last Post: tracyanne

Forum Jump:


Users browsing this thread: 1 Guest(s)