Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Tim
Alan McKinnon wrote:
 On Tuesday 03 June 2008, Tim wrote:
 I recently had occasion to need a floppy drive. Thankfully, there was
 one in my Gentoo box, but no support in the kernel. I added
 CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my
 IDE chipset included, rebuilt my kernel, and rebooted.

 Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and
 255) are all symlinks to /dev/pts/0. Relevant command outputs:
 
 /dev/fd is a symlink to /dev/self/fd
 
 and I believe that fd here means file descriptor not floppy disk
 
 do you have devices /dev/fd0 etc instead? If not, what do you get from
 
I do not.

 grep -r fd /etc/udev/rules.d/
 
produces:

/etc/udev/rules.d/99-libsane.rules:SYSFS{idVendor}==06bd,
SYSFS{idProduct}==20fd, MODE=660, GROUP=scanner
/etc/udev/rules.d/60-persistent-storage.rules:KERNEL==ram*|loop*|fd*|nbd*|gnbd*|dm-*|md*,
GOTO=persistent_storage_end
/etc/udev/rules.d/50-udev.rules:KERNEL==fd[0-9]*,
NAME=floppy/%k, SYMLINK+=%k, GROUP=floppy
/etc/udev/rules.d/50-udev.rules:KERNEL==fd[0-9]*, ACTION==add,
ATTRS{cmos}==*, RUN+=create_floppy_devices -c -t $attr{cmos} -m %M -M
0660 -G floppy $root/floppy/%k
/etc/udev/rules.d/50-udev.rules:KERNEL==fd[0-9]*, ACTION==remove,
RUN+=/bin/sh -c 'rm -f $root/floppy/%k?*'

-Tim
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Tim
Dirk Heinrichs wrote:
 Am Dienstag, 3. Juni 2008 schrieb ext Dirk Heinrichs:
 
 That makes 4 out of 4 possible devices. So where's your IDE floppy
 connected to, then?
 
 Is it an IDE floppy device at all, or a normal PC floppy device?
 
 Bye...
 
   Dirk
I was unaware there was a difference. It's a 34-pin ribbon cable
connector on the motherboard.

-Tim
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Dirk Heinrichs
Am Dienstag, 3. Juni 2008 schrieb ext Alan McKinnon:
 On Tuesday 03 June 2008, Dirk Heinrichs wrote:
   What do I need to do to get usable block access to my floppy from
   something in /dev/fd?
 
  Nothing. It's IDE Floppy, not Floppy. You should have new hd* entries
  in /dev for your IDE Floppy device. Read some more lines in your
  dmesg output.

 Is this another change introduced by libata?

No. IDE floppies are a different kind of device, IOmega Zip is one example. 
They are attached to an IDE controller, just like a hard disk or CDRom 
drive.

 RHEL still uses /dev/fd{0,1} so I imagine this is a back-port they have
 done?

Dunno. The kernel driver still uses fd internally. However, here's the 
relevant udev rules from Gentoo:

% grep -r floppy /etc/udev/rules.d
/etc/udev/rules.d/50-udev.rules:# floppy devices
/etc/udev/rules.d/50-udev.rules:KERNEL==fd[0-9]*, NAME=floppy/%k, 
SYMLINK+=%k, GROUP=floppy
/etc/udev/rules.d/50-udev.rules:KERNEL==fd[0-9]*, ACTION==add, 
ATTRS{cmos}==*, RUN+=create_floppy_devices -c -t $attr{cmos} -m %M -M 
0660 -G floppy $root/floppy/%k
/etc/udev/rules.d/50-udev.rules:KERNEL==fd[0-9]*, ACTION==remove, 
RUN+=/bin/sh -c 'rm -f $root/floppy/%k?*'
/etc/udev/rules.d/50-udev-default.rules:KERNEL==hd*, SUBSYSTEMS==ide, 
ATTRS{media}==floppy, OPTIONS+=all_partitions
/etc/udev/rules.d/50-udev-default.rules:KERNEL==fd[0-9],  
GROUP=floppy
/etc/udev/rules.d/50-udev-default.rules:KERNEL==fd[0-9], ACTION==add, 
ATTRS{cmos}==?*, RUN+=create_floppy_devices -c -t $attr{cmos} -m %M -M 
0640 -G floppy $root/%k

But the rule for IDE floppy looks like this:

% grep -r ide-floppy /etc/udev/rules.d
/etc/udev/rules.d/60-persistent-storage.rules:KERNEL==hd*[!0-9], 
ATTR{removable}==1, DRIVERS==ide-cs|ide-floppy, 
GOTO=persistent_storage_end

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Dirk Heinrichs
Am Dienstag, 3. Juni 2008 schrieb ext Tim:

 I was unaware there was a difference. It's a 34-pin ribbon cable
 connector on the motherboard.

Yes, that's a normal PC floppy device. You need CONFIG_BLK_DEV_FD.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Alan McKinnon
On Tuesday 03 June 2008, Dirk Heinrichs wrote:
  Is this another change introduced by libata?

 No. IDE floppies are a different kind of device, IOmega Zip is one
 example. They are attached to an IDE controller, just like a hard
 disk or CDRom drive.

OK, that explains everything. I've never ever used such a device.

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Regex question

2008-06-03 Thread Adam Carter
I want to filter the strings; ? something http:// or ? something? https:// 
or ? something ftp:// from URLs in apache. I know i need to escape ? but i'm 
not sure about / and i've used '(something|otherthing|whatever)' to make the 
'or's work.

LocationMatch '(\?.*http:\/\/|\?.*https:\/\/|\?.*ftp\/\/)'
Order allow,deny
Deny from all
/LocationMatch

is that regex correct? Will egrep use the exact same regex syntax (so i can use 
it to check?)

tnx


Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Alan McKinnon
On Tuesday 03 June 2008, Tim wrote:
 I recently had occasion to need a floppy drive. Thankfully, there was
 one in my Gentoo box, but no support in the kernel. I added
 CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my
 IDE chipset included, rebuilt my kernel, and rebooted.

 Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and
 255) are all symlinks to /dev/pts/0. Relevant command outputs:

/dev/fd is a symlink to /dev/self/fd

and I believe that fd here means file descriptor not floppy disk

do you have devices /dev/fd0 etc instead? If not, what do you get from

grep -r fd /etc/udev/rules.d/

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Dirk Heinrichs
Am Dienstag, 3. Juni 2008 schrieb ext Tim:

 Nothing there either.

 # dmesg|grep -i hd
 Kernel command line: root=/dev/hda3
 ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
 ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
 hda: WDC WD400BB-23DEA0, ATA DISK drive
 hdb: IC35L060AVER07-0, ATA DISK drive
 hdc: Hewlett-Packard DVD Writer 300, ATAPI CD/DVD-ROM drive
 hdd: FX320S, ATAPI CD/DVD-ROM drive

 My primary IDE is two hard drives, hda being Gentoo and relevant
 partitions and hdb holding Windows XP in a single partition. My
 secondary is two CD/DVD drives. Nothing in dmesg, either in this excerpt
 or otherwise, indicates the presence of an IDE floppy at /dev/hd*.

That makes 4 out of 4 possible devices. So where's your IDE floppy connected 
to, then?

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Alan McKinnon
On Tuesday 03 June 2008, Dirk Heinrichs wrote:
  What do I need to do to get usable block access to my floppy from
  something in /dev/fd?

 Nothing. It's IDE Floppy, not Floppy. You should have new hd* entries
 in /dev for your IDE Floppy device. Read some more lines in your
 dmesg output.

Is this another change introduced by libata? I can't remember the last 
time I actually used a floppy on Gentoo...

RHEL still uses /dev/fd{0,1} so I imagine this is a back-port they have 
done?

-- 
Alan McKinnon
alan dot mckinnon at gmail dot com

-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Tim
Tim wrote:
 Dirk Heinrichs wrote:
 Am Dienstag, 3. Juni 2008 schrieb ext Dirk Heinrichs:

 That makes 4 out of 4 possible devices. So where's your IDE floppy
 connected to, then?
 Is it an IDE floppy device at all, or a normal PC floppy device?

 Bye...

  Dirk
 I was unaware there was a difference. It's a 34-pin ribbon cable
 connector on the motherboard.
 
 -Tim
And that's the solution. I added CONFIG_BLK_DEV_FD=y to .config, got rid
of CONFIG_BLK_DEV_IDEFLOPPY, and rebuilt again. /dev/fd0 now appears as
a working floppy device.

Thanks Dirk and everyone else who helped!

-Tim
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Dirk Heinrichs
Am Dienstag, 3. Juni 2008 schrieb ext Tim:
 I recently had occasion to need a floppy drive. Thankfully, there was
 one in my Gentoo box, but no support in the kernel. I added
 CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my IDE
 chipset included, rebuilt my kernel, and rebooted.

 Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and 255)
 are all symlinks to /dev/pts/0. Relevant command outputs:

That's correct.

 # dmesg|grep -i floppy
 ide-floppy driver 0.99.newide

 What do I need to do to get usable block access to my floppy from
 something in /dev/fd?

Nothing. It's IDE Floppy, not Floppy. You should have new hd* entries 
in /dev for your IDE Floppy device. Read some more lines in your dmesg 
output.

HTH...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Tim
Dirk Heinrichs wrote:
 Am Dienstag, 3. Juni 2008 schrieb ext Tim:
 I recently had occasion to need a floppy drive. Thankfully, there was
 one in my Gentoo box, but no support in the kernel. I added
 CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my IDE
 chipset included, rebuilt my kernel, and rebooted.

 Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and 255)
 are all symlinks to /dev/pts/0. Relevant command outputs:
 
 That's correct.
 
 # dmesg|grep -i floppy
 ide-floppy driver 0.99.newide
 
 What do I need to do to get usable block access to my floppy from
 something in /dev/fd?
 
 Nothing. It's IDE Floppy, not Floppy. You should have new hd* entries 
 in /dev for your IDE Floppy device. Read some more lines in your dmesg 
 output.
 
 HTH...
 
   Dirk
Nothing there either.

# dmesg|grep -i hd
Kernel command line: root=/dev/hda3
ide0: BM-DMA at 0xd000-0xd007, BIOS settings: hda:DMA, hdb:DMA
ide1: BM-DMA at 0xd008-0xd00f, BIOS settings: hdc:DMA, hdd:DMA
hda: WDC WD400BB-23DEA0, ATA DISK drive
hdb: IC35L060AVER07-0, ATA DISK drive
hdc: Hewlett-Packard DVD Writer 300, ATAPI CD/DVD-ROM drive
hdd: FX320S, ATAPI CD/DVD-ROM drive
hda: max request size: 128KiB
hda: Host Protected Area detected.
hda: Host Protected Area disabled.
hda: 78165360 sectors (40020 MB) w/2048KiB Cache, CHS=65535/16/63, UDMA(100)
hda: cache flushes not supported
 hda: hda1 hda2 hda3
hdb: max request size: 128KiB
hdb: 120103200 sectors (61492 MB) w/1916KiB Cache, CHS=65535/16/63,
UDMA(100)
hdb: cache flushes not supported
 hdb: hdb1
hdc: ATAPI 40X DVD-ROM CD-R/RW drive, 2048kB Cache, UDMA(33)
hdd: ATAPI 32X CD-ROM drive, 256kB Cache, DMA
ReiserFS: hda3: found reiserfs format 3.6 with standard journal
ReiserFS: hda3: using ordered data mode
ReiserFS: hda3: journal params: device hda3, size 8192, journal first
block 18, max trans len 1024, max batch 900, max commit age 30, max
trans age 30
ReiserFS: hda3: checking transaction log (hda3)
ReiserFS: hda3: Using r5 hash to sort names
NTFS-fs warning (device hdb1): load_system_files(): $LogFile is not
clean.  Will not be able to remount read-write.  Mount in Windows.
Adding 506036k swap on /dev/hda2.  Priority:-1 extents:1 across:506036k

My primary IDE is two hard drives, hda being Gentoo and relevant
partitions and hdb holding Windows XP in a single partition. My
secondary is two CD/DVD drives. Nothing in dmesg, either in this excerpt
or otherwise, indicates the presence of an IDE floppy at /dev/hd*.

# ls -al /dev/hd*
brw-rw 1 root disk   3,  0 Jun  2 20:35 /dev/hda
brw-rw 1 root disk   3,  1 Jun  2 20:35 /dev/hda1
brw-rw 1 root disk   3,  2 Jun  2 20:35 /dev/hda2
brw-rw 1 root disk   3,  3 Jun  2 20:35 /dev/hda3
brw-rw 1 root disk   3, 64 Jun  2 20:35 /dev/hdb
brw-rw 1 root disk   3, 65 Jun  2 20:35 /dev/hdb1
brw-rw 1 root cdrom 22,  0 Jun  2 20:35 /dev/hdc
brw-rw 1 root cdrom 22, 64 Jun  2 20:35 /dev/hdd

-Tim
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Dirk Heinrichs
Am Dienstag, 3. Juni 2008 schrieb ext Alan McKinnon:
 On Tuesday 03 June 2008, Tim wrote:
  I recently had occasion to need a floppy drive. Thankfully, there was
  one in my Gentoo box, but no support in the kernel. I added
  CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my
  IDE chipset included, rebuilt my kernel, and rebooted.
 
  Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and
  255) are all symlinks to /dev/pts/0. Relevant command outputs:

 /dev/fd is a symlink to /dev/self/fd

 and I believe that fd here means file descriptor not floppy disk

 do you have devices /dev/fd0 etc instead? If not, what do you get from

 grep -r fd /etc/udev/rules.d/

We're talking IDE floppy here, not floppy. That's /dev/hd* 
vs. /dev/floppy/*.

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] fd symlinks to pts?

2008-06-03 Thread Tim
I recently had occasion to need a floppy drive. Thankfully, there was
one in my Gentoo box, but no support in the kernel. I added
CONFIG_BLK_DEV_IDEFLOPPY=y to .config and already had support for my IDE
chipset included, rebuilt my kernel, and rebooted.

Now I have a folder /dev/fd/, but every entry there (0, 1, 2, and 255)
are all symlinks to /dev/pts/0. Relevant command outputs:

# dmesg|grep -i floppy
ide-floppy driver 0.99.newide

# uname -r
2.6.22-gentoo-r2

# cd /dev/fd; ls -al
total 0
dr-x-- 2 root root  0 Jun  3 02:32 .
dr-xr-xr-x 5 root root  0 Jun  3 02:32 ..
lrwx-- 1 root root 64 Jun  3 02:32 0 - /dev/pts/0
lrwx-- 1 root root 64 Jun  3 02:32 1 - /dev/pts/0
lrwx-- 1 root root 64 Jun  3 02:32 2 - /dev/pts/0
lrwx-- 1 root root 64 Jun  3 02:32 255 - /dev/pts/0

# ls -al /dev/fd
lrwxrwxrwx 1 root root 13 Jun  2 20:35 /dev/fd - /proc/self/fd

What do I need to do to get usable block access to my floppy from
something in /dev/fd?

-Tim
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] fd symlinks to pts?

2008-06-03 Thread Dirk Heinrichs
Am Dienstag, 3. Juni 2008 schrieb ext Dirk Heinrichs:

 That makes 4 out of 4 possible devices. So where's your IDE floppy
 connected to, then?

Is it an IDE floppy device at all, or a normal PC floppy device?

Bye...

Dirk
-- 
Dirk Heinrichs  | Tel:  +49 (0)162 234 3408
Configuration Manager   | Fax:  +49 (0)211 47068 111
Capgemini Deutschland   | Mail: [EMAIL PROTECTED]
Wanheimerstraße 68  | Web:  http://www.capgemini.com
D-40468 Düsseldorf  | ICQ#: 110037733
GPG Public Key C2E467BB | Keyserver: wwwkeys.pgp.net


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Installing Gentoo 2007.1

2008-06-03 Thread Mick
On Tuesday 03 June 2008, Norman Hakim wrote:
 By the way, you may want to just shrink your MSWindows partition with

  e.g.
 gparted LiveCD and then create new partitions to install Gentoo in.
   This
 will allow you to multiboot into either OS.  A common data partition
  will
 allow you access to your data files, music, etc. by both OS too.

 HI,

 Can u assist me or explain more detailed how do i shrink my MSWindows and
 how do i create new partitions to install Gentoo so that i can do multiboot
 into either os? and also about the common data partition.

Hi Norman,
--
Try to follow accepted/expected netiquette on this mailing list please.  Check 
(http://linux.sgms-centre.com/misc/netiquette.php) which includes avoiding 
html format and top-posting.
--

My way of shrinking MSWIndows OS partitions:

1. Move all data files from C:\ drive, where MSWindows usually saves files as 
a default (e.g. from My Documents, My Music, etc.), to a CD/DVD/fileserver.
2. Delete all *.tmp files under C:\Documents and Settings\user_name\Local 
Settings\Temp, stale image files, etc.
3. Defragment the C:\ drive, reboot and defragment once more.
4. Use Gparted to shrink the C:\ drive partition to something between 12 to 
15GB.
5. Boot into MSWindows, which may well run chdisk - let it finish.  Then go to 
Administrative Tools/ Disk Manager and create a new data partition, but leave 
enough space on the disk for the Gentoo partitions (min 10G).  The new data 
partition can be formatted as ntfs or msdos.
6. Move all your data files from the CD/DVD/fileserver into the new partition.  
Change all MSWindows applications default paths to save their new files into 
your new data partition, instead of C:\ - otherwise you will soon run out of 
space on your C:\ drive.

For getting gparted go to http://gparted.sourceforge.net/livecd.php download 
the iso and burn a CD image.  If you would prefer using a LiveUSB and your PC 
can boot from a USB drive, then follow the link to the LiveUSB in the gparted 
website.

Then follow the Gentoo installation handbook for creating the Gentoo 
partitions while booted into the gparted LiveCD if you wish, or boot using 
the Gentoo LiveCD and use fdisk to create the new partitions exactly as the 
handbook describes.

Multibooting can be achieved in different ways.  If your linux installation is 
to become permanent then follow the Gentoo handbook to install Grub in the 
MBR of the hard disk and configure your /boot/grub/grub.conf as shown in the 
handbook for chainloading the WinXP OS.

Alternatively, if your MSWindows OS is permanent and your Linux installation 
is temporary, you will need to install Grub into the partition boot sector of 
your Linux OS (either the /boot partition, or if you do not use a separate 
boot partition then use your root partition) and follow the instructions 
under the section Getting NTLDR to Load Linux in this link: 
http://www.vsubhash.com/writeups/multiboot_os.asp

The link describes the LiLo boot manager, but the principles are the same as 
far as MSWindows is concerned.  You can google for chainload Grub using 
NTLDR or similar to find the same approach but using Grub as the linux boot 
manager.

HTH.
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] /boot keeps mounting itself

2008-06-03 Thread Mick
On Monday 02 June 2008, Grant wrote:
  I've been noticing this for awhile and it's time I ask you guys about
  it:
 
  # mount /boot
  # umount /boot
  # mount /boot
  mount: /dev/hda1 already mounted or /boot busy
  mount: according to mtab, /dev/hda1 is already mounted on /boot
 
  A few hours elapsed after the second command was issued, but these
  commands were issued sequentially.  I guess something in the system is
  mounting /boot?
 
  If you run mount without parameters, it tells you list of mounted
  filesystem. So you can have a look, if it is really mounted.

 That's what worries me, it really is mounted.

So, if you run:

 # umount /boot
 # mount

what do you get?
-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


[gentoo-user] Second dvd/cd device confused with K3B

2008-06-03 Thread James
Hello,

I replaced a very old cdrom device with a newer DVD rw,
as the second dvdrw device in a workstation.

dmesg:
hda: _NEC DVD_RW ND-3550A, ATAPI CD/DVD-ROM drive
hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
Uniform CD-ROM driver Revision: 3.20
scsi 2:0:0:0: CD-ROM PLEXTOR  DVDR PX-755A 1.04 PQ: 0 ANSI: 5
sr 2:0:0:0: Attached scsi CD-ROM sr0


upon logging in, I get this popup error message in kde:
CD-ROM read or access error (or no audio disc in drive).
Please make sure you have access permissions to:
/dev/cdrom

udev:
cat 75-cd-aliases-generator.rules
# these rules generate rules for the /dev/{cdrom,dvd,...} symlinks
# the path of removable devices changes frequently
ACTION==add, SUBSYSTEM==block, SUBSYSTEMS==usb|ieee1394,
ENV{ID_CDROM}==?*, ENV{GENERATED}!=?*, 
PROGRAM=write_cd_rules by-id,
SYMLINK+=%c


cat 60-cdrom_id.rules
# import optical drive properties
KERNEL==sr[0-9]*|hd[a-z]|pcd[0-9]*, 
IMPORT{program}=cdrom_id --export $tempnode


The error message device (/dev/cdrom) does not exist. Should I manually
create it? Modify a udev rule? or what?

Note: when I run K3B, I do  not see both devices as active 
at the same time.
Yet, I can manually load a source dvd/cd into either device 
and (via dbus/ivman)
a popup appears which I can use to launch K3B and the source device
is seen, but the device with the blank dvd/cd media is blanked out. If I 
switch the source dvd/cd then the device with the source disk is seen
and the other is blanked out.

Ideas on fixing this so I can load a dvd/cd into one drive and copy
to the other? (yes they are both dvdrw and cdrw devices. One is sata, the
other is ide, if that matters.


James


-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] Re: Second dvd/cd device confused with K3B

2008-06-03 Thread James
James wireless at tampabay.rr.com writes:


 dmesg:
 hda: _NEC DVD_RW ND-3550A, ATAPI CD/DVD-ROM drive
 hda: ATAPI 48X DVD-ROM DVD-R CD-R/RW drive, 2048kB Cache
 Uniform CD-ROM driver Revision: 3.20
 scsi 2:0:0:0: CD-ROM PLEXTOR  DVDR PX-755A 1.04 PQ: 0 ANSI: 5
 sr 2:0:0:0: Attached scsi CD-ROM sr0


Oooops,

If forgot to include this information:
 l /dev/cdr*
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrom1 - sr0
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrom3 - hda
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrw1 - sr0
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrw3 - hda

egrep cdrom /etc/group
cdrom::19:haldaemon,gentoo,james

I realize the cdrom0 does not exist, so but should that
effect how K3B works and it's ability to see and use
2 different dvd/cd devices?


James




-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Keyboard problems

2008-06-03 Thread ionut cucu
On Wed, 28 May 2008 22:14:28 -0400
Hal Martin [EMAIL PROTECTED] wrote:

 No, I've had the same problem, same symptoms, and the same solution 
 fixed it. My assumption is that the kernel has some bug where the 
 keyboard interface starts dropping data.
 
 I'm running 2.6.23-gentoo-r6 on an AMD64.
 
 -Hal
 
 
 ionut cucu wrote:
  While gracefully working on my computer out of the blue, by keyboard
  stops working. Changing keyboards didn't help, only rebooting does.
  Both PS/2 keyboards...So I guess it's a computer issue...any ideas
  where I should start looking?

 
It's official :I've updated to 2.6.25-gentoo-r4 and for 2 days I'm key
powered
-- 
gentoo-user@lists.gentoo.org mailing list



[gentoo-user] multifile replacing with charset respecting

2008-06-03 Thread Andrew Gaydenko
Hi!

Does such tool (CLI or GUI) exists?
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] multifile replacing with charset respecting

2008-06-03 Thread Etaoin Shrdlu
On Tuesday 3 June 2008, 21:47, Andrew Gaydenko wrote:
 Hi!

 Does such tool (CLI or GUI) exists?

sed?
-- 
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Re: Second dvd/cd device confused with K3B

2008-06-03 Thread b.n.

James ha scritto:


Oooops,

If forgot to include this information:
 l /dev/cdr*
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrom1 - sr0
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrom3 - hda
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrw1 - sr0
lrwxrwxrwx 1 root root 3 Jun  3 07:43 /dev/cdrw3 - hda

egrep cdrom /etc/group
cdrom::19:haldaemon,gentoo,james

I realize the cdrom0 does not exist, so but should that
effect how K3B works and it's ability to see and use
2 different dvd/cd devices?


It shouldn't ; you just should see in the k3b configuration what devices 
it sees and tell it what to use.


m.


--
gentoo-user@lists.gentoo.org mailing list



Re: [gentoo-user] Regex question

2008-06-03 Thread Iain Buchanan
Hi,

On Tue, 2008-06-03 at 17:39 +1000, Adam Carter wrote:
 I want to filter the strings; ? something http:// or ? something?
 https:// or ? something ftp:// from URLs in apache. I know i need to
 escape ? but i'm not sure about /

/ needs to be escaped in perl if your regex delimiters are / as well,
but here you use ' so I would _hope_ that you don't need \/\/ sort of
syntax.  YMMV.

  and i've used '(something|otherthing|whatever)' to make the 'or's
 work. 

I usually do perl, but it should be the same...  Actually on reading
further, Apache uses Perl Compatible Regular Expressions provided by
the PCRE library.  Neat.  You should be viewing this with a fixed width
font too :)
 
 LocationMatch '(\?.*http:\/\/|\?.*https:\/\/|\?.*ftp\/\/)'
typo here==^

how about taking the common bits out of the ()
'\?.*(http|https|ftp)://'

and it's good practise to use ^ if that's what you're expecting:
'^\?.*(http|https|ftp)://'

 Order allow,deny
 Deny from all
 /LocationMatch
  
 is that regex correct? Will egrep use the exact same regex syntax (so
 i can use it to check?)

I think they're essentially the same, with the exception of some classes
(like [:punct:] or [\d]).  egrep may need some extra escaping so as not
to confuse your shell.  The best way to test is to use the real program,
so see if you can get info out of your logs to help.

hth,
-- 
Iain Buchanan iaindb at netspace dot net dot au

  I tripped over a hole that was sticking up out of the ground.

-- 
gentoo-user@lists.gentoo.org mailing list