Results 1 to 9 of 9
Ok, i have a hard drive with three partitions, one of them hsa windows xp which is mounted as dev/hda1 and i am able to access it through linux with ...
- 12-20-2003 #1Just Joined!
- Join Date
- Dec 2003
- Posts
- 6
Slackware with lilo
Ok, i have a hard drive with three partitions, one of them hsa windows xp which is mounted as dev/hda1 and i am able to access it through linux with no problem, when i go through the lilo config it tell me: Fatal:open dev/hda1: No such file or directory...
this is my expert setup in the Lilo Config file:
image="/boot/vmlinuz"
root="/dev/hda3"
label="Slackware"
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
image="dev/hda1"
root="/dev/hda3"
other=/dev/hda1
label="Windows"
image="/dev/hda1"
root="/dev/hda3"
help would be much appreciated
- 12-20-2003 #2Just Joined!
- Join Date
- Nov 2003
- Location
- Novi Sad, Vojvodina
- Posts
- 5
Re: Slackware with lilo
Put slash ( / ) before dev
Originally Posted by gbdavidx
image=/dev/hda1
- 12-21-2003 #3Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
No, that's not what you want; /dev/hda1 isn't even a kernel image to begin with.
gbdavidx, that LILO config file simply makes no sense. What is your purpose with it?
- 12-21-2003 #4Just Joined!
- Join Date
- Dec 2003
- Posts
- 6
2 80 gigs
i have three partitions in one of my hard drives lets call this dev/hda3 which it is, the hard drive i am using now has windows xp (the one with the three partitions hda3), and the other part of this hard drive is my file server, i have another hard drive which is an 80 gig with all my files in it that i wanna copy over that has windows xp in it. i won't have to config lilo if there was a way i could detect my secondary 80 gig which, i don't know how... unless you can tell me how i can mount that, which would be great
- 12-21-2003 #5Just Joined!
- Join Date
- Dec 2003
- Posts
- 6
whole point of lilo
the whole point to set up lilo was so i can go into windows on my hda1 and copy over the files from windows to windows, which i thought would be a lot easier.... then to mount another hard drive that im never gonna use on slackware
- 12-21-2003 #6Linux Engineer
- Join Date
- Dec 2002
- Location
- New Zealand
- Posts
- 766
so what u actually want is to be able to boot windows?
comment ou the lines
image=/dev/hda1
root=/dev/hda3
by putting # at the start of them, sicne they make no sense and wouldnt work anyway since hda1 is windows and does not contain a kernel image.
my windows section reads
other=/dev/hda1
label=windows
table=/dev/hda
perhaps if u add this table arguement it will work.
now run /sbin/lilo to save the new file into mbr.
- 12-21-2003 #7Linux Guru
- Join Date
- Oct 2001
- Location
- Täby, Sweden
- Posts
- 7,578
Re: 2 80 gigs
/dev/hda3 is not the whole hard drive; hda3 is only the third (primary) partition on it. /dev/hda is the entire hard drive, hda1 is the first (primary) partition, and so on. If you have logical partions, they always show up as hda5 and onward.
Originally Posted by gbdavidx
/dev/hdb is your second hard drive. The scheme is: /dev/hda is your primary master, /dev/hdb is your primary slave, /dev/hdc is your secondary master, and so on. You can check in /proc/ide which IDE drives have been detected.
You don't have to reconfig LILO at all in order to detect hard drives. LILO's only task is to load the kernel and boot it. The kernel will detect your hard drives virtually no matter what you do with LILO.
Originally Posted by gbadavidx
To mount your second hard drive, first check what partitions are on it:
Then mount the one you want:Code:fdisk -l /dev/hdb
If the filesystem on that partition is NTFS, then you have to check that Slackware actually ships the NTFS driver. If it doesn't, you'll either have to download it or recompile your kernel. To mount an NTFS filesystem, you might have to add "-t ntfs" to the mount command, but I'm not sure if mount might autodetect NTFS these days.Code:mkdir /mnt/my2ndhdd mount /dev/hdb? /mnt/my2ndhdd
I spotted this in your LILO config:
Originally Posted by gbdavidx
That should be the code to boot Windows. What happens if you choose that alternative at boot?Code:other=/dev/hda1 label="Windows"
- 12-22-2003 #8Just Joined!
- Join Date
- Dec 2003
- Posts
- 6
finding drives
how do i find out what my drive names are called on my secondary ide hard drive?
- 12-22-2003 #9Linux Engineer
- Join Date
- Dec 2002
- Location
- New Zealand
- Posts
- 766
ur hard drives are as folows: (although i think someone already explained this) hda = pri. mast. hdb=pri. slav., hdc=sec. mast., hdd=sec, slav.
as dolda said, to view partitions on a drive, type (as root)
fdisk -l /dev/hda
(or hdb, hdc etc, whatever drive u want to view.)
remember that ntfs write support is not availible, so u can copy from an ntfs (winXP) driver but not to one.


Reply With Quote