* [gentoo-user] mounting cdrom during boot
@ 2006-06-14 23:18 Bo Ørsted Andresen
2006-06-14 23:31 ` Neil Bothwick
0 siblings, 1 reply; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-14 23:18 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 791 bytes --]
Everytime I boot my system I see this message:
==========================================
/dev/cdrom: open failed: No medium found
==========================================
Everytime I shut down my system I see these (those two lines were repeated 23
times during last shutdown):
==========================================
/dev/cdrom: open failed: No medium found
Attempt to close device: '/dev/cdrom' which is not open.
/dev/cdrom: open failed: No medium found
Attempt to close device: '/dev/cdrom' which is not open.
...
==========================================
I do not have a cd in the drive. Earlier /dev/cdrom was in /etc/fstab with the
noauto option. After I discovered this I tried removing it from /etc/fstab.
But no change. Any ideas?
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-14 23:18 [gentoo-user] mounting cdrom during boot Bo Ørsted Andresen
@ 2006-06-14 23:31 ` Neil Bothwick
2006-06-14 23:52 ` Bo Ørsted Andresen
0 siblings, 1 reply; 17+ messages in thread
From: Neil Bothwick @ 2006-06-14 23:31 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 380 bytes --]
On Thu, 15 Jun 2006 01:18:34 +0200, Bo Ørsted Andresen wrote:
> /dev/cdrom: open failed: No medium found
> Attempt to close device: '/dev/cdrom' which is not open.
> /dev/cdrom: open failed: No medium found
> Attempt to close device: '/dev/cdrom' which is not open.
Are you using LVM?
--
Neil Bothwick
Phasers don't kill people...Unless you set them too high.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-14 23:31 ` Neil Bothwick
@ 2006-06-14 23:52 ` Bo Ørsted Andresen
2006-06-15 3:05 ` Norberto Bensa
2006-06-15 7:30 ` Neil Bothwick
0 siblings, 2 replies; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-14 23:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 359 bytes --]
On Thursday 15 June 2006 01:31, Neil Bothwick wrote:
> Are you using LVM?
Sure. So it's because of this?
========================
# grep ^\ *filter /etc/lvm/lvm.conf
filter = [ "a/.*/" ]
========================
Thanks for the pointer. I forgot to change that when I reinstalled after my
old harddrive was replaced. :)
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-14 23:52 ` Bo Ørsted Andresen
@ 2006-06-15 3:05 ` Norberto Bensa
2006-06-15 7:30 ` Neil Bothwick
1 sibling, 0 replies; 17+ messages in thread
From: Norberto Bensa @ 2006-06-15 3:05 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 278 bytes --]
Bo Ørsted Andresen wrote:
> On Thursday 15 June 2006 01:31, Neil Bothwick wrote:
> > Are you using LVM?
>
> Sure. So it's because of this?
Yup. Remove the cdrom and then:
# lvchange -a y
--
Norberto Bensa
Cel: 011-5654-9539
Ciudad de Buenos Aires, Argentina
[-- Attachment #2: Type: application/pgp-signature, Size: 198 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-14 23:52 ` Bo Ørsted Andresen
2006-06-15 3:05 ` Norberto Bensa
@ 2006-06-15 7:30 ` Neil Bothwick
2006-06-15 9:59 ` [gentoo-user] " Mick
2006-06-15 10:16 ` [gentoo-user] " Bo Ørsted Andresen
1 sibling, 2 replies; 17+ messages in thread
From: Neil Bothwick @ 2006-06-15 7:30 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 550 bytes --]
On Thu, 15 Jun 2006 01:52:29 +0200, Bo Ørsted Andresen wrote:
> > Are you using LVM?
>
> Sure. So it's because of this?
>
> ========================
> # grep ^\ *filter /etc/lvm/lvm.conf
> filter = [ "a/.*/" ]
> ========================
Yes, you need to comment this line and uncomment the cdrom line. Or you
can use a filter line that only permits specified devices, which also
stops LVM scanning any memory sticks etc (unless you want LVM on a memory
stick :)
--
Neil Bothwick
All Scottish food is based on a dare.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* [gentoo-user] Re: mounting cdrom during boot
2006-06-15 7:30 ` Neil Bothwick
@ 2006-06-15 9:59 ` Mick
2006-06-15 10:16 ` [gentoo-user] " Bo Ørsted Andresen
1 sibling, 0 replies; 17+ messages in thread
From: Mick @ 2006-06-15 9:59 UTC (permalink / raw
To: gentoo-user
Well, I'm not using LVM and I'm getting the same messages (unless I
have a CD in the drive).
--
Regards,
Mick
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 7:30 ` Neil Bothwick
2006-06-15 9:59 ` [gentoo-user] " Mick
@ 2006-06-15 10:16 ` Bo Ørsted Andresen
2006-06-15 10:46 ` Neil Bothwick
2006-06-15 11:19 ` Nick Rout
1 sibling, 2 replies; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-15 10:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 845 bytes --]
On Thursday 15 June 2006 09:30, Neil Bothwick wrote:
> On Thu, 15 Jun 2006 01:52:29 +0200, Bo Ørsted Andresen wrote:
> > > Are you using LVM?
> >
> > Sure. So it's because of this?
> >
> > ========================
> > # grep ^\ *filter /etc/lvm/lvm.conf
> > filter = [ "a/.*/" ]
> > ========================
>
> Yes, you need to comment this line and uncomment the cdrom line. Or you
> can use a filter line that only permits specified devices, which also
> stops LVM scanning any memory sticks etc (unless you want LVM on a memory
> stick :)
I have changed it to this:
========================
# grep ^\ *filter /etc/lvm/lvm.conf
filter = [ "a|^/dev/hda|", "r/.*/" ]
========================
My cdrom drive is /dev/hdc. But this has not changed anything. I still get
those messages. :(
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 10:16 ` [gentoo-user] " Bo Ørsted Andresen
@ 2006-06-15 10:46 ` Neil Bothwick
2006-06-15 10:59 ` Bo Ørsted Andresen
2006-06-15 11:19 ` Nick Rout
1 sibling, 1 reply; 17+ messages in thread
From: Neil Bothwick @ 2006-06-15 10:46 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 481 bytes --]
On Thu, 15 Jun 2006 12:16:59 +0200, Bo Ørsted Andresen wrote:
> ========================
> # grep ^\ *filter /etc/lvm/lvm.conf
> filter = [ "a|^/dev/hda|", "r/.*/" ]
> ========================
>
> My cdrom drive is /dev/hdc. But this has not changed anything. I still
> get those messages. :(
Try
filter = [ "a|^/dev/hda|", "r|.*|" ]
--
Neil Bothwick
TROI : What am I sensing?? I'm sensing INCOMPETENCE, you pretentious
bald pseudo-French dickweed!
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 10:46 ` Neil Bothwick
@ 2006-06-15 10:59 ` Bo Ørsted Andresen
2006-06-15 11:16 ` 员旭鹏
2006-06-15 12:16 ` Neil Bothwick
0 siblings, 2 replies; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-15 10:59 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 138 bytes --]
On Thursday 15 June 2006 12:46, Neil Bothwick wrote:
> Try
>
> filter = [ "a|^/dev/hda|", "r|.*|" ]
No change.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 10:59 ` Bo Ørsted Andresen
@ 2006-06-15 11:16 ` 员旭鹏
2006-06-15 11:21 ` Bo Ørsted Andresen
2006-06-15 12:16 ` Neil Bothwick
1 sibling, 1 reply; 17+ messages in thread
From: 员旭鹏 @ 2006-06-15 11:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 336 bytes --]
try add noauto to /etc/fstab,like this:
/dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
2006/6/15, Bo Ørsted Andresen <bo.andresen@zlin.dk>:
>
> On Thursday 15 June 2006 12:46, Neil Bothwick wrote:
> > Try
> >
> > filter = [ "a|^/dev/hda|", "r|.*|" ]
>
> No change.
>
> --
> Bo Andresen
>
>
>
--
I like Python & Linux.
[-- Attachment #2: Type: text/html, Size: 889 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 10:16 ` [gentoo-user] " Bo Ørsted Andresen
2006-06-15 10:46 ` Neil Bothwick
@ 2006-06-15 11:19 ` Nick Rout
2006-06-15 11:52 ` Bo Ørsted Andresen
1 sibling, 1 reply; 17+ messages in thread
From: Nick Rout @ 2006-06-15 11:19 UTC (permalink / raw
To: gentoo-user
On Thu, 15 Jun 2006 12:16:59 +0200
Bo Ørsted Andresen <bo.andresen@zlin.dk> wrote:
> On Thursday 15 June 2006 09:30, Neil Bothwick wrote:
> > On Thu, 15 Jun 2006 01:52:29 +0200, Bo Ørsted Andresen wrote:
> > > > Are you using LVM?
> > >
> > > Sure. So it's because of this?
> > >
> > > ========================
> > > # grep ^\ *filter /etc/lvm/lvm.conf
> > > filter = [ "a/.*/" ]
> > > ========================
> >
> > Yes, you need to comment this line and uncomment the cdrom line. Or you
> > can use a filter line that only permits specified devices, which also
> > stops LVM scanning any memory sticks etc (unless you want LVM on a memory
> > stick :)
>
> I have changed it to this:
>
> ========================
> # grep ^\ *filter /etc/lvm/lvm.conf
> filter = [ "a|^/dev/hda|", "r/.*/" ]
> ========================
>
> My cdrom drive is /dev/hdc. But this has not changed anything. I still get
> those messages. :(
>
> --
> Bo Andresen
Just a guess, is it one of those hald "auto mount everything I put anywhere near the computer so I act like windows" things?
>
--
gentoo-user@gentoo.org mailing list
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 11:16 ` 员旭鹏
@ 2006-06-15 11:21 ` Bo Ørsted Andresen
0 siblings, 0 replies; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-15 11:21 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 546 bytes --]
On Thursday 15 June 2006 13:16, 员旭鹏 wrote:
> try add noauto to /etc/fstab,like this:
> /dev/cdroms/cdrom0 /mnt/cdrom iso9660 noauto,ro 0 0
Thank you for your reply. Like I said in the original post it already
contained noauto in /etc/fstab. In fact it was identical to the line you are
showing. As that didn't help I also tried outcommenting that line
in /etc/fstab. That didn't change anything either. :(
PS. Please in the future post your response below that which you are
responding to.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 11:19 ` Nick Rout
@ 2006-06-15 11:52 ` Bo Ørsted Andresen
0 siblings, 0 replies; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-15 11:52 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 603 bytes --]
On Thursday 15 June 2006 13:19, Nick Rout wrote:
> Just a guess, is it one of those hald "auto mount everything I put anywhere
> near the computer so I act like windows" things?
I think it is related to lvm2 somehow because of this:
==========================================
# vgchange -a y
/dev/cdrom: open failed: No medium found
Attempt to close device '/dev/cdrom' which is not open.
7 logical volume(s) in volume group "vg" now active
==========================================
The hal use flag is disabled and hal, pmount and autorun are not installed.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 10:59 ` Bo Ørsted Andresen
2006-06-15 11:16 ` 员旭鹏
@ 2006-06-15 12:16 ` Neil Bothwick
2006-06-15 12:26 ` Bo Ørsted Andresen
1 sibling, 1 reply; 17+ messages in thread
From: Neil Bothwick @ 2006-06-15 12:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 362 bytes --]
On Thu, 15 Jun 2006 12:59:35 +0200, Bo Ørsted Andresen wrote:
> > filter = [ "a|^/dev/hda|", "r|.*|" ]
>
> No change.
Are you sure that's the only filter command in the file? Only the first
one is used.
It wouldn't hurt to an "r|/dev/cdrom|" to the filter.
--
Neil Bothwick
WITLAG: The delay between delivery and comprehension of a joke.
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 12:16 ` Neil Bothwick
@ 2006-06-15 12:26 ` Bo Ørsted Andresen
2006-06-15 13:29 ` Neil Bothwick
0 siblings, 1 reply; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-15 12:26 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 1448 bytes --]
On Thursday 15 June 2006 14:16, Neil Bothwick wrote:
> On Thu, 15 Jun 2006 12:59:35 +0200, Bo Ørsted Andresen wrote:
> > > filter = [ "a|^/dev/hda|", "r|.*|" ]
> >
> > No change.
>
> Are you sure that's the only filter command in the file? Only the first
> one is used.
>
> It wouldn't hurt to an "r|/dev/cdrom|" to the filter.
# grep -v -r '^$\|^\ *\t*#' /etc/lvm/lvm.conf
devices {
dir = "/dev"
scan = [ "/dev" ]
filter = [ "a|^/dev/hda|", "r|.*|" ]
cache = "/etc/lvm/.cache"
write_cache_state = 1
sysfs_scan = 1
md_component_detection = 1
}
log {
verbose = 0
syslog = 1
overwrite = 0
level = 0
indent = 1
command_names = 0
prefix = " "
}
backup {
backup = 1
backup_dir = "/etc/lvm/backup"
archive = 1
archive_dir = "/etc/lvm/archive"
retain_min = 10
retain_days = 30
}
shell {
history_size = 100
}
global {
umask = 077
test = 0
activation = 1
proc = "/proc"
locking_type = 1
locking_dir = "/var/lock/lvm"
}
activation {
missing_stripe_filler = "/dev/ioerror"
mirror_region_size = 512
reserved_stack = 256
reserved_memory = 8192
process_priority = -18
}
# vgchange -a y
/dev/cdrom: open failed: No medium found
Attempt to close device '/dev/cdrom' which is not open.
7 logical volume(s) in volume group "vg" now active
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 12:26 ` Bo Ørsted Andresen
@ 2006-06-15 13:29 ` Neil Bothwick
2006-06-15 14:16 ` Bo Ørsted Andresen
0 siblings, 1 reply; 17+ messages in thread
From: Neil Bothwick @ 2006-06-15 13:29 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 506 bytes --]
On Thu, 15 Jun 2006 14:26:40 +0200, Bo Ørsted Andresen wrote:
> # vgchange -a y
> /dev/cdrom: open failed: No medium found
> Attempt to close device '/dev/cdrom' which is not open.
> 7 logical volume(s) in volume group "vg" now active
Did you run vgscan after editing the file?
# Remember to run vgscan after you change this parameter to ensure
# that the cache file gets regenerated (see below).
--
Neil Bothwick
New Klingon hair salon: "Today is a good day to dye"
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
* Re: [gentoo-user] mounting cdrom during boot
2006-06-15 13:29 ` Neil Bothwick
@ 2006-06-15 14:16 ` Bo Ørsted Andresen
0 siblings, 0 replies; 17+ messages in thread
From: Bo Ørsted Andresen @ 2006-06-15 14:16 UTC (permalink / raw
To: gentoo-user
[-- Attachment #1: Type: text/plain, Size: 267 bytes --]
On Thursday 15 June 2006 15:29, Neil Bothwick wrote:
> Did you run vgscan after editing the file?
Nope. I missed that part. I /think/ I did reboot though but that didn't seem
to fix it. Anyway running vgscan seems to have fixed it. Thanks.
--
Bo Andresen
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 17+ messages in thread
end of thread, other threads:[~2006-06-15 14:25 UTC | newest]
Thread overview: 17+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-14 23:18 [gentoo-user] mounting cdrom during boot Bo Ørsted Andresen
2006-06-14 23:31 ` Neil Bothwick
2006-06-14 23:52 ` Bo Ørsted Andresen
2006-06-15 3:05 ` Norberto Bensa
2006-06-15 7:30 ` Neil Bothwick
2006-06-15 9:59 ` [gentoo-user] " Mick
2006-06-15 10:16 ` [gentoo-user] " Bo Ørsted Andresen
2006-06-15 10:46 ` Neil Bothwick
2006-06-15 10:59 ` Bo Ørsted Andresen
2006-06-15 11:16 ` 员旭鹏
2006-06-15 11:21 ` Bo Ørsted Andresen
2006-06-15 12:16 ` Neil Bothwick
2006-06-15 12:26 ` Bo Ørsted Andresen
2006-06-15 13:29 ` Neil Bothwick
2006-06-15 14:16 ` Bo Ørsted Andresen
2006-06-15 11:19 ` Nick Rout
2006-06-15 11:52 ` Bo Ørsted Andresen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox