Dua-boot xp & Puppy linux - change default from within both OS
Linux - NewbieThis 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.
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.
Dua-boot xp & Puppy linux - change default from within both OS
I have a dual boot set up to boot to windows by default. I want to be able to switch from within windows to reboot into linux. From linux to be able to choose to reboot to windows.
I had 2 ideas how to do this.
First I tried using grub4dos chainloaded from ntldr using c:\grldr="load grub" in boot.ini and setting the deafault to be the windows partition. in order to shutdown to linux i ran a batch file that rewrote boot.ini "default=" line to read "deafault=c:\grldr" and then reboot the computer. -- It workedto reboot into linux but I cannot write the boot.ini from within linux because then windows is not able to read it. The closest I can do is del the boot.ini file and then it will anyway boot c:\windows. but I want it to default to windowswith a choice for linux.
Second way I thought about (but don't know how to implement) is to use a marker file and the find command of grub. I will still need to use grub4dos so it can read from the ntfs partition. I would writesomething like "default=find /boot/bootthisdrive" in the coorect syntaxwhich I dont even know if it is possible.
Anyway, this technique has a problem when it comes to NTFS. Linux support for NTFS is not yet complete, and currently an NTFS partition can be mounted read-only but not written (safely) to. When Puppy boots up, if he can't find a vfat, ext2/3 or reiserfs partition, he gives up and only uses the ramdisk.
See if this answers your question. If not come back to this post and we can try something else.
(Never apologise for being a newbie - in no time you will know stuff that I don't and I will appreciate your advice...)
I actually read that there. It was for an older version. I realised after I was only having problems when I mounted using the terminal to type "mount /dev/hda2 /mnt/hda2" which mounted the drive as type ntfs which I thought was right (it really is). However when I use pmount, Puppy's gui mounting program and then type "mount" in a terminal it says it is mounted as type "fuseblk". I googled around and got an idea of what the difference is except I have no idea how to mount it as that type. if i try -t fuseblk it tells me wrong fs type,bad superblock, etc... other than that I was able to do what I was trying. I installed grub4dos and edit the menu.lst from windows or linux. the only problem is I need to unmount the drive and remount it using pmount in order for the script to be able to write to the drive. I am thinking of converting it to fat partition instead. it is not my windows partition anyway just a partition meant to be shared between linux and windows. (it should have been fat32 to begin with)
I just changed the fs to vfat. when i "dmesg | tail" it said it was a dirty drive etc... run chkdsk ... So i just changed it to vfat because it is basically a freshly formatted hard drive and if there was anything wrong it was from rw to ntfs from linux.
Everything works perfectly now. I have an option in the shutdown menu of my WM to reboot to win and an icon on my windows desktop to reboot to linux.
The only problem I have now is to get a good puppy linux icon for the .bat file on xp...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.