From: =SERGE= on
hi,

well i'm sure it's simple to fix i just run for 1st time into the problem.
When i plug in a usb disk it always assigned a different device name sdd or
sde etc.
I'd it to be assigned always the same name, say, I want my 250disk be sdc.

sd* devices for usbdisks are created be the system when needed.
I thought I could just make them with MAKEDEV and then write in fstab.
But I didn't find MAKEDEV script.

How should i act?

thank you


From: Helmut Hullen on
Hallo, =SERGE=,

Du meintest am 28.06.08:

> sd* devices for usbdisks are created be the system when needed.
> I thought I could just make them with MAKEDEV and then write in
> fstab. But I didn't find MAKEDEV script.

You find "MAKEDEV" in the "devs" package. But "udev" deletes it. On my
machine I've moved MAKEDEV to "/usr/sbin".

You should look what "udev" makes when you insert an USB stick or an USB
disk. And you should look for other names than (p.e.) /dev/sdc1.
"udev" shows "/dev/disk/by-id/" or "/dev/disk/by-label/" too.

Viele Gruesse
Helmut

"Ubuntu" - an African word, meaning "Slackware is too hard for me".

From: Joost Kremers on
=SERGE= wrote:
> well i'm sure it's simple to fix i just run for 1st time into the problem.
> When i plug in a usb disk it always assigned a different device name sdd or
> sde etc.
> I'd it to be assigned always the same name, say, I want my 250disk be sdc.
>
> sd* devices for usbdisks are created be the system when needed.
> I thought I could just make them with MAKEDEV and then write in fstab.
> But I didn't find MAKEDEV script.
>
> How should i act?

best thing is probably to read up on udev a bit. when a new device is
detected, udev responds by creating a device node for it. you can write
udev rules to make sure that a particular device is always given a specific
device name. or better, that a fixed symlink is always created to the
proper device. i.e. you could make sure that wheneven you plug in your
external drive, udev automatically creates a symlink /dev/myextdrive
pointing to the right device node. see /etc/udev/rules.d/ and google 'udev
rules' or something.

however, you can also let your desktop environment take care of things by
automounting devices. i simply assign volume names to my external
drives/usb sticks (even FAT supports volume names), and then i know they'll
always mounted under /media/<vol_name> (the directory is created when
necessary).


--
Joost Kremers joostkremers(a)yahoo.com
Selbst in die Unterwelt dringt durch Spalten Licht
EN:SiS(9)
From: Dan C on
On Sat, 28 Jun 2008 16:54:23 +0400, =SERGE= wrote:

> well i'm sure it's simple to fix i just run for 1st time into the problem.
> When i plug in a usb disk it always assigned a different device name sdd or
> sde etc.
> I'd it to be assigned always the same name, say, I want my 250disk be sdc.
>
> sd* devices for usbdisks are created be the system when needed.
> I thought I could just make them with MAKEDEV and then write in fstab.
> But I didn't find MAKEDEV script.

MADEDEV is obselete. These days 'udev' handles this type of thing, as
others have already told you. Do some Googling/reading on udev, and have
a look at how to write (simple) udev rules. The rules themselves are
contained in the /etc/udev/rules.d directory.


--
"Bother!" said Pooh, as he cut his initials in the snow.


From: jjg on
=SERGE= wrote:

> hi,
>
> well i'm sure it's simple to fix i just run for 1st time into the problem.
> When i plug in a usb disk it always assigned a different device name sdd
> or sde etc.
> I'd it to be assigned always the same name, say, I want my 250disk be sdc.
>
> sd* devices for usbdisks are created be the system when needed.
> I thought I could just make them with MAKEDEV and then write in fstab.
> But I didn't find MAKEDEV script.
>
> How should i act?
>
> thank you

As another reaction said already: look for /dev/disk/by-label or by-id, and
you will find that it is a link to /dev/sd<whatever it happens to be at the
time>. And it is fixed to the device, so you don't even have to worry about
the sdxy designation. Just use the label or id, and thanks to the link
mechanism everything solves itself!