Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] How to trace start-up problems
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Sun Oct 12, 2014 8:23 pm    Post subject: [SOLVED] How to trace start-up problems Reply with quote

For some (unknown) reason my Gentoo stopped working.
It doesn't start up.

I reinstalled Grub 1 in the beginning of Gentoo root partition and removed that entry from EasyBCD.
Then I added the entry in EasyBCD.

There is quite some start-up logs on the terminal. Then the screen seems to get flushed and an underscore is left blinking
in the beginning of an empty screen.

Should the start-up logs be found in some log file?
It looks like the later boot attempts have not written anything in the 'messages'-file.

My system is triple-boot (trial-boot? :lol: )
on SATA disk I have Windows (vista, 32-bit) and Gentoo (root and swap partitions)
On an PATA disk I have Sabayon.

All booting is done via Windows boot manager (EasyBCD 2.2).
Windows boots, Sabayon boots, but Gentoo doesn't anymore.
Maybe adding Sabayon (and the PATA disk) caused this?

On Sabayon:
Code:
JAASABAYON jaa # fdisk -l

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1549f232

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sda1  *           63 491362734 491362672 234.3G  7 HPFS/NTFS/exFAT
/dev/sda2       596220345 625137344  28917000  13.8G  c W95 FAT32 (LBA)
/dev/sda3       491362735 591834660 100471926  47.9G 83 Linux
/dev/sda4       591834661 596220344   4385684   2.1G  5 Extended
/dev/sda5       591834663 596220344   4385682   2.1G 83 Linux

Partition table entries are not in disk order.
Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x69205244

Device     Boot     Start       End   Sectors   Size Id Type
/dev/sdb1       266483712 300038143  33554432    16G 82 Linux swap / Solaris
/dev/sdb2       300038144 488397167 188359024  89.8G  5 Extended
/dev/sdb3            2048 266483711 266481664 127.1G 83 Linux
/dev/sdb5       300040192 486289407 186249216  88.8G  7 HPFS/NTFS/exFAT
/dev/sdb6       486291456 488397167   2105712     1G  6 FAT16

Partition table entries are not in disk order.


Here /dev/sda1 is Windows, /dev/sda3 is Gentoo and /dev/sdb3 is Sabayon.

Chrooted terminal (to Gentoo) gives:

[code](chroot) JAASABAYON / # fdisk -l

Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x1549f232
[code]chroot) JAASABAYON log # ls -ls
total 25512
64 -rw-r----- 1 root root 57411 Sep 28 13:16 dmesg
4 -rw-rw---- 1 portage portage 480 Sep 27 14:01 emerge-fetch.log
56 -rw-rw---- 1 portage portage 51506 Sep 28 13:20 emerge.log
4 -rw-r--r-- 1 root root 1406 Jul 27 18:03 genkernel.log
4 -rw-r--r-- 1 root root 292 Sep 28 13:16 lastlog
25220 -rw------- 1 root root 25792510 Oct 4 13:25 messages
4 drwxrwsr-x 3 portage portage 4096 Jul 17 02:33 portage
4 drwxrwx--- 2 root portage 4096 Jul 17 03:11 sandbox
4 -rw------- 1 root root 64 Sep 28 13:16 tallylog
148 -rw-rw-r-- 1 root utmp 143616 Oct 4 13:25
Device Boot Start End Blocks Id System
/dev/sda1 * 63 491362734 245681336 7 HPFS/NTFS/exFAT
/dev/sda2 596220345 625137344 14458500 c W95 FAT32 (LBA)
/dev/sda3 491362735 591834660 50235963 83 Linux
/dev/sda4 591834661 596220344 2192842 5 Extended
/dev/sda5 591834663 596220344 2192841 83 Linux

Partition table entries are not in disk order.

Disk /dev/sdb: 232.9 GiB, 250059350016 bytes, 488397168 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x69205244

Device Boot Start End Blocks Id System
/dev/sdb1 266483712 300038143 16777216 82 Linux swap / Solaris
/dev/sdb2 300038144 488397167 94179512 5 Extended
/dev/sdb3 2048 266483711 133240832 83 Linux
/dev/sdb5 300040192 486289407 93124608 7 HPFS/NTFS/exFAT
/dev/sdb6 486291456 488397167 1052856 6 FAT16

Partition table entries are not in disk order.
[/code]

In the Gentoo grub.conf
[code]default 0
timeout 30
# splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.12.21-r1
root (hd0,2)
kernel /boot/vmlinuz-3.12.21-gentoo-r1 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.12.21-gentoo-r1
[/code]

This is found even if I did a couple of boot attempts today:
[code](chroot) JAASABAYON log # tail -20 messages
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.636022] usb 2-4: new low-speed USB device number 71 using ohci-pci
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.826043] usb 2-4: New USB device found, idVendor=093a, idProduct=2510
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.826047] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.826049] usb 2-4: Product: USB Optical Mouse
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.826051] usb 2-4: Manufacturer: PixArt
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.836361] input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:02.0/usb2/2-4/2-4:1.0/input/input8400
Oct 4 13:24:27 JAA-GENTOO kernel: [518924.836499] hid-generic 0003:093A:2510.20C2: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:02.0-4/input0
Oct 4 13:25:27 JAA-GENTOO kernel: [518984.836094] usb 2-4: USB disconnect, device number 71
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.522023] usb 2-4: new low-speed USB device number 72 using ohci-pci
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.712039] usb 2-4: New USB device found, idVendor=093a, idProduct=2510
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.712042] usb 2-4: New USB device strings: Mfr=1, Product=2, SerialNumber=0
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.712045] usb 2-4: Product: USB Optical Mouse
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.712047] usb 2-4: Manufacturer: PixArt
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.722356] input: PixArt USB Optical Mouse as /devices/pci0000:00/0000:00:02.0/usb2/2-4/2-4:1.0/input/input8401
Oct 4 13:25:29 JAA-GENTOO kernel: [518986.722496] hid-generic 0003:093A:2510.20C3: input,hidraw0: USB HID v1.11 Mouse [PixArt USB Optical Mouse] on usb-0000:00:02.0-4/input0
Oct 4 13:25:48 JAA-GENTOO shutdown[21296]: shutting down for system halt
Oct 4 13:25:48 JAA-GENTOO kernel: [519006.172733] Not activating Mandatory Access Control as /sbin/tomoyo-init does not exist.
Oct 4 13:25:48 JAA-GENTOO init: Switching to runlevel: 0
Oct 4 13:25:49 JAA-GENTOO sshd[5029]: Received signal 15; terminating.
Oct 4 13:25:50 JAA-GENTOO syslog-ng[4887]: syslog-ng shutting down; version='3.4.7'
[/code]

[code]chroot) JAASABAYON log # ls -ls
total 25512
64 -rw-r----- 1 root root 57411 Sep 28 13:16 dmesg
4 -rw-rw---- 1 portage portage 480 Sep 27 14:01 emerge-fetch.log
56 -rw-rw---- 1 portage portage 51506 Sep 28 13:20 emerge.log
4 -rw-r--r-- 1 root root 1406 Jul 27 18:03 genkernel.log
4 -rw-r--r-- 1 root root 292 Sep 28 13:16 lastlog
25220 -rw------- 1 root root 25792510 Oct 4 13:25 messages
4 drwxrwsr-x 3 portage portage 4096 Jul 17 02:33 portage
4 drwxrwx--- 2 root portage 4096 Jul 17 03:11 sandbox
4 -rw------- 1 root root 64 Sep 28 13:16 tallylog
148 -rw-rw-r-- 1 root utmp 143616 Oct 4 13:25 wtmp
[/code]

Where the heck all the logs have been going since october 4?
Any suggestions where to look?
Maybe I could set some logging in the grub.conf?
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)


Last edited by turboscrew on Tue Oct 14, 2014 9:32 pm; edited 1 time in total
Back to top
View user's profile Send private message
juggling_ben
n00b
n00b


Joined: 25 Nov 2007
Posts: 15

PostPosted: Mon Oct 13, 2014 2:59 pm    Post subject: Reply with quote

Did Sabayon & Gentoo ever work together? And has gentoo ever booted successfully after Oct 4?

Check the free disk space. Maybe root (or /var if on a separate partition) is full?

Also, double, triple, and quadruple check the partitions given on the kernel command lines in grub (real_root= or root=) for gentoo and Sabayon. Maybe UUIDs on the command line - adding Sabayon may have reordered something (?)
Back to top
View user's profile Send private message
Roman_Gruber
Advocate
Advocate


Joined: 03 Oct 2006
Posts: 3846
Location: Austro Bavaria

PostPosted: Mon Oct 13, 2014 3:31 pm    Post subject: Reply with quote

No idea why you need sabayon at all when you have a gentoo box? wonders.

RTFM, or lets rephrase it. TAke the gentoo handbook and check every step, make notes, and search the net. Basically start from there regarding kernel / boot / partition layout. Make notes and htan report back what you did. Also start from scratch with these and report back if that solves the problem. new config by hand, new knerel, new boot entry. ...

For me it is partly belongs to unsupported because I think you screwed it up with sabayon in teh first place.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54098
Location: 56N 3W

PostPosted: Mon Oct 13, 2014 4:47 pm    Post subject: Reply with quote

turboscrew,

You don't get any logs written to disk until root is mounted rw.
Sure, logs from before that time are saved in RAM and commited later. If root is never pw, you don't get any logs.

grub wiil give you a flashing underscore if if cannot find its grub.conf to read.
You can continue to boot if you type the needed commands at the flashing underscore.

As you can chroot into Gentoo, it has to be the boot sequence that is broken.
From the chroot post the content of /boot/grub/grub.conf and the output of ls -l /boot
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Mon Oct 13, 2014 10:04 pm    Post subject: Reply with quote

juggling_ben wrote:
Did Sabayon & Gentoo ever work together? And has gentoo ever booted successfully after Oct 4?

Check the free disk space. Maybe root (or /var if on a separate partition) is full?

Also, double, triple, and quadruple check the partitions given on the kernel command lines in grub (real_root= or root=) for gentoo and Sabayon. Maybe UUIDs on the command line - adding Sabayon may have reordered something (?)


No, first there was windows/gentoo dual-boot on a SATA-disk (sda1 and sda3). Gentoo was command-line only, because I couldn't get the wlan to connect (did like the handbook said, It could scan my wlan, though). That's why I didn't install anything until I got the wlan working. There is no ethernet cable, where the machine is.

Then I took an older PATA-disk and installed Sabayon on it - I thought it might be useful since it's basically a "pre-configured Gentoo" and probably supports most good Gentoo-stuff.

Then suddenly, Gentoo didn't boot. Sabayon did.
I only have root and swap partitions for Gentoo. Both on the same (SATA) disk.

There should be room left: dufreports 35% used.
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Mon Oct 13, 2014 10:08 pm    Post subject: Reply with quote

tw04l124 wrote:
No idea why you need sabayon at all when you have a gentoo box? wonders.

RTFM, or lets rephrase it. TAke the gentoo handbook and check every step, make notes, and search the net. Basically start from there regarding kernel / boot / partition layout. Make notes and htan report back what you did. Also start from scratch with these and report back if that solves the problem. new config by hand, new knerel, new boot entry. ...

For me it is partly belongs to unsupported because I think you screwed it up with sabayon in teh first place.


Like I mentioned, I only have root and boot partitions. Grub is installed in the beginning of the root partition.

Could it be rather the addition of PATA disk on the side of a SATA disk rather than install of one OS messing up another?

It did boot, and chrooting still works. If I have to do all the installation over, that will take quite long time - months.
I don't have that much time.
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)


Last edited by turboscrew on Mon Oct 13, 2014 10:24 pm; edited 1 time in total
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Mon Oct 13, 2014 10:21 pm    Post subject: Reply with quote

NeddySeagoon wrote:
turboscrew,

You don't get any logs written to disk until root is mounted rw.
Sure, logs from before that time are saved in RAM and commited later. If root is never pw, you don't get any logs.

grub wiil give you a flashing underscore if if cannot find its grub.conf to read.
You can continue to boot if you type the needed commands at the flashing underscore.

As you can chroot into Gentoo, it has to be the boot sequence that is broken.
From the chroot post the content of /boot/grub/grub.conf and the output of ls -l /boot


Quote:
grub wiil give you a flashing underscore if if cannot find its grub.conf to read.

I guess I have to try that, at least to see what happens.

Code:
(chroot) JAASABAYON / # ls -l /boot
total 48304
lrwxrwxrwx 1 root root        1 Jul 28 19:49 boot -> .
-rw-r--r-- 1 root root   150367 Jul 27 17:56 config-3.12.21-gentoo-r1
-rw-r--r-- 1 root root   102488 Jul 27 11:50 config-3.12.21-gentoo-r1.old
drwxr-xr-x 2 root root     4096 Oct 12 18:20 grub
-rw-r--r-- 1 root root 33967524 Jul 27 18:03 initramfs-genkernel-x86_64-3.12.21-gentoo-r1
-rw-r--r-- 1 root root  2870034 Jul 27 17:56 System.map-3.12.21-gentoo-r1
-rw-r--r-- 1 root root  2966909 Jul 27 11:50 System.map-3.12.21-gentoo-r1.old
-rw-r--r-- 1 root root  3806560 Jul 27 17:56 vmlinuz-3.12.21-gentoo-r1
-rw-r--r-- 1 root root  5508016 Jul 27 11:50 vmlinuz-3.12.21-gentoo-r1.old


Code:
(chroot) JAASABAYON / # cat /boot/grub/grub.conf
# This is a sample grub.conf for use with Genkernel, per the Gentoo handbook
# http://www.gentoo.org/doc/en/handbook/handbook-x86.xml?part=1&chap=10#doc_chap2
# If you are not using Genkernel and you need help creating this file, you
# should consult the handbook. Alternatively, consult the grub.conf.sample that
# is included with the Grub documentation.

default 0
timeout 30
# splashimage=(hd0,2)/boot/grub/splash.xpm.gz

title Gentoo Linux 3.12.21-r1
root (hd0,2)
kernel /boot/vmlinuz-3.12.21-gentoo-r1 root=/dev/ram0 real_root=/dev/sda3
initrd /boot/initramfs-genkernel-x86_64-3.12.21-gentoo-r1

# vim:ft=conf:


(Sabayon uses Grub2)

Funny, I wonder... "...handbook-x86.xml..."
I have amd64 multilib.
Also:
(chroot) JAASABAYON / # file /sbin/grub
/sbin/grub: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped
Is that right?

(chroot) JAASABAYON bin # file /bin/bash
/bin/bash: ELF 64-bit LSB executable, x86-64, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 2.6.16, stripped

I tried to re-install grub (and the boot in EasyBCD). On the other hand, the not-booting was the cause of re-installing...
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Mon Oct 13, 2014 11:23 pm    Post subject: Reply with quote

I tried booting to gentoo again, and yes, it did boot sabayon.
I pressed alt-f1 and saw the logs.
With alt-f2 I got login prompt to Sabayon, but with Gentoo-kernel.
fdisk -l showed that PATA and SATA had switched places, now PATA was sda and SATA was sdb.

In the chrooted:

Code:
grub> root (hd
 Possible disks are:  hd0 hd1

grub> root (hd0,
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0x7
   Partition num: 1,  Filesystem type unknown, partition type 0xc
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 4,  Filesystem type unknown, partition type 0x83

grub> root (hd1,
 Possible partitions are:
   Partition num: 0,  Filesystem type unknown, partition type 0x82
   Partition num: 2,  Filesystem type is ext2fs, partition type 0x83
   Partition num: 4,  Filesystem type unknown, partition type 0x7
   Partition num: 5,  Filesystem type is fat, partition type 0x6

hd0 is SATA (NTFS as the first) and hd1 is PATA.
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Oct 14, 2014 1:31 am    Post subject: Reply with quote

At the risk of stating the obvious.

Quote:
kernel /boot/vmlinuz-3.12.21-gentoo-r1 root=/dev/ram0 real_root=/dev/sda3


and

Quote:
fdisk -l showed that PATA and SATA had switched places, now PATA was sda and SATA was sdb.


Edit grub.conf to read

kernel /boot/vmlinuz-3.12.21-gentoo-r1 root=/dev/ram0 real_root=/dev/sdb3

This was implied in your post, but I wasn't sure you realized it. You didn't mark your post [SOLVED]. I, myself, sometimes need to have to be shown the obvious. No offense intended.
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Tue Oct 14, 2014 7:51 am    Post subject: Reply with quote

Well, I unplugged the PATA drive, and Gentoo booted normally.

I think I'm seeing this: https://bbs.archlinux.org/viewtopic.php?id=89282

Quote:
No offense intended.

None taken. :)
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
Tony0945
Watchman
Watchman


Joined: 25 Jul 2006
Posts: 5127
Location: Illinois, USA

PostPosted: Tue Oct 14, 2014 1:07 pm    Post subject: Reply with quote

Yes. Grub sees the disks in BIOS boot order while the kernel sees them in udev detection order.

If you want the PATA disk to be removable and always be the second disk in both systems then you will have to do things in your BIOS to be sure that the BIOS detects SATA first and also create a udev rule. The alternative is to use UUID in fstab and while booting. I've never done this so I can't advise you how. I just did some googling and I have to say that I find the udev rules confusing. It's not as easy as disambiguating two DVD drives.

Are you in the habit of removing the PATA drive? If not, just edit grub.conf as I said in my first post.
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Tue Oct 14, 2014 3:16 pm    Post subject: Reply with quote

I'll try that sdb-approach.
It may take some time now that quite some things to do emerged (again) all of a sudden.
I'll report here anyway as soon as I tried.

I also tried to find out if I could use 'root = LABEL = /' with legacy grub (and better explanation of it),
but haven't found that yet.
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54098
Location: 56N 3W

PostPosted: Tue Oct 14, 2014 4:18 pm    Post subject: Reply with quote

turboscrew,

You can use UUID or LABEL in /etc/fstab.
To use either UUID or LABEL in grub.conf you need an initrd to provide the userspace mount tool as the kernel does not understand either.

However you can use PARTUUID in grub.conf. Thats been a featule of GPT disklabels for a long time and has been ported to the MSDOS kernel code arounh 3.8.
Code:
/sbin/blkid
will tell you the magic numbers but you will need to google the syntax.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Tue Oct 14, 2014 5:16 pm    Post subject: Reply with quote

NeddySeagoon wrote:
turboscrew,

You can use UUID or LABEL in /etc/fstab.
To use either UUID or LABEL in grub.conf you need an initrd to provide the userspace mount tool as the kernel does not understand either.

However you can use PARTUUID in grub.conf. Thats been a featule of GPT disklabels for a long time and has been ported to the MSDOS kernel code arounh 3.8.
Code:
/sbin/blkid
will tell you the magic numbers but you will need to google the syntax.


Sounds good. I'll check it up. That might be the "long term solution" the short term solution being 'root = /dev/sdb3' in grub.conf.
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
turboscrew
Tux's lil' helper
Tux's lil' helper


Joined: 13 Jul 2014
Posts: 88
Location: Nokia (town), Finland

PostPosted: Tue Oct 14, 2014 9:31 pm    Post subject: Reply with quote

Yep, booting from (hd0,2) but telling kernel that 'root = /dev/sdb3' worked and Gentoo booted with the PATA disk in place.
I'll check the PARTUUID way later when I have more time.

Thanks to you all for your help.
_________________
3.12.21-gentoo-r1 on HP Pavilion a6622sc (CPU: Phenom 8550, Graphics: NVIDIA GeForce 9300GS, Chipset: NVIDIA GeForce 6150SE nForce 430, RAM: 3GB)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum