Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Slackware This Forum is for the discussion of Slackware Linux.


  Search this Thread
Old 01-30-2007, 06:08 PM   #1
LQ Newbie
Registered: Apr 2006
Location: San Jose, California
Distribution: SuSE, STX, Debian
Posts: 16

Rep: Reputation: 1
Post Problems installing to labeled partitions

I encounter this problem with the Slackware 11.0 installation using the 2.6 kernel. I have not tested with any of the 2.4 based kernel installations.

I start by booting the installation CD using the huge26.s boot. After logging in as root I use cfdisk to partition my drive. To label the partitions I am using these formatting commands:
"mkdosfs -c -n {label} /dev/hdxx",
"mke2fs -c -j -L {label} /dev/hdxx", and
"mkfs.jfs -c -L {label} /dev/hdxx".

There is a minor problem in that the command to label a swap partition does not work from the installation CD! The command "mkswap -c -v1 -L {label} /dev/hdxx" does not accept the "-L" option. Later when I have the system running I can boot temporarily using another swap partition so that I can then label my swap partition.

Another minor problem is that the mke3fs or mkfs.ext3 do not work from the installation CD. The "mke2fs -j" command is an equivalent replacement that does work.
Continuing on, now I have all my partitions formatted and labeled appropriately, and I can run the setup script. I skip to installing my swap partition, then assigning my target partitions, choosing not to format any of my partitions since that would overwrite my labels. Then I can select my installation source (CDROM).

A big problem is that at this point all my partitions should be mounted. Unfortunately only my root partition actually is mounted however.

The next big problem is after the installation and configuration completes, but before rebooting the fstab file (in /mnt/etc/fstab) lists all the partitions, but with no filesystem type identifiers. This means that when I reboot the types of these file systems will be wrongly assumed to be ext2, causing errors and breaking my boot. I can edit this before rebooting however.

My final problem -- when I reboot, since the non-root partitions that were pre-formatted before the last run of the setup script were not mounted and did not get populated, these partitions will be mounted over the files that incorrectly ended up in the root partition. Goodby /boot, /opt, /var, /usr, ...! Again, as with the last problem, I can fix this problem before rebooting if I mount each of the partitions manually to a temporary mount point and move over the files each one needs from the root partition which is mounted at /mnt.

Another workaround that didn't work was to assign and format all the partitions in the setup script, then jump to another console to (for each partition) umount, reformat and label, then remount. This approach works for all but the root and /var partitions which are being kept open by the setup script and cannot be unmounted without killing setup. After killing setup we are back to the initial problems again.

So, I've found workarounds for each of these problems so that I now have a working system. This is not how a Slackware installation is supposed to work however!

One last install problem - the kernel modules and sources that are installed are always the default 2.4 ones, even when installing a 2.6 kernel. This gets me to a console from which I can install the correct stuff from the 2nd CDROM, which fixes the network and display drivers among other problems.

Three suggestions:
> The setup script could verify that all the partitions are correctly mounted before installing software.
> The setup script could detect the filesystem type or allow the user to enter the filesystem type whenever an already formatted partition is being selected.
> The kernel modules and sources that are automatically selected for install should be based on the kernel version that was selected for install.

- Grant Q
Old 01-30-2007, 06:50 PM   #2
LQ Guru
Registered: Oct 2005
Location: $RANDOM
Distribution: slackware64
Posts: 12,928
Blog Entries: 2

Rep: Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291Reputation: 1291
Originally Posted by gquinlan
So, I've found workarounds for each of these problems so that I now have a working system. This is not how a Slackware installation is supposed to work however!
I would say that the slackware installation works best when you go through it fully and properly and you know what you are doing ...
Old 01-30-2007, 07:41 PM   #3
Senior Member
Registered: Dec 2005
Location: Brisbane, Australia
Distribution: Slackware64 14.0
Posts: 4,138

Rep: Reputation: 167Reputation: 167
As H_TeXMeX_H says, use the full setup/install procedure - after it completes you can use e2label to set the labels for your ext3 partitions and jfs_tune on your JFS partitions. For swap, you can use:
swapoff /dev/hdxx && mkswap -L alabel /dev/hdxx && swapon /dev/hdxx
Old 01-31-2007, 02:32 AM   #4
Amigo developer
Registered: Dec 2003
Location: Germany
Distribution: Slackware
Posts: 4,897

Rep: Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577Reputation: 577
Yeah, fix all that later. The reason all that stuff is not supüported is because the installer is using the busybox versions of mkswap, mke2fs, etc -they don't include all the same features as the full versions of those programs.



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
new pci ide - now hard drives are re "labeled" Mailman42 Debian 2 09-04-2005 02:27 PM
Problems installing (partitions) alphster SUSE / openSUSE 1 12-16-2004 04:49 PM
Labeled my SWAP partition wrong... chrisford553 Linux - Newbie 1 08-05-2004 08:54 PM
Installing Linux - What partitions to use? ZipLinux Linux - General 2 02-19-2004 07:17 AM
Slackware 9.0 ISO labeled wrong? jrdioko Slackware 9 05-09-2003 03:25 PM > Forums > Linux Forums > Linux - Distributions > Slackware

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

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