Re-size SD card

Context:

I have a 16 GB SD-card with a linux based OS for a raspberry pi. Most of the space is empty. I should share the SD.img with other people so, if I use the command dd if=/dev/sdXX of=/home/user123/SD.img, it will create a 16 GB image. Too big.

Question: How can I re-size a 16GB SD card into a smaller 4GB? I have tried with GParted: it creates a partition with 4GB with no problem, however the whole .img of the SD card continue to be 16 GB with 12 GB of unallocated space:

enter image description here

Every advice is appreciated! OS: Xubuntu 18.10

Computer stuck in “System BootOrder not found” loop following partition resize

Just made a rather fatal late night mistake. I booted into gparted live and shrunk my / partition, then enlarged my /home partition to give myself some more space. After applying these changes and restarting, my computer was caught in a boot loop, displaying the following:

System BootOrder not found. Initializing defaults. Creating boot entry "Boot0000" with label "ubuntu" for file "\EFI\ubuntu\shiux64.efi"  Reset System 

After this, the computer shuts down, starts up, shows this message, and repeat.

All the information I’ve found on fixing this involves booting from a live USB, or messing around in BIOS, but it looks like I even get to my BIOS to try anything. The system doesn’t respond to any keystrokes, and shuts down immediately after displaying the above message. Does anyone have any suggestions?

The laptop I murdered is the HP Spectre 13-v110ca – i5 7200U

SharePoint : Unable to resize image as it is getting Selected on clicking it

In SharePoint 2013, when I am trying to resize image in page (Not image web-part).

When I click on the image, it gets selected so I am unable to resize it using dragging the end points(dots on border of image).

Image renditions option is used in this page. Is this is a reason? If this feature is enabled, can’t we do manual resizing?

Can anyone help me, why this is happening?

I am a beginner to SharePoint.

Note: I am able to resize from Image tab in ribbon.

Get photoshop 100 image resize or background remove for $10

I will give 100 image resize Photoshop only for $ 6 MY SERVICE….. * 1-2 hours express delivery. if I’m online. * Your 100 Pictures resize Photoshop. *Background Removing. *Pictures Rotate. *And Color Replace Your pictures. *Man color or Background black&white. *Background black&white or man color. *Fast Delivery. *Photo inch to pixels *Damage pictures new correction *Jpge to png psd mood *Thanks.

by: bakul007
Created: —
Category: Graphics & Logos
Viewed: 152


is it possible to resize the icon grid on the desktop in Xubuntu 18.04 LTS?

my Xubuntu Desktop (18.04 LTS) only allows me to place icons in a 7 by 4 icons grid. The space around that on the right (where i could fit 3 more rows) and on the bottom (where i could also fit 3 more icon-rows), is not beeing used. Placing icons there will result in them beeing moved from there into the 7 by 4 icons grid above or on the left. I am using a lower than maximum resolution for the desktop (1024×768) – this is because i have this pc hooked up on the tv, and the fonts are otherwise to small to conveniently read them with high readingspeed.

Is it possible anyway to use the entire desktop for placing my icons ?

Mount NTFS partition after resize

I tried to shrink my main NTFS partition from 999GB down to 150GB using ntfsresize and parted.

Now I can’t mount my partition again.

root@ubuntu:/home/ubuntu# mount /dev/sda3 /mnt/windows Failed to read last sector (289062495): Invalid argument HINTS: Either the volume is a RAID/LDM but it wasn't setup yet,    or it was not setup correctly (e.g. by not using mdadm --build ...),    or a wrong device is tried to be mounted,    or the partition table is corrupt (partition is smaller than NTFS),    or the NTFS boot sector is corrupt (NTFS size is not valid). Failed to mount '/dev/sda3': Invalid argument The device '/dev/sda3' doesn't seem to have a valid NTFS. Maybe the wrong device is used? Or the whole disk instead of a partition (e.g. /dev/sda, not /dev/sda1)? Or the other way around? 

After running a search with TestDisk I get a different start/end compared to parted which is quite curious:

Testdisk (after search): start 239616, end 289302112 Parted: start 239616s, end 289062515s

So that suggests the problem is the partition MFT has been wiped or there is a problem with the boot sector? Source

In the Testdisk output before search the error I received:

Error: size boot_sector 289062497 > partition 288822900

Here Testdisk gives size boot_sector 289062497 > partition 288822900

TestDisk output after search:

TestDisk 7.0, Data Recovery Utility, April 2015 Christophe GRENIER <grenier@cgsecurity.org> http://www.cgsecurity.org  Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63      Partition               Start        End    Size in sectors >P MS Data                     2048     206847     204800 [ESP]  P MS Data                   239616  289302112  289062497  D MS Data               1949329409 1951426560    2097152  D MS Data               1951426560 1953523711    2097152 

Testdisk output before search:

TestDisk 7.0, Data Recovery Utility, April 2015 Christophe GRENIER <grenier@cgsecurity.org> http://www.cgsecurity.org  Disk /dev/sda - 1000 GB / 931 GiB - CHS 121601 255 63 Current partition structure:      Partition                  Start        End    Size in sectors   1 P EFI System                  2048     206847     204800 [EFI system partition] No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker  2 P MS Reserved               206848     239615      32768 [Microsoft reserved partition]  2 P MS Reserved               206848     239615      32768 [Microsoft reserved partition] Error: size boot_sector 289062497 > partition 288822900 No FAT, NTFS, ext2, JFS, Reiser, cramfs or XFS marker  3 P MS Data                   239616  289062515  288822900 [Basic data partition]  3 P MS Data                   239616  289062515  288822900 [Basic data partition]  4 P Unknown               1951426560 1953523711    2097152 [Basic data partition] 

Parted output:

(parted) p                                                                 Model: ATA ST1000LM035-1RK1 (scsi) Disk /dev/sda: 1953525168s Sector size (logical/physical): 512B/4096B Partition Table: gpt Disk Flags:   Number  Start        End          Size        File system  Name                          Flags  1      2048s        206847s      204800s     fat32        EFI system partition          boot, esp  2      206848s      239615s      32768s                   Microsoft reserved partition  msftres  3      239616s      289062515s   288822900s  ntfs         Basic data partition          msftdata  4      1951426560s  1953523711s  2097152s    ntfs         Basic data partition          diag