Quote:
Originally Posted by micro_xii
Greetings to all.
Newbie here.
In this forum i follow the steps:
cat /proc/partitions
8 0 35548320 sda
8 1 1052226 sda1
8 2 34491555 sda2
8 16 71687000 sdb
8 17 1052226 sdb1
8 18 70621740 sdb2
8 32 35548320 sdc
8 33 1052226 sdc1
8 34 34491555 sdc2
8 80 122879 sdf---->my usb.it changes when i plug /unplug.
mkdir /mnt/usb
mount /dev/sdf /mnt/usb
it works fine..temporarily.I want it to be permanent and computer will detect it automatically.....in the forum it says something about /etc/fstab...........i mean whats next..when i command this it says
permission denied...but i logon as a root.Can anyone show the complete command...newbie here
|
What distribution are you running on your pc? What brand is your usb-stick?
I am working on opensuse 10.1 64bit and my usb-stick (brand: imation) is automatically detected on insert and opened in Nautilus (filemanager of gnome desktop). And when I rightclick on the desktop-icon there is a popupmenu with an option to unmount the volume. In proc/partitions you can see that two devices are activated by inserting the stick: sde AND sde1 (I suppose that sde is for the specific used usbbus and sde1 is the imation scsistick).
This is my /etc/fstab
/dev/hdb6 / reiserfs acl,user_xattr 1 1
/dev/hdb7 /home reiserfs acl,user_xattr 1 2
/dev/hda1 /windows/C vfat users,gid=users,umask=0002,utf8=true 0 0
/dev/hda2 /windows/D ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb1 /windows/E ntfs ro,users,gid=users,umask=0002,nls=utf8 0 0
/dev/hdb5 swap swap defaults 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/fd0 /media/floppy auto noauto,user,sync 0 0
As you can see there is no sde-entry in the fstab (= filesystem table). Automatic mount and umount is a specific feature of the distribution, and not standard linux. In standard linux, you have to manualy mount and umount your removable devices. Maybe another member knows the secrets of these features.
Hope this helps,
Thomas