Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
Pages: (6) </ 1 [2] 3 4 5 6 >/

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: disk icons< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: May 06 2007,12:07 QUOTE

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


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
kreon28 Offline





Group: Members
Posts: 48
Joined: Oct. 2006
Posted: May 10 2007,16:10 QUOTE

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 ?
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: May 10 2007,18:01 QUOTE

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.


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
lucky13 Offline





Group: Members
Posts: 1478
Joined: Feb. 2007
Posted: May 10 2007,21:45 QUOTE

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?


--------------
"It felt kind of like having a pitbull terrier on my rear end."
-- meo (copyright(c)2008, all rights reserved)
Back to top
Profile PM WEB 
kreon28 Offline





Group: Members
Posts: 48
Joined: Oct. 2006
Posted: May 12 2007,06:32 QUOTE

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.
Back to top
Profile PM 
26 replies since May 05 2007,14:19 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

Pages: (6) </ 1 [2] 3 4 5 6 >/
reply to topic new topic new poll
Quick Reply: disk icons

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code