Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux? |
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.
|
![Reply](https://www.linuxquestions.org/questions/images/buttons/reply.gif) |
06-27-2005, 05:33 PM
|
#1
|
Member
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795
Rep:
|
Slave Hard Drive
I just moved my Linux hdd to master position and my Windows one to slave position, but when I first installed Linux the Windows drive wasn't there. How would I go about adding Windows to the bootloader menu? I've already tried re-installing it.
Last edited by dudeman41465; 06-27-2005 at 06:49 PM.
|
|
|
06-27-2005, 07:01 PM
|
#2
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
Rep:
|
First identify the drive. Use fdisk -l to see on which partition the windows reside and which harddisk. Change the grub.conf file or lilo.conf file accordingly.
in GRUB.CONF
if you got fdisk results like this:
/dev/hdb1 NTFS
then the appropriate lines in grub.conf would be:
title Windows XP
rootnoverify (hd1,0)
chainloader +1
See the difference from /dev/hdb1 to (hd1,0)
and /dev/hda2 would be (hd0,1)
I hope you get the idea. Just experiment if you don't ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
|
|
|
06-27-2005, 07:08 PM
|
#3
|
Member
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Rep:
|
If you use GRUB, add this to your /boot/grub/menu.lst:
Code:
title Windows 2000
rootnoverify (hd0,0)
chainloader +1
Of course, change (hd0,0) to the right drive.
With lilo, this would be
Code:
other = /dev/hda1
label = win
Again, put the right drive.
don't forget to run /sbin/lilo!
Last edited by stefan_nicolau; 06-27-2005 at 07:11 PM.
|
|
|
06-27-2005, 08:28 PM
|
#4
|
Member
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795
Original Poster
Rep:
|
I can't find either of those files, I found the grub folder but neither of the files you mentioned. I'm running Mandrake 10.1 and I do have my folders set to show hidden files.
|
|
|
06-27-2005, 08:46 PM
|
#5
|
Member
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Rep:
|
What do you have in the grub folder?
|
|
|
06-27-2005, 09:58 PM
|
#6
|
Member
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795
Original Poster
Rep:
|
|
|
|
06-27-2005, 10:38 PM
|
#7
|
Member
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Rep:
|
I don't understand... There seems to be no configuration file! Please run the following commands to try to find it:
'find /boot -name grub.conf'
'find /etc -name grub.conf'
'find /boot -name menu.lst'
Please post the names and contents of any files it finds.
|
|
|
06-27-2005, 10:59 PM
|
#8
|
Member
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795
Original Poster
Rep:
|
Administration
It found it using the second command, however it says access denied, however I'm the primary user and should have administrative access to everything. The first and last commands gave no response at all, it just bumped down a line.
Last edited by dudeman41465; 06-27-2005 at 11:08 PM.
|
|
|
06-27-2005, 11:22 PM
|
#9
|
Member
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Rep:
|
Quote:
however it says access command, however I'm the primary user and should have administrative access to everything
|
I guess you mean that it says 'access denied', an you would like to have the right to do everything...
*sigh*The only user that can do anything on a UNIX system is root. Root can do anything, and that includes destroying the system, even without realizing it. (imagine the result of typing 'rm -rf /bin' instead of 'rm -rf bin' when you are in your home ***Don't try this***) All other users have limited rights.
To do system administration, use the su command to get temporary root access. Never work as root in a graphical environment! A broken program or a tiny mistake could very easily destroy your system (and I'm not even mentioning a possible malicious program). Use extreme caution when you have root access. Very small mistakes can cost you a lot! (for example, using > instead of >> to redirect output)
In short, to view the file:
Code:
me@mybox# su
Password: <--- Type password, followed by <return>. You won't see anything.
root@mybox# cat /etc/grub.conf
|
|
|
06-28-2005, 12:00 AM
|
#10
|
Member
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795
Original Poster
Rep:
|
Ok Cool
Cool, I've got one terminal program installing Java, I'll bring up another one and see what I can do with my boot menu. Thanks ![Smilie](https://www.linuxquestions.org/questions/images/smilies/smile.gif)
|
|
|
06-28-2005, 12:55 AM
|
#11
|
Member
Registered: Jun 2005
Location: Kentucky
Distribution: Debian
Posts: 795
Original Poster
Rep:
|
It still says no such file found. Here's exactly what I got, figured I'd attach a pic since I'm new to this CLI and I may have put someting in wrong.
http://i2.photobucket.com/albums/y45...ndgrubconf.jpg
|
|
|
06-28-2005, 03:01 AM
|
#12
|
Senior Member
Registered: Jan 2004
Location: Slovenia
Distribution: Slackware 10.1, SLAX to the MAX :)
Posts: 1,040
Rep:
|
Run /sbin/grub
This will drop you to a grub command line.
Run: root (hd0,0)
Replace hd0,0 accordingly with your boot partition numbers, where hd0,0 is your primary harddisk and 0 is your primary partition on that harddrive. If you are dual booting with windows, then hd0,0 is probably your C: partition.
once you run root (hd0,0) changed respectively, run:
setup
this will install the necessary files for GRUB.
Hope this helps.
|
|
|
06-28-2005, 07:19 AM
|
#13
|
Member
Registered: Jun 2005
Location: Canada
Distribution: Debian Etch/Sid, Ubuntu
Posts: 529
Rep:
|
You said you found the file in /etc? Why are you trying to open it in /boot? The command is cat /etc/grub.conf (assuming that's where you found the file with find /etc -name grub.conf)
marghorp is right, you shoud follow his instructions.
About find:
Code:
find <filename> <--- Wrong
find <somewhere> -name <filename> <---Right
replace <filename> with the exact file name you are looking for (you can also use wildcards such as *)
replace <somewhere> with the directory in which the file should be found. Find is recursive. To search your whole system, use /
Also there is a locate command:
Code:
locate <part of the file name>
This is the same as 'find / -name *<part of the file name>*'
BUT locate uses a nightly list of the files on your computer, so it runs much faster. However, this also means that locate may list files that have been deleted since the list was created, and will not list new files.
|
|
|
All times are GMT -5. The time now is 08:15 AM.
|
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
|
|