LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 10-28-2003, 10:53 AM   #1
elmidwill
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Rep: Reputation: 0
Installing Slack ware


I have a few question to ask.

1. What isthe purpose of mouting (/mnt) a drive?
A) When I try to mount the Linux partitioned drive I get an error "accessdenied." How do I mount a drive?

2. After installing slackware I cannot boot to it? Now, would I have to make theLinux partition a bootable partition? ( I know how that must sound, but I really didn't want ot mess up my Windows partition before consultiing others)

3. Do you create a swap drive in fdisk/cfdisk? I tried creating it in fdisk and I get a message that the command is not known.

4. What I am trying to do is a dualboot with XP. Thanks.
 
Old 10-28-2003, 11:10 AM   #2
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
You mount a filesystem to make it accessible. Linux has a single filesystem '/' and everything is mounted on it. But I'm confused about what you're trying to mount. Your hard drive partitions should be mounted at boot as they are defined in the /etc/fstab file.

But booting is a problem too? Did you install LILO (the boot loader) or take steps to get ntldr to load Linux?

Swap should have been taken care of the install, too. You create a generic partition with fdisk and toggle the label to 82. The commands 'mkswap' and 'swapon' are what you need to look into to do it manually.

Good luck!

-- Oh, and with Slack, you'll need to edit /etc/fstab and change 'owner' to 'user' for the device in question or issue the mount command as root. That may explain the 'access denied'.

Last edited by slakmagik; 10-28-2003 at 11:11 AM.
 
Old 10-28-2003, 11:16 AM   #3
elmidwill
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
You might have guessed it, I am new to all this. How could I edit etc/fstab?

I did not make the Linux partition a bootabled one. I will try that, and then get back to you. I was a little reluctant because I wave windows XP on the same hard drive. I also have a High point raid controller. So I will try to get that working with Slack, and see if I can dual boot with XP, but that is a future matter.
 
Old 10-28-2003, 11:45 AM   #4
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Uh oh. I don't know anything about raid. Are you booting Slack with a floppy or with the CD or something? If you get the system up at all, just try 'mcedit /etc/fstab' or 'joe /etc/fstab'. (Some will tell you to use vi, but that's a link to elvis and if you're not familiar with vi-clones, I wouldn't recommend it at this point.) I'm not sure how it works to boot Slack from NT but LILO doesn't care about bootable flags. So if you boot XP from LILO, all that matters is getting LILO installed properly. (Be warned, I only have W2K on here and XP may have tricks up its sleeve.) Probably the easiest thing, if you want to change something about how you installed slackware, is to type 'pkgtool' at the prompt as root and select 'Choose installation scripts to run again'.
 
Old 10-28-2003, 07:59 PM   #5
elmidwill
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
No, I am not trying to use the RAID as yet. Right now I want to know how to dual boot Slackware and XP..
 
Old 10-28-2003, 08:03 PM   #6
elmidwill
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I head that I can install either grub or lilo on your MBR to handle dual boot. The question is how do I do this? Does anyone know? Thanks.
 
Old 10-29-2003, 08:55 AM   #7
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
I'm confused. Assuming you have the Slack CDs and you're installing for the first time, you put one in and reboot your computer and you're told to partition your drive and run setup. So you do. So a menu comes up and you step through it. One of these steps is to install LILO. Another step is to create a boot disk. So then, after installation is finished, you can boot with LILO or the bootdisk. The Slackware CD can also be used to boot. So you did neither of these steps? And when you try to put the emergency floppy or the CD in and the boot prompt comes up, you type, I think it's 'boot=/dev/hd??' and you may need to specify 'root=/dev/hd??' - whatever drive and partition the kernel and root filesystem is on - and that's where you get access denied? I'm confused as to what steps you're actually doing and what the results are.

