LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   how to install slackware from files on windows partition (https://www.linuxquestions.org/questions/slackware-installation-40/how-to-install-slackware-from-files-on-windows-partition-332097/)

mikgigs 06-10-2005 12:55 AM

how to install slackware from files on windows partition
 
Hello everybody,
i have some problem installing slack..
Yes I know that i can make installation cds but i do not have them now..
and do not have opportunity to buy..anyway..
I have first cd of slackware
and there is an option to install from source files..but i can locate windows partition where source files are..
Please tell me how to install salck where source files are located on windows partition..
thanks

camlinux 06-10-2005 06:34 PM

I'm confused about what you are trying to do. If you have the first ISO from slackware you should be able to install the minimal number of packages to get up and running, and then download the rest of what you need from the net.

If you need to use files from the windows partition, just mount it. Do you know what filesystem it uses. ntfs or fat will work you just need to tell mount which one it is.

mikgigs 06-11-2005 01:12 AM

my installation
 
ok i am already downloaded the packages.. and put them in windows drive for example d:
d:\slack\
and i really have first cd, but is written with a lot of mistakes..i do not want to spoil another 3 cds with the same problems(my cd writer is awful) and i am not in place where i have opportunity to access better hardware(for example i am in forest lab)
but i have net and downloaded everything from slackware ftp....
yes,
my question is really
how to mount in slackware setup my windows partitions
because when i use install from suorce - harddrive and use
path
for example
dev/hda5/slack/
it is not visible
when i check the target section where i choose my linux partition and swap partition
slackware asks me how to be visible my windows partitions, but they will be visible after rebooting..
ok
my question is more simple
now
how to mount in setup my windows partition... and to be visible

vharishankar 06-11-2005 01:19 AM

When you boot from your installation CD, after you create a partition for Linux using cfdisk or fdisk on your hard disk and initializing it as necessary with the required filesystem (reiserfs or ext3), then do the following.

Create a mount point in your new Linux partition as root.

Code:

mkdir /mnt/win
Then mount the partition like this:

Code:

mount -t vfat /dev/hda1 /mnt/win
Replace vfat with ntfs if necessary (if it is an NTFS partition) and replace hda1 with the correct partition (hda should be the primary master and 1 should be the Windows partition if it is the first partition in the partition table).

During setup, you will have the option of installing from a local directory. Choose that option and point to the correct directory
Code:

/mnt/win/slack
(if your install files are in the directory is C:\slack).

Regards.

mikgigs 06-11-2005 02:13 AM

wow
 
wow
exactly
thank you

mikgigs 06-11-2005 03:09 AM

about slack and ntfs
 
sorry to bother with this question
what about ntfs partitions
is there problem of slackware to recognize them
i receive a message that fs do not recognize ntfs type...

vharishankar 06-11-2005 04:51 AM

What error message do you receive?

Did you try this command?
Code:

mount -t ntfs /dev/hda1 /mnt/win
Regards.

mikgigs 06-11-2005 12:46 PM

yes i do exactly this command
i receive message like

fs ntfs type not supported..

mikgigs 06-11-2005 02:08 PM

about mounting ntfs
 
i suppose that i must to load module which support ntfs..
do you know how to do that?

DaHammer 06-14-2005 12:29 AM

Code:

modprobe ntfs
But it's not going to be there. I took a look at the kernels supplied with Slackware 10.1, none of them supply ntfs compiled into the kernel, most of them supply it as a module. Which you have found out. The problem is that the ramdisk from which the Slackware installer runs, ie this is what is actually running when you boot to the install CD, does not include the ntfs module. That module is also not included in any of the addon ramdisks for things like network cards, pcmcia and etc, at least not that I saw. Strange that Pat left that out, since NTFS is pretty much mainstream these days in the Windows world, but probably not alot of people installing it from hard disks either.

So with that in mind you'll have to supply it manually. Probably the simpiest way to get it loaded would be to extract the module you need from modules package Slackware provides, copy it to a floppy, and then set it up manually after you boot the PC to the CD. If you don't have a working Linux system to use to extract the module from the package, then you'll need some Windows tool that can handle tarballs (WInRAR is one), ie a Slackware package is just a tar archive that has also been gzipped. Anyway, assuming you do then copy the slackware/a/kernel-modules-2.4.29-i486-1.tgz package into a directory somewhere by itself and then cd into that directory. Then extract it with this command:
Code:

tar zxvf kernel-modules-2.4.29-i486-1.tgz
The module you're looking for is located at lib/modules/2.4.29/kernel/fs/ntfs/ntfs.o.gz within the directory where you extracted the package. Copy that file to a floppy and then boot the PC to the Slackware CD. Once you're booted up and login as root at the login prompt, then run the following commands with the floppy inserted:
Code:

mkdir -p /mnt/floppy
mount /dev/fd0 /mnt/floppy
mkdir -p /lib/modules/2.4.29/kernel/fs/ntfs
cp /mnt/floppy/ntfs.o.gz /lib/modules/2.4.29/kernel/fs/ntfs/
depmod
modprobe ntfs
umount /dev/fd0

That should get it loaded so that you can access the NTFS disks on the PC. If you still get an error about modprobe not finding the module, then try unziping the module, and rerunning depmod and modprobe. Like so:
Code:

cd /lib/modules/2.4.29/kernel/fs/ntfs
gzip -d ntfs.o.gz
depmod
modprobe ntfs

The above is just off the top of my head so it's possible that I missed/forgot something. If it doesn't work, then post back and I'll step through it here and get you more precise steps. Good luck.

heltreko 06-14-2005 12:33 AM

If the module is compiled it's simply:

/sbin/modprobe ntfs


All times are GMT -5. The time now is 08:40 AM.