LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Teach me how to access my other drives! Kubuntu10.04, can't write to other partitions (https://www.linuxquestions.org/questions/linux-newbie-8/teach-me-how-to-access-my-other-drives-kubuntu10-04-cant-write-to-other-partitions-881489/)

Bhakta Neal 05-18-2011 04:51 PM

Teach me how to access my other drives! Kubuntu10.04, can't write to other partitions
 
I have an AMD 64 bit desktop.
I just now re-installed Kubuntu 10.04.
The GUI method of accessing other partitions (of ext3 file systems), will not let me write to them.

I open Dolphin (KDE file manager), select my drive, then attempt to drag a file into it or right click in attempt to make New Folder. None of this works. It seems I am locked out. The partitions are on the same HDD as the OS.

I have not tried anything via console. I don't know how to use it.

This is NEWBIE thread so please make it simple for me and other newbies. If you instruct me to type something into console, please explain what it is I would be doing to my system. I beg you to not just suggest me to "enter this, enter that" and leave me blind.

Thank you for your time.

Mr. Bill 05-18-2011 05:57 PM

Try this (worked for kubuntu 8.04).

Open Dolphin. Do NOT select the partition.

Right-click the partition. This should open a menu with "Open as root" or something similar.

If "Open as root" is dimmed, then the partition is already mounted read-only. Select "Unmount" from the same menu, then right-click the partition again to re-open the menu.

Select "Open as root" and type your password. This will mount the partition with write-access.

If this doesn't work, please post back exactly what happened.

Oh, don't forget to unmount the partition when you're finished. :)

Bhakta Neal 05-18-2011 10:12 PM

The right-click menu only gives 3 options:
Unmount drive,
Add entry,
Hide entry.

Before you jump to conclusions, whether the drive is currently mounted or not, I can NOT write to the drive.

Bhakta Neal 05-18-2011 10:18 PM

I should describe how I want this to work (which is how I managed to get a previous installation to operate):
I want to boot my machine, select any drive I want, and use my files, no matter what partition or physical HDD they are on.
On another machine I was able to get a gui dialog for password to access drives. I am OK with that.


I DON'T want to type to console every time I boot, or every time I want to use another drive.

Bhakta Neal 05-18-2011 10:29 PM

There is no MS Windows involved. All file systems are ext3.

yancek 05-18-2011 10:34 PM

Do you know what the permissions are? Because that's what seems to be the problem.
If you open Dolphin, click on the partition you want to create a file/folder in under Places on the left of the window, do you see the folders/files? Is this where you cannot write to? If so, right-click on any folder, click properties, click the Permissions tab in the new window. Who is the owner? group? permissions are? You would need rw permissions for whatever user you are using to create a folder or write to the folder. I don't have Kubuntu so I can't be any more specific. If you could check the above and post the responses if you are unable to resolve the issue.

Bhakta Neal 05-18-2011 10:42 PM

Only a "lost + found" folder exists there.
Owner: root
The permissions on it:
drwx--

Bhakta Neal 05-19-2011 01:17 PM

Haribol?

yancek 05-19-2011 01:56 PM

Quote:

Only a "lost + found" folder exists there
That doesn't sound good. Are you able to open the lost + found folder?
I would expect that to mean an empty partition?? I did see a post on Ubuntu forums a while ago which had a similar situation. Only a lost + found directory. The poster found that all his folders/files were actually there, in the lost + found directory.

Since the permissions only allow root any access, you would have to either use a terminal or open dolphin as root (sudo). I don't have Kubuntu installed so I'm not sure what you would do. I have kde and dolphin but on PCLinux and I can type kdesu dolphin and I am prompted for the root password, enter it and I'm in dolphin as root. Since you indicate you were able to do this on an earlier version, was that with Kubuntu? You don't remember how you did it? Since Kubuntu is an Ubuntu derivative, I expect is uses sudo instead of su.


Have you tried the method at this site? Hold the Alt+F2 keys down simultaneously and enter the "kdesu xterm", replace xterm with dolphin

http://www.howtogeek.com/howto/ubunt...-as-root-user/

If that doesn't work, go to a terminal and at the prompt, type: mount
Post the output which will tell which partitions you have and their mount point. It won't change anything or enable you to access anything but will provide information for someone who may be a little more familiar with Kubuntu.

Bhakta Neal 05-19-2011 02:07 PM

Thanks, Yancek.

I can not open the lost + found.

The partition is clean, newly written to ext3 file system with Gparted, then actually written the same again (out of habit) with the official Kubuntu 10.04 CD when I re-installed my Kubuntu.

Is there a way to set the permissions to normal "douchebag" user? I want all HDD's and partitions and thumbs etc to mount and be useable upon boot. The less interference, the better.

Yes EricTRA walked me through a series of steps to do just this, with Kubuntu 9.04, 9.10. I have since lost the thread, and I can t remember what my LQ handle was at the time. That is an abandoned account, due to hiatus, and loss of access to account, email, etc... I have searched for the thread and old profile and simply cant find it.

The results of "mount" at console prompt:
Quote:

neally@honeybear:~$ mount
/dev/sda1 on / type ext3 (rw,errors=remount-ro)
proc on /proc type proc (rw,noexec,nosuid,nodev)
none on /sys type sysfs (rw,noexec,nosuid,nodev)
none on /sys/fs/fuse/connections type fusectl (rw)
none on /sys/kernel/debug type debugfs (rw)
none on /sys/kernel/security type securityfs (rw)
none on /dev type devtmpfs (rw,mode=0755)
none on /dev/pts type devpts (rw,noexec,nosuid,gid=5,mode=0620)
none on /dev/shm type tmpfs (rw,nosuid,nodev)
none on /var/run type tmpfs (rw,nosuid,mode=0755)
none on /var/lock type tmpfs (rw,noexec,nosuid,nodev)
none on /lib/init/rw type tmpfs (rw,nosuid,mode=0755)
none on /var/lib/ureadahead/debugfs type debugfs (rw,relatime)
/dev/sda5 on /media/disk type ext3 (rw,nosuid,nodev,uhelper=hal)
/dev/sda4 on /media/disk-1 type ext3 (rw,nosuid,nodev,uhelper=hal)

Bhakta Neal 05-19-2011 02:17 PM

I did the alt+F2 trick. It is effective indeed, but highly inconvenient:

1. Every time I want to open another drive, I will need to do the keystroke, then enter password when prompted in dialog box, instead of simply using my KDE QuickAccess browser. I am constantly opening and closing things, Dolphin included, so doing these steps every time is not good.

2. The default theme, color scheme etc is shown on that root Dolphin window. This is not so much an esthetic concern, but a practical one, as I keep very dark color themes for my eyeball problems. The default gray is too bright.

What I want is to open any any any internal drive, external drive, removable drive, any partition, without doing ANYTHING different than I already do. I just want to set it up one time, so that I HAVE full access to every part of my machine, every time I boot, without any extra steps. In my home there is no concern for machine security.

Bhakta Neal 05-19-2011 02:19 PM

Does all this mean that I will use my machine as root all the time?

What does that mean?

How is that set up?

Bhakta Neal 05-19-2011 02:32 PM

I did this:

Quote:

neally@honeybear:~$ cat /etc/fstab
# /etc/fstab: static file system information.
#
# Use 'blkid -o value -s UUID' to print the universally unique identifier
# for a device; this may be used with UUID= as a more robust way to name
# devices that works even if disks are added and removed. See fstab(5).
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc nodev,noexec,nosuid 0 0
/dev/sda1 / ext3 errors=remount-ro 0 1
# swap was on /dev/sda3 during installation
UUID=e05c7519-bb29-4e72-b7b2-2bda220fe058 none swap sw 0 0
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
I don't know why my all-important /dev/sda4 (ext3) partition is not shown.
Also, there should be a small /dev/sda2 (ext3).

yancek 05-19-2011 04:59 PM

As you can see from your mount output, your sda4 and sda5 partitions are in the /media directory. sda1 is your root filesystem. Use the Alt +F2 to log in as root, click the red Root icon in the left column to get to the / of the filesystem, navigate to the /media directory and once again, check the owner/group and permissions for the disk and disk-1 directories which are sda4 and sda5 respectively. I expect they are root:root. You need to change the owner:group to what you want as well as the permissions. If you change the owner to whatever user name you use, you may be able to write to it but you should be able to see this.

If you want these partitions mounted at boot, you need an entry in fstab. Below is a sample I use for a data partition:

Quote:

/dev/sda5 /mnt/data ext3 auto,user,rw 1 2
The above is just an example and you will need to make changes to the entry, change /mnt/data to /media/disk in your case for sda4 and then add a second entry for /media/disk-1 sda5. To find what each column means you can google it, actually this site explains it pretty well:

http://en.wikipedia.org/wiki/Fstab

Use the Alt+F2 method to navigate to the /etc/fstab file to open it as you will need to be root. Don't know what the standard text editor is in Kubuntu, kwrite??

Don't know what happened to your sda2. You might look in /media directory to see if there is another disk-2(?) folder.

Bhakta Neal 05-20-2011 09:12 AM

Now that I think about it, someone once suggested a code that made a gui dialog for password pop up, which turned on all root privilages for my user account. I think it was KDESU or KDESUDO or something like that. It was very convenient.

Anybody know of this?


All times are GMT -5. The time now is 03:52 PM.