![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Hello, Unregistered You are browsing a READ only archive of the main support categories pre 4/21/2008. You will not be able to post or reply any threads in this section.
|
|
Dell Ubuntu Support Got a Dell powered by Ubuntu? Or thinking about getting one? Discuss it here. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 3
|
Dell MediaDirect destroys partitions?!
I've found a few threads on this already, but nothing that answers the question conclusively. A couple of hours ago I accidentally pressed the MediaDirect button on my laptop (Inspiron 640m), and when I tried to boot up the next time I got a GRUB "E 17" error and the system won't boot. I tried using the Ubuntu 7.04 live cd to check things out, but it has me even more confused. Something seems to be terribly wrong with my hard drive - I can't even mount my linux partition from the live cd.
Ideally I would like to get the system running again, but I can settle for figuring out how to mount my linux partition so that I don't lose my files. gparted is (extremely) unhelpful: it claims /dev/sda is not partitioned (149.05 GiB unallocated or some such) Output from `fdisk -l`: Code:
Warning: ignoring extra data in partition table 5 Warning: ignoring extra data in partition table 5 Warning: ignoring extra data in partition table 5 Disk /dev/sda: 160.0 GB, 160041885696 bytes 255 heads, 63 sectors/track, 19457 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Device Boot Start End Blocks Id System /dev/sda1 * 18746 19006 2096451 c W95 FAT32 (LBA) /dev/sda2 7 4087 32780632+ 7 HPFS/NTFS /dev/sda3 4088 19006 119836867+ f W95 Ext'd (LBA) /dev/sda4 19007 19457 3622657+ db CP/M / CTOS / ... /dev/sda5 ? 43857 118984 603455785 44 Unknown Code:
mount: wrong fs type, bad option, bad superblock on /dev/sda5,
missing codepage or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
|
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2007
Location: Toronto
Beans: 32
Ubuntu 8.04 Hardy Heron
|
Re: Dell MediaDirect destroys partitions?!
Dell MediaDirect does have a habit of destroying partitions. There is only one way (that I know of) that will possibly allow you to save your data.
Press the MediaDirect button again to boot up. If you are incredibly lucky, it will revert the partitions back to the way they were. If not, you will have to hope that you can get lucky with mounting it. To prevent MediaDirect from causing problems again, you will need to do a low-level format (a format that ignores the hard disk controller onboard the hard drive) to erase the hidden MediaDirect partition. The command to do this is the following: HUGE WARNING!!! This will erase ALL DATA on your hard drive!! Be absolutely sure you want this before entering this command!! dd if=/dev/zero of=/dev/sda After entering that command, pressing the MediaDirect button to boot up will show a splashscreen, then cut to GRUB. |
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Jun 2007
Beans: 71
|
Re: Dell MediaDirect destroys partitions?!
For a better understanding of how Media Direct works take a look at:
http://www.goodells.net/dellrestore/mediadirect.htm If you boot form the LiveCd you may be able to repair/restore GRUB. Media Direct is stashed on a hidden partition that normal drive commands don't even list. If you really want it gone you have to reformat the disk. You can set it up dual boot using the Media Direct button is you want. Take a look at: http://forum.notebookreview.com/arch.../t-180795.html |
|
|
|
|
|
#4 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 3
|
Re: Dell MediaDirect destroys partitions?!
Unfortunately, pressing the MediaDirect button again doesn't fix anything. And I would rather not zero my drive if I can avoid it. I really need the data that was on there.
So if there's no way to store the hard drive to a sane state, can anyone tell me how to rescue a partition? Is there some way to use dd_rescue or similar? Thanks |
|
|
|
|
|
#5 |
|
Gee! These Aren't Roasted!
![]() |
I have try this allready
I had reinstall al y system, I only have ubuntu, I don't want a dual boot. I'm afraid of pressing this key an other time.What is the solution? |
|
|
|
|
|
#6 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2007
Location: Toronto
Beans: 32
Ubuntu 8.04 Hardy Heron
|
Re: Dell MediaDirect destroys partitions?!
atlas95, if you want to prevent the MediaDirect button from causing problems again, you will need to zero your drive. This will delete ALL OF THE DATA on it. The command can be found in my previous post in this thread.
|
|
|
|
|
|
#7 |
|
5 Cups of Ubuntu
![]() Join Date: Jul 2006
Beans: 28
|
Re: Dell MediaDirect destroys partitions?!
From the live CD, try installing and running testdisk. I used it before to recover my /home partition after the winxp installer decided to erase it.
I honestly can't remember how to use it, but the wiki ( http://www.cgsecurity.org/wiki/TestDisk ) was extremely helpful. It might allow you to recover your lost data, so you can nuke media direct. |
|
|
|
|
|
#8 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 3
|
Re: Dell MediaDirect destroys partitions?!
testdisk worked amazingly well. I couldn't fix my old install, but I saved all of my data. Thanks!
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Dec 2007
Beans: 6
|
I found a fix for the Dell Self-destruct-direct (MediaDirect) button problem.
A little background info might be in order though. What the Dell MediaDirect button (next to the power button and has a house icon on it similar to an internet browsers "Home" button) does when the hard drive is partitioned in a way that it does not expect (aka, linux installed) it rewrites the partition table that it thinks it should have. Your partition table is essentially like the table of contents pages in a book with 100 billion pages, without it your screwed. What we're going to do here is offer a way to disable the button if you don't care about the data on the drive (like right after a fresh install) OR a way to recover your partition table with a nifty program called testdisk. Plan A - Disable Destruct Button You can low-level format your hard drive to permanently remove the danger the button poses to your future data, because you _will_ loose ALL data currently on your drive. Issue the following command from a live CD/DVD booted system. ****WARNING USE ONLY FROM LIVE CD/DVD****** ****WARNING WILL DESTORY ALL DATA ON DISK******* Code:
sudo dd if=/dev/zero of=/dev/sda The above came from Skuzniak here Plan B - RECOVER YOUR DATA. If you have pressed the dreaded MediaDirect button and now have a very expensive paper weight for a laptop, FEAR NOT! testdisk to the rescue! 1) Boot up your live CD/DVD (like the one you used to install from). 2) Copy the additional repositories to your /etc/apt/sources.list file on your live CD/DVD session. The live CD isn't mean to install packages/programs to since it is erased when your reboot, however, if needed you can install a small amount of extra data. Like repair utilities. You can find instructions on how to do this HERE. 3) Issue the following command to update your repository list after you changed your sources.list file and also install the precious data recovery utility "testdisk", as well as run testdisk after it's installed creating a testdisk.log file of all it's actions in the directory you issue the following command from. Code:
sudo apt-get update && sudo apt-get install testdisk && sudo testdisk /log /dev/hda (the live CD virtual drive) and /dev/sda (your laptop hard drive) To "Proceed", tap the "Enter/Return" key when you've selected the appropriate hard drive. 5) Tap the "Enter/Return" key again on the next screen to select "Intel/PC" partition type. 6) Tap the "Enter/Return" key again on the next screen to "Analyse" (spelled the way it is in the program) your hard disk and search for your lost partitions. 7) This screen shows the screwed up partition table.. just tap the "Enter/Return" key again to "Proceed" Code:
* Linux 0 1 1 18752 254 63 301266882 L Linux Swap 18753 0 1 19456 254 63 11309760 9) Now tap the right arrow key twice and tap the "Enter/Return" key to write the recovered partition table. Confirm it by taping the "Y" key and then the "Enter/Return" key. 10) Reboot your computer and take the live CD/DVD out. NOTE: I had to do this twice for it to work for some reason, but after that, my precious Kubuntu booted up normal just like it used to without one file missing! THANK YOU NICOLAE and PSEUDOMANCER! |
|
|
|
|
|
#10 |
|
5 Cups of Ubuntu
![]() Join Date: Jun 2007
Beans: 25
|
Re: Dell MediaDirect destroys partitions?!
Heres something to try before going through all this reformat - format hassle.
So you've pressed the media direct button and get grub 17? Turn it off and press it again. Oh, it still doesn't boot? Turn it off and press it again. Voila! Working system. Tested and verified. ![]() |
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|