LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer
User Name
Password
Linux - Embedded & Single-board computer This forum is for the discussion of Linux on both embedded devices and single-board computers (such as the Raspberry Pi, BeagleBoard and PandaBoard). Discussions involving Arduino, plug computers and other micro-controller like devices are also welcome.

Notices


Reply
  Search this Thread
Old 09-17-2018, 05:35 PM   #1
miccze
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 17

Rep: Reputation: Disabled
SD card capacity reduction on Raspberry PI 3B+ with Centos.


So i have 32GB SD card on Raspbery PI 3B+ with Centos 7 installed on it.
However, Linux doesnt see all the space!
Below df -h output:
Code:
[root@rpicent1 /]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/root       1.4G  1.2G  148M  90% /
devtmpfs        460M     0  460M   0% /dev
tmpfs           464M     0  464M   0% /dev/shm
tmpfs           464M   12M  452M   3% /run
tmpfs           464M     0  464M   0% /sys/fs/cgroup
/dev/mmcblk0p1  667M   43M  625M   7% /boot
tmpfs            93M     0   93M   0% /run/user/1000
And du -sh output:

Code:
[root@rpicent1 /]# du -sh
du: cannot access ‘./proc/5357/task/5357/fd/3’: No such file or directory
du: cannot access ‘./proc/5357/task/5357/fdinfo/3’: No such file or directory
du: cannot access ‘./proc/5357/fd/4’: No such file or directory
du: cannot access ‘./proc/5357/fdinfo/4’: No such file or directory
1.3G    .

So basically Linux sees 1,5 GB of space with 32GB sd card in it! I run into some space problems, so i cant move on without resolving it.
Any ideas what might be causing this issue?
 
Old 09-17-2018, 10:49 PM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,730

Rep: Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919Reputation: 5919
I have not tried CentOS on a Pi yet but according to the link below there is a resize tool available. By creating the /.rootfs-repartition file and rebooting the partition should be automatically resized. Let us know how it works.

touch /.rootfs-repartition
systemctl reboot

https://hobo.house/2016/03/03/instal...aspberry-pi-2/
 
Old 09-17-2018, 11:23 PM   #3
onebuck
Moderator
 
Registered: Jan 2005
Location: Central Florida 20 minutes from Disney World
Distribution: Slackware®
Posts: 13,925
Blog Entries: 44

Rep: Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159Reputation: 3159
Moderator response

Moved: This thread is more suitable in <Linux - Embedded & Single-board computer > and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 09-18-2018, 04:16 AM   #4
miccze
LQ Newbie
 
Registered: Sep 2018
Distribution: Centos
Posts: 17

Original Poster
Rep: Reputation: Disabled
Quote:
touch /.rootfs-repartition
systemctl reboot

https://hobo.house/2016/03/03/instal...aspberry-pi-2/
Actually it didn't work.
However, from there i was able to find below instruction which worked perfectly, though it's more manual work:
https://elinux.org/RPi_Resize_Flash_Partitions

Thanks michaelk for this hint!
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Repair SDXC card 128GB that showing 31MB capacity, without losing data cccc Linux - Hardware 7 06-30-2017 07:09 PM
LXer: How to install a Media Center with OSMC and CentOS on a Raspberry Pi 2 LXer Syndicated Linux News 0 10-20-2015 02:34 PM
Best capacity planning or capacity management tool decenter Linux - Software 1 03-27-2015 03:11 PM
LXer: Raspberry Pi B+, CentOS 7 and RHEL 5.11 LXer Syndicated Linux News 0 07-15-2014 11:41 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware > Linux - Embedded & Single-board computer

All times are GMT -5. The time now is 04:17 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration