WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: 30GB partition only allowing <1GB ?  (Read 5084 times)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 30GB partition only allowing <1GB ?
« Reply #15 on: August 01, 2012, 09:10:58 AM »
It is possible to create a fs much smaller than the underlaying partition - rest of disk partition space will be unusable.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: 30GB partition only allowing <1GB ?
« Reply #16 on: August 01, 2012, 09:19:39 AM »
2 pages, and the output of df -h has yet to be posted.

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
Re: 30GB partition only allowing <1GB ?
« Reply #17 on: August 01, 2012, 09:27:08 AM »
nor requested. I guess you want that with sda2 mounted? ..and, the whole lot??

e:

Code: [Select]
Filesystem                Size      Used Available Use% Mounted on
rootfs                  222.8M     93.4M    129.4M  42% /
tmpfs                   123.8M         0    123.8M   0% /dev/shm
/dev/sda1                 7.3G    284.2M      7.1G   4% /mnt/sda1
/dev/loop0               12.4M     12.4M         0 100% /tmp/tcloop/perl5
... many /dev/loop all normal
/dev/loop120              1.1M      1.1M         0 100% /tmp/tcloop/alsa
/dev/sda2               965.1M    957.3M      7.7M  99% /mnt/sda2
« Last Edit: August 01, 2012, 09:31:29 AM by mb0 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: 30GB partition only allowing <1GB ?
« Reply #18 on: August 01, 2012, 09:39:00 AM »
Not requested?
You complain about the output of df but don't think to post it?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 30GB partition only allowing <1GB ?
« Reply #19 on: August 01, 2012, 09:45:28 AM »
If I were you, I'd copy files from sda2 to sda1 and then just format sda2 from scratch - preferably after first fixing the partition table.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
Re: 30GB partition only allowing <1GB ?
« Reply #20 on: August 01, 2012, 09:57:36 AM »
> preferably after first fixing the partition table

what /how?

for reference, not a problem to wipe sda2 (unlike sda1)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 30GB partition only allowing <1GB ?
« Reply #21 on: August 01, 2012, 10:05:46 AM »
"testdisk" is a good tool to fix partition tables.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: 30GB partition only allowing <1GB ?
« Reply #22 on: August 01, 2012, 10:53:15 AM »
If sda2 is an ext filesystem, why not run resize2fs?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 30GB partition only allowing <1GB ?
« Reply #23 on: August 01, 2012, 11:04:09 AM »
If sda2 is an ext filesystem, why not run resize2fs?

I had been considering suggesting that, but given all the [missing] evidence would consider it more reliable to format from scratch.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10969
Re: 30GB partition only allowing <1GB ?
« Reply #24 on: August 01, 2012, 11:25:40 AM »
resize2fs can't change inode count IIRC, which may be a problem.
The only barriers that can stop you are the ones you create yourself.

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
Re: 30GB partition only allowing <1GB ?
« Reply #25 on: August 01, 2012, 02:38:27 PM »
so i went through the testdisk procedure, required a restart so i did and now..
Code: [Select]
Syslinux 4.01
Error: no configuration file found
no default or UI configuration directive found!
boot:

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
Re: 30GB partition only allowing <1GB ?
« Reply #26 on: August 01, 2012, 05:28:32 PM »
soo.. is there anything i can enter at the boot prompt?

The deafening silence makes me think i'm probably screwed?

Offline Rich

  • Administrator
  • Hero Member
  • *****
  • Posts: 11256
Re: 30GB partition only allowing <1GB ?
« Reply #27 on: August 01, 2012, 05:38:39 PM »
Hi mb0
The error message makes it sound like just the config file for the bootloader is missing, though I suspect it may
be worse than that. My recommendation is that you boot the machine using a CD or a USB thumb drive. Then
mount sda1 and sda2, and check what is left of the directory structure.
« Last Edit: August 01, 2012, 05:53:45 PM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 10969
Re: 30GB partition only allowing <1GB ?
« Reply #28 on: August 02, 2012, 02:43:37 AM »
Yes, you likely just need to reinstall the bootloader from a live cd.
The only barriers that can stop you are the ones you create yourself.

Offline mb0

  • Jr. Member
  • **
  • Posts: 86
Re: 30GB partition only allowing <1GB ?
« Reply #29 on: August 02, 2012, 08:02:32 AM »
Well, that was weird..
my former /dev/sda2 became /dev/sda1  ..not so crazy..

/dev/sda2 however, was a partition that i had deleted *before* i repartitioned (ie before i ever started this post). And former-/dev/sda1 (you know, the one with all the useful stuff on) was nowhere.

So i started again. FFS...

so, that over with, what can i do before i invest all the time to redo everything, again, to make sure everything is in good shape??