WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Trouble getting resize2fs to work  (Read 3195 times)

Offline Kagetaze

  • Newbie
  • *
  • Posts: 2
Trouble getting resize2fs to work
« on: August 02, 2016, 08:32:20 AM »
Hello everyone!

First time using Tiny Core on my Raspberry Pi and I'm loving the idea. Although I consider myself a somewhat seasoned Linux user, I'm having troubling wrapping my head around how this all works and I was hoping to get some pointers into the right direction.

That having said, I have a RPi 3 that I'm using with a 4GB MicroSD card. I installed piCore-8.0beta4 although Linux box 4.4.15-piCore_v7+ shows up in the description.

That said, I'm trying to install Python and wanting to have it be persistencly on my SD card so it loads while booting.

I found some tutorials, but each and every one of them doesn't seem to get me anywhere. I believe I need to allocate some RAM for it to be installed and loaded, but no real idea how to get there.

My df-a outputs:

Code: [Select]
Filesystem                Size      Used Available Use% Mounted on
tmpfs                   833.0M      9.4M    823.6M   1% /
proc                         0         0         0   0% /proc
sysfs                        0         0         0   0% /sys
devpts                       0         0         0   0% /dev/pts
/dev/mmcblk0p2           10.1M      9.3M         0 100% /mnt/mmcblk0p2
/dev/loop1                1.9M      1.9M         0 100% /tmp/tcloop/openssh
/dev/loop6                1.1M      1.1M         0 100% /tmp/tcloop/openssl
/dev/loop0              512.0K    512.0K         0 100% /tmp/tcloop/sqlite3
/dev/loop2              116.0K    116.0K         0 100% /tmp/tcloop/readline
/dev/loop3              128.0K    128.0K         0 100% /tmp/tcloop/gdbm

Installing gave me:
tce-load -w -i python.tcz

Code: [Select]
Downloading: python.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
wget: can't open 'python.tcz': No space left on device
md5sum: python.tcz.md5.txt: No such file or directory
Error on python.tcz

or

Code: [Select]
tce-load -w -i python.tcz
python.tcz.dep OK
readline.tcz.dep OK
Downloading: sqlite3.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
sqlite3.tcz          100% |*********************************************|   400k  0:00:00 ETA
sqlite3.tcz: OK
Downloading: readline.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
readline.tcz         100% |*********************************************|   116k  0:00:00 ETA
readline.tcz: OK
Downloading: gdbm.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
gdbm.tcz             100% |*********************************************| 61440   0:00:00 ETA
gdbm.tcz: OK
Downloading: python.tcz
Connecting to repo.tinycorelinux.net (89.22.99.37:80)
python.tcz            10% |****                                         |  1022k  0:00:08 ETAw                                       get: short write
python.tcz: FAILED
md5sum: WARNING: 1 of 1 computed checksums did NOT match
Error on python.tcz
« Last Edit: August 02, 2016, 08:49:33 AM by Kagetaze »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Trouble getting resize2fs to work
« Reply #1 on: August 02, 2016, 09:53:38 AM »
Subject is about resizing, but in the post shown that no resize done.

As usual, read README  >:(
« Last Edit: August 02, 2016, 09:55:20 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Kagetaze

  • Newbie
  • *
  • Posts: 2
Re: Trouble getting resize2fs to work
« Reply #2 on: August 02, 2016, 10:32:18 AM »
I'm terribly sorry. I did read the README, apparently not as thorough though. My next question is related to the original topic and getting the resizing to work:

In the README it says that I have to delete the 2nd partition and resize it so that it will enough space for additional programs. However, this logically doesn't make any sense for me:
Quote
1) Start fdisk partitioning tool as root:

   sudo fdisk /dev/mmcblk0

   Now list partitions with 'p' command and write down the starting and
   ending cylinders of the second partition.

2) Delete second partition with 'd' than recreate it with 'n' command.
   Use the same starting cylinder as deleted had and provide end
   cylinder or size greater than deleted had having enough free space
   for Mounted Mode. When finished, exit fdisk with 'w' command. Now
   partition size increased but file system size is not yet changed.

Code: [Select]
Command (m for help): p

Disk /dev/mmcblk0: 3881 MB, 3881828352 bytes
3 heads, 8 sectors/track, 315904 cylinders
Units = cylinders of 24 * 512 = 12288 bytes

        Device Boot      Start         End      Blocks  Id System
/dev/mmcblk0p1             342        2902       30720   c Win95 FAT32 (LBA)
/dev/mmcblk0p2               1         341        4088  83 Linux

If I delete the 2nd partition (mmcblk0p2) I can only write 341 as the first partition starts from 342. This means I will never be able to create a bigger size? Am I missing something here?
« Last Edit: August 02, 2016, 10:34:21 AM by Kagetaze »

Offline bmarkus

  • Administrator
  • Hero Member
  • *****
  • Posts: 7183
    • My Community Forum
Re: Trouble getting resize2fs to work
« Reply #3 on: August 02, 2016, 11:39:54 AM »
Am I missing something here?

Yes. Read README.

Quote
2) Delete second partition with 'd' than recreate it with 'n' command.
   Use the same starting cylinder as deleted had and provide end
   cylinder or size greater than deleted had having enough free space
   for Mounted Mode. When finished, exit fdisk with 'w' command. Now
   partition size increased but file system size is not yet changed.

Creating a partition below 342 you are demaging boot.
« Last Edit: August 02, 2016, 11:41:58 AM by bmarkus »
Béla
Ham Radio callsign: HA5DI

"Amateur Radio: The First Technology-Based Social Network."

Offline Greg Erskine

  • Sr. Member
  • ****
  • Posts: 404
Re: Trouble getting resize2fs to work
« Reply #4 on: August 02, 2016, 08:10:41 PM »
hi Kagetaze,

Welcome. This is the normal piCore baptism! We have all been there.

BTW: piCore comes with micropython already installed.

regards
Greg