X and Fluxbox :: disk icons



Hd install remembers all.. Just use the nofstab code, so it won't overwrite it on reboot.

There is also supermount, which is a kernel side thingy, so it's lighter and more convenient than automounter. But you need to compile your own kernel for that....

Make the directories you want before rebooting.. Here would be your fstab little modified:
Quote
/dev/hda2  /  ext3  defaults,errors=remount-ro  0  1
proc  /proc  proc  defaults  0  0
/dev/fd0  /mnt/auto/floppy  vfat  defaults,users,noauto,rw,showexec,umask=000,uid=1001,gid=50  0  0
/dev/cdrom  /cdrom  iso9660  defaults,ro,user,noexec,noauto,uid=1001,gid=50  0  0
/dev/hda1 /disk_A vfat auto,users,exec,umask=000,uid=1001,gid=50 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdb1 /disk_B vfat auto,users,exec,umask=000,uid=1001,gid=50 0 0

Quote (curaga @ May 06 2007,08:07)
Make the directories you want before rebooting.. Here would be your fstab little modified:
Quote
/dev/hda2  /  ext3  defaults,errors=remount-ro  0  1
proc  /proc  proc  defaults  0  0
/dev/fd0  /mnt/auto/floppy  vfat  defaults,users,noauto,rw,showexec,umask=000,uid=1001,gid=50  0  0
/dev/cdrom  /cdrom  iso9660  defaults,ro,user,noexec,noauto,uid=1001,gid=50  0  0
/dev/hda1 /disk_A vfat auto,users,exec,umask=000,uid=1001,gid=50 0 0
/dev/hda5 swap swap defaults 0 0
/dev/hdb1 /disk_B vfat auto,users,exec,umask=000,uid=1001,gid=50 0 0

I did as you wrote.
Made "nofstab" in grub and all changes have been remembered.
In .xintrc I wrote mount /dev/hda1 /disk_A but the disks are not mounted.
After the command in terminal:
Code Sample

# mount /dev/hda1 /disk_A
only root can do that


p.s where can I find some info about supermount in DSL ?

If your device is properly listed in fstab (it looks like it is), you can mount it using only the device name or mountpoint. Using both apparently causes mount to ignore what's in fstab, so you end up needing to be root, specify a filesystem type, etc.

But you have "auto" as an option for that device in fstab, so I think something else is wrong. You shouldn't need to mount from .xinitrc in that case.

I'm curious why you're mounting in .xinitrc instead of during the boot process or otherwise before starting X. If you insist on mounting devices while starting X (which is what that file is for), did you try using sudo in your command? Hint: "only root can do that."

EDIT 10 May:
You can also change permissions for that partition so you can mount it as user (dsl, yourname, etc.) without sudo. That's not necessarily preferable, but I still wouldn't use .xinitrc to handle filesystem tasks like that. Why not write a script to mount and open emelfm to that partition when you click on the icon?

I deleted code in .xinitrc about disk mounting but the disks are still not mounted by command "mount".
Mounting can be done only by root
I could use sudo but if I mount for example floppy as sudo I can't write to floppy as regular user.
Well, now I don't know what to do.

Next Page...
original here.