installing slackware on a second hd beside windows
SlackwareThis Forum is for the discussion of Slackware 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.
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.
installing slackware on a second hd beside windows
hi there
i'm planning to install slackware on a windows xp system, but not on the same harddisk but on a second one
my question is: is it possible to connect this second harddisk to the mainboard as the slave harddisk, leaving the master device to the windows harddisk?
will i be able (or will the slackware installer be able) to safely install slackware on the second (slave) hd without losing the data on the windows hd?
and if yes, will i be able to access the data on the windows harddisk (ntfs file system) through slackware?
hope anyone can help, since i found out that quite a many newbie questions are answered here ; )
felix
p.s.: don't know if this is important but i'm going to download the iso file and burn a bootable cd and will install slackware via cd-rom.
When you install the hd, make sure the jumpers are set correcly for master and slave.
When you install slackware make sure you set the target partition correctly. B4 you do that you'll run fdisk to set up your partitions. If your XP drive is the master and the linux drive is the slave use:
fdisk /dev/hdb
Then set up your swap and the rest of the partitions.
When you finish installing you can mount the xp partition using:
mount -t ntfs /dev/hda1 /mnt/windows
Thats assuming /mnt/windows exists.
Note: You have some options for the boot manager. I would recommend using a boot floppy. It allows you to keep people from accidentally booting into linux and then not knowing what to do, panicking and hitting the power switch. The floppy would be like a "linux boot key". Just a thought.
and is it possible first to install slackware while the windows hd is disconnected and the slackware hd is master, and then changing the sw hd to slave and the win hd to master?
For the second question, forgive me if I wax philisphical here, you can do anything you want to do. However, using that method would be pretty painful. The slackware hd would be detected as hda and all the partitions would be hda1,hda2... The install would set everything up assuming this. Once you are done installing, and you have both hd's in and set properly you would not be able to boot linux right away. You would need to do the following:
1) Boot linux off the cd and login as root, like you did when you installed it.
2) Mount the linux partition (mount /dev/hdb2 /mnt/hd). You would need to replace hdb2 with whatever the actual linux partition is on the second hd.
3) Go into /etc/fstab and change all the hda's to hdb's
4) Done
The boot floppy you created would have to be redone as well. I think you might be able to specify which partition you want to use when you make the floppy the first time, if not you can go through setup again, specify the correct targets (on hdb), when you select what to install uncheck everything, eventually it will get to the point where it makes the boot floppy at which point your set.
Having said all that, I highly recommend leaving both drives in there during the install and just installing into hdb. There may be other issues I missed. I know you may be concerned about messing up the XP drive. Just make sure you select hdb (if your slack hd is the slave) for fdisk and the target partitions and when you install LILO put it on the floppy. You will be ok.
If you have Slackware 8.1, there is a radme on the first or second CD (I forget which), the instructions there outline the installation procedure pretty well. I have the exact same setup you do. My 40G has XP, my 6G has Linux. No problems. I can access even my XP desktop while in Linux (not the other way though.) The only problem I had in this area was Lilo. That might take some tweaking.
To set up you partitions on the second drive use the program "cfdisk" it does the same as fdisk but has a better interface, even the fdisk man page recomends it,
Quote:
From "man fdisk"
There are several *fdisk programs around. Each has its problems and
strengths. Try them in the order cfdisk, fdisk, sfdisk. (Indeed, cfdisk
is a beautiful program that has strict requirements on the partition tables
it accepts, and produces high quality partition tables. Use it if you can.
There are prompts and blue ncurses menus that you can toggle between, have a good read of the Slackware-HOWTO.txt, it's on the CD and contains install instructions.
After reading the above, I thought to add my opinion. Yes installing onto the second drive works fine. I have done so, and created the boot disk, the next option is if you want to install LILO, i said, NO. It worked, i can boot into slack, just can't do anything, keyboard and mouse still not working,,,,
Anyway, Could any of you tell me where to find " bootpart", as I cannot find it on a win XP disk, or when I search for it. Since I am multi-booting, or attempting to do so, With 4 or more OS'S. And the truth is, that the 3 times I tried to do this with LILO, I had to reinstall everything, windows(s) and linux(s) and still can't get everything to work.
As for unpluging a drive, It works for me. Since slack, libranet, mandrake, etc,,, look at the IDE connection ID not the device when locating a drive,,,, ex;
Mine is setup like so,
IDE0=hda=CD/DVD-ROM
IDE1=EMPTY
IDE2=hdc=CD-RW
IDE3=EMPTY
(ide4-7 on promise controller)
IDE4=hde=40GB fat32
IDE5=hdf=empty
IDE6=hdg=40GB fat32
IDE7=hdh=60GB linux/fat32
kinda overkill on storage, but I do lot of video work on here, and it uses a LOT of space.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.