LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware > Slackware - Installation
User Name
Password
Slackware - Installation This forum is for the discussion of installation issues with Slackware.

Notices

Reply
 
Search this Thread
Old 11-13-2012, 04:59 PM   #1
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Rep: Reputation: 46
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?
 
Old 11-14-2012, 02:01 AM   #2
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,215

Rep: Reputation: 231Reputation: 231Reputation: 231
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.

Last edited by malekmustaq; 11-14-2012 at 02:05 AM.
 
1 members found this post helpful.
Old 11-14-2012, 02:10 AM   #3
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
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.
 
Old 11-14-2012, 02:32 AM   #4
stf92
Senior Member
 
Registered: Apr 2007
Location: Buenos Aires.
Distribution: Slackware
Posts: 3,125

Original Poster
Rep: Reputation: 46
Salud a ti, primo.
 
Old 11-14-2012, 08:12 AM   #5
malekmustaq
Senior Member
 
Registered: Dec 2008
Location: /root
Distribution: Slackware & BSD
Posts: 1,215

Rep: Reputation: 231Reputation: 231Reputation: 231
Quote:
Originally Posted by stf92 View Post
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.
 
  


Reply


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
/dev/sda to /dev/hda - Slack 13.37 b0f Linux - Newbie 4 06-07-2011 03:26 PM
RHEL 6 after boot primary partition shows /dev/sdb instead of /dev/sda vipul_patel Red Hat 1 04-26-2011 09:48 AM
iscsi: which local device (/dev/sda, /dev/sdb) is used WITHOUT dmesg? knikkerr Linux - Software 3 08-13-2010 04:30 AM
Installing RIP LinuX on a USB drive - device name /dev/sdc becomes /dev/sda Mleahy Linux - Software 1 07-30-2008 08:57 PM
Sandisk USB card Reader not linking /dev/sg0 to /dev/sda acidraven Linux - Hardware 1 06-19-2004 03:56 PM


All times are GMT -5. The time now is 12:52 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration