[SOLVED] Teach me how to access my other drives! Kubuntu10.04, can't write to other partitions
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# /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 $
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sda4 /mnt/data ext3 auto,user,rw 1 2
Then:
Quote:
neally@honeybear:~$ sudo mount -a
mount: mount point /mnt/data does not exist
And, of course the partition is still unavailable via gui Dolphin.
Ha sorry to seem impatient! I was actually reading the wiki, posting step by step, trying to understand what I was doing. I knew you were typing a long one!
As I mentioned in my rather large post, maybe you missed it, you need to have a directory /mnt/data if you want to mount a partition to it. If you want to mount the partition to another directory you need to change /mnt/data to that. And you also need to make sure you have the correct permissions set on that same directory in order to have the rights you need to access the mounted partition.
So, do you have a directory where you want to mount the parition? If so what is it and run the following command on it:
Code:
ls -l yourdirectory_you_want_to_mount_the_partition_to
I have not created a directory. This is a basic thing you taught me, but I dont remember. After we are done here I will need to review the Lorax threads.
Also, I am not sure where the mounting "should" go, and why it would be a good choice. For example, I dont understand the difference between /mnt and /media and a custom directory.
Also, I am not sure where the mounting "should" go, and why it would be a good choice. For example, I dont understand the difference between /mnt and /media and a custom directory.
Hi,
Basically you can mount the partition where you want, considering you as user have the permissions to that mountpoint, but it's good practice to put personal data under your /home/<username> directory. General data for other users to access can be put in a mountpoint under /mnt where permissions can be changed to give access to others too.
To add what Eric said - /mnt is normally where you will want to mount your drives and devices, whereas /media is there for more system automount "stuff" - If you would enable automount, your system will mount everything in /media. Just trying to make that simple.
neally@honeybear:~$ sudo nano /etc/fstab
[sudo] password for neally:
neally@honeybear:~$ sudo mount -a
neally@honeybear:~$ mount /home/neally/DATA
mount: /dev/sda4 already mounted or /home/neally/DATA busy
mount: according to mtab, /dev/sda4 is already mounted on /home/neally/DATA
Now, do I have permissions screwed up? I ask because now I can navigate via gui to /home/neally/DATA, but I can not make new folder (ghosted out in the right-click menu),
and,
I can open the /home/neally/DATA/lost + found, but also can not write to it, as above.
# /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 $
/dev/fd0 /media/floppy0 auto rw,user,noauto,exec,utf8 0 0
/dev/sda4 /home/neally/DATA ext3 auto,user,rw 1 2
OK, you created the directory with sudo apparently since owner is set to root:root. Run the following to fix that:
Code:
sudo chown -R neally:neally /home/neally/DATA
then run the ls -l command again and post output.
As I told you in one of the previous posts you need to make sure that you as user have permissions to that directory where you will mount your partition to.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.