LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 08-20-2014, 11:14 AM   #31
Dieselchair
LQ Newbie
 
Registered: Mar 2013
Location: /bin/bash
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 0

OK so i tried that and it didn't work. I did some reading on mikinitrd and added -R for raid support but that didn't work either. Now its saying can't find /mnt in /etc/fstab

PHP Code:
mkinitrd ---k 3.10.17 -f ext4 -/dev/sda1 -m megaraid:usbhid:hid_generic:uhci-hcd:mbcache:jbd2:ext4:megaraid --/boot/initrd.gz 
 
Old 08-20-2014, 12:15 PM   #32
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Dieselchair View Post
This is what cat /proc/scsi/scsi came up with.
http://33.media.tumblr.com/bfa8e057d...l5eo1_1280.jpg

So I guess the next question would be what modules do I need to build into the kernel for scsi and raid? Or is it still possible to get generic running with an initrd? Right now that seems like the quick solution to solving my problems. If I do end up compiling a kernel is there any information or posts you can recommend for custom settings for server kernels?
Hmm. OK. Maybe your root partition isn't on sdb1.

Next time you're in rescue mode, run cat /proc/partitions.


I'm not sure how the VSF device is handled by the scsi subsystem. According to https://www.illumos.org/issues/1063 and http://web.mit.edu/cron/documentatio..._4/racugc7.htm it is some sort of virtual storage device. As a result, I don't know if your MegaRaid drives are sdb and sdc or sda and sdb; the two CD-ROMS don't get drive letters and the processor shouldn't get one either.
 
1 members found this post helpful.
Old 08-20-2014, 12:25 PM   #33
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Quote:
Originally Posted by Dieselchair View Post
OK so i tried that and it didn't work. I did some reading on mikinitrd and added -R for raid support but that didn't work either. Now its saying can't find /mnt in /etc/fstab

PHP Code:
mkinitrd ---k 3.10.17 -f ext4 -/dev/sda1 -m megaraid:usbhid:hid_generic:uhci-hcd:mbcache:jbd2:ext4:megaraid --/boot/initrd.gz 
Well, the -R is for software RAID which I believe you aren't using.

Try mkinitrd -c -k 3.10.17 -f ext4 -r /dev/sdb1 -m usbhid:hid_generic:uhci-hcd:ext4:megaraid_mbox -u -o /boot/initrd.gz

Are you using mkinitrd version 1.4.8? (/sbin/mkinitrd -V)
 
1 members found this post helpful.
Old 08-20-2014, 08:00 PM   #34
Dieselchair
LQ Newbie
 
Registered: Mar 2013
Location: /bin/bash
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 0
Something new after running /usr/share/mkinitrd/mkinitrd_command_generator.sh -m megaraid_mbox

http://38.media.tumblr.com/552ac18e7...l5eo1_1280.jpg

mkinitrd version 1.4.8

Still don't feel comfortable setting sdb1 as root. Started looking through the kernel config- in /boot, I'm really thinking about compiling a new kernel right now.

cat /proc/partitions with huge kernel running gives
Code:
cat /proc/partitions 
major minor  #blocks  name

   8       16  429772800 sdb
   8       17  429771776 sdb1
   8        0   71034880 sda
   8        1   67108864 sda1
   8        2    3924992 sda2
  11        0    1048575 sr0
  11        1    1048575 sr1

Last edited by Dieselchair; 08-20-2014 at 08:05 PM.
 
Old 08-21-2014, 02:00 PM   #35
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
*Why* are you not comfortable doing so?

When you boot with the huge kernel, what is does cat /proc/scsi/scsi show?
 
1 members found this post helpful.
Old 08-21-2014, 07:12 PM   #36
Dieselchair
LQ Newbie
 
Registered: Mar 2013
Location: /bin/bash
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 0
Well all my media and music is on sdb1 and I don't want to mess with it.

Code:
cat /proc/scsi/scsi 
Attached devices:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: PE/PV    Model: 1x6 SCSI BP      Rev: 1.0 
  Type:   Processor                        ANSI  SCSI revision: 02
Host: scsi0 Channel: 02 Id: 00 Lun: 00
  Vendor: MegaRAID Model: LD 0 RAID1   69G Rev: 522D
  Type:   Direct-Access                    ANSI  SCSI revision: 02
Host: scsi0 Channel: 02 Id: 01 Lun: 00
  Vendor: MegaRAID Model: LD 1 RAID5  419G Rev: 522D
  Type:   Direct-Access                    ANSI  SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: PHILIPS  Model: DVD-ROM SDR089   Rev: TD36
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: DELL     Model:   VSF            Rev: 0123
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 01 Lun: 00
  Vendor: DELL     Model:   VCD            Rev: 0133
  Type:   CD-ROM                           ANSI  SCSI revision: 05
 
Old 08-21-2014, 09:43 PM   #37
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Right.

So, according to /proc/partitions you have exactly one drive with 2 partitions on it.

When you boot with the huge kernel, it's called /dev/sda.

When you boot with the generic kernel, it's called /dev/sdb. (It's shown in your photo: http://38.media.tumblr.com/5e346ac6e...l5eo2_1280.jpg)

The names are different only due to changes in the order the devices are found.

You can prove it to yourself:

When you boot with the huge kernel, /proc/scsi/scsi has...

Code:
Attached devices:
Host: scsi0 Channel: 00 Id: 06 Lun: 00
  Vendor: PE/PV    Model: 1x6 SCSI BP      Rev: 1.0 
  Type:   Processor                        ANSI  SCSI revision: 02
Host: scsi0 Channel: 02 Id: 00 Lun: 00
  Vendor: MegaRAID Model: LD 0 RAID1   69G Rev: 522D
  Type:   Direct-Access                    ANSI  SCSI revision: 02
Host: scsi0 Channel: 02 Id: 01 Lun: 00
  Vendor: MegaRAID Model: LD 1 RAID5  419G Rev: 522D
  Type:   Direct-Access                    ANSI  SCSI revision: 02
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: PHILIPS  Model: DVD-ROM SDR089   Rev: TD36
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 00 Lun: 00
  Vendor: DELL     Model:   VSF            Rev: 0123
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi3 Channel: 00 Id: 01 Lun: 00
  Vendor: DELL     Model:   VCD            Rev: 0133
  Type:   CD-ROM                           ANSI  SCSI revision: 05
What the huge kernel is calling /dev/sda is on Host: scsi0 Channel: 02 Id: 00 Lun: 00.

Keep that in mind; I don't have your setup but I do have an IDE/SCSI mix on this machine so bear with me.

On my machine, /proc/scsi/scsi has...
Code:
Attached devices:
Host: scsi0 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST1000NM0011     Rev: SN03
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi1 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: WDC WD1003FZEX-0 Rev: 01.0
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi2 Channel: 00 Id: 00 Lun: 00
  Vendor: ATA      Model: ST1000NM0011     Rev: SN03
  Type:   Direct-Access                    ANSI  SCSI revision: 05
Host: scsi4 Channel: 00 Id: 00 Lun: 00
  Vendor: HL-DT-ST Model: DVDRAM GH24NS90  Rev: IN01
  Type:   CD-ROM                           ANSI  SCSI revision: 05
Host: scsi8 Channel: 00 Id: 02 Lun: 00
  Vendor: SEAGATE  Model: ST3146707LC      Rev: D704
  Type:   Direct-Access                    ANSI  SCSI revision: 03
Host: scsi8 Channel: 00 Id: 03 Lun: 00
  Vendor: SEAGATE  Model: ST3146707LC      Rev: D704
  Type:   Direct-Access                    ANSI  SCSI revision: 03
How can find out what drive that, say, Host: scsi2 Channel: 00 Id: 00 Lun: 00 points to?

(Take a deep breath. I'm running the following as root which I don't think is required since the directories have world read/execute access.)

Code:
# cd /sys/bus/scsi/drivers/sd
# ls -lart
total 0
lrwxrwxrwx 1 root root    0 Aug 21 21:12 0:0:0:0 -> ../../../../devices/pci0000:00/0000:00:09.0/ata1/host0/target0:0:0/0:0:0:0/
lrwxrwxrwx 1 root root    0 Aug 21 21:12 1:0:0:0 -> ../../../../devices/pci0000:00/0000:00:09.0/ata2/host1/target1:0:0/1:0:0:0/
lrwxrwxrwx 1 root root    0 Aug 21 21:12 2:0:0:0 -> ../../../../devices/pci0000:00/0000:00:09.0/ata3/host2/target2:0:0/2:0:0:0/
lrwxrwxrwx 1 root root    0 Aug 21 21:12 8:0:2:0 -> ../../../../devices/pci0000:00/0000:00:08.0/0000:01:08.0/host8/target8:0:2/8:0:2:0/
lrwxrwxrwx 1 root root    0 Aug 21 21:12 8:0:3:0 -> ../../../../devices/pci0000:00/0000:00:08.0/0000:01:08.0/host8/target8:0:3/8:0:3:0/
--w------- 1 root root 4096 Aug 21 21:12 bind
--w------- 1 root root 4096 Aug 21 15:16 uevent
--w------- 1 root root 4096 Aug 21 21:12 unbind
# ls -l 2:0:0:0
lrwxrwxrwx 1 root root 0 Aug 21 21:12 2:0:0:0 -> ../../../../devices/pci0000:00/0000:00:09.0/ata3/host2/target2:0:0/2:0:0:0/
# ls -l 2:0:0:0/
total 0
drwxr-xr-x 3 root root    0 Aug 21 15:15 block/
drwxr-xr-x 3 root root    0 Aug 21 15:16 bsg/
--w------- 1 root root 4096 Aug 21 21:28 delete
-r--r--r-- 1 root root 4096 Aug 21 21:28 device_blocked
lrwxrwxrwx 1 root root    0 Aug 21 15:15 driver -> ../../../../../../../bus/scsi/drivers/sd/
-r--r--r-- 1 root root 4096 Aug 21 21:28 evt_media_change
-r--r--r-- 1 root root 4096 Aug 21 21:28 iocounterbits
-r--r--r-- 1 root root 4096 Aug 21 21:28 iodone_cnt
-r--r--r-- 1 root root 4096 Aug 21 21:28 ioerr_cnt
-r--r--r-- 1 root root 4096 Aug 21 21:28 iorequest_cnt
-r--r--r-- 1 root root 4096 Aug 21 21:28 modalias
-r--r--r-- 1 root root 4096 Aug 21 20:17 model
drwxr-xr-x 2 root root    0 Aug 21 21:28 power/
-rw-r--r-- 1 root root 4096 Aug 21 21:28 queue_depth
-rw-r--r-- 1 root root 4096 Aug 21 21:28 queue_ramp_up_period
-r--r--r-- 1 root root 4096 Aug 21 21:28 queue_type
--w------- 1 root root 4096 Aug 21 21:28 rescan
-r--r--r-- 1 root root 4096 Aug 21 21:28 rev
drwxr-xr-x 3 root root    0 Aug 21 15:16 scsi_device/
drwxr-xr-x 3 root root    0 Aug 21 15:16 scsi_disk/
-r--r--r-- 1 root root 4096 Aug 21 21:28 scsi_level
-rw-r--r-- 1 root root 4096 Aug 21 21:28 state
lrwxrwxrwx 1 root root    0 Aug 21 15:15 subsystem -> ../../../../../../../bus/scsi/
-rw-r--r-- 1 root root 4096 Aug 21 21:28 sw_activity
-rw-r--r-- 1 root root 4096 Aug 21 21:28 timeout
-r--r--r-- 1 root root 4096 Aug 21 20:17 type
-rw-r--r-- 1 root root 4096 Aug 21 15:15 uevent
-rw-r--r-- 1 root root 4096 Aug 21 21:28 unload_heads
-r--r--r-- 1 root root 4096 Aug 21 15:15 vendor
# ls -l 2:0:0:0/block
total 0
drwxr-xr-x 10 root root 0 Aug 21 15:15 sdc/
SO, when you boot using the huge kernel, execute the following command:
Code:
ls /sys/bus/scsi/drivers/sd/0:2:0:0/block
I expect that you'll see...
Code:
sda/
Boot using the initrd with the megaraid_mbox module. When you get to the rescue prompt, enter the same command. I expect that you'll see sdb. If you do, you'll know that's the correct disk and can either change your root device in the initrd (and fstab) to match or use the UUID or set a label on the partition.

This is a case where lvm would help since lvm doesn't give a rat's behind about how the physical drives are named; in that case, you'd have to fix the initrd and nothing else.

Of course, if you don't see sdb, you can post a reply with HA! I KNEW you were wrong! and I shall dine upon crow.

Last edited by Richard Cranium; 08-21-2014 at 09:47 PM.
 
1 members found this post helpful.
Old 08-22-2014, 03:55 AM   #38
Dieselchair
LQ Newbie
 
Registered: Mar 2013
Location: /bin/bash
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 0
Solved

WELL I think the only one dining on crow will be me.

You are correct about it changing to sdb with the generic kernel. What confused me is when I tried using a UUID without properly including megaraid_mbox. It was only after Explicitly using UUID's and correctly adding options to mkinitrd_command_generator.sh did it finally boot! I don't know why I didn't see it sooner.

Thank you everyone for posting and helping me figure this out. You are awesome, thank you all.

mkinitrd
Code:
/usr/share/mkinitrd/mkinitrd_command_generator.sh -r -m megaraid_mbox -a "-r UUID=7bcc7e7f-05bd-43c5-a4f2-3580b724eba3"
mkinitrd -c -k 3.10.17 -f ext4 -r /dev/sdb1 -m megaraid:usbhid:hid_generic:uhci-hcd:mbcache:jbd2:ext4:megaraid_mbox -u -o /boot/initrd.gz -r UUID=7bcc7e7f-05bd-43c5-a4f2-3580b724eba3
lilo.conf
Code:
# Generic
image = /boot/vmlinuz-generic-3.10.17
  initrd = /boot/initrd.gz
  append="root=UUID=7bcc7e7f-05bd-43c5-a4f2-3580b724eba3"
  label = 3.10.17
  read-only
# Huge
image = /boot/vmlinuz-huge-3.10.17
  root = /dev/sda1
  label = huge
  read-only
And don't forget fstab either
Code:
cat /etc/fstab
# swap
UUID=087d315b-6d42-429b-888e-af3b03153d09        swap             swap        defaults         0   0
# Root
UUID=7bcc7e7f-05bd-43c5-a4f2-3580b724eba3        /                ext4        defaults         1   1
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 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
tmpfs            /dev/shm         tmpfs       defaults         0   0
# Mounting storage
UUID=72fd94e9-7a7d-4d6b-be19-2406d27068ce        /home/dave/storage   ext4        defaults         1   2
 
Old 08-22-2014, 08:33 AM   #39
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
Aaah, that explains the "Now its saying can't find /mnt in /etc/fstab" comment. I should have caught that; it meant that you were mounting the root device successfully.

Glad to see you're up and running. And now both of us know how to use UUIDs for initrd and fstab.

Last edited by Richard Cranium; 08-22-2014 at 08:35 AM. Reason: The OP marked the thread as [SOLVED] so I don't need to hint that he/she should do so.
 
1 members found this post helpful.
Old 08-22-2014, 01:14 PM   #40
Dieselchair
LQ Newbie
 
Registered: Mar 2013
Location: /bin/bash
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 0
I just caught something in lilo that makes this a bit more interesting. While running lilo -v in generic it tries looking for boot = /dev/sda and fails. Changing it to sdb gets it working but if I'm in huge it would need to be changed back to sda again.

Code:
cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
boot = /dev/sda

compact        # faster, but won't work on all systems.
Code:
lilo -v
LILO version 24.0 (released 07-Juni-2013)
  * Copyright (C) 1992-1998 Werner Almesberger  (until v20)
  * Copyright (C) 1999-2007 John Coffman  (until v22)
  * Copyright (C) 2009-2013 Joachim Wiedorn  (since v23)
This program comes with ABSOLUTELY NO WARRANTY. This is free software 
distributed under the BSD License (3-clause). Details can be found in 
the file COPYING, which is distributed with this software.
Compiled at 17:40:54 on Oct 27 2013

Warning: LBA32 addressing assumed
Reading boot sector from /dev/sda
Fatal: open /dev/sda: No medium found

Last edited by Dieselchair; 08-22-2014 at 01:17 PM.
 
Old 08-22-2014, 01:34 PM   #41
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Let's quote "man lilo.conf" on that:
Code:
boot=<boot-device>
              Sets  the name of the device (e.g. hard disk or partition) that contains the boot sector and where the
              new boot sector should be written to. Notice: The boot-device should be the device with the  currently
              mounted root partition.

              A   raid  installation  is  initiated  by  specifying  a  RAID1  device  as  the  boot  device;  e.g.,
              "boot=/dev/md0".

              On newer systems you need an unique ID for the boot device. If the boot sector should write to a  par‐
              tition you can use its UUID in the same manner is for the root options.

              If  your  boot  device  is a hard disk you need a special ID, which is supported by udev. You find the
              right ID in the directory /dev/disks/by-id, i. e.:

                  boot = /dev/disk/by-id/ata-SAMSUNG_SV1604N_S01FJ10X999999
 
