LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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

Reply
 
Search this Thread
Old 10-12-2008, 10:43 AM   #1
actmnophn
Member
 
Registered: Mar 2008
Posts: 50

Rep: Reputation: 15
Lightbulb 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.

Thanks in advance and sorry for the long speech.
 
Old 10-12-2008, 03:41 PM   #2
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Rep: Reputation: 30
Quote:
I cannot write the boot.ini from within linux because then windows is not able to read it.
Why is this? You haven't described what filesystem windows is using but could it be that you haven't added NTFS support to your Linux distro?
 
Old 10-12-2008, 05:10 PM   #3
actmnophn
Member
 
Registered: Mar 2008
Posts: 50

Original Poster
Rep: Reputation: 15
Quote:
Originally Posted by Unknown_User View Post
Why is this? You haven't described what filesystem windows is using but could it be that you haven't added NTFS support to your Linux distro?
it IS ntfs. I can read from it so I thought it was supporting ntfs. I am running Puppy linux 4.

thanks again and sorry for being a newb
 
Old 10-13-2008, 01:44 PM   #4
Unknown_User
Member
 
Registered: Jan 2003
Location: EU (UK)
Distribution: Ubuntu 10.x, Fedora 9, OpenSuSE 11.3, Mythbuntu (Don't know it? Try - it rocks!)
Posts: 225

Rep: Reputation: 30
A lot of distros can read NTFS but can't write to them without adding some extra modules.

I understand that the latest release of Puppy can read/write but I've never used it myself.

Take a look at http://puppylinux.org/wiki/how-tos/general/ntfs

Quote:
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...)
 
Old 10-17-2008, 09:35 AM   #5
actmnophn
Member
 
Registered: Mar 2008
Posts: 50

Original Poster
Rep: Reputation: 15
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)

sorry for thelong winded reply...

thanks for help.
 
Old 10-17-2008, 02:25 PM   #6
actmnophn
Member
 
Registered: Mar 2008
Posts: 50

Original Poster
Rep: Reputation: 15
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...
 
  


Reply

Tags
boot, dual, ntfs, puppy, windows


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Change default boot jojojo Fedora 9 05-25-2006 01:04 PM
Change de default boot kernel mr_sarge Linux - Newbie 6 10-10-2005 11:30 AM
How to change default boot? (from linux to linux-up) namgor Linux - Software 4 07-09-2004 03:41 PM
How do I change the default boot from Windows to Linux? jdruin Linux - Newbie 4 04-26-2004 06:50 PM


All times are GMT -5. The time now is 08:15 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration