Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Find out hardware on iBook
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC
View previous topic :: View next topic  
Author Message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Fri Jun 02, 2006 7:27 pm    Post subject: Find out hardware on iBook Reply with quote

I have KDE on my Gentoo, which is on my iBook G3 and I'm wondering if there is some sort of thing that I can run or do to find out if the CD drive is a CD burner or not?
Back to top
View user's profile Send private message
savage
Apprentice
Apprentice


Joined: 01 Jan 2003
Posts: 161

PostPosted: Fri Jun 02, 2006 10:37 pm    Post subject: Reply with quote

perhaps read through the output of `dmesg` - not sure if iBooks use IDE, but if they do, look for something like this:
Code:
Probing IDE interface ide1...
hdc: SONY DVD RW DRU-800A, ATAPI CD/DVD-ROM drive
Back to top
View user's profile Send private message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Sat Jun 03, 2006 2:21 am    Post subject: Reply with quote

No, I didn't see it anywhere.

Anymore suggestions?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jun 03, 2006 3:18 am    Post subject: Reply with quote

emerge libcdio, then run cd-info, that should tell you what you need to know :)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Sat Jun 03, 2006 12:29 pm    Post subject: Reply with quote

I emerged it and ran cd-info and it just doesn't do anything... (like it makes a newline and then it just stays there.)
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sat Jun 03, 2006 4:12 pm    Post subject: Reply with quote

Well, something is wrong then. Does the /dev/cdrom link point to anything? You can use cd-info /dev/hdX to see details on a certain drive. Give that a shot.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Sat Jun 03, 2006 11:17 pm    Post subject: Reply with quote

Again nothing happens it just makes a new line and freezes until I hit Ctrl+C
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jun 04, 2006 12:04 am    Post subject: Reply with quote

emerge strace and see where it's hanging. That's not normal behaviour.
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Sun Jun 04, 2006 1:34 am    Post subject: Reply with quote

I emerged strace and ran both cd-info and cd-info /dev/hdX but nothing changed... they both just hang. Am I supposed to add an option for the strace to do something?
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jun 04, 2006 1:58 am    Post subject: Reply with quote

You use strace to see what system calls a program is running. So to see what cd-info is hanging on:
strace cd-info
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Sun Jun 04, 2006 2:06 am    Post subject: Reply with quote

EDIT: Whatever I'll just post it all... strace cd-info:

Quote:
execve("/usr/bin/cd-info", ["cd-info"], [/* 48 vars */]) = 0
uname({sys="Linux", node="scott", ...}) = 0
brk(0) = 0x10017000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30017000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=52170, ...}) = 0
mmap(NULL, 52170, PROT_READ, MAP_PRIVATE, 3, 0) = 0x30018000
close(3) = 0
open("/usr/lib/libiso9660.so.4", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\000"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=51132, ...}) = 0
mmap(0xffd3000, 118412, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xffd3000
madvise(0xffd3000, 118412, MADV_SEQUENTIAL|0x1) = 0
mprotect(0xffdf000, 69260, PROT_NONE) = 0
mmap(0xffee000, 8192, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xb000) = 0xffee000
close(3) = 0
open("/usr/lib/libcdio.so.5", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0bp"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=113560, ...}) = 0
mmap(0xff94000, 192212, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xff94000
madvise(0xff94000, 192212, MADV_SEQUENTIAL|0x1) = 0
mprotect(0xffae000, 85716, PROT_NONE) = 0
mmap(0xffbe000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a000) = 0xffbe000
mmap(0xffbf000, 16084, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xffbf000
close(3) = 0
open("/usr/lib/libpopt.so.0", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0%8"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=35276, ...}) = 0
mmap(0xff6b000, 99692, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xff6b000
madvise(0xff6b000, 99692, MADV_SEQUENTIAL|0x1) = 0
mprotect(0xff73000, 66924, PROT_NONE) = 0
mmap(0xff83000, 4096, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x8000) = 0xff83000
close(3) = 0
open("/lib/tls/libm.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\0\233"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=498020, ...}) = 0
mmap(0xfed5000, 545916, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfed5000
madvise(0xfed5000, 545916, MADV_SEQUENTIAL|0x1) = 0
mprotect(0xff48000, 74876, PROT_NONE) = 0
mmap(0xff57000, 16384, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x72000) = 0xff57000
close(3) = 0
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\2\1\0\0\0\0\0\0\0\0\0\0\3\0\24\0\0\0\1\0\1\313"..., 512) = 512
fstat64(3, {st_mode=S_IFREG|0755, st_size=1311340, ...}) = 0
mmap(0xfd84000, 1313700, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0xfd84000
madvise(0xfd84000, 1313700, MADV_SEQUENTIAL|0x1) = 0
mprotect(0xfeae000, 93092, PROT_NONE) = 0
mmap(0xfebd000, 24576, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x129000) = 0xfebd000
mmap(0xfec3000, 7076, PROT_READ|PROT_WRITE|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0xfec3000
close(3) = 0
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30025000
mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x30028000
mprotect(0xfebd000, 8192, PROT_READ) = 0
mprotect(0xff57000, 4096, PROT_READ) = 0
mprotect(0x30026000, 4096, PROT_READ) = 0
munmap(0x30018000, 52170) = 0
open("/dev/urandom", O_RDONLY) = 3
read(3, "(K\36\247", 4) = 4
close(3) = 0
brk(0) = 0x10017000
brk(0x10038000) = 0x10038000
Back to top
View user's profile Send private message
JoseJX
Retired Dev
Retired Dev


Joined: 28 Apr 2002
Posts: 2774

PostPosted: Sun Jun 04, 2006 4:19 pm    Post subject: Reply with quote

Are you running this as root? (Or a user with access to the devices?)
_________________
Gentoo PPC FAQ: http://www.gentoo.org/doc/en/gentoo-ppc-faq.xml
Back to top
View user's profile Send private message
VanillaGorilla
Tux's lil' helper
Tux's lil' helper


Joined: 27 Apr 2006
Posts: 108

PostPosted: Sun Jun 04, 2006 7:17 pm    Post subject: Reply with quote

I am using root.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Gentoo on PPC 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