Linux - GeneralThis 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.
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.
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.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
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...
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.
Distribution: openSuSE Tumbleweed-KDE, Mint 21, MX-21, Manjaro
Posts: 4,629
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
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...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.