LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-06-2012, 03:48 PM   #1
Cznielsen
LQ Newbie
 
Registered: Dec 2012
Posts: 10

Rep: Reputation: Disabled
NEED IMMEDIATE HELP - Briocked my Macbook Pro trying to install Linux Backtrack 5


As in title.

I tried to partition my harddrive with bootcamp, went pretty well. Used rEFIt on my mac to switch between the systems once I got them working.

Tried to install Backtrack 5 R3 with a LiveCD, went mostly smooth except an error in the end claiming that Grub 2 could not be installed or something like that.

After the restart I can't boot into either Backtrack or OSX. I plop in the OSX install cd and try to see if I can save something. The patitions cannot be formatted. I mess around a bit with the disk utility tool and with restarting with both the OSX DVD and the Backtrack LIVECD. I then notice that my harddrive (The main partition that was there when I got my mac), has been replaced with some other one named disk01 or something. I made sure that I DID NOT format my main drive.

I have been searching everywhere on the internet, but can't seem to find a solution. Nothing works. (Tried all the safe boot bullshit, Don't know shit about Linux AT ALL.) Basically I've given up on getting my old mac back, and am now focusing on saving my School data if possible (2½ years of IMPORTANT NOTES i need for my finals)

My only possible idea left, is taking out the hard drive and putting it into my desktop to see if I can salvage any data. If not I'm just going to do a fresh reinstall of OSX and cry myself to sleep.


Is there anything you can help me do? If someone can make me get it as it used to be, I will be willing to pay you some over paypal.


I know I'm an idiot for not taking backups, but please help me.

Sincerely

an idiot.


By the way, running snow leopard.
 
Old 12-06-2012, 04:10 PM   #2
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Please don't tell us that you need immediate help, if your data were important you would have made backups.

Could you please boot a Linux Live-CD, open a terminal and post the output of
Code:
fdisk -l
Markus
 
1 members found this post helpful.
Old 12-06-2012, 04:33 PM   #3
Cznielsen
LQ Newbie
 
Registered: Dec 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Please don't tell us that you need immediate help, if your data were important you would have made backups.

Could you please boot a Linux Live-CD, open a terminal and post the output of
Code:
fdisk -l
Markus
I actually had most of them backed up, but they were lost when my roommate formatted our hard drive and forgot to tell me.



I booted with a mint livecd, "fdisk -1" is not a valid command it says.
 
Old 12-06-2012, 04:35 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
You can try Testdisk to mount your MacOS partition, if that doesn't work out Photorec may be able to recover your data.
But in the first place please post the information markush has asked for and do not
Quote:
I mess around a bit with the disk utility tool
unless you know exactly what you are doing.

Offtopic sidenote:
Quote:
Tried to install Backtrack 5 R3
Quote:
Don't know shit about Linux AT ALL.
If you are new to Linux Backtrack is not the right distro for you, or as the Backtrack developers say it:
Quote:
BackTrack is a highly specialized distro, where a lot of normal tasks are not done automatically for you as they are in a mainstream distro.
Our best advice if you wish to start off using linux with BackTrack as your first linux operating system, is don't.
Start off by downloading a copy of Kubuntu (as it is a similar base operating system to BackTrack) boot into that and force yourself to do everything you are used to doing on a daily basis using that, preferably spending most of your time using the command line tools. When and only when you can perform all of those daily tasks without having to look-up the commands should you move to BackTrack.
Please don't take this as us saying you shouldn't use BackTrack, take it as friendly advice that you are letting yourself in for a whole world of pain and frustration if you are not fully comfortable performing administration of your own linux machine before you start with Backtrack.
 
1 members found this post helpful.
Old 12-06-2012, 04:41 PM   #5
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by Cznielsen View Post
I actually had most of them backed up, but they were lost when my roommate formatted our hard drive and forgot to tell me.



I booted with a mint livecd, "fdisk -1" is not a valid command it says.
that should be a lower case L, not the number one.
 
Old 12-06-2012, 04:43 PM   #6
Cznielsen
LQ Newbie
 
Registered: Dec 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Disk /dev/sda: 500.1 GB, 500107862016 bytes
255 heads, 63 sectors/track, 60801 cylinders, total 976773168 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00001208

Device Boot Start End Blocks Id System
/dev/sda1 * 1 976773167 488386583+ af HFS / HFS+
If I do "fdisk -l" (small L) then is shows this, I hope this was what you were looking for.

When I look up the hard drive in cinnamon, there's a HDD called "500GB Hard Disk DISK0S3" and one called "File System". The DISK0S3 one is empty while the other one has some linux related stuff in I think.
 
Old 12-06-2012, 05:19 PM   #7
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Quote:
Originally Posted by Cznielsen View Post
Code:
Device Boot Start End Blocks Id System
 /dev/sda1 * 1 976773167 488386583+ af HFS / HFS+
Well that one is HFS* formatted so you should be able to try and open it:
Code:
sudo mkdir /mnt/temp
sudo mount /dev/sda1 -t auto /mnt/temp -o ro
 
Old 12-06-2012, 07:34 PM   #8
Cznielsen
LQ Newbie
 
Registered: Dec 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
I was able to recover most of my documents with Photorec by putting my mac's HDD inside my desktop. Thanks everyone!
 
