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
  How can I record video on a Pinephone? kk22 23 18,435 03-25-2026, 12:55 PM
Last Post: baptx
  Pinephone visibly losing power while plugged in Hiraghm 8 5,728 03-09-2026, 07:51 PM
Last Post: Tia Vaughan
  pinephone-support package not upgradable on Mobian fhireman 5 6,151 02-28-2026, 05:49 PM
Last Post: baptx
  beep - playing PCM samples on PinePhone? WhiteHexagon 0 605 12-04-2025, 08:07 AM
Last Post: WhiteHexagon
Star Selling my Pinephone Pro Explorer Edition zheyon 2 3,603 12-01-2025, 10:25 AM
Last Post: Kevin Kofler
  PinePhone sensors - Gyroscope power WhiteHexagon 3 1,049 11-30-2025, 08:07 AM
Last Post: WhiteHexagon
  Light Sensor / Proximity Sensor on PinePhone? WhiteHexagon 1 870 11-18-2025, 03:07 PM
Last Post: WhiteHexagon
  Pinephone boot. Richy_T 8 5,555 10-21-2025, 12:12 PM
Last Post: Richy_T
  Does PinePhone support long-term battery health optimization? roseblack 5 2,117 10-06-2025, 09:05 PM
Last Post: Kevin Kofler
  iso pinephone for sale (USA) elwoodb25 0 4,223 09-24-2025, 09:25 PM
Last Post: elwoodb25

Forum Jump:


Users browsing this thread: 1 Guest(s)