LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 05-25-2005, 06:27 AM   #1
ccmilan
LQ Newbie
 
Registered: May 2005
Posts: 2

Rep: Reputation: 0
what's wrong with my HDD


I installed winXP and debian on my computer,
when i type
fdisk -l, it warns£ºcan't open /dev/hda
cfdisk, it warns£ºFATAL ERROR: Cannot open disk drive
what's the crux?
Also ,i tried to create a linux link file linux.lnx by:
dd if=/dev/hda8 of=/mnt/hda1/linux.lnx bs=512 count=1(I have a swap partition and / partition hda8),and added a line in boot.ini c:\linux.lnx="Linux"
I thought this way i can utilize the windows OS Loader to boot my linux system.
But this wouldn't work, i got a blank screen.
Is the above two problem related?
Thanks.
 
Old 05-25-2005, 07:11 AM   #2
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Re: what's wrong with my HDD

Quote:
Originally posted by ccmilan I installed winXP and debian on my computer...
I assume in this order...?

Quote:
Originally posted by ccmilan ...when i type
fdisk -l, it warns£ºcan't open /dev/hda {huh? what's that?}
cfdisk, it warns£ºFATAL ERROR: Cannot open disk drive
what's the crux?
Dunno, but I'd guess something is wrong with the partition table. Give some more information, please, will you ...

Quote:
Originally posted by ccmilan Also ,i tried to create a linux link file linux.lnx by:
dd if=/dev/hda8 of=/mnt/hda1/linux.lnx bs=512 count=1(I have a swap partition and / partition hda8),and added a line in boot.ini c:\linux.lnx="Linux"
I thought this way i can utilize the windows OS Loader to boot my linux system.
But this wouldn't work, i got a blank screen.
That would work when you installed GRUB / LILO in /dev/hda8. Usually it is in /boot when it is not in the MBR. Infos please... (Btw, just for the record, this is not a link in the Linux-sense, it is a file of 512 kb size </nitpicking>)

Quote:
Originally posted by ccmilan Is the above two problem related?
Possibly but I doubt it. Give some more information also on how you started the system (or did you?) and how you made dd work...

Last edited by JZL240I-U; 05-25-2005 at 07:14 AM.
 
Old 05-25-2005, 09:51 PM   #3
ccmilan
LQ Newbie
 
Registered: May 2005
Posts: 2

Original Poster
Rep: Reputation: 0
Thanks for your comments.
I installed winxp,then linux(two partitions,swap and /),and grub in mbr instead of hda8.
There seemed to be something wrong with the debian installer's partition tool,It failed a few times,complaining "can't create partition XXX",finally it succeeded,I don't know why.
The system looks fine except the two problems I mentioned.
It boots successfully via grub,but can't boot via windows OS Loader.
 
Old 05-26-2005, 03:26 AM   #4
JZL240I-U
Senior Member
 
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629

Rep: Reputation: Disabled
Quote:
Originally posted by ccmilan ...grub in mbr...
Aha .

Quote:
Originally posted by ccmilan ...There seemed to be something wrong with the debian installer's partition tool,It failed a few times,complaining "can't create partition XXX",finally it succeeded,I don't know why.
I suggest you have a look at this with som other tool like e.g. (gnu)parted (comes with debian?) or else try

ftp://bmrc.berkeley.edu/pub/linux/re...ble-0.3.tar.gz
http://www.stud.uni-hannover.de/user/76201/gpart/
http://www.partimage.org/
http://gparted.sourceforge.net/
http://qtparted.sourceforge.net/download.en.html
http://www.sysresccd.org/

Quote:
Originally posted by ccmilan ...It boots successfully via grub,but can't boot via windows OS Loader.
Of course not . The GRUB-loader stage resides in the MBR of /dev/hda. Do a
Code:
dd if=/dev/hda of=/mnt/hda1/linux.lnx bs=512 count=1 {NOT /dev/hda8}
and copy / move linux.lnx to C:/.

After that your system starts with GRUB, you should be able to select WinXP, get the XP-loader and have an option there to jump back to GRUB . At least that's the way I do it with NT...

Last edited by JZL240I-U; 05-26-2005 at 10:25 AM.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Knoppix can't mount hdd, wrong fs type castortroy Linux - Hardware 5 11-26-2005 11:43 PM
FC4 HDD showing wrong size h00ty Fedora - Installation 5 08-20-2005 11:10 AM
Something's wrong with my HDD jogurt666 Linux - General 3 01-31-2005 10:40 AM
What's wrong with my Toshiba MK6014MAP HDD? Verbato Linux - Hardware 0 07-17-2004 08:17 PM
Is there something wrong with my hdd? dhbiker Linux - Hardware 2 12-10-2003 03:05 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:24 AM.

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