Old 12-07-2012, 01:13 AM   #9
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Since there is only one HFS partition on the disk, I doubt that it had been really partitioned or formatted, probably you've only damaged the bootloader.

Markus
 
Old 12-07-2012, 04:53 AM   #10
Cznielsen
LQ Newbie
 
Registered: Dec 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by markush View Post
Since there is only one HFS partition on the disk, I doubt that it had been really partitioned or formatted, probably you've only damaged the bootloader.

Markus
Would there be any way to fix the bootloader?

Last edited by Cznielsen; 12-07-2012 at 05:08 AM.
 
Old 12-07-2012, 05:10 AM   #11
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Yes, probably with the install-CD of the MAC. But I'm not familiar with MAC.

Explanation: The bootloader is installed into a special segment at the "start" of the harddisk, called bootsector. There it is called from the BIOS when the system starts. The typical Linux bootloader, mostly grub, can when called from the BIOS start several operatingsystems (from which you one select at boottime). I guess (but without any warranty) that your unlucky Backtrackinstallation only has tried to install the bootloader, which means that only the so called bootsector (MBR=MasterBootRecord) has been overwritten.

When one boots a Windows-install-CD one has the option (in rescue mode) to "repair the bootsector", you should use google and find out if there is a similar option for your mac-install-CD.

Note: You cannot damage your data as long as you only alter the MBR or the partitiontable. BUT the partitiontable is most important! do yourself a favor and make a printed copy of it!!!

Markus
 
Old 12-07-2012, 05:34 AM   #12
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
It is a Mac. IIRC it uses GPT and EFI instead of the old MBR. But I am also not familiar with that, may be the install-CD has a repair option, maybe not.
 
1 members found this post helpful.
Old 12-07-2012, 07:31 AM   #13
Cznielsen
LQ Newbie
 
Registered: Dec 2012
Posts: 10

Original Poster
Rep: Reputation: Disabled
Thanks for all the help so far,

I'm currently still trying to save all my documents with testdisk, but I know for a fact that the snow leopard OSX dvd does not contain a boot repair option when OSX is not installed. Only Mountain lion has it as a feature currently.

I figured I would try to burn GParted & rEFInd onto 2 cd's, and then try and see if I could get my laptop somewhere with those, but as I'm currently using my DVD drive sata cable to connect the laptop hard drive, I can't burn anything right now.

I also want to try what I learnt from these two links and see if I can't get to resolve my problem that way.

http://hints.macworld.com/article.ph...91111185717745

https://discussions.apple.com/thread...art=0&tstart=0

EDIT:

Am also currently scanning with the program "Active partition recovery for windows", about half-way through the scan, this is what it found so far (whatever all those small partitions mean, I have no clue)

http://i.imgur.com/Sk7X3.jpg


Also does somebody know why the new hard drive doesn't show up in Windows Explorer? When I plugged it in, it was successfully found by Windows, and the drivers were installed without any problems. However there's still no way to access it as my other HDD.

Last edited by Cznielsen; 12-07-2012 at 07:44 AM.
 
Old 12-07-2012, 08:23 AM   #14
lleb
Senior Member
 
Registered: Dec 2005
Location: Florida
Distribution: CentOS/Fedora/Pop!_OS
Posts: 2,983

Rep: Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551Reputation: 551
Quote:
Originally Posted by Cznielsen View Post
If I do "fdisk -l" (small L) then is shows this, I hope this was what you were looking for.

When I look up the hard drive in cinnamon, there's a HDD called "500GB Hard Disk DISK0S3" and one called "File System". The DISK0S3 one is empty while the other one has some linux related stuff in I think.
yes the lower case L at the end of fdisk tells fdisk to list all of the drives and their partitions along with the type of format on the partitions.
 
Old 12-07-2012, 08:43 AM   #15
markush
Senior Member
 
Registered: Apr 2007
Location: Germany
Distribution: Slackware
Posts: 3,979

Rep: Reputation: Disabled
Quote:
Originally Posted by Cznielsen View Post
...
Am also currently scanning with the program "Active partition recovery for windows", about half-way through the scan, this is what it found so far (whatever all those small partitions mean, I have no clue)

http://i.imgur.com/Sk7X3.jpg
are you sure that it is useful to fiddle with Windows tools on a Mac?

Quote:
Also does somebody know why the new hard drive doesn't show up in Windows Explorer? When I plugged it in, it was successfully found by Windows, and the drivers were installed without any problems. However there's still no way to access it as my other HDD.
I don't know how about Mac, but Windows cannot read Linux-filesystems by default.

Markus
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
NEED IMMEDIATE HELP - Briocked my Macbook Pro trying to install Linux Backtrack 5 Cznielsen Linux - Software 3 12-07-2012 02:38 AM
BackTrack 5 r3 MacBook Pro midway Linux - Newbie 7 08-30-2012 07:48 PM
Cannot boot Linux Install/live discs on Macbook pro. spicyed Linux - Laptop and Netbook 8 09-24-2011 05:17 PM
A Linux noob trying to Install Wolvix Hunter 1.1.0 on MacBook Pro...but can't. Help? Aniro Linux - Laptop and Netbook 3 11-22-2010 12:31 AM
Linux on a macbook/macbook pro... any experiences/problems, or is it even necessary? enigma_0Z Linux - Laptop and Netbook 13 09-14-2007 10:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:56 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration