Proper way to add a new disk in Ubuntu
Neil Woolford
neil at neilwoolford.co.uk
Mon Feb 7 17:47:36 UTC 2005
At 16:04 07/02/05, you wrote:
> > You just needed to restart udev, not sure of the command to do it
> > though. Looking on google, and a post in a debian survival guide, i
> > think you can just do:
> >
> > sudo restart udev
> >
> > This will then set udev about rebuilding the /dev tree. Of course -
> > restarting the computer does this so the only difference is a minute
> > to reboot.
>
>Aha! Thank you for the answer. Maybe I will write this up for the wiki.
>
>--
>John DeCarlo, My Views Are My Own
If you do, I think I've just found a slight glitch in the udev system. If you
are trying to install a second optical drive (CD or DVD), the system will
not automatically create the symbolic link (dev/cdrom or dev/dvd) for more
than one device. In other words, both devices get nodes created correctly
but only the first one (eg dev/hdc out of dev/hdc and dev/hdd) gets a
/dev/cdrom
or /dev/dvd link.
The problem lies in the script /etc/udev/cdsymlinks.sh which has a (commented)
line that makes it exit after finding the first drive.
Commenting out this line caused udev to correctly install the links for my
cd (hdc)
and dvd (hdd) drives. With the line active only the cd was given a link.
However, my scripting and udev knowledge aren't good enough to be sure that it
would work correctly with multiple cd or multiple dvd devices; I think
the link for
the first drive of a particular type would possibly be overwritten by the
link to the next
instance, and so on. Thus the line is not superfluous. It can be a
'gotcha' though.
Neil
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.300 / Virus Database: 265.8.5 - Release Date: 03/02/05
More information about the ubuntu-users
mailing list