LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware - Installation (http://www.linuxquestions.org/questions/slackware-installation-40/)
-   -   Finding out the ID of /dev/sda in slack 14.0 (http://www.linuxquestions.org/questions/slackware-installation-40/finding-out-the-id-of-dev-sda-in-slack-14-0-a-4175436999/)

stf92 11-13-2012 04:59 PM

Finding out the ID of /dev/sda in slack 14.0
 
/etc/lilo.conf_example says, speaking about the line 'boot=<device>' in lilo.conf: "With newer kernel you should use the ID of the boot device, which can be found here: /dev/disks/by-id/ata*".

As I have booted from the installation disk in the normal way, then mounted /dev/sr1, the hard disk, target of installation which I have just done, and seen by the system as /dev/sda, on /mnt, I have two directories where to look for /dev/disks:

(a) /dev
(b) /mnt/dev

But disks/ is in neither one nor the other! So, how could I do to find the ID of /dev/sda?

malekmustaq 11-14-2012 02:01 AM

You may verify whether what you are seeing is the hard disk (sda) or not for the purpose of pointing this the boot loader:

Code:

find /dev/disk/by-id/ -iname \*ata\*par\*1 | xargs file
if your disk is partitioned there are as many nodes therein for each partition:

Code:

find /dev/disk/by-id/ -iname \*ata\*par\* | xargs ls -l
Usually, while booted from /dev/sr0 the one on the /dev is the liveCD system, the one you are running (UNLESS if you have chrooted thereto). And the other one /mnt/dev is your root partition as mounted. To check that mounted root system's version on the /mnt/* --

Code:

cat /mnt/etc/*version*
that should echo to you whether it is a slackware or debian or whatever partition you have 'mounted' but that is certainly not the one you are running. Verify the running /dev the same way--

Quote:

cat /etc/*version*
This time it is the running live CD version.

Hope that helps.

Salud primo.

stf92 11-14-2012 02:10 AM

Thank you, malekmustaq. There is a typo in /etc/lilo.conf_example. It says

/dev/disks where it must say /dev/disk. But reading lilo.conf man page, I found the correct path and all went well.

By the way, any command to switch the text console to normal video? I do not have the vidmode command! It's slackware 14.0 and I can't almost read the screen.

stf92 11-14-2012 02:32 AM

Salud a ti, primo.

malekmustaq 11-14-2012 08:12 AM

Quote:

Originally Posted by stf92 (Post 4828951)
By the way, any command to switch the text console to normal video? I do not have the vidmode command! It's slackware 14.0 and I can't almost read the screen.

If you mean 'to switch' while running in the console, I know none to do it. However, in your lilo.conf you can set 'vga=771' (a very conservative and safe resolution but) good enough while working; as you boot you will have at least good screen console resolution.

Hope that helps.

Salud unavez.


All times are GMT -5. The time now is 06:33 AM.