Problems with external USB and Device sda sdb

hackmann

Renowned Member
Jan 6, 2013
226
13
83
Hallo,

i have Proxmox Version pve-manager: 2.3-13 an a external USB Drive /dev/sdb
Code:
~# sed -ne 's/.*\([sh]d[a-zA-Z]\+$\)/\/dev\/\1/p' /proc/partitions

/dev/sda
/dev/sdb -- my external usb device

# lsscsi
[8:0:0:0]    disk    TOSHIBA  STOR.E PARTNER   GT00  /dev/sdb

udevadm info --query=all --attribute-walk --name=/dev/sdb | grep product
ATTRS{product}=="STOR.E PARTNER"

udevadm info --query=all --attribute-walk --name=/dev/sdb | grep SUBSYSTEMS
SUBSYSTEMS=="usb"

~# udevadm info --query=all --attribute-walk --name=/dev/sdb | grep serial
ATTRS{serial}=="CF201202240DD9"


blkid
/dev/sdb1: UUID="9167b08f-2555-471a-9b08-a6e379ffacff" SEC_TYPE="ext2" TYPE="ext3

UDEV-RULES

Code:
vi  /etc/udev/rules.d/10-codefix.rules

insert

ACTION=="add",KERNEL=="sdb1", SUBSYSTEMS=="usb", ATTRS{product}=="STOR.E PARTNER",SYMLINK+="usbextern",ATTRS{serial}=="CF201202240DD9",RUN+="/bin/mount /dev/%k /media/usbextern"
ACTION=="remove",ENV{ID_FS_UUID}=="9167b08f-2555-471a-9b08-a6e379ffacff",RUN+="/bin/umount -l /dev/%k /media/usbextern"
# /etc/init.d/udev restart
Stopping the hotplug events dispatcher: udevd.
Starting the hotplug events dispatcher: udevd.
Code:
I remove the added usb disk and add it again

[CODE]

# mount
/dev/sdb1 on /media/usbextern type ext3 (rw)

 cat /etc/mtab | grep sda
/dev/sda1 /boot ext3 rw 0 0

cat /etc/mtab | grep sdb
/dev/sdb1 /media/usbextern ext3 rw 0 0

After a reboot gets the / dev/sda1 / boot the

Code:
cat /etc/mtab | grep sd*
/dev/sdb1 /boot ext3 rw 0 0





assigned.?

How is it possible that after a reboot is properly assigned to the sda?

UUID in fstab I have already tried

Thanks
 

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!