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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
07-05-2003, 10:20 AM
|
#1
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Rep:
|
Tell me all his data is not lost!
I need help. I installed RedHat 9 to a brand new hard drive on my friends computer. It was fresh, right out of the box. It is connected to the same ribbon cable as another 40GB hdd, his Windows drive, with all his data. The Windows hdd is master; the Linux hdd is slave.
We changed cmos to boot to hdd1 (Linux) rather than hdd0 (Windows) and started with the CD in the drive. When it came to partitioning, I didn't select Disk Druid, but just hit enter. I got in a hurry, and didn't disconnect the ribbon cable from the Windows hdd.
Now, he says he can only boot to Linux, even after changing the boot order in cmos to hdd0. The following is from his hardware browser, which I though would be the easiest way to see it.
DEVICE START END Mb Type
/dev/hda
hda1 1 13 102Mb ext3
hda2 14 5005 39158Mb ext3
/dev/hdb
hdb1 1 32 251 Linux-swap
33 4865 37911 Free space
Any help would be appreciated. If I have hosed his hdd, I hosed it. If it can be recovered, we will.
TIA
|
|
|
07-05-2003, 10:31 AM
|
#2
|
Moderator
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417
|
yep i'd say that was well and truly gone forever.... both drives have clearly been repartitioned... sorry to break it to you..
|
|
|
07-05-2003, 10:44 AM
|
#3
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Original Poster
Rep:
|
Thanks Chris.
I was hoping you'd be one to post.
When doing the install over, do you suggest installing each OS with only that hdd connected to the mobo and changing the boot order in cmos to reboot? Or installing Windoze first and then Linux and install the boot loader to hda and let Linux be the default OS and have Windows listed on the drive?
How and what do you suggest, please.
|
|
|
07-05-2003, 06:51 PM
|
#4
|
Member
Registered: Apr 2003
Location: boston
Distribution: ubuntu debian redhat fedora
Posts: 108
Rep:
|
personaly i find it easiest to have windows on the comp already and let redhat's install program put a boot loader on the first hd. just make sure to look at the partition table before writing it to the disk. if you wipe the table off the linux drive, redhat has an option to just install in "free space". that's worked for me too.
|
|
|
07-05-2003, 07:08 PM
|
#5
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
You should always check and double check when fooling with partitions and formatting. Not doing so will cause loss of data.
I just formated over the wrong partitiion a short time ago. I deleted then readded a partition. Unfortunately that changed the partition number of all the partitions after it. Of course I formated the wrong drive. That is what a "quick check" will get you.
|
|
|
07-05-2003, 07:27 PM
|
#6
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Original Poster
Rep:
|
Yes, you are right.
Fortunately, the guy is not mad at me. He said,
"Yes, I just read Acid Kewpie's reply. I guess that's it then. Have a rest, bro, the world will still turn without my data - anyway I think I have most of it. One particular XL file I can mostly reconstruct out of my head. I didn't back it up. I was going to do it so many times but kept forgetting. Some of the photos are on a CD but there's some important stuff on there. Is there a recovery program we can use?
Don't feel bad. A lot of the stuff is old and this might just encourage me to start again and not have so much junk on my HD. It really is not important. Even if I lost every schred of data - does it matter? No.
Anyway I have already started rebuilding from diskettes and I have all my addresses and email addresses on PDA (knew it would be good for something!)"
Now, that's a real friend.
I have repaired and built Windows based computers for years. In 1999 I ran a dual boot with RedHat, but got discouraged and quit. Now I've just installed RedHat 9 on a new hdd in my computer, and I am committed to learning. This time, I won't give up. I have already formatted and reinstalled 3 times. Once because there were too many procs running and the sys was slow. Someone gave me instructions for writing a shell script to remove a bunch of them, but somehow I messed it up (copying and pasting) and hosed my system because I had to reboot to get to Windoze (I had 150 CD's to burn in just a few hours). Then when I reinstalled I chose Everything again. Still slow, and I couldn't get KDE to stay - even after rewriting the config file, it still booted to Gnome. So I reinstalled and chose the packages.
I am learning, and this was a hard lesson. I installed mine with the ribbon cable only on the Linux drive, and off the Windoze drive. It was my intention to do his the same way. When I put his 2nd hdd in the box, I didn't plan to install at that time. The ribbon cable was on both drives. If I had read what was happening at the time of partitioning I would have seen it, but I was talking.
Tomorrow morning I will rebuild both his hdd's. Thanks for the advice on installation. He will rather have a dual boot screen than going into cmos and changing the boot order, as I do.
|
|
|
07-05-2003, 07:39 PM
|
#7
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
You really say that in China?
Yes, one must get philosophical about major data loss..
|
|
|
07-05-2003, 07:41 PM
|
#8
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Original Poster
Rep:
|
He's an Aussie!
|
|
|
07-05-2003, 08:07 PM
|
#9
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
LOL
|
|
|
07-05-2003, 08:31 PM
|
#10
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
I once trashed a coworkers entire data set by installing linux over his windows partition. I thought he had backed up the data and he thought I was going to back up the data.
If you haven't actually done a mkfs on the disks, you can still recover the data without too much trouble, IF you remember the partition scheme used for the drive. . .
|
|
|
07-05-2003, 08:42 PM
|
#11
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Original Poster
Rep:
|
I haven't done a mkfs - don't even know what that is. Please tell me more. I know Windoze really well, but I'm totally new to Linux. I do know that unless it does a proper low level format (which I don't think it could have done so quickly) and not just rewritten some data from the front and back end of the hdd, in Windoze I could recover some of it (if not all of it).
The partition scheme used for the original Windoze drive, or the partition scheme used by Linux? The Linux scheme is easy enough to see - and all you experts would know just what it did, because we didn't use the Disk Druid, but just let her rip (see Post #1). Remember that both hdd's are 40GB.
Any help you can give would be appreciated. He's bringing the box over today for me to rebuild both hdd's, and if I could recover some data it would be nice.
TIA - and tkx for your post!
|
|
|
07-05-2003, 09:35 PM
|
#12
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Original Poster
Rep:
|
LABEL=/ / ext3 defaults 1 1
LABEL=/boot /boot ext3 defaults 1 2
none /dev/pts devpts gid=5,mode=620 0 0
none /proc proc defaults 0 0
none /dev/shm tmpfs defaults 0 0
/dev/hdb1 swap swap defaults 0 0
/dev/cdrom /mnt/cdrom udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/cdrom1 /mnt/cdrom1 udf,iso9660 noauto,owner,kudzu,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner,kudzu 0 0
In addition to the information in Post #1, this may help.
|
|
|
07-05-2003, 10:10 PM
|
#13
|
Senior Member
Registered: Feb 2003
Location: Calif, USA
Distribution: PCLINUXOS
Posts: 2,918
Rep:
|
You can try this if you like.
There is a free demo that lets you see if you may be able to recover data, by identifying partitions. The fast option tells you what it can in a few minutes. The complete option took about 24 hours and could not help me.
If the demo shows it can recover your partition, you can consider getting the full version.
Mine was gone since I had done a format.
Last edited by 2damncommon; 07-05-2003 at 10:11 PM.
|
|
|
07-05-2003, 10:54 PM
|
#14
|
HCL Maintainer
Registered: Jun 2003
Location: McCalla, AL, USA
Distribution: Arch, Gentoo
Posts: 6,941
Original Poster
Rep:
|
Thanks 2damncommon,
May have a look at it.
|
|
|
07-05-2003, 11:34 PM
|
#15
|
Senior Member
Registered: Sep 2002
Location: Arizona, US, Earth
Distribution: Slackware, (Non-Linux: Solaris 7,8,9; OSX; BeOS)
Posts: 1,152
Rep:
|
You would need to know the windows partition scheme.
Post the output of:
Code:
fdisk -l /dev/hda
fdisk -l /dev/hdb
or for whatever hard drive the windows stuff is supposed to be on. /dev/hda is the master drive on the primary controller, hdb is slave on primary, etc.
|
|
|
All times are GMT -5. The time now is 10:45 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|