Forum
  • Search
  • Member List
  • Calendar
Hello There, Guest! Login Register — Login with Facebook

resize rootfs
Thank you for your donation

Post Reply 
 
Thread Rating:
  • 0 Votes - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Threaded Mode | Linear Mode
resize rootfs
25th Apr, 2013, 06:51 PM
Post: #1
hagayg Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
resize rootfs
I noticed i running low on disk space :

xbian@xbian ~ $ df -Bm
Filesystem 1M-blocks Used Available Use% Mounted on
rootfs 658M 623M 36M 95% /
/dev/mmcblk0p2 658M 623M 36M 95% /
tmpfs 38M 1M 38M 1% /run
tmpfs 5M 0M 5M 0% /run/lock
tmpfs 10M 0M 10M 0% /dev
tmpfs 75M 0M 75M 0% /run/shm
/dev/mmcblk0p1 34M 11M 24M 32% /boot

So i used xbian config menu to resize my partition to full sd card size (i got 4gb one).
After rebooting i got the same reulsts as shown before.

After little digging i found that my partition is indeed 4gb but the rootfs isn't :

Disk /dev/mmcblk0: 3973 MB, 3973054464 bytes
4 heads, 16 sectors/track, 121248 cylinders, total 7759872 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x000f06a6

Device Boot Start End Blocks Id System
/dev/mmcblk0p1 2048 71679 34816 c W95 FAT32 (LBA)
/dev/mmcblk0p2 71680 7759871 3844096 83 Linux


So tried to resize it using :

sudo resize2fs /dev/mmcblk0p2

and got :

resize2fs: Permission denied to resize filesystem

Other parameter told me the its in use and can be done.

Am i missing something ?

Thanks in advance.
Find all posts by this user
Quote this message in a reply
26th Apr, 2013, 02:56 AM
Post: #2
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: resize rootfs
You will need to resize the partition offline.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
26th Apr, 2013, 07:01 AM
Post: #3
Richdotward Offline
Registered
Posts: 33
Joined: Jan 2013
Reputation: 4
resize rootfs
(26th Apr, 2013 02:56 AM)f1vefour Wrote:  You will need to resize the partition offline.

You mean not connected to the internet ?

Rich
Find all posts by this user
Quote this message in a reply
26th Apr, 2013, 10:39 AM
Post: #4
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: resize rootfs
Sorry, I meant while not in use.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
26th Apr, 2013, 09:43 PM
Post: #5
Richdotward Offline
Registered
Posts: 33
Joined: Jan 2013
Reputation: 4
Re: resize rootfs
Thanks for info. Had similar problem the other day, resize2fs wouldn't work and had the online error message.

Did try unmounting on another laptop but still wouldn't work.

Thanks

Rich
Find all posts by this user
Quote this message in a reply
27th Apr, 2013, 10:11 AM
Post: #6
f1vefour Offline
Administrator
******
Posts: 1,342
Joined: Mar 2013
Reputation: 58
Re: resize rootfs
I always use gparted when available, works great.

Please read rules and do a search before you post! | FAQs | How to post log file? | Can't find an answer? Contact us.
Visit this user's website Find all posts by this user
Quote this message in a reply
27th Apr, 2013, 10:09 PM
Post: #7
mk01 Offline
Registered
Posts: 2,485
Joined: Mar 2013
Reputation: 209
RE: resize rootfs
(25th Apr, 2013 06:51 PM)hagayg Wrote:  resize2fs: Permission denied to resize filesystem

Other parameter told me the its in use and can be done.

Am i missing something ?

Thanks in advance.

I suppose xbian user doesn't has rights to sudo resize2fs.

You can always try "sudo -i" first - it will ask for xbian password again and login you as root.

Then re-try "resize2fs /dev/......."

mk

Please read rules and do a search before you post! . FAQs . How to post log file? . Looking for answers? Please start here
Find all posts by this user
Quote this message in a reply
28th Apr, 2013, 03:33 PM
Post: #8
hagayg Offline
Registered
Posts: 7
Joined: Apr 2013
Reputation: 0
RE: resize rootfs
Just reinstalled xbain and it started on the correct size.
Find all posts by this user
Quote this message in a reply
« Next Oldest | Next Newest »
Post Reply 


  • View a Printable Version
  • Send this Thread to a Friend
  • Subscribe to this thread
Forum Jump:

Current time: 12th May, 2025, 12:20 AM Powered By MyBB, © 2002-2025 MyBB Group.