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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I can't seem to find an answer anywhere for this specific problem i've run into.
I have Linux (MD 9.1) dual booting with WinXP on /dev/hda which is fine, there's 7 partitions total on that drive, 2 NTFS and 5 Ext2 for linux. It's a 60GB IBM drive.
A while ago I added a 2nd hard drive (WD 1200JB - 120GB), which is formatted with 1 100GB NTFS partition. The problem is, linux has never seen(it has never shown up in linux) this drive before, i've just never needed to fix it until now.
So my setup is the 60GB IBM is the IDE primary master drive(/dev/hda).
The 120GB WD is the IDE secondary master drive, which should be /dev/hdc, but linux has no /dev/hdc listed at all.
I also have a Plextor burner as IDE secondary slave which shows up and works fine in linux as /dev/hdd as it should.
So it has now become important to see the WD on /dev/hdc because i just installed FreeBSD to a 10GB slice on it, and i want to use lilo to boot it, but lilo can't because linux doesn't see /dev/hdc at all, hence can't boot the necassary partition to fire up FreeBSD.
Any suggestions or help anyone? I release the drive should just be showing up as /dev/hdc but is there anyway i can manually add the drive in or have linux scan the IDE bus's for new drives?
Go into the BIOS and activate the Secondary Master channel. If its already activated, type "dmesg | grep -i WD". If you see it listed all you have to do is log in as su or root, make a directory in /mnt, and mount it. When mounting NTFS partitions, use the read-only option. This is because LINUX can not write to NTFS safely. If you want to use the WD for storage, format it as FAT32. However, Windows XP limits formatting FAT32 partitions to 32 GB, so you have to use Win98 or WinME to format your hard drive.
What does cat /proc/cmdline say. I think you have noprobe for hdc.
Originally posted by Mara How do you try to access the drive? Is it mentioned in kernel boot logs (dmesg command to list them).
If so, add the drive with these two steps:
1) make a mount point to represent the drive (say, hdb1)
2) edit your /etc/fstab and add a line to point to the new mount point:
mount point-->/dev/hdb1
device -------->/dev/hdb1 (if its the first partition you need)
set permissions like the other drives/mounts
I don't necessarily care about seeing that NTFS partition, i would just like hdc to be parsed in the /dev dir. Like there should be a /dev/hdc, /dev/hdc1 and /dev/hdc2 (or how ever many partions linux would see in a BSD slice).
Because my ultimate goal is to get lilo to boot FreeBSD for me, but since linux can't see hdc i can't point lilo in it's direction.
Does this make sense? Am i going in the right direction?
You probably need to remove "hdc=ide-scsi" from from lilo.conf. I think your disk doesn't need it. It's in "append=" line somewhere. Then run lilo and try it.
Originally posted by Mara You probably need to remove "hdc=ide-scsi" from from lilo.conf. I think your disk doesn't need it. It's in "append=" line somewhere. Then run lilo and try it.
Good point. I didn't see that. That's for making Linux read your cd burner as a SCSI device, making it possible to burn things. It ain't a burner.
Actually i see why that might've happened, the CD burner used to be hdc before i installed the new WD hd as the secondary master and bumped the burner to secondary slave(/dev/hdd).
So in lilo.conf i changed the append= line to hdd=ide-scsi (since hdd is the burner now).
Then i restarted and nothing seemed to change, /dev/hdc didn't appear.
and cat /proc/cmdline still says:
BOOT_IMAGE=linux ro root=305 quiet devfs=mount hdc=ide-scsi acpi=off
Remember if you add the partition (or slice in *BSD terms) to your /etc/fstab you can access it from Linux as well (same the other way around as well). I had a friend who did that and actually was successful at writing to his database from either OS. Cool! Enjoy the triple boot! Have you left room for BeOS?
Originally posted by michaelk You need to rewrite lilo for configuration changes to become effective.
/sbin/lilo
I had the same problem, and this thread lead me to the solution, so thanks .
I happily changed my lilo config, ran /sbin/lilo, and rebooted... and got a kernel panic (no initd available -- and trying to boot from the wrong partition).
After some head-smacking, I remembered my RedHat 9 system was setup to boot from grub instead of lilo.
I ended up booting from CD, using Ctl-Alt-F2 to get to a shell prompt, mounting root, and re-running the grub setup:
# mkdir /tmp/mnt
# mount /dev/hda1 /tmp/mnt
# vi /tmp/mnt/boot/grub/
(changed hdc=ide-scsi to hdd=ide-scsi)
# /tmp/mnt/sbin/grub
root (hd0,1)
setup (hd0)
Of course you need to salt and pepper as needed for your system.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.