1 members found this post helpful.
Old 08-22-2014, 04:29 PM   #42
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
lilo-uuid-diskid will generate the appropriate boot line for you.
 
1 members found this post helpful.
Old 08-22-2014, 05:59 PM   #43
Dieselchair
LQ Newbie
 
Registered: Mar 2013
Location: /bin/bash
Distribution: Slackware
Posts: 27

Original Poster
Rep: Reputation: 0
Would /dev/disk/by-path/ also work in lilo?
 
Old 08-22-2014, 06:08 PM   #44
Didier Spaier
LQ Addict
 
Registered: Nov 2008
Location: Paris, France
Distribution: Slint64-15.0
Posts: 11,056

Rep: Reputation: Disabled
Quote:
Originally Posted by Dieselchair View Post
Would /dev/disk/by-path/ also work in lilo?
I don't know but even then you'd have to find out yourself the path, so what would be the benefit?
 
Old 08-22-2014, 06:46 PM   #45
Richard Cranium
Senior Member
 
Registered: Apr 2009
Location: McKinney, Texas
Distribution: Slackware64 15.0
Posts: 3,858

Rep: Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225Reputation: 2225
I just tested this on a VM image.
Code:
root@darkstar:~# blkid
/dev/sda1: UUID="06057de1-0b0f-4bd3-bdee-bab974d16273" TYPE="ext2" 
/dev/sda2: UUID="87dae353-80d9-417e-8154-f6a81012e7d5" TYPE="reiserfs" 
root@darkstar:~# lilo-uuid-diskid 
boot option is already updated to /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001
root@darkstar:~# cat /etc/fstab 
/dev/sda2        /                reiserfs    defaults         1   1
/dev/sda1        /boot            ext2        defaults         1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 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
tmpfs            /dev/shm         tmpfs       defaults         0   0
root@darkstar:~# cat /proc/mounts 
rootfs / rootfs rw 0 0
proc /proc proc rw,relatime 0 0
sysfs /sys sysfs rw,relatime 0 0
tmpfs /run tmpfs rw,relatime,mode=755 0 0
devtmpfs /dev devtmpfs rw,relatime,size=513592k,nr_inodes=128398,mode=755 0 0
/dev/sda2 / reiserfs rw,relatime 0 0
devpts /dev/pts devpts rw,relatime,gid=5,mode=620,ptmxmode=000 0 0
cgroup_root /sys/fs/cgroup tmpfs rw,relatime,mode=755 0 0
cpuset /sys/fs/cgroup/cpuset cgroup rw,relatime,cpuset 0 0
cpu /sys/fs/cgroup/cpu cgroup rw,relatime,cpu 0 0
cpuacct /sys/fs/cgroup/cpuacct cgroup rw,relatime,cpuacct 0 0
devices /sys/fs/cgroup/devices cgroup rw,relatime,devices 0 0
freezer /sys/fs/cgroup/freezer cgroup rw,relatime,freezer 0 0
net_cls /sys/fs/cgroup/net_cls cgroup rw,relatime,net_cls 0 0
blkio /sys/fs/cgroup/blkio cgroup rw,relatime,blkio 0 0
perf_event /sys/fs/cgroup/perf_event cgroup rw,relatime,perf_event 0 0
fusectl /sys/fs/fuse/connections fusectl rw,relatime 0 0
/dev/sda1 /boot ext2 rw,relatime,errors=continue,user_xattr,acl 0 0
tmpfs /dev/shm tmpfs rw,relatime 0 0
root@darkstar:~# /usr/share/mkinitrd/mkinitrd_command_generator.sh -r -a "-r UUID=87dae353-80d9-417e-8154-f6a81012e7d5"
mkinitrd -c -k 3.10.17-smp -f reiserfs -r /dev/sda2 -m reiserfs -u -o /boot/initrd.gz -r UUID=87dae353-80d9-417e-8154-f6a81012e7d5
root@darkstar:~# $( /usr/share/mkinitrd/mkinitrd_command_generator.sh -r -a "-r UUID=87dae353-80d9-417e-8154-f6a81012e7d5" )
OK: /lib/modules/3.10.17-smp/kernel/fs/reiserfs/reiserfs.ko added.
17492 blocks
/boot/initrd.gz created.
Be sure to run lilo again if you use it.
root@darkstar:~# /usr/share/mkinitrd/mkinitrd_command_generator.sh -l /boot/vmlinuz-generic-smp-3.10.17-smp -a "-r UUID=87dae353-80d9-417e-8154-f6a81012e7d5"
# Linux bootable partition config begins
# initrd created with 'mkinitrd -c -k 3.10.17-smp -f reiserfs -r /dev/sda2 -m reiserfs -u -o /boot/initrd.gz -r UUID=87dae353-80d9-417e-8154-f6a81012e7d5'
image = /boot/vmlinuz-generic-smp-3.10.17-smp
  initrd = /boot/initrd.gz
  root = /dev/sda2
  label = 3.10.17-smp
  read-only