As far as LILO and Grub, you can use either, but Slack defaults to LILO - I'm not even sure if it includes Grub, and LILO's always worked for me. The way you install it is to follow the Slackware installation process. If not that, then you edit /etc/lilo.conf and run '/sbin/lilo' at a command prompt (You can actually issue a string of command line options, but editing the file is easier and you don't have to redo it all the time). Any Linux bootdisk, such as Tom's Root/Boot Disk or the Slackware disks should be able to get you in the system assuming it's installed correctly.

I was hesitant about messing with boot sectors and so on, too, but so far it's always worked out for me. As I say, I haven't tried it with NT5.1, like you're trying, but it worked fine with NT5.0. Basically, Slack should ask you if you want to install LILO and you say sure. Then you just follow the steps - it identifies your Linux and Windows partitions and helps you interactively construct lilo.conf. You might even be able to pretend you're reinstalling, if nothing else. Just put the disk in and run setup directly, then choose 'configure' directly - or wherever the 'installing LILO' portion is - and then, after completing that, skip everything else and just exit setup and reboot.
 
Old 10-29-2003, 08:24 PM   #8
elmidwill
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
I created the boot disk, and from there I was able to load Slackware. Once I logged on as Root how do I go to the GUI part of Slackware? Does anyone know of any good Slackware/Linux fites where I can learn the commands, and the ins and outs of Slackware?

I would like to be able to get Lilo edited so I do not have to dual boot from a floppy. Thanks.
 
Old 10-29-2003, 09:32 PM   #9
taq
LQ Newbie
 
Registered: Oct 2003
Posts: 1

Rep: Reputation: 0
Hello, I have dual boot, Slackware 9.0 and win xp

here's what I did...

I already had win xp installed....I booted from the slackware cd...

I ran cfdisk (easier version of fdisk) and I deleted an empty ntfs partion and I used that space to create 2 new partitions....so I can use one for swap and one for root.

while I'm still in cfdisk pointing to the partition I wanna make as swap....there's an option called "Type"...it makes u change the type of the partition, so I changed the type from "Linux" to "Linux/swap"(it has the number 82).

After that I saved changes by choosing "write" and I quit cfdisk, and I did NOT make any other partion bootable, the one where windows is installed is still the bootable one".

I ran setup....step by step....I pointed to the swap partition when I was asked to...and to the target root partition where I want linux to be installed, the source of installation which was the cd.

I chose full installation and bla bla bla....well I don't remember the order in which the following things came, but in order to get the dual boot...I let it write the boot in the master boot record (MBR)....and in the LILO part I chose "expert" not "auto"...to configure the LILO myself....I chose 30 seconds to wait for choosin which OS to boot....and when I was asked, I wrote the path to the linux partion(example: /dev/hda2) and gave it the name Linux...and also pointed to the windows partition (ex: /dev/hda1) and gave it the name Windows...and went to the rest of the installation procedures and removed the cd and I got the dual boot after restart...
but actually...I can't get my mouse to work...lol..but that's my own problem..

hope that helps in anyway.
 
Old 10-30-2003, 08:27 AM   #10
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Yeah, this is the easy part. You've got Slack up and you're at a prompt. As root:

'pkgtool'

and from the menu: setup| liloconfig

That'll just walk you right through it. Or, as I say, 'man lilo.conf' and see about editing/creating /etc/lilo.conf and running lilo after you do that. I don't know what else we can tell you. It's not going to just happen until you take one of these steps to doing it. If you still have problems and have a version of the file, paste it up along with the output of 'fdisk -l' and 'cat /etc/fstab' and we'll try to get it worked out.

slackware.com could conceivably be a good site - click on the link to the Slackware book. Then try rute or tldp or any of the other dozens of sites on the dozens of threads that ask about books and websites. I think there's a links page here at LQ, somewhere, as well.

To get to a gui, 'startx' and - if you don't like the window manager - exit or ctrl-alt-backspace, then 'xwmconfig', then 'startx'. But you should do 'adduser' and create yourself a regular account and not bother with X as root, except to 'su' and do any configuring that may be necessary. But, at the early stages, that's up to you. (Well, it is at any time, of course *g*, but I mean that you'll need to be root a lot early on, as you set things up.)
 
Old 10-30-2003, 09:15 AM   #11
venom_zx
Member
 
Registered: Sep 2003
Posts: 30

Rep: Reputation: 15
out of curiousity. i want to know if there is any programs (preferably floppy based) that are able to read cd image files(which are located on my win xp partition) as cd's on bootup. so i don't have to burn whatever cd's i would need for an installation

venom_zx

Last edited by venom_zx; 10-30-2003 at 09:19 AM.
 
Old 10-31-2003, 06:31 PM   #12
elmidwill
LQ Newbie
 
Registered: Oct 2003
Posts: 16

Original Poster
Rep: Reputation: 0
Disk /dev/hda: 41.1 GB, 41110142976 bytes
255 heads, 63 sectors/track, 4998 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hda1 * 1 892 7164958+ 7 HPFS/NTFS
/dev/hda2 893 1529 5116702+ 7 HPFS/NTFS
/dev/hda3 1530 2258 5855692+ 83 Linux
/dev/hda4 2259 2331 586372+ 82 Linux swap

Disk /dev/hdb: 30.7 GB, 30750031872 bytes
255 heads, 63 sectors/track, 3738 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

Device Boot Start End Blocks Id System
/dev/hdb1 1 637 5116671 b W95 FAT32

The above is the information from fdisk -l

dev/hda3 / reiserfs defaults 1 1
/dev/cdrom /mnt/cdrom iso9660 noauto,owner,ro 0 0
/dev/fd0 /mnt/floppy auto noauto,owner 0 0
devpts /dev/pts devpts gid=5,mode=620 0 0
proc /proc proc defaults 0 0

The Above is the information returned from the cat /etc/fstab

# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
lba32 # Allow booting past 1024th cylinder with a recent BIOS
boot = /dev/hda
#compact # faster, but won't work on all systems.
prompt
timeout = 300
# VESA framebuffer console @ 1024x768x256
vga = 773
# Normal VGA console
# vga = normal
# VESA framebuffer console @ 1024x768x64k
# vga=791
# VESA framebuffer console @ 1024x768x32k
# vga=790
# VESA framebuffer console @ 1024x768x256
# vga=773
# VESA framebuffer console @ 800x600x64k
# vga=788
# VESA framebuffer console @ 800x600x32k
# vga=787
# VESA framebuffer console @ 800x600x256
# vga=771
# VESA framebuffer console @ 640x480x64k
# vga=785
# VESA framebuffer console @ 640x480x32k
# vga=784
# VESA framebuffer console @ 640x480x256
# vga=769
# ramdisk = 0 # paranoia setting
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
root = /dev/hda3
label = S.Ware
read-only # Non-UMSDOS filesystems should be mounted read-only for checking
# Linux bootable partition config ends
# DOS bootable partition config begins
other = /dev/hda1
label = Windows XP
table = /dev/hda
# DOS bootable partition config ends

Here is a copy of my lilo file as well. What I am trying to do now is make windows XP dual boot with Slackware. I tried the setup| Lino.conf, but when I tried to write to the MBR it said that it could not. So I am stuck trying to do it another way. Help would be greatly appreciated. Thanks.
 
Old 11-05-2003, 12:33 AM   #13
slakmagik
Senior Member
 
Registered: Feb 2003
Distribution: Slackware
Posts: 4,113

Rep: Reputation: Disabled
Sorry - I got disconnected from the net for a few days and I'm still catching up with stuff. You're going to probably want to modify the permissions in fstab and add an append line to lilo.conf and you need a swap line in fstab, as well, but otherwise, it all looks great. I'm not sure what the problem is. The only thing I can think of is dangerous stuff like zeroing the boot sector and then trying to rewrite it, or to change gears and install lilo to the superblock, changing 'boot=dev/hda3'. Possibly a better solution is to actually let ntldr load Slack, instead of having LILO load XP. I don't recall how to do that, as I always have LILO boot my machines. It involves copying a sort of boot sector image to XP and modifying boot.ini or some such - search LQ and there are several posts that detail the process.

I know I'm missing something obvious here, but it looks like it should Just Work. I'm surprised someone else has already posted whatever the obvious is.

And thanks for posting that data - that sort of thing makes it easy to rule out a lot of possibilities and see more clearly what your setup is. Even if I can't figure anything in this particular instance. Best thing, though, is to put data like that in [ code ] [ /code ] tags so that the columns are preserved. And the exact error message LILO gives. I mean, I assume you aren't using a really old LILO that can't boot from the 1024+ cylinder, so I don't know.
 
Old 11-10-2003, 07:04 AM   #14
aus9
LQ 5k Club
 
Registered: Oct 2003
Location: Australia
Distribution: Devuan
Posts: 5,476

Rep: Reputation: Disabled
Hope you don't mind me butting in, umm, I must be blind but I can't see any cd burner in
elmidwill posting....and if true, you may consider moving your drives so you have on drive on each controller as a master and the cdrom as a slave to controller 2. It is my understanding you have 2 diff drives and both will be slowed down to the slowest one if share a controller.

Now I get easily confused as well so some questions if I may.

When you say you can't mount a drive do you mean the linux system at a boot up message screen for lilo?

Or do you mean a cd rom drive? Sounds silly but permissions is the solution.

Now I use grub bootloader, but if your answer is to the boot to linux answer can you advise what messages appear b4 and after your selection. I am looking for the letters L or LI or LIL or LILO assuming you used lilo.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How can i use MSN Messenger or Yahoo Messenger in slack ware ruzvay Linux - Software 8 02-16-2006 01:42 PM
How to log tftp activity for slack ware?? Crazy Linux - Software 1 08-04-2005 08:17 PM
Soft Ware!!!! jhonny C Linux - Software 1 07-29-2005 07:31 PM
problem with slack ware cerabus Linux - Software 6 09-29-2004 01:09 PM
anti-virus firewall for Slack-Ware 9.1 DropSig Linux - Software 2 05-17-2004 11:40 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 10:05 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration