Find the answer to your Linux question:
Page 1 of 2 1 2 LastLast
Results 1 to 10 of 11
My fstab currently has *NO* references to usb, except for one line: Code: usbfs proc/bus/usb usbfs noauto 0 0 Under suse 10.1, my usb mounts automatically whenever I plug it ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Newbie felipe1982's Avatar
    Join Date
    Oct 2006
    Posts
    164

    how can I change mount point of usb-flash drive?


    My fstab currently has *NO* references to usb, except for one line:
    Code:
    usbfs    proc/bus/usb    usbfs    noauto    0 0
    Under suse 10.1, my usb mounts automatically whenever I plug it in (at least something works in suse :P). It automatically mounts to /media/usbdisk

    How do i go about changing this with pure command line? Is there a specific file I should edit? Which one(s)?

  2. #2
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    check the contents of /etc/mtab file.





    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  3. #3
    Linux Newbie felipe1982's Avatar
    Join Date
    Oct 2006
    Posts
    164
    > view /etc/mtab

    Code:
    .....
    /dev/sda1  /media/usbdisk  vfat rw,nosuid,nodev,noatime,flush,uid=10000,utf8,shortname=lower  0 0
    ...

  4. #4
    Super Moderator devils casper's Avatar
    Join Date
    Jun 2006
    Location
    Chandigarh, India
    Posts
    24,729
    well ! in this file, change the mount point '/media/usbdisk' with the one you want.






    casper
    It is amazing what you can accomplish if you do not care who gets the credit.
    New Users: Read This First

  5. #5
    Linux Newbie felipe1982's Avatar
    Join Date
    Oct 2006
    Posts
    164
    I wasn't sure - lol. I must look stupid now. I thought that changing anything in mtab wasn't permanent. I thought the system always overwrote mtab. I"ll try it out. Thanks DC.

    /edit: i edited mtab. I umounted the sda1. I opened up mtab again. The reference to sda1 was gone.

  6. #6
    Linux Guru bigtomrodney's Avatar
    Join Date
    Nov 2004
    Location
    Ireland
    Posts
    6,132
    udev decides where devices are mounted in most modern distros. Try looking at udev rules in /etc/udevd and see if yuo can add one for your disk. Warning - not as casual as it may sound, involves a bit of reading...

  7. #7
    Linux Newbie burntfuse's Avatar
    Join Date
    Nov 2006
    Location
    Laurel, MD
    Posts
    158
    felipe: You don't look stupid, mtab is the file which shows which filesystems are currently mounted. fstab is for permanent mount points.
    I have sold my soul to the penguin

  8. #8
    Linux Newbie felipe1982's Avatar
    Join Date
    Oct 2006
    Posts
    164
    hehe, thanks, burntfuse.
    this is what I see:
    Code:
    felipe@anarchy:~> ll /etc/udev
    total 5
    drwxr-xr-x 2 root root 736 2006-11-27 03:39 rules.d
    -rw-r--r-- 1 root root 226 2006-09-07 10:56 udev.conf
    felipe@anarchy:~> more /etc/uniconf.conf
    / = retry:unix:/var/lib/uniconf/control
    ca/nit/uniconfd = ini:/var/lib/uniconf/uniconfd.ini
    ca/nit/nssuniconf = unix:/var/lib/uniconf/control
    felipe@anarchy:~> more /etc/udev/rules.d
    
    *** /etc/udev/rules.d: directory ***
    
    felipe@anarchy:~> more /etc/udev/udev.conf
    # udev.conf
    
    # The initial syslog(3) priority: "err", "info", "debug" or its
    # numerical equivalent. For runtime debugging, the daemons internal
    # state can be changed with: "udevcontrol log_priority=<value>".
    udev_log="err"
    
    felipe@anarchy:~>

  9. #9
    Linux Newbie felipe1982's Avatar
    Join Date
    Oct 2006
    Posts
    164
    any help would be greatly appreciated. I have been unable to change the mount point of USB flash disk. Suse 10.1 automatically mounts to /media/usbdisk whenever I plug the thing in.

  10. #10
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Location
    Nottingham, England
    Posts
    3,846
    I know it's not quite what you want, but cant you just create a symlink to /media/usbdisk from where you need it?
    Linux user #126863 - see http://linuxcounter.net/

Page 1 of 2 1 2 LastLast

Posting Permissions

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