LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (https://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Installing From USB Question?? (https://www.linuxquestions.org/questions/slackware-installation-40/installing-from-usb-question-866753/)

LionOfGod 03-06-2011 08:55 AM

Installing From USB Question??
 
First time on these forums, so Hello! : )
Im going to get straight to it, I've been a windows user all my life and one day i just had this notion to try out a UNIX. So i picked up a couple of books and i tried Ubuntu and now I'm using PClinuxOS. Now i want to switch so Slackware because i keep hearing everyone saying
"If you learn Fedora, You know Fedora, But If you learn Slackware
You Know Slackware
(plus the fact that my PCLinuxOS doesn't have any man pages)
So i downloaded the discs from 1-6 (13.1) and i want to install from a usb, by the way i`ve read a few guides on how to do it and searched up my questions but I still cant figure them out! So here they are...

Will my USB be useless after using it to install Slackware ?

Do i have to make a partition and put all of the Slackware
disks on the computer that i`m installing it on?(If so will Slackware install on the said partition ?) ( I have an 8 gig usb so can`t i just put all the files on that???)

Will Slackware uninstall PCLinuxOS ( If No how do i do it?)
(BTW i have no LAN or any sort of connection to my linux PC)

What is a swap partition, what is its purpose and how big is it supposed to be?

A lot of sites say that the usb image is included with the Slackware installation, how can i get access to that?

Also, im on windows so how do i get the usb image on to my usb
(copy paste??? or some mounting stuff??)

Thanks guys, sorry for the loong post ; )

Alien Bob 03-06-2011 10:03 AM

The article http://alien.slackbook.org/blog/welcome-windows-user/ explains how to create a USB bootable installer for Slackware if you are running Windows.

Slackware will not wipe anything off your harddisk unless you tell it to. First stage of the installation (before starting "setup") is to use fdisk or cfdisk to create any partitions you need. If you want Slackware to re-use your existing PCLinuxOS partition(s) then all you need to do is to run the "setup" right away and tell the installer to use the existing Linux partition.

Eric

LionOfGod 03-06-2011 11:36 AM

Hey, thanks for the guide but i still have one problem,
The guide says "Use Winimage to extract the content of the image file “D:\usb-and-pxe-installers\usbboot.img” to the newly created directory “U:\boot\syslinux\” on the stick"
Problem is, i downloaded Disk 1-6, not the full dvd set, so i just have the ISO's, where is this image???
Also for every ISO image i have i have an .asc and a .md5 file too, what are those for??

EDIT

Okay sorry i figured it out, i mounted disk 6 and found the usb and pxe file

LionOfGod 03-07-2011 06:52 PM

Okay, I have successfully made my usb, but now when im installing i cant figure out the instruction you directed me to.

PHP Code:

When booting this USB installer (the version containing the Slackware packages), 
you have to mount the USB partition before starting “setup” because you can access your
 
packages only after mounting itYou cannot use the directory “/mnt” to mount this partition 
because the Slackware installer uses “/mnt” already. After the booting has finished and it
 
delivers you to a command-promptyou create a new directory in the installer, for instance 
“/usbinstall“:

mkdir /usbinstall

After you have created this mount point
you have to find out the name
 of your partition 
(you can run “fdisk -l” or “blkid” to find out) and
then use the following mount command to preserve upper case filenames:

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS cut -f1 -d:) /usbinstall

The 
“shortname” option used in that mount command is required, and Slackware
 
installation will fail if you forget it.

If 
you labeled the stick’s partition “USBSLACKINS” in step 7 above, then you 
can use the following command instead of the previous mount commandIt will
 find the correct partition automatically 
(note that what follows is a single command line !):

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS cut -f1 -d:) /usbinstall

Then afterwards
when it is time to specify the package SOURCE directoryyou type:

/
usbinstall/slackware-13.0/slackware

The rest of the installation will proceed 
as usualGive me feedback in 
the comment section below 
if you encounter any problems. [/CODE]] 

can someone explain this to me a bit easier please??? also why is his code (mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall) identical in both spots where he mentions it??? Please hellp!!!

allend 03-07-2011 09:56 PM

Eric has changed his method slightly, to make it easier, but has left some stuff from the previous instructions that is causing your confusion.

What you want to do is:
Boot the USB installer and wait until booting has finished and delivers you to a command-prompt. (Look for a line ending with # and a flashing cursor.)
Create a new directory to use as a mount point using the command:
Code:

mkdir /usbinstall
Mount the appropriate partition.
If you labeled the stick's partition “USBSLACKINS” in step 7 above, then you can use the following command that will automatically mount the appropriate partition.
Code:

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall
Now you can start the install following your preferred guide.

Then afterwards, when it is time to specify the package SOURCE directory, you type:
Code:

/usbinstall/slackware-13.0/slackware
Note: You may want to change 13.0 to 13.1 in the above if you are installing Slackware 13.1

LionOfGod 03-08-2011 05:44 PM

When i enter the code mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall i egt a big long note talking about mounting and other stuff, am i supposed to use /sbin/blkid as the directory or come up with my own? Please help! BTW i only have 2 partitions and ones a swap. (if partitions have anythign to do with that code)

allend 03-08-2011 11:01 PM

Code:

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) /usbinstall
That command will only work if you labeled the stick's partition “USBSLACKINS”.

To explain the above command:
mount is the command name.
-t vfat tells mount that you want to mount a vfat file system.
-o ro,shortname=mixed are options for the mount. (ro is for read only. shortname=mixed is for display the short name as is; store a long name when the short name is not all upper case.)
$(/sbin/blkid -t LABEL=USBSLACKINS | cut -f1 -d:) is a bash command substitution. It takes the output of the /sbin/blkid command, looks for the label USBSLACKINS and then isolates the appropriate device name (e.g. /dev/sda1).
That device is then mounted to the /usbinstall directory.

If you are having problems, then it may be due to your partition name. If you have already partitioned your target system then it is likely that the stick's vfat partition is the only vfat partition available.
You could try changing to
Code:

mount -t vfat -o ro,shortname=mixed $(/sbin/blkid -t TYPE="vfat" | cut -f1 -d:) /usbinstall
Alternatively:
Run /sbin/blkid.
Inspect the output (something like below) for the stick's vfat partition.
Quote:

/dev/hda2: TYPE="swap"
/dev/hda3: TYPE="reiserfs"
/dev/hda4: TYPE="reiserfs"
/dev/sda1: UUID="9B98-9ADB" SEC_TYPE="msdos" TYPE="vfat" LABEL="My Book"
Then issue the command
Code:

mount -t vfat -o ro,shortname=mixed /dev/sda1 /usbinstall
The important information is the device name, /dev/sda1 in this example.

LionOfGod 03-09-2011 07:38 PM

Okay, so i tried typing /sbin/blkid and my usb is not displayed, only the two partions are.
I think this is because i am using plop boot manager in order to boot from my usb because my bios does not support usb booting.
But something interesting did happen, i tried putting my usb in various ports and one time it was detected, i messed up and tried to mount it without making a directory and my brother pulled the plug (*tough life), but it was surprising because my usb was detected.
I found out that my usb was named USBSLACKINS and also the file was something like /dev/sdba or something like that, what i mean is that the last part of the file location which could be sda1 or sda 2 had a "b" in it, thats what i remember (in case that helps anyone in solving the question.
I also tried going to the /dev directory and i found sda1 and sda two but it hink my usb may be at a higher part of the list, because i just typed "ls" and it scrolled by fast (fat chance though, because if it was in the directory it would be detected right?)
currently i have no internet connection to that computer, also i have no operating systems on it.
Any help??? That computer used to be a windows 2000 until it became a ubuntu, i formatted that in one day and installed PClinuxOS, then i formatted that because it had no man pages and decided to with slackware, im not about to quit anytime soon, so please HELP!!! BTW plop bootmanager is able to boot from my usb yet the kernel or cmd (w/e its called) cannot detect it??

allend 03-10-2011 08:20 AM

Quote:

I think this is because i am using plop boot manager in order to boot from my usb because my bios does not support usb booting.
This is new information.

A device name like /dev/sdb1 or /dev/sdb2 is valid. /dev/sda1 is probably the first partition on your primary hard drive.

Please post the output of '/sbin/blkid' and '/sbin/fdisk -l'.

P.S.
Quote:

i just typed "ls" and it scrolled by fast
You can do 'ls | less' to see a listing a screen at a time. Type 'q' to quit.

LionOfGod 03-10-2011 09:56 AM

hey, okay
I found that when i leave the usb in my computer for a while (an hour or two) and i come back and use /sbin/blkid
Then my usb is detected :) Thanks a lot, i ran the setup over night, im at school right now so il check on it when i get back home,
It was installing lilo when i checked before, so it hink it was a successful installation, thanks a lot!
Installed slackware jsut in time for march break ;)

LionOfGod 03-10-2011 02:16 PM

ARGHH!!! :(
Another problem, i finished installation, installed everything, it said it was succesful, i rebooted like it told me to and....

GRUB error 15 (blackscreen) wtf???! i thought lilo was my boot manager???
help please!!!
I tried both booting from hardrive AND nomrally!
bad start to march break :( HELP please!

allend 03-10-2011 03:07 PM

It seems that you installed lilo to the root partition of your Slackware install rather than the MBR. You will need to get your bootloader to chainload the Slackware partition.

LionOfGod 03-10-2011 04:28 PM

Okay so whats chainlaoding and how do i do that?
EDIT
when i use plop to boot from hda Partion 1 OR 2 i get a message saying no valid boot signature do you stilll want to boot?
i say yes but all i get is a blackscreen with a blinking cursor?
is it possible to reinstall just LILO???
EDIT
Okay forget that, i just formatted the whole drive with the setup
(luckily it detected my USB)
And my computer is currently reinstalling the whole thing
(hope it works this time ; )

LionOfGod 03-10-2011 10:11 PM

Okay, problem...again!
Reinstalled slackware...lilo cant install to MBR because of video card n stuff
Then i find out i could have just pressed reconfigure system to reinstall lilo
i tried different methods of installing lilo, none worked (tried expert and simple)
LILO WILL NOT INSTALL TO MBR
Now what do i do?
Everything I find on internet about installing lilo to a cd is confusing
and constantly talks about dual booting, which i dont need.
Please explain what i should do and how??? :S
Thanks very much!
Ima stick with Slackware to the end ; )
Can i install GRUB and use it instead???It looks like that would be easier...?

allend 03-10-2011 11:12 PM

Quote:

...lilo cant install to MBR because of video card n stuff
This is very unlikely. Please give exact details of the any error message.
Quote:

LILO WILL NOT INSTALL TO MBR
Does your system have some BIOS setting that stops the MBR from being written?
Quote:

Can i install GRUB and use it instead???
GRUB is available in the /extra directory of the install media.
Quote:

It looks like that would be easier...?
That is debatable, and has been many, many times over :-)

LionOfGod 03-11-2011 02:30 PM

Thanks a lot allend, You've really helped me with installing Slackware
AND
i think I've done it... just a few finishing up questions : P
First of all I learned that i could boot my system by using plop boot manager, then booting to usb THEN entering the command
Code:

hugesmp.s root=/dev/sda1 rdinit- ro
So i got my first taste of Slackware! (it worked properly, i changed up the lilo.conf file to boot=/dev/sda1, yet it didn't work)
Then, I decided to try and install LILO from the setup's reconfigure option, but it turned out I could not do that anymore because i had already exited the setup!
So i formatted my partitions ...again
AND
i reinstalled Slackware and started playing around with LILO, this is the error message i get....
Code:

Warning: Unable to determine video adapter in present system
Warning: Video adapter does not support VESA BIOS extensions needed for display of 256 colors.
Boot loader will fall back into text only operation.
Warning: Device 0x0810: inconsistent partition table, 1st entry
CHS address in PT: 0:1:1 --> LBA(62)
LBA address in PT 32 --> CHS (0:0:33)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified, if not sure first try IGNORE-TABLE (-P ignore)
(and then it told me in human words that lilo had not been correctly installed)

I learned the hard way, that i probably could have just typed
Code:

liloconfig
in order to run the lilo setup without having to install Slackware all over again : (
ANYWAYS
I understood a bit of the top part of the error, so when i saw "256" colors, i figured it had something to do with my choice of the frame buffer thing!
So i tried the standard frame buffer, then 640x480x64 and THEN I tried
640x480x32 (done in expert mode)
For some reason i didn't get any error messages after it said "Installing LILO" (Of course i was installing to MBR)
Yet, when i booted i got the same grub error 15 message
Of course i felt like smashing my PC against the wall but i was patient and i booted from my plop boot-manager cd
AND
in the options menu i tried booting from hard-drive partition 1
IT WORKED : D
I got into Slackware, it was all fine!
So, now I'm wondering, will i ALWAYS have to use the plop boot-manager CD??? or is their some other way to boot without having to use plop boot manager? Any changes i can make in bios to boot from partition 1?
BTW, because the error message mentioned some error with my partitions, heres some info
Partition 1, is a Linux type partition, EXT 4 journalism system and the flag is set to boot-able. (app. 79 Gigs)
Partition 2, is a Linux swap partition, not boot-able (app. 536 megabytes)
I installed Slackware over and over again multiple times, sometimes i would check for bad blocks, sometimes i wouldn't
In my last installation, i did not check for bad blocks, i just did a quick format!
I never got any errors about bad blocks anyways...
Sorry for the long post... Thanks again ; )

allend 03-11-2011 06:24 PM

Quote:

Warning: Device 0x0810: inconsistent partition table, 1st entry
CHS address in PT: 0:1:1 --> LBA(62)
LBA address in PT 32 --> CHS (0:0:33)
Fatal: Either FIX-TABLE or IGNORE-TABLE must be specified, if not sure first try IGNORE-TABLE (-P ignore)
This bothers me. lilo is not happy with your disk partitioning and is refusing to write to your disk.
How did you do your disk partitioning? Using 'cfdisk'?
Quote:

So, now I'm wondering, will i ALWAYS have to use the plop boot-manager CD?
No, once you have lilo successfully set up the plop stuff will not be needed.

This thread started out with you asking for information on how to install from USB. As it has developed it has become apparent that your system does not support booting from USB without using the plop workaround and now you say that you have the ability to boot from CD. (This is really the opposite of the common USB install scenario, where a device has no CD but can boot from USB)

Given the problems you are having, I strongly recommend that you create CDs from the first three install disk isos and conduct another install from CD ensuring that you partition your disk successfully. This is a tried and true technique.

LionOfGod 03-11-2011 06:43 PM

lol
the reason i cant install from cd is because my dad,
who used to work with mainframe
doesnt like the idea of me going into unix, and wants me to stick with Windows, so he wont buy me cd's.

Of course, i used the graphical option for my partitioning (cant remember which one that is), and ive been using slackware for a few hours, and ive been playing with it,
its fine so far, no problems. : )
EDIT
Will ignore table cause lilo to ignore the error it finds in my partition and still write?
If so, can i still run lilo install from slackware?

allend 03-12-2011 08:10 AM

Quote:

Will ignore table cause lilo to ignore the error it finds in my partition and still write?
From 'man lilo':
Quote:

-P ignore is also used to bypass the partition table check for partition types within the partition table which might not allow the installation of a LILO boot sector.
Quote:

If so, can i still run lilo install from slackware?
Yes. Again from 'man lilo':
Quote:

-M master-device [mbr|ext]
So if you have a valid /etc/lilo.conf file then the command 'lilo -P ignore -M /dev/sda mbr' may work. You may need to use the -P fix option instead.

I would still try for CDs. The first disk can be used to boot your system if something goes wrong e.g. your partition table has a problem. You could use the 'cfdisk' program on the CD to write your partition table again.

LionOfGod 03-12-2011 12:00 PM

Alright thanks,
I think im set now! : )
Thanks for helping me out, lilo works now!!! : D


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