31.10.2014, 21:24 UhrDeutsch | English
Hallo Gast [ Registrierung | Anmelden ]

Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
Autor Nachricht
devil
Titel:   BeitragVerfasst am: 09.08.2006, 11:26 Uhr
Team Member
Team Member


Anmeldung: 06. Mai 2005
Beiträge: 3087
Wohnort: berlin
nitto,
as root do:
chown -R youruser:youruser /media/date or whatever it is

greetz
devil

_________________
<<We are Xorg - resistance is futile - you will be axximilated>>

Host/Kernel/OS "devilsbox" running[2.6.19-rc1-git5-kanotix-1KANOTIX-2006-01-RC4 ]
CPU Info AMD Athlon 64 3000+ clocked at [ 803.744 MHz ]
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
nitto
Titel:   BeitragVerfasst am: 09.08.2006, 16:30 Uhr



Anmeldung: 31. Jul 2006
Beiträge: 81
Wohnort: Melbourne
devil hat folgendes geschrieben::
nitto,
as root do:
whatever it is

greetz
devil


it works to get the /dev/hdg3 on my user name....
but it seems I still can't get to write/modify anything in that partition!

here is what I did, as root:
chown -R nitto:nitto /dev/hdg3

so, when I do:
ls -l /dev/hdg*

I get:
brw-rw---- 1 root disk 34, 0 Aug 10 20:11 /dev/hdg
brw-rw---- 1 root disk 34, 1 Aug 10 20:11 /dev/hdg1
brw-rw---- 1 root disk 34, 2 Aug 11 00:11 /dev/hdg2
brw-rw---- 1nitto nitto 34, 3 Aug 11 00:11 /dev/hdg3
brw-rw---- 1 root root 34, 4 Aug 10 20:11 /dev/hdg4

but I still can't write/modify to hdg3, which is where the /data partition is!

cheers
nitto
 
 Benutzer-Profile anzeigen Private Nachricht senden MSN Messenger  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 09.08.2006, 17:48 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
nitto hat folgendes geschrieben::

here is what I did, as root:
chown -R nitto:nitto /dev/hdg3



You want to change ownership of the mount point not the device. Winken
So if you mount the data partition to ~/data make sure you own the mount point.

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
nitto
Titel:   BeitragVerfasst am: 10.08.2006, 03:23 Uhr



Anmeldung: 31. Jul 2006
Beiträge: 81
Wohnort: Melbourne
mzilikazi hat folgendes geschrieben::
nitto hat folgendes geschrieben::

here is what I did, as root:
chown -R nitto:nitto /dev/hdg3



You want to change ownership of the mount point not the device. Winken
So if you mount the data partition to ~/data make sure you own the mount point.


well no, not exactly
just to be able to use the /dev/hdg3 as much as I like... like creating/modifying files and folders in it.
The mount point is owned by the root, right? so how can I get the read/write rights to it?
 
 Benutzer-Profile anzeigen Private Nachricht senden MSN Messenger  
Antworten mit Zitat Nach oben
nitto
Titel:   BeitragVerfasst am: 10.08.2006, 05:19 Uhr



Anmeldung: 31. Jul 2006
Beiträge: 81
Wohnort: Melbourne
feeling like a n**b...
being a newbie and all Winken

suppose to "chown" the /data directory. whereas I was trying to "chown" the whole partition (ie /dev/hdg3)
so, just for the record (to help anyone else who may have this problem)

chown -R nitto:nitto /data

a fair understanding of how Linux file system works (as oppose to windows!) is a good thing :->

_________________
____________________________
The reasonable man adapts himself to the world;
The unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man. (George Bernard Shaw)
 
 Benutzer-Profile anzeigen Private Nachricht senden MSN Messenger  
Antworten mit Zitat Nach oben
stryder
Titel:   BeitragVerfasst am: 10.08.2006, 05:35 Uhr



Anmeldung: 26. Jun 2005
Beiträge: 389

... which was what mzilikazi meant about changing the ownership of the mount point. If /dev/hdg3 is mounted on /data at that point, the "-R" option also chowns everything inside the mount point, i.e. /dev/hdg3. Knowing these commands can be very helpful when using linux. Smilie
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
nitto
Titel:   BeitragVerfasst am: 10.08.2006, 12:48 Uhr



Anmeldung: 31. Jul 2006
Beiträge: 81
Wohnort: Melbourne
still on that topic...:
does it work with Linux notion to have the "/data" mount point named with a long folder name, such as "/My Documents" and put it on the "/home/user_name/Desktop" as a permanent fixture?

_________________
____________________________
The reasonable man adapts himself to the world;
The unreasonable man persists in trying to adapt the world to himself.
Therefore all progress depends on the unreasonable man. (George Bernard Shaw)
 
 Benutzer-Profile anzeigen Private Nachricht senden MSN Messenger  
Antworten mit Zitat Nach oben
stryder
Titel:   BeitragVerfasst am: 10.08.2006, 13:50 Uhr



Anmeldung: 26. Jun 2005
Beiträge: 389

Well, to view the contents of a folder in kde you'll use konqueror. So you just need to create a launcher on your desktop that launches konqueror showing the contents of /data - something like "konqueror file:/data". And you can name the launcher "My Documents". I don't use kde and so cannot give you the proper konqueror command - I think there is a switch as a file browser and a web browser. In xfce, "thunar /data" works well. You can also install thunar. It's pretty cool.

You can also create a link file (like alias in windows) in your home folder, like:

ln -s /data MyDocs

So when you click MyDocs (which will show when you click on your "home" icon), /data opens.
 
 Benutzer-Profile anzeigen Private Nachricht senden  
Antworten mit Zitat Nach oben
mzilikazi
Titel:   BeitragVerfasst am: 12.08.2006, 19:35 Uhr
Team Member
Team Member


Anmeldung: 17. Dez 2003
Beiträge: 1109
Wohnort: Ganymede
nitto hat folgendes geschrieben::
still on that topic...:
does it work with Linux notion to have the "/data" mount point named with a long folder name, such as "/My Documents" and put it on the "/home/user_name/Desktop" as a permanent fixture?


Instead of links and such, you could choose to mount any partition to any mount point. See my example:
Code:
/dev/sda13      /home/mzilikazi/Music  reiserfs auto,rw,users        0       0
/dev/sdb1 /home/mzilikazi/cam   vfat    noauto,rw,users 0       0
/dev/sda3       /home/mzilikazi/Photos  reiserfs        auto,rw,users   0      0

_________________
Ubuntu - An ancient African word for "Can't install Debian"
 
 Benutzer-Profile anzeigen Private Nachricht senden E-Mail senden Website dieses Benutzers besuchen  
Antworten mit Zitat Nach oben
Beiträge vom vorherigen Thema anzeigen:     
Gehe zu:  
Alle Zeiten sind GMT + 1 Stunde
Neues Thema eröffnen   Neue Antwort erstellen
Vorheriges Thema anzeigen Druckerfreundliche Version Einloggen, um private Nachrichten zu lesen Nächstes Thema anzeigen
PNphpBB2 © 2003-2007 
 
Deutsch | English
Logos and trademarks are the property of their respective owners, comments are property of their posters, the rest is © 2004 - 2006 by Jörg Schirottke (Kano).
Consult Impressum and Legal Terms for details. Kanotix is Free Software released under the GNU/GPL license.
This CMS is powered by PostNuke, all themes used at this site are released under the GNU/GPL license. designed and hosted by w3you. Our web server is running on Kanotix64-2006.