WelcomeWelcome | FAQFAQ | DownloadsDownloads | WikiWiki

Author Topic: Which extension can be used for the repair of a USB-MBR ?  (Read 5103 times)

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Which extension can be used for the repair of a USB-MBR ?
« on: September 09, 2012, 01:21:15 PM »
.. instead of starting a UBCD or others.
(The USB is a Memory stick)
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #1 on: September 09, 2012, 01:25:07 PM »
You don't 'repair' an MBR.
Just install the boot loader of your choice.
Read the instructions for the boot loader, or use google.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #2 on: September 09, 2012, 01:52:29 PM »
Sorry, I dont understand.
A colleagues gave me a USB memory.
With connection to the PC, it show a "sde" in dmesg.
But it cannot boot with the mntools of TinyCore.
So, something is wrong. The partition array? How to repair it?
No bootloader is on that USB.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #3 on: September 09, 2012, 02:00:34 PM »
Have a look at it with testdisk.
If you don't care about existing data, you could use gparted to partition.
"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: Which extension can be used for the repair of a USB-MBR ?
« Reply #4 on: September 09, 2012, 02:03:37 PM »
mnttools does not 'boot' anything.
It sounds like your USB device is not partitioned.
mnttool expects all external drives to be partitioned.
You can try manually mounting it.
mkdir /mnt/sde
mount /dev/sde /mnt/sde
If that does not work, the device is not mountable with any installed filesystem.

Offline floppy

  • Hero Member
  • *****
  • Posts: 577
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #5 on: September 10, 2012, 11:36:26 AM »
it was readable and partitionned.
After connecting and disconnecting from a Windows PC, it cannot be read anymore.
I will use testdisk.
AMD K6-IIIATZ 550MHz MB DFI K6xv3/+66
P4 HP DC7100 3GB 3GHz
Samsung NC10 boot from SD card port (via USB reader)
.. all TinyCore proofed

Offline gerald_clark

  • TinyCore Moderator
  • Hero Member
  • *****
  • Posts: 4254
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #6 on: September 10, 2012, 11:39:13 AM »
USB flash drives die suddenly without warning.
If it is no longer accessible by Linux or Windows, it may have died.

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #7 on: September 10, 2012, 06:20:19 PM »
USB flash drives die suddenly without warning.
If it is no longer accessible by Linux or Windows, it may have died.
Also, if you're not in the habit of doing "Safely Eject Hardware" or the equivalent AND waiting for the LED to stop blinking (I normally count 3-5 after the last blink for good measure), it may have "lost" the first block.  NAND block size is often ~1MiB.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #8 on: September 10, 2012, 06:35:18 PM »
Can "sync" and "umount" before unplugging help to prevent such?
"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: Which extension can be used for the repair of a USB-MBR ?
« Reply #9 on: September 10, 2012, 07:08:12 PM »
umount calls sync. Just make sure to umount.  Umount will return when all data is written.

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #10 on: September 16, 2012, 04:24:29 AM »
umount calls sync. Just make sure to umount.  Umount will return when all data is written.
HOWEVER, you still need to wait for the flash drive to show as ready after umount completes.  One of the lies of flash media.  The media system will report to the OS that it's done when it's not.

aus9

  • Guest
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #11 on: September 17, 2012, 01:41:48 AM »
on the dangers of usb, here is a suggestion

pretend you copy a large file to stick, on my system, there is a pause, then I look for the flashing light on the usb stick,
when flashing stops I know file is written, then it should be safe to umount.

Offline genec

  • Full Member
  • ***
  • Posts: 240
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #12 on: September 17, 2012, 02:42:49 AM »
on the dangers of usb, here is a suggestion

pretend you copy a large file to stick, on my system, there is a pause, then I look for the flashing light on the usb stick,
when flashing stops I know file is written, then it should be safe to umount.
No need.  It's quite safe if you umount then watch for it to stop.  umount may still write to metadata after dumping your data, including marking the file system as cleanly unmounted.

Offline tinypoodle

  • Hero Member
  • *****
  • Posts: 3857
Re: Which extension can be used for the repair of a USB-MBR ?
« Reply #13 on: September 17, 2012, 02:14:44 PM »
umount calls sync. Just make sure to umount.  Umount will return when all data is written.
HOWEVER, you still need to wait for the flash drive to show as ready after umount completes.  One of the lies of flash media.  The media system will report to the OS that it's done when it's not.

Good to know that, thank you :)
"Software gets slower faster than hardware gets faster." Niklaus Wirth - A Plea for Lean Software (1995)