# Linux bootable partition config ends
root@darkstar:~# cat /etc/lilo.conf
# LILO configuration file
# generated by 'liloconfig'
#
# Start LILO global section
# Append any additional kernel parameters:
append=" vt.default_utf8=0"
#boot = /dev/sda
boot = /dev/disk/by-id/ata-QEMU_HARDDISK_QM00001

#compact        # faster, but won't work on all systems.

# Boot BMP Image.
# Bitmap in BMP format: 640x480x8
  bitmap = /boot/slack.bmp
# Menu colors (foreground, background, shadow, highlighted
# foreground, highlighted background, highlighted shadow):
  bmp-colors = 255,0,255,0,255,0
# Location of the option table: location x, location y, number of
# columns, lines per column (max 15), "spill" (this is how many
# entries must be in the first column before the next begins to
# be used.  We don't specify it here, as there's just one column.
  bmp-table = 60,6,1,16
# Timer location x, timer location y, foreground color,
# background color, shadow color.
  bmp-timer = 65,27,0,255

# Standard menu.
# Or, you can comment out the bitmap menu above and 
# use a boot message with the standard menu:
#message = /boot/boot_message.txt

# Wait until the timeout to boot (if commented out, boot the
# first entry immediately):
prompt
# Timeout before the first entry boots.
# This is given in tenths of a second, so 600 for every minute:
timeout = 1200
# Override dangerous defaults that rewrite the partition table:
change-rules
  reset
# Normal VGA console
vga = normal
# Ask for video mode at boot (time out to normal in 30s)
#vga = ask
# 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
# End LILO global section
# Linux bootable partition config begins
image = /boot/vmlinuz
  root = /dev/sda2
  label = Linux
  read-only
# Linux bootable partition config ends
# Linux bootable partition config begins
# initrd created with 'mkinitrd -c -k 3.10.17-smp -f reiserfs -r /dev/sda2 -m reiserfs -u -o /boot/initrd.gz'
image = /boot/vmlinuz-generic-smp-3.10.17-smp
  initrd = /boot/initrd.gz
  root = "UUID=87dae353-80d9-417e-8154-f6a81012e7d5"
  label = 3.10.17-smp
  read-only
# Linux bootable partition config ends
root@darkstar:~# cat /etc/fstab
#/dev/sda2        /                reiserfs    defaults         1   1
UUID=87dae353-80d9-417e-8154-f6a81012e7d5 / reiserfs defaults 1   1
#/dev/sda1        /boot            ext2        defaults         1   2
UUID=06057de1-0b0f-4bd3-bdee-bab974d16273 /boot ext2 defaults 1   2
#/dev/cdrom      /mnt/cdrom       auto        noauto,owner,ro,comment=x-gvfs-show 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
tmpfs            /dev/shm         tmpfs       defaults         0   0
root@darkstar:~#
Both stanzas work. I did have to hand edit the lilo.conf entry, since the mkinitrd_command_generator script doesn't understand the additional "-r UUID=blah" option.

I had already edited lilo.conf with the new stuff prior to running it in the above quoted code block, so that's out of sequence.

Last edited by Richard Cranium; 08-22-2014 at 06:51 PM.
 
  


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
Can we install Fedora on Dell PowerEdge 2850 ? smraza1 Fedora 2 08-10-2011 07:37 PM
Kernel panic with generic kernel Slackware 13.1 goodadamgood Slackware 3 01-31-2011 04:57 PM
megaraid controller on Dell 2850 (kernel panic) nikkadim Linux - Newbie 5 07-06-2010 02:22 AM
Slackware SMP kernel on Dell PE 2850 bobmac010 Linux - Kernel 2 02-06-2007 03:15 PM
installing slackware 10.2 on dell poweredge 2850 aubrey-calm2 Linux - Newbie 11 07-22-2006 11:10 AM

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

All times are GMT -5. The time now is 07:12 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