How to Increase Root PartitionHow to resize partitions?Can't write to flash drive unless rootELI5: Resizing PartitionsUbuntu show wrong disk sizes, how to solve it?
Finding longest overlapping ranges
Can salted butter be used to make lemon curd?
Using a heater and toaster oven trips the breaker. Can an electrician fix this?
Does the sterile cockpit rule mean flight attendants could not inform the pilots if a passenger is in the lavatory while on final?
Why are the 4th and 7th scale degrees removed from the major scale to make the Pentatonic scale?
Tactical illusion combat countermeasures (password system)
Where do "magic" hashing constants like 0x9e3779b9 and 0x9e3779b1 come from?
What is the moral difference between abortion and infanticide?
How to prevent humanity from using alien spaceships and technology exclusively?
Who was Wodehouse’s intended audience for Jeeves and Wooster?
Is it ethical to apply for a short-term grant with a partner/spouse/girlfriend?
smallest number obtainable from 2020
Is it possible to conserve the total kinetic energy of a system, but not its momentum?
Was Jumanji intended to be a co-op game?
Seen multiple uses of 想
What is this old farm "combine"?
How to keep track of what has been done to a TeX file?
Why is f'74' the same as f'74' with f-Strings?
Change cone width
SQL Server CUs vs SPs + CUs?
being overqualified as a barrier for getting a job
Why there isn't public transport on Christmas Day in the UK
Why quote is positioned differently in "ones' complements" than "two's complements"?
What does a reduction gearbox do in a turbofan engine?
How to Increase Root Partition
How to resize partitions?Can't write to flash drive unless rootELI5: Resizing PartitionsUbuntu show wrong disk sizes, how to solve it?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty
margin-bottom:0;
I put an Image of Ubuntu 18.04.3 onto a 32GB SD card. It came with no desktop, so I am trying to install xubuntu. When I try to install it using sudo apt-get install xubuntu-desktop
I get the following error:
You don't have enough free space in `/var/cache/apt/archives`
I tried sudo apt-get autoclean
sudo apt-get clean
and different variants of sudo apt-get autoremove
but nothing worked.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.1G 1.4G 513M 74% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9B 0 1.9G 0% /dev/shm
tmpfs 1.9G 2.5M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 29M 224M 12% /boot/firmware
tmpfs 381M 0 381M 0% /run/user/1000`
I'm new to linux, but why is my root (and filesystem in general) so small if my SD card is 32GB? And is there a way to increase root through the command line(maybe fdisk)?
I don't have another linux machine that I can run Gparted on. But I do have a Windows laptop that could possibly do Gparted Live. I've never done that before so if that is the best solution, tips to get started would be much appreciated.
Don't know if it matters but I'm following the instructions here Raspberry Pi 4 Ubuntu Server/ Desktop 18.04.3 Image (unofficial) to try and get Ubuntu up and running xubuntu on my Rpi 4.
EDIT:
$ sudo parted -ls
Model: SD SK32G (sd/mmc)
Disk /dev/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File System Flags
1 1049kB 269MB 268MB primary fat32 boot,lba
2 269MB 31.9GB 31.6GB primary ext4
$ lsblk -f
Name Fstyle Label UUID Mountpoint
mmcblk0
|_mmcblk0p1 vfat system-boot E497-1FDF boot/firmware
|_mmcblk0p2 ext4 writable bfa0733b-bdb9-4846-914a-45160bac3ed0 /
partitioning mount xubuntu sd-card
|
show 1 more comment
I put an Image of Ubuntu 18.04.3 onto a 32GB SD card. It came with no desktop, so I am trying to install xubuntu. When I try to install it using sudo apt-get install xubuntu-desktop
I get the following error:
You don't have enough free space in `/var/cache/apt/archives`
I tried sudo apt-get autoclean
sudo apt-get clean
and different variants of sudo apt-get autoremove
but nothing worked.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.1G 1.4G 513M 74% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9B 0 1.9G 0% /dev/shm
tmpfs 1.9G 2.5M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 29M 224M 12% /boot/firmware
tmpfs 381M 0 381M 0% /run/user/1000`
I'm new to linux, but why is my root (and filesystem in general) so small if my SD card is 32GB? And is there a way to increase root through the command line(maybe fdisk)?
I don't have another linux machine that I can run Gparted on. But I do have a Windows laptop that could possibly do Gparted Live. I've never done that before so if that is the best solution, tips to get started would be much appreciated.
Don't know if it matters but I'm following the instructions here Raspberry Pi 4 Ubuntu Server/ Desktop 18.04.3 Image (unofficial) to try and get Ubuntu up and running xubuntu on my Rpi 4.
EDIT:
$ sudo parted -ls
Model: SD SK32G (sd/mmc)
Disk /dev/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File System Flags
1 1049kB 269MB 268MB primary fat32 boot,lba
2 269MB 31.9GB 31.6GB primary ext4
$ lsblk -f
Name Fstyle Label UUID Mountpoint
mmcblk0
|_mmcblk0p1 vfat system-boot E497-1FDF boot/firmware
|_mmcblk0p2 ext4 writable bfa0733b-bdb9-4846-914a-45160bac3ed0 /
partitioning mount xubuntu sd-card
It is probably possible to increase your root partition, but in order to help you, we need more information, particularly about the whole partition table and possible other partitions, that are not mounted, unallocated drive space and the location of the partitions. So please edit your original question to show the output ofsudo parted -ls
or the graphical output ofgparted
. The root partition is probably small because the image was designed for a smaller SD card (maybe 4 GB card), or because it is a live system. Seeing the whole partition table will help us answer that question too.
– sudodus
Sep 21 at 19:19
1
The size of/dev/root
does not match the size of the second partition, the ext4 partiiton. What image file name and link to where you downloaded from? Maybe there is some LVM structure. Please show also the output ofsudo lsblk -f
andsudo lsblk -m
– sudodus
Sep 21 at 19:37
1
Sorry, the output oflsblk
does not add more information. Most of us here at AskUbuntu run Ubuntu in PC computers, and the architecture is different from that of Raspberry Pi. Maybe you have better luck asking and getting help via the link you provided in your question.
– sudodus
Sep 21 at 19:43
1
Ok I'll ask there as well. But here is the link to the image: github.com/TheRemote/Ubuntu-Server-raspi4-unofficial/releases/…
– Sean Aidan Herbert
Sep 21 at 19:45
2
Possible duplicate of How to resize partitions?
– karel
Oct 2 at 10:48
|
show 1 more comment
I put an Image of Ubuntu 18.04.3 onto a 32GB SD card. It came with no desktop, so I am trying to install xubuntu. When I try to install it using sudo apt-get install xubuntu-desktop
I get the following error:
You don't have enough free space in `/var/cache/apt/archives`
I tried sudo apt-get autoclean
sudo apt-get clean
and different variants of sudo apt-get autoremove
but nothing worked.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.1G 1.4G 513M 74% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9B 0 1.9G 0% /dev/shm
tmpfs 1.9G 2.5M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 29M 224M 12% /boot/firmware
tmpfs 381M 0 381M 0% /run/user/1000`
I'm new to linux, but why is my root (and filesystem in general) so small if my SD card is 32GB? And is there a way to increase root through the command line(maybe fdisk)?
I don't have another linux machine that I can run Gparted on. But I do have a Windows laptop that could possibly do Gparted Live. I've never done that before so if that is the best solution, tips to get started would be much appreciated.
Don't know if it matters but I'm following the instructions here Raspberry Pi 4 Ubuntu Server/ Desktop 18.04.3 Image (unofficial) to try and get Ubuntu up and running xubuntu on my Rpi 4.
EDIT:
$ sudo parted -ls
Model: SD SK32G (sd/mmc)
Disk /dev/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File System Flags
1 1049kB 269MB 268MB primary fat32 boot,lba
2 269MB 31.9GB 31.6GB primary ext4
$ lsblk -f
Name Fstyle Label UUID Mountpoint
mmcblk0
|_mmcblk0p1 vfat system-boot E497-1FDF boot/firmware
|_mmcblk0p2 ext4 writable bfa0733b-bdb9-4846-914a-45160bac3ed0 /
partitioning mount xubuntu sd-card
I put an Image of Ubuntu 18.04.3 onto a 32GB SD card. It came with no desktop, so I am trying to install xubuntu. When I try to install it using sudo apt-get install xubuntu-desktop
I get the following error:
You don't have enough free space in `/var/cache/apt/archives`
I tried sudo apt-get autoclean
sudo apt-get clean
and different variants of sudo apt-get autoremove
but nothing worked.
$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/root 2.1G 1.4G 513M 74% /
devtmpfs 1.9G 0 1.9G 0% /dev
tmpfs 1.9B 0 1.9G 0% /dev/shm
tmpfs 1.9G 2.5M 1.9G 1% /run
tmpfs 5.0M 0 5.0M 0% /run/lock
tmpfs 1.9G 0 1.9G 0% /sys/fs/cgroup
/dev/mmcblk0p1 253M 29M 224M 12% /boot/firmware
tmpfs 381M 0 381M 0% /run/user/1000`
I'm new to linux, but why is my root (and filesystem in general) so small if my SD card is 32GB? And is there a way to increase root through the command line(maybe fdisk)?
I don't have another linux machine that I can run Gparted on. But I do have a Windows laptop that could possibly do Gparted Live. I've never done that before so if that is the best solution, tips to get started would be much appreciated.
Don't know if it matters but I'm following the instructions here Raspberry Pi 4 Ubuntu Server/ Desktop 18.04.3 Image (unofficial) to try and get Ubuntu up and running xubuntu on my Rpi 4.
EDIT:
$ sudo parted -ls
Model: SD SK32G (sd/mmc)
Disk /dev/mmcblk0: 31.9GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos
Disk Flags:
Number Start End Size Type File System Flags
1 1049kB 269MB 268MB primary fat32 boot,lba
2 269MB 31.9GB 31.6GB primary ext4
$ lsblk -f
Name Fstyle Label UUID Mountpoint
mmcblk0
|_mmcblk0p1 vfat system-boot E497-1FDF boot/firmware
|_mmcblk0p2 ext4 writable bfa0733b-bdb9-4846-914a-45160bac3ed0 /
partitioning mount xubuntu sd-card
partitioning mount xubuntu sd-card
edited Oct 2 at 9:40
user3140225
2,7104 gold badges12 silver badges24 bronze badges
2,7104 gold badges12 silver badges24 bronze badges
asked Sep 21 at 19:11
Sean Aidan HerbertSean Aidan Herbert
112 bronze badges
112 bronze badges
It is probably possible to increase your root partition, but in order to help you, we need more information, particularly about the whole partition table and possible other partitions, that are not mounted, unallocated drive space and the location of the partitions. So please edit your original question to show the output ofsudo parted -ls
or the graphical output ofgparted
. The root partition is probably small because the image was designed for a smaller SD card (maybe 4 GB card), or because it is a live system. Seeing the whole partition table will help us answer that question too.
– sudodus
Sep 21 at 19:19
1
The size of/dev/root
does not match the size of the second partition, the ext4 partiiton. What image file name and link to where you downloaded from? Maybe there is some LVM structure. Please show also the output ofsudo lsblk -f
andsudo lsblk -m
– sudodus
Sep 21 at 19:37
1
Sorry, the output oflsblk
does not add more information. Most of us here at AskUbuntu run Ubuntu in PC computers, and the architecture is different from that of Raspberry Pi. Maybe you have better luck asking and getting help via the link you provided in your question.
– sudodus
Sep 21 at 19:43
1
Ok I'll ask there as well. But here is the link to the image: github.com/TheRemote/Ubuntu-Server-raspi4-unofficial/releases/…
– Sean Aidan Herbert
Sep 21 at 19:45
2
Possible duplicate of How to resize partitions?
– karel
Oct 2 at 10:48
|
show 1 more comment
It is probably possible to increase your root partition, but in order to help you, we need more information, particularly about the whole partition table and possible other partitions, that are not mounted, unallocated drive space and the location of the partitions. So please edit your original question to show the output ofsudo parted -ls
or the graphical output ofgparted
. The root partition is probably small because the image was designed for a smaller SD card (maybe 4 GB card), or because it is a live system. Seeing the whole partition table will help us answer that question too.
– sudodus
Sep 21 at 19:19
1
The size of/dev/root
does not match the size of the second partition, the ext4 partiiton. What image file name and link to where you downloaded from? Maybe there is some LVM structure. Please show also the output ofsudo lsblk -f
andsudo lsblk -m
– sudodus
Sep 21 at 19:37
1
Sorry, the output oflsblk
does not add more information. Most of us here at AskUbuntu run Ubuntu in PC computers, and the architecture is different from that of Raspberry Pi. Maybe you have better luck asking and getting help via the link you provided in your question.
– sudodus
Sep 21 at 19:43
1
Ok I'll ask there as well. But here is the link to the image: github.com/TheRemote/Ubuntu-Server-raspi4-unofficial/releases/…
– Sean Aidan Herbert
Sep 21 at 19:45
2
Possible duplicate of How to resize partitions?
– karel
Oct 2 at 10:48
It is probably possible to increase your root partition, but in order to help you, we need more information, particularly about the whole partition table and possible other partitions, that are not mounted, unallocated drive space and the location of the partitions. So please edit your original question to show the output of
sudo parted -ls
or the graphical output of gparted
. The root partition is probably small because the image was designed for a smaller SD card (maybe 4 GB card), or because it is a live system. Seeing the whole partition table will help us answer that question too.– sudodus
Sep 21 at 19:19
It is probably possible to increase your root partition, but in order to help you, we need more information, particularly about the whole partition table and possible other partitions, that are not mounted, unallocated drive space and the location of the partitions. So please edit your original question to show the output of
sudo parted -ls
or the graphical output of gparted
. The root partition is probably small because the image was designed for a smaller SD card (maybe 4 GB card), or because it is a live system. Seeing the whole partition table will help us answer that question too.– sudodus
Sep 21 at 19:19
1
1
The size of
/dev/root
does not match the size of the second partition, the ext4 partiiton. What image file name and link to where you downloaded from? Maybe there is some LVM structure. Please show also the output of sudo lsblk -f
and sudo lsblk -m
– sudodus
Sep 21 at 19:37
The size of
/dev/root
does not match the size of the second partition, the ext4 partiiton. What image file name and link to where you downloaded from? Maybe there is some LVM structure. Please show also the output of sudo lsblk -f
and sudo lsblk -m
– sudodus
Sep 21 at 19:37
1
1
Sorry, the output of
lsblk
does not add more information. Most of us here at AskUbuntu run Ubuntu in PC computers, and the architecture is different from that of Raspberry Pi. Maybe you have better luck asking and getting help via the link you provided in your question.– sudodus
Sep 21 at 19:43
Sorry, the output of
lsblk
does not add more information. Most of us here at AskUbuntu run Ubuntu in PC computers, and the architecture is different from that of Raspberry Pi. Maybe you have better luck asking and getting help via the link you provided in your question.– sudodus
Sep 21 at 19:43
1
1
Ok I'll ask there as well. But here is the link to the image: github.com/TheRemote/Ubuntu-Server-raspi4-unofficial/releases/…
– Sean Aidan Herbert
Sep 21 at 19:45
Ok I'll ask there as well. But here is the link to the image: github.com/TheRemote/Ubuntu-Server-raspi4-unofficial/releases/…
– Sean Aidan Herbert
Sep 21 at 19:45
2
2
Possible duplicate of How to resize partitions?
– karel
Oct 2 at 10:48
Possible duplicate of How to resize partitions?
– karel
Oct 2 at 10:48
|
show 1 more comment
1 Answer
1
active
oldest
votes
Don't know why, but after reimaging my sd card about 10 times, it finally decided to allocate root partition 29GB
add a comment
|
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "89"
;
initTagRenderer("".split(" "), "".split(" "), channelOptions);
StackExchange.using("externalEditor", function()
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled)
StackExchange.using("snippets", function()
createEditor();
);
else
createEditor();
);
function createEditor()
StackExchange.prepareEditor(
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader:
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/4.0/"u003ecc by-sa 4.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
,
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
);
);
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175732%2fhow-to-increase-root-partition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
Don't know why, but after reimaging my sd card about 10 times, it finally decided to allocate root partition 29GB
add a comment
|
Don't know why, but after reimaging my sd card about 10 times, it finally decided to allocate root partition 29GB
add a comment
|
Don't know why, but after reimaging my sd card about 10 times, it finally decided to allocate root partition 29GB
Don't know why, but after reimaging my sd card about 10 times, it finally decided to allocate root partition 29GB
answered Sep 21 at 22:27
Sean Aidan HerbertSean Aidan Herbert
112 bronze badges
112 bronze badges
add a comment
|
add a comment
|
Thanks for contributing an answer to Ask Ubuntu!
- Please be sure to answer the question. Provide details and share your research!
But avoid …
- Asking for help, clarification, or responding to other answers.
- Making statements based on opinion; back them up with references or personal experience.
To learn more, see our tips on writing great answers.
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function ()
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2faskubuntu.com%2fquestions%2f1175732%2fhow-to-increase-root-partition%23new-answer', 'question_page');
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function ()
StackExchange.helpers.onClickDraftSave('#login-link');
);
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
It is probably possible to increase your root partition, but in order to help you, we need more information, particularly about the whole partition table and possible other partitions, that are not mounted, unallocated drive space and the location of the partitions. So please edit your original question to show the output of
sudo parted -ls
or the graphical output ofgparted
. The root partition is probably small because the image was designed for a smaller SD card (maybe 4 GB card), or because it is a live system. Seeing the whole partition table will help us answer that question too.– sudodus
Sep 21 at 19:19
1
The size of
/dev/root
does not match the size of the second partition, the ext4 partiiton. What image file name and link to where you downloaded from? Maybe there is some LVM structure. Please show also the output ofsudo lsblk -f
andsudo lsblk -m
– sudodus
Sep 21 at 19:37
1
Sorry, the output of
lsblk
does not add more information. Most of us here at AskUbuntu run Ubuntu in PC computers, and the architecture is different from that of Raspberry Pi. Maybe you have better luck asking and getting help via the link you provided in your question.– sudodus
Sep 21 at 19:43
1
Ok I'll ask there as well. But here is the link to the image: github.com/TheRemote/Ubuntu-Server-raspi4-unofficial/releases/…
– Sean Aidan Herbert
Sep 21 at 19:45
2
Possible duplicate of How to resize partitions?
– karel
Oct 2 at 10:48