Thread: windows can't boot! (thanks wgl!)

  1. #16
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Now the whole thing locked up when I tried to read one of the system files, Ctrl+Alt+Del doesn't even do anything. What and where is the equivalent of the Task Manager in fedora?

  2. #17
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Quote Originally Posted by dwks View Post
    What does the output of the mount command say? For example, this is one line of mine:
    Code:
    /dev/sda2 on /mnt/vista type fuseblk (rw,noatime,allow_other,blksize=4096)
    See the "rw"? That means it's readable and writable. If yours just says "r" or maybe "ro", then it's mounted read-only. If it says "rw", then you're not editing/deleting files properly.
    It didn't say anything, I typed in the mount command and the "[somthing@localhost] #" thingy came up, there was no response. (even though it did do it)

  3. #18
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    That's strange. What about "cat /etc/mtab"? [edit] This is after you mount the partition, of course.

    Now the whole thing locked up when I tried to read one of the system files, Ctrl+Alt+Del doesn't even do anything. What and where is the equivalent of the Task Manager in fedora?
    In Debian, gnome-system-monitor (which can launch from ALT-F2 or from a terminal). But since you were able to run konsole, you're probably using some sort of KDE system. In that case you might try ksysguard. [/edit]
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  4. #19
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    I did another force shutdown, so it's working again. I'm still going to try to find ksysguard though.

    "mount" now includes the line "/dev/sda2 on /mnt type vfat (rw)". Would mounting it as type "fuseblk" instead of "vfat" make it work? If so, how do I change the mount type?

    "cat /etc/mtab" returns similar stuff to mount, including the line "/dev/sda2 /mnt vfat rw 0 0".

  5. #20
    Officially An Architect brewbuck's Avatar
    Join Date
    Mar 2007
    Location
    Portland, OR
    Posts
    7,396
    Quote Originally Posted by Yarin View Post
    Now the whole thing locked up when I tried to read one of the system files, Ctrl+Alt+Del doesn't even do anything. What and where is the equivalent of the Task Manager in fedora?
    Ctrl-Alt-Del doesn't force a reboot quite like it does on Windows. If you're "locked up" in X, try hitting Ctrl-Alt-F2 and see if you get a login prompt. If you do, log in as root and type "shutdown -r now" to reboot cleanly.

    Is your Windows filesystem really VFAT? Not NTFS? The VFAT driver is extremely well tested and shouldn't be giving you problems writing to files.

  6. #21
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Both my partitions are FAT32, after getting the computer I was also surprised to not see an NTFS fs. (I'm not sure if thats what VFAT is or not.)

  7. #22
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Ctrl-Alt-Del doesn't force a reboot quite like it does on Windows. If you're "locked up" in X, try hitting Ctrl-Alt-F2 and see if you get a login prompt. If you do, log in as root and type "shutdown -r now" to reboot cleanly.
    CTRL-ALT-BACKSPACE is a good way to force X to restart if it's seriously crashed. I'm not sure how healthy this is. Probably not very.

    VFAT means FAT32 (and maybe FAT16, I'm not sure). If your partition is a FAT32 one, then your line looks good.

    The only thing I can think of is this. Usually, one does not mount something to /mnt. You typically mount things to directories in /mnt, such as /mnt/sda1, /mnt/vista, and so on.

    You can try it like this. The "mkdir" command is unnecessary if you use a directory that already exists in /mnt.
    Code:
    # mkdir /mnt/win
    # mount /dev/sda2 /mnt/win
    Then, to test if you can write to the partition:
    Code:
    # cd /mnt/win
    # ls    # to make sure you're in the right directory
    ...
    # echo Hello, World! > testfile    # creates a file called "testfile"
    # cat testfile    # shows the contents of testfile
    Hello, World!
    # rm testfile    # deletes testfile
    # ls testfile    # confirms that testfile has been deleted
    testfile: No such file or directory
    #
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  8. #23
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    "# mkdir /mnt/win" and any mkdir command for that matter always fails with the same old access denied error. The OS won't let me write to anything. I have already mounted the partitions to various paths (I did this while transporting my data with the stick onto this desktop) and the same old thing happens.

    So, I snapped. I now have XP Home and 2000 Pro running on my laptop, the revamp cleared my data, but at least fedora let me read the data and now my computer doesn't have all the junk that originally came with it. I still need to finish downloading XPSP2 though. And I need to find and download my MB drivers. (no USB ports are working, and my modem drivers doesn't even think a modem is attached)

  9. #24
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    If you just install another XP, you should be able to repair the boot.ini file and get access to your old Windows installation.
    That should mean you don't need to install any drivers, hopefully.
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  10. #25
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    No no, I revamped the whole system. The whole hd was formated, then 2000 pro was installed, then XP home.
    I wish I would've thought of your idea, but even if I did, it would just make my mess of files even more of a mess. (I only had 2 hd partitions, but now I have 4 )

  11. #26
    Unregistered User Yarin's Avatar
    Join Date
    Jul 2007
    Posts
    2,158
    Thanks for your help dwks, otherwise, my coding life would've been set back by a few months.

  12. #27
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Well, you should, since these error do tend to occur frequently.
    I got some experience not long ago trying to repair XP. I uninstalled Office and it deleted pretty much all of Windows fonts. So when I next rebooted the system, boom! No hal.dll. OK, so I fix that. Boom! Missing file! I reinstall the font! Boom! Windows looks just plain weird because it default to other fonts from the default ones (it used wingdings or some such).
    So I had to reinstall the fonts, but the Font folder had stopped working. So I had to repair it using Tweak XP and then reinstall the fonts and reboot and everything worked as it should!

    But it helps to have two hard drives too... two boot sectors!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  13. #28
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Thanks for your help dwks, otherwise, my coding life would've been set back by a few months.
    You're welcome.

    "# mkdir /mnt/win" and any mkdir command for that matter always fails with the same old access denied error. The OS won't let me write to anything. I have already mounted the partitions to various paths (I did this while transporting my data with the stick onto this desktop) and the same old thing happens.
    It sounds like you simply didn't have the right permissions.

    When a partition is mounted in Linux, it's mounted by a specific user. If you mount it as root, then you probably need to be root to write to it. Commands typed at the '#' prompt are run as root. Therefore, you were likely mounting the partition as root, and trying to write to it as your unprivileged login user. (You can often read partitions mounted by other users, but not usually write to them.) I'm sorry I didn't think of this beforehand.

    The surest-fire way to mount something as another user that I know of is to mount it as root, unmount it (with a command like "umount /mnt/win"), and then mount it as the user you want it mounted for.

    Anyway, it's pretty much irrelevant now, but I just thought I'd mention it.

    Four partitions? Did you dedicate one to Linux?

    [edit]
    Well, you should, since these error do tend to occur frequently.
    I got some experience not long ago trying to repair XP. I uninstalled Office and it deleted pretty much all of Windows fonts. So when I next rebooted the system, boom! No hal.dll. OK, so I fix that. Boom! Missing file! I reinstall the font! Boom! Windows looks just plain weird because it default to other fonts from the default ones (it used wingdings or some such).
    So I had to reinstall the fonts, but the Font folder had stopped working. So I had to repair it using Tweak XP and then reinstall the fonts and reboot and everything worked as it should!

    But it helps to have two hard drives too... two boot sectors!
    Okay, I'm biased, but I've never had to boot any of my several Linux systems into a recovery mode or anything. XP and 98 required this several times during the time I was using them.

    Also: I'm not sure if "two boot sectors" is the right term. A sector is a portion of the hard drive or other magnetic drive. So maybe "partition" is what you meant. [/edit]
    Last edited by dwks; 04-05-2008 at 03:28 PM.
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

  14. #29
    C++まいる!Cをこわせ!
    Join Date
    Oct 2007
    Location
    Inside my computer
    Posts
    24,654
    Each hard disk would have a boot sector, so that essentially makes it two.
    Yes, Windows does like to throw tantrums. More than linux it seems!
    Quote Originally Posted by Adak View Post
    io.h certainly IS included in some modern compilers. It is no longer part of the standard for C, but it is nevertheless, included in the very latest Pelles C versions.
    Quote Originally Posted by Salem View Post
    You mean it's included as a crutch to help ancient programmers limp along without them having to relearn too much.

    Outside of your DOS world, your header file is meaningless.

  15. #30
    Frequently Quite Prolix dwks's Avatar
    Join Date
    Apr 2005
    Location
    Canada
    Posts
    8,057
    Umm . . . as far as I can tell, Yarin has only one hard drive, or disk as you say. Therefore, this one disk would have only one boot sector with one master boot record. From there, however, a chain bootloader like grub could boot one of the other partitions, making them in that sense bootable too, I suppose.

    [edit] Never mind. I see you introduced the idea of two hard drives yourself.

    It's a good idea, by the way. One I've used myself several times. [/edit]
    dwk

    Seek and ye shall find. quaere et invenies.

    "Simplicity does not precede complexity, but follows it." -- Alan Perlis
    "Testing can only prove the presence of bugs, not their absence." -- Edsger Dijkstra
    "The only real mistake is the one from which we learn nothing." -- John Powell


    Other boards: DaniWeb, TPS
    Unofficial Wiki FAQ: cpwiki.sf.net

    My website: http://dwks.theprogrammingsite.com/
    Projects: codeform, xuni, atlantis, nort, etc.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Network Programming in C for Windows
    By m.mixon in forum C Programming
    Replies: 7
    Last Post: 06-19-2006, 08:27 PM
  2. LoadFromFile() causes Windows 98 to freeze?
    By MidnightlyCoder in forum Windows Programming
    Replies: 8
    Last Post: 03-17-2006, 02:23 PM
  3. Program works on Windows XP and 2000, not on 98 or ME
    By MidnightlyCoder in forum C++ Programming
    Replies: 7
    Last Post: 03-10-2006, 03:36 PM
  4. Menu Item Caption - /a for right aligned Accelerator?
    By JasonD in forum Windows Programming
    Replies: 6
    Last Post: 06-25-2003, 11:14 AM
  5. Manipulating the Windows Clipboard
    By Johno in forum Windows Programming
    Replies: 2
    Last Post: 10-01-2002, 09:37 AM