Trying to scrub internal partitions...locked? SOLVED(ish)!

General discussion relating to the O2 Joggler, from the default O2 setup, to alternative operating systems and applications.
Post Reply
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Trying to scrub internal partitions...locked? SOLVED(ish)!

Post by offbeatdave »

I'm trying to remove all partitions on one of my Joggler's internal flash memory. However, when I try to do this in gparted via Ubuntu, even though the operations to delete the partitions complete successfully, when it refreshes, the partitions return (with mmcblk0p1 as ! unknown file system).

Am I missing something obvious here or the internal flash had it? If I try to format the first partition, the problem above still persists.

Any thoughts?
Last edited by offbeatdave on Wed Mar 07, 2012 5:29 pm, edited 1 time in total.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
joh
Posts: 18
Joined: Fri Feb 24, 2012 9:05 pm

Re: Trying to scrub internal partitions...appear to be locke

Post by joh »

Maybe you could try to delete the MBR and partition table with DD. Command should be

Code: Select all

dd if=/dev/zero of=/dev/mmcblk0 bs=512 count=1
After that please reboot or try to re-read the partition table with

Code: Select all

partprobe
The kernel has a cache of the partition table.

Never tried to wipe the internal storage with DD, but on all hard drives I know the dd command works. Use at your own risk.
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Trying to scrub internal partitions...appear to be locke

Post by offbeatdave »

So I tried the code above and got the output

Code: Select all

joggler@joggler:~$ sudo dd if=/dev/zero of=/dev/mmcblk0 bs=512 count=1
1+0 records in
1+0 records out
512 bytes (512 B) copied, 0.00335442 s, 153 kB/s
However,

Code: Select all

partprobe
gave no output whatsoever and the partitions are still there when I launch gparted.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Trying to scrub internal partitions...appear to be locke

Post by offbeatdave »

OK, sorted in a rather haphazard way via random googling and keeping fingers crossed.

I perhaps should have said that the reason for needing to do this was that over the last week, on this particular unit reflashing or any other restore method just would not work, even though they all went through the motions. I was starting to think that the internal flash was finished on this particular machine.

Anyway, figuring that I had nothing to lose, here is what I did:

To begin with I booted into Ubuntu - many times my saviour on Joggler projects - and telneted in via my laptop for easier typing of commands!

First I did

Code: Select all

sudo umount /dev/mmcblk0*
Then did

Code: Select all

sudo fdisk /dev/mmcblk0
This presented me with the following:
WARNING: DOS-compatible mode is deprecated. It's strongly recommended to switch off the mode (command 'c') and change display units to sectors (command 'u').
So I pressed the following

Code: Select all

c and u followed by d, n, p, enter enter and finally w.
When I went back into gparted, the whole device was now unallocated (which I previously hadn't been able to achieve), although it still wouldn't let me fix a partition table.

However, I thought I'd give the reflash tool another go. Once again, it went through the motions but, lo and behold, one the first attempt the Joggler fired up and booted straight into a nice clean stock OS! This proceedure might be useful as a last resort for those who appear unable to reflash their Joggler, even though the reflash tool appears to be running properly. I've lost count of how many times I'd tried it or used re-imaging via Ubuntu with no joy, but this worked first time. Use with caution though!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
cbredfred
Posts: 72
Joined: Fri Mar 04, 2011 11:22 am

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by cbredfred »

Well done!

I haven't got a clue what any of that means or does, but I hope Roobarb see's it because it might be the answer for all the Jogglers that the reflash tool doesn't fix. Two of my five Jogglers are currently candidates.
User avatar
joh
Posts: 18
Joined: Fri Feb 24, 2012 9:05 pm

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by joh »

thanks for the info, I thought you already unmounted the partitions /dev/mmcblk0*. Modern Linux distribution auto mount all file systems, which can be annoying. The dd command normally works if not I overwrite everything with zeros.
User avatar
Mevi
Posts: 774
Joined: Tue Oct 25, 2011 4:39 pm

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by Mevi »

I had the same problem wiping the internal flash from windows. Using minitools, just deleting the partitions didn't work... They kept coming back! Wiping the drive by writing zeros did the trick. Since doing that I've been unable to run the reflash tool on that Joggler.
I've Got The Moves Like Joggler

Windows XP Professional SP3 plus Tablet PC for O2 Joggler
http://www.jogglerwiki.com/forum/viewto ... ?f=2&t=305

How to build your own Windows XP for the Joggler
http://www.jogglerwiki.com/wiki/WindowsXP
gegs
Posts: 1146
Joined: Fri Mar 04, 2011 3:22 pm
Location: Edinburgh

Re: Trying to scrub internal partitions...appear to be locke

Post by gegs »

offbeatdave wrote:...So I pressed the following

Code: Select all

c and u followed by d, n, p, enter enter and finally w.
Is this really a line of code?
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by offbeatdave »

Oops! If only tech responded to such things! It'd be great wouldn't it!
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
cbredfred
Posts: 72
Joined: Fri Mar 04, 2011 11:22 am

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by cbredfred »

offbeatdave,

Are you saying that the fdisk command presents you with the ability to then issue the other commands such as "C" and "U" etc?
I'm not very clued in to Linux and with Mevi's tales of doom and gloom such as never being able to run the reflash tool, I'd like to know a bit more about what I'm doing first.
I believe the first rule of First Aid is "Never make the patient worse"...of course that's no where near as important as "Never let anyone take photos of you snogging a doll on the First Aid classroom floor!" :D
Anyway, what I was trying to say is, I don't want to make my Joggler any worse.
User avatar
Mevi
Posts: 774
Joined: Tue Oct 25, 2011 4:39 pm

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by Mevi »

cbredfred wrote: "Never let anyone take photos of you snogging a doll on the First Aid classroom floor!" :D
No tongues. :D
I've Got The Moves Like Joggler

Windows XP Professional SP3 plus Tablet PC for O2 Joggler
http://www.jogglerwiki.com/forum/viewto ... ?f=2&t=305

How to build your own Windows XP for the Joggler
http://www.jogglerwiki.com/wiki/WindowsXP
cbredfred
Posts: 72
Joined: Fri Mar 04, 2011 11:22 am

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by cbredfred »

Flibble
User avatar
offbeatdave
Posts: 1050
Joined: Wed Mar 09, 2011 10:43 pm

Re: Trying to scrub internal partitions...locked? SOLVED(ish

Post by offbeatdave »

cbredfred wrote:offbeatdave,

Are you saying that the fdisk command presents you with the ability to then issue the other commands such as "C" and "U" etc?
I'm not very clued in to Linux and with Mevi's tales of doom and gloom such as never being able to run the reflash tool, I'd like to know a bit more about what I'm doing first.
I believe the first rule of First Aid is "Never make the patient worse"...of course that's no where near as important as "Never let anyone take photos of you snogging a doll on the First Aid classroom floor!" :D
Anyway, what I was trying to say is, I don't want to make my Joggler any worse.
Yeah, they're options from fdisk. no idea what it does but it worked. My joggler was knackered before i did this so it was a nothing to lose job.
"EVERY DAY I'M JOGGLERING!"
Jogglering since Dec '09;
Tinkering with Jogglers since Feb '10 thanks to PMJ, Jogtools, PnP & sqpOS;
Gave something back Feb '12 to Apr '14 with PnP Mk II & PnP III;
Finally 'completed' PnP III Apr '15!
Post Reply