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.
Hey guys i just installed Linux Mint 18 for the first time, and i am having a problem with partitions,
during installation i made 4 partitions
1 /
2 /home
3 /swap area
4 /datapartition
the problem i am facing i with data partition is that i can't use it!
i can't move/copy any data to that folder while the whole partition is empty!
please help me here.
Thank You!
First, is the data partition mounted? Second, what are the permissions for the mount point? Does the user trying to use that directory have the necessary permissions?
Hi naumanafsar! I just wanted to say 'Welcome'. And encouragement on 'digging thru' whatever 'puzzles' Linux presents Are you familiar with 'the terminal'/CLI? One way I approach things it to try to provide a way for others to visualize and even reproduce my problem situation. Also I try to compose optimal web-search keywords, to demonstrate the issue. **Are there any error messages?** Do you have a way to copy and paste info here (delimited with [CODE]...[/CODE] tags)? Like:
Code:
df /datapartition; ls -ld /datapartition
lsblk -fp
tail /etc/fstab
(plus especially ways to check what agillator asked)
Best Wishes! Looking forward to hearing back from you. ENJOY your Linux 'journey'!
During installation, did you tell Mint where your "home" partition is to be mounted?
For the "data" partition, it is probably best if you just used the file manager/browser to mount it and get access to it. Now if the partition already has a filesystem on it, e.g. ext4, then only root has permission to write to that partition. Then, you have to log in as root in a terminal and create a directory there, then change the ownership of the directory so that you get permission to read and write to that particular directory. Then you can put all your files inside that directory.
Here's the thing. By default /data is a directory located in a system area of Linux. As such, Mint will have set up the filesystem on the related partition as owned and modifiable by the root user, not you as an ordinary user. That is why you cannot change anything in it without some modifications.
In Mint, I find it's best to mount data partitions to /media, and to do this automatically through the /etc/fstab file.
But first things first. We need to find out which device contains the data partition in question, mount it in /media, and take ownership of it.
Can you please post the output from the following commands, which will enable us to get info on the data partition:
>"By default /data is a directory located in a system area of Linux."
Oh, you mean: a newly-made /data would be in 'the root' ..., like:
mkdir /MYwhatever; df /MYwhatever shows it 'in' / == 'root' filesystem! (until `mount` of a fs on it)
I was about ready to RUN back to my 1990's SunOS4.x, when `df /data` failed on my new Mint18.1
/dev/disk/by-label wasn't there: only: by-id by-path by-uuid. Try: ls -l /dev/disk/*
(tho it may NOT give any 'useful' info here Try: lsblk -fp )
A path to anything in Linux starts with the root directory (/). Everything in Linux is a file. When you create a partition you are setting aside an area of the disk and creating a file system on it. It is unreachable until you 'mount' it somewhere. Most partitions can be mounted almost anywhere. Most partitions, when created during installation, are owned by the root user. Most partitions can only be mounted by the root user without using special options. So, if you have a partition mounted at /data (a directory directly below the root directory) it is probably owned by the root user until and unless you change the ownership with the chown command and/or change permissions with the chmod command. At this point you need to learn about the Linux permission system (just google linux permissions) and read the manual pages for chown and chmod ('man chown' and 'man chmod'). It is really important that you understand these before you go much further as it has a lot to do with the security of your system. Without knowing this you can screw things up royally.
That's strange, because /dev/disk/by-label works fine on my Mint 18.1 installation. It's an easy way to get at the filesystem labels. Unless of course none of your filesystems actually have labels. The only reason I asked for that was so that we could quickly make sure which was your data partition, but there are other ways of doing that.
How about the output from sudo parted -l? That will give us a list of all your partitions in a nice handy format complete with filesystem types and partition sizes.
In order to avoid confusion, naumanafsar, I'll leave you in the hands of Jjanel. After all, he was here first. Let us know if he is unable to resolve your issue.
what is going on here?
4 partitions: only 3 mounted? your fstab should be simple 1 hard drive 4 partitions: in lue of UUID which can be used to replace this simple set up.
your fstab should look something similar to that if MINT is using UUID same set up. UUID replaces /dev/sdxx
a mixing of the two device and UUID example (my fstab)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.