WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: loading certain extensions  (Read 10509 times)

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: loading certain extensions
« Reply #15 on: March 23, 2013, 06:06:01 PM »
Which filesystem types does drive in question feature?

300+Mb FAT32 partition - this contains my bootloader and wifi stuff from when i installed it from windows
1Gb Linux swap partition
5-6Gb EXT4 partition

Offline coreplayer2

  • Hero Member
  • *****
  • Posts: 3020
Re: loading certain extensions
« Reply #16 on: March 23, 2013, 06:24:52 PM »
I wonder,  why use a swap partition on a USB ??    surely performance would be pitiful ?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: loading certain extensions
« Reply #17 on: March 23, 2013, 06:26:41 PM »
Boot with code "base".
In case you need extensions in order to connect to net, manually mount storage and copy extensions to /tmp/tce/optional, then umount again.

Code: [Select]
tce-load -wi e2fsprogs.tcz
tce-load -wi dosfstools.tcz
e2fsck -vc -C 0 /dev/sdxN  #on ext4
dosfsck -vVrft /dev/sdxN  #on vfat
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: loading certain extensions
« Reply #18 on: March 23, 2013, 06:49:00 PM »
Additionally:

Boot with code "noswap".

Code: [Select]
badblocks -svw /dev/sdxN #on swap partition
Be careful to select swap partition only with this, as it is erasing data!
"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: loading certain extensions
« Reply #19 on: March 23, 2013, 07:09:22 PM »
Swap on a flaky flash drive is a disaster waiting to happen.

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: loading certain extensions
« Reply #20 on: March 23, 2013, 07:54:14 PM »
wow ok, i thought swap was a good thing :-/.

Instead of doing all that, would it eliminate the problem to just delete the swap partition and resize my ext4? (as this is what i will eventually end up doing after those comments lol).

If not will it be better to do before or after the repartitioning?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: loading certain extensions
« Reply #21 on: March 23, 2013, 08:31:53 PM »
Sure a coup de grace could be considered eliminating a problem...

And partitioning when either corrupted file systems or faulty hardware is involved might result in a coup de grace.

If you have any valuable data on that drive, it might be a good idea to rescue it first, and then to do all the checks as already mentioned and see what they show, before using the drive in any other way.

And please re-read Reply #10.
« Last Edit: March 23, 2013, 08:34:04 PM by tinypoodle »
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: loading certain extensions
« Reply #22 on: March 24, 2013, 09:31:18 AM »
hi tinypoodle.

I am doing as prescribed, looks like it will take a while for the ext4. probably a couple of hours. I dont understand what i have to do when it is finished - i take it its not going to fix anything while its unmounted/read-only mode. how do i fix any bad blocks when its done?

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: loading certain extensions
« Reply #23 on: March 24, 2013, 11:18:52 AM »
hi tinypoodle.

I am doing as prescribed, looks like it will take a while for the ext4. probably a couple of hours.
Correct

Quote
I dont understand what i have to do when it is finished

Depending on errors found (if any), you should either get prompted or informed by dosfsck and e2fsck.
Not sure about running badblocks directly, but no data to lose on swap area, at worst it could require a "mkswap" again in the end.

Quote
take it its not going to fix anything while its unmounted/read-only mode. how do i fix any bad blocks when its done?

Oh yes, these are read-write repair options, that's exactly why the filesystems must not be mounted.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: loading certain extensions
« Reply #24 on: March 25, 2013, 10:44:44 AM »
OK, I did all that, but still have issues with my USB 'offlining'. here is the link to my DMESG output: http://pastebin.com/RQqbiUpB . It just seems to happen for no specific reason..


Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: loading certain extensions
« Reply #25 on: March 25, 2013, 11:01:14 AM »
As you were told earlier. I/O errors.
Replace that flash drive.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: loading certain extensions
« Reply #26 on: March 25, 2013, 11:28:24 AM »
OK, I did all that

Well, did you get any output?

Quote
EXT4-fs (sda5): warning: maximal mount count reached, running e2fsck is recommended

EXT4-fs (sda5): recovery complete

That shouldn't show after having run e2fsck.
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)

Offline jackarius86

  • Newbie
  • *
  • Posts: 31
Re: loading certain extensions
« Reply #27 on: March 25, 2013, 11:33:01 AM »
i did get output but didnt write any of it down, i remember reading the number of bad blocks and it said 0 which is vivid for me as i remember it confusing the hell out of me as i was expecting to see that loads of blocks were bad.. Think i just need a new usb, the annoying thing is that this one works fine for the boot procedure, but then just lets me down when im in the middle of trying to do stuff

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: loading certain extensions
« Reply #28 on: March 25, 2013, 11:38:40 AM »
If there is any data on this device which you want to salvage, I suggest you don't connect it again except for the purpose of data rescue, and then use boot codes "base" and "noswap" and mount read-only.
"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: loading certain extensions
« Reply #29 on: March 25, 2013, 11:43:55 AM »
When USB flash drives fail they often become suddenly and completely inaccessible by any means.