LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
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 01-17-2012, 04:09 PM   #31
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled

Hello again, Sorry for not posting back earlier but I have had some real life to deal with.

Anyway, I found out that mkinitrd accepts a UUID in the -r parameter so I tried creating an initrd with a UUID in the -r parameter to mkinitrd and using a generic kernel.
I also had UUIDs in my lilo.conf for "root = " and UUIDs in my fstab. I used a /dev/disk/by-id in the "boot = " part of lilo.conf but lilo didn't like it so I went back to using /dev/sdf for the "boot = ". What else can I use ?
But the boot failed. Error message is something about not being able to mount on /mnt.

Do I need to do something special in the mkinitrd / initrd-tree ?

I can't be the only person with this problem can I ?

So how about a step by step guide to solving this ?

The only other distro that I had this problem with is Fedora Core 16 (listing /dev/sdf as the first hard disk). So how do all of the other distros get the first hard disk to be /dev/sda but Slackware (and Fedora) can't ?
 
Old 01-20-2012, 06:19 AM   #32
sKaar
Member
 
Registered: Jun 2006
Location: dartmouth, nova scotia
Distribution: slackware 12.1
Posts: 74

Rep: Reputation: 2
knowing the exact error should help some, but it might be possible that you used uuid for disk where you wanted partition, or uuid for partition where you wanted disk... dunno, mine works as is, so, there must be something odd going on. worse, i may have mixed up which to use, esperimenz.
 
Old 01-20-2012, 07:43 AM   #33
hughetorrance
Member
 
Registered: Aug 2009
Location: London North West
Distribution: x86_64 Slack 13.37 current : +others
Posts: 459

Rep: Reputation: 59
I once had Fedora and Blag on a box Fedora was on drive sda and Blag was on sdb,well if they were both plugged in then whichever system you would boot would boot ok but there were errors,by removing one of them the other would boot ok...so init was taking files from the wrong system even though it was on another drive...easy to see why when all that's between them is rules that can easily be circumvented.

I would remove all extraneous USB stuff and hide the other partitions,make it seem like an install to a single drive and see if that gets you started in the right direction.


nb naming devices begins in the BIOS.

Last edited by hughetorrance; 01-20-2012 at 07:56 AM.
 
Old 01-24-2012, 05:36 AM   #34
Lenard Spencer
Member
 
Registered: Sep 2004
Location: Florida
Distribution: Slackware, Linux from Scratch
Posts: 329

Rep: Reputation: 199Reputation: 199
One question I have is, What is your hardware? (Desktop/laptop, mobo, cards, etc.)
I ask because I have an old Dell Inspiron 1150 laptop that had the hard drive and CD-ROM drive reversed. Under Slack 12.2 CD drive was /dev/hda and the hard drive was /dev/hdc - why no /dev/hdb is still unknown. Under 13.x they were in their proper order, though.

Last edited by Lenard Spencer; 01-24-2012 at 05:49 AM.
 
Old 02-04-2012, 09:15 AM   #35
vovim
Member
 
Registered: Nov 2011
Location: England
Distribution: Slackware64 current and Slackware arm current
Posts: 64

Original Poster
Rep: Reputation: Disabled
Hi, sorry again for the delay in replying.
Firstly, my hardware (as requested by the last poster):
Abit IN9-MAX-32X motherboard (with core 2 duo CPU), Creative Audigy soundcard, Gigabyte (NVIDIA) GTX560 TI graphics card, Technotrend satellite receiver card.
3 Samsung spinpoint SATA Hard Disks, SATA LG Blu-Ray re-writer, a memory card reader/writer and the normal floppy disk and usb and firewire ports.
Secondly, how to fix this problem :
First get a copy of KNOPPIX 6.0.1. I found one to download from this site http://www.pcworld.pl/ftp/linux_2765/Knoppix.601.html (using Google translate as it is in Polish).
The download button is labelled "Pobierz". Then burn it to a CD and boot from it. This linux kernel will show the hard (fixed) disks before the removable disks
(i.e hard disks listed starting from sda) and will be able to read and write ext4 filesystems. Then do the following as root
(this is what I did - my root partition is ext4 on partition sda3 and I have a boot partition on sda1) :
Code:
mount -t ext4 /dev/sda3 /media/sda3
mount -t ext2 /dev/sda1 /media/sda1
mount --bind /dev media/sda3/dev
mount --bind /media/sda1 /media/sda3/boot
chroot /media/sda3
Then (after you have changed /etc/lilo to point to your /dev/sda (or whatever disk you want) partitions) and specified the generic kernel in the new lilo.conf you can then run /sbin/lilo successfully.
Then you can re-boot.
The first time that I rebooted I got an error message that it could not mount the root filesystem so I had to do a "mount /dev/sda3 /mnt -o ro" at the prompt given.
This will then boot into your slackware linux using /dev/sda.
After I had done all this I checked the /boot/initrd-tree/dev directory and found that the reason for the boot up error message was that this directory still had the devices for the disks sdf, sdg and sdh and their partitions.
So I ran a new mkinitrd_command_generator.sh (in /usr/share/mkinitrd) and that corrected the problem (you may/should be able to run this command in your chroot when you have booted into KNOPPIX but I haven't tested that).
It is important that you use the generic kernel. I found that the generic kernel (with an initrd in my case) will work with the fist hard disk as /dev/sda but the huge kernel will not.
So this problem is now fixed. But I have a question - Why does the huge kernel list removable devices first but the generic kernel lists fixed disks first ?
 
Old 02-04-2012, 09:33 AM   #36
dive
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Slackware
Posts: 3,467

Rep: Reputation: Disabled
I would hazard a guess and say it's because the initrd doesn't have usb storage modules in it, only fixed disk.
 
  


Reply



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
programmatically identify removable vs fixed drives ahz Programming 4 08-15-2009 08:21 PM
formatting removable disks adluri LinuxQuestions.org Member Intro 1 10-17-2008 04:37 AM
how to format the hard disks(removable & fixed) ? himy Linux - Newbie 11 09-09-2007 06:23 PM
How to make slackware linux recognize USB removable devices and net prob jsky_20 Linux - Newbie 4 09-19-2006 11:25 PM
Listbugs in Synaptic lists fixed problems davcefai Debian 2 01-15-2006 01:59 PM

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

All times are GMT -5. The time now is 04:41 PM.

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