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 |
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.
|
 |
05-25-2005, 06:27 AM
|
#1
|
LQ Newbie
Registered: May 2005
Posts: 2
Rep:
|
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.
|
|
|
05-25-2005, 07:11 AM
|
#2
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,643
Rep: 
|
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.
|
|
|
05-25-2005, 09:51 PM
|
#3
|
LQ Newbie
Registered: May 2005
Posts: 2
Original Poster
Rep:
|
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.
|
|
|
05-26-2005, 03:26 AM
|
#4
|
Senior Member
Registered: Apr 2003
Location: Germany
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,643
Rep: 
|
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.
|
|
|
All times are GMT -5. The time now is 12:09 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
|
|