Results 1 to 5 of 5

Thread: after unplug and plug usb, /dev/sd* is changed!

  1. #1
    Just burned his ISO
    Join Date
    Dec 2008
    Posts
    4

    Default after unplug and plug usb, /dev/sd* is changed!

    BT3 is installed in USB
    And I made them persistent.
    /dev/sdb1: BT3
    /dev/sdb2: has "/changes" folder

    syslinux.cfg has "changes=/dev/sdb2" option

    Everything is okay except one thing..
    When I unplug usb and plug them again, device name is always changed.
    from /dev/sdb to /dev/sdc

    I did umount for sdb1 and sdb2 before unplugging.
    then.. after replugging, BT3 is not working properly

    for example, when I run vi
    bash: /usr/bin/vi: cannot execute binary file

    1. Is there any way to change /dev/sdc to /dev/sdb?
    1. Is there any way to set changes=/dev/sdb2 to changes=/dev/sdc2 after boot?

    Thank you

    Sean

  2. #2
    Jenkem Addict imported_wyze's Avatar
    Join Date
    Jul 2007
    Posts
    1,543

    Default

    Quote Originally Posted by muzehyun View Post
    BT3 is installed in USB
    And I made them persistent.
    /dev/sdb1: BT3
    /dev/sdb2: has "/changes" folder

    syslinux.cfg has "changes=/dev/sdb2" option

    Everything is okay except one thing..
    When I unplug usb and plug them again, device name is always changed.
    from /dev/sdb to /dev/sdc

    I did umount for sdb1 and sdb2 before unplugging.
    then.. after replugging, BT3 is not working properly

    for example, when I run vi
    bash: /usr/bin/vi: cannot execute binary file

    1. Is there any way to change /dev/sdc to /dev/sdb?
    1. Is there any way to set changes=/dev/sdb2 to changes=/dev/sdc2 after boot?

    Thank you

    Sean
    Keyword.... fstab
    dd if=/dev/swc666 of=/dev/wyze

  3. #3
    Senior Member
    Join Date
    Feb 2010
    Posts
    146

    Default

    if you're running BT3 off of usb then you shouldn't be unplugging said usb to begin with
    open source = open minds, human knowledge belongs to the world

  4. #4
    Member
    Join Date
    Feb 2008
    Posts
    74

    Default

    Quote Originally Posted by wyze View Post
    Keyword.... fstab
    I am having the same problem with the device name changing everytime I reboot. So when you said to look at fstab, what exactly I am supposed to do. I am a newbie at linux so I still learning.

    I'll check the file later.

  5. #5
    Member
    Join Date
    Feb 2008
    Posts
    74

    Default

    On http://ubuntuforums.org/showthread.php?t=283131 says that for removable media, you can identify the device by udev, volume label, or uuid.

    The following commands are used to obtain these information:

    ls /dev/disk/by-label -lah
    ls /dev/disk/by-id -lah
    ls /dev/disk/by-uuid -lah

    I haven't try this yet, but I figure I would post the info for anyone else trying to work on it. So based on this information, on my fstab file, I should say something like: everytime you see a removable media with LABEL=volume_label mounted to /mnt/sda2

    If I am wrong on my assumption, please correct me.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •