WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

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

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: 30GB partition only allowing <1GB ?
« Reply #15 on: August 01, 2012, 12:10:58 PM »
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, 12:19:39 PM »
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, 12:27:08 PM »
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, 12:31:29 PM by mb0 »

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: 30GB partition only allowing <1GB ?
« Reply #18 on: August 01, 2012, 12:39:00 PM »
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, 12:45:28 PM »
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, 12:57:36 PM »
> 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, 01:05:46 PM »
"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, 01:53:15 PM »
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, 02:04:09 PM »
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: 11043
Re: 30GB partition only allowing <1GB ?
« Reply #24 on: August 01, 2012, 02:25:40 PM »
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, 05: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, 08: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: 11581
Re: 30GB partition only allowing <1GB ?
« Reply #27 on: August 01, 2012, 08: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, 08:53:45 PM by Rich »

Offline curaga

  • Administrator
  • Hero Member
  • *****
  • Posts: 11043
Re: 30GB partition only allowing <1GB ?
« Reply #28 on: August 02, 2012, 05: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, 11: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??