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.
Hi all, 1st time poster here..
I'm very new to Linux and cant find an answer by googling..
I have a server set up with 2x2tb drives with raid 0.
sda3 is root and has 1.9tb available space, can i use this space for storing files?
If so i would want access/permission to read the files once written on my existing account, not root..
Hi all, 1st time poster here..
I'm very new to Linux and cant find an answer by googling..
I have a server set up with 2x2tb drives with raid 0.
sda3 is root and has 1.9tb available space, can i use this space for storing files?
If so i would want access/permission to read the files once written on my existing account, not root..
Thanks for reading...
Create a directory in root and set owner and group to yourself with recursive write permission.
I don't understand what "sda3" is, how it relates to some raid 0 array mentioned in the OP, or what either of those have to do with storing some data on your filesystem. Create a directory in the location where you want it, give it the necessary permissions for your user to access it, and you're done. If you're trying to ask us where you can create this directory so that it will end up on "sda3" or whatever raid array you mentioned, we're going to need a lot more information from you (partitioning/filesystem information, raid configuration, mount locations, etc).
Last edited by suicidaleggroll; 03-24-2017 at 02:38 PM.
I don't understand what "sda3" is, how it relates to some raid 0 array mentioned in the OP, or what either of those have to do with storing some data on your filesystem. Create a directory in the location where you want it, give it the necessary permissions for your user to access it, and you're done. If you're trying to ask us where you can create this directory so that it will end up on "sda3" or whatever raid array you mentioned, we're going to need a lot more information from you (partitioning/filesystem information, raid configuration, mount locations, etc).
I am unsure as to what the use of /dev/sda3 is, so i wanted to ask if i will mess anything up by putting a folder in there.
If its ok to use the drive(?) /dev/sda3, i want to place a folder in there for storage and transfer files from /home..
I am unsure as to what the use of /dev/sda3 is, so i wanted to ask if i will mess anything up by putting a folder in there.
If its ok to use the drive(?) /dev/sda3, i want to place a folder in there for storage and transfer files from /home..
Yes that would be fine. By the way I do not see any evidence of RAID on your system, all I see is a single drive called "sda" with at least 5 partitions on it.
If you want to create a data directory on sda3, you could run as root:
Code:
mkdir /data
chown bassit:bassit /data
Replacing "bassit" with your username on the machine. That will create a directory called "data" in /, which is located on sda3, and will then change the ownership (both user and group) of that directory to your user, so you can do with it what you like.
What makes you think you are using raid?
Do you have a RAID controller for those drives, or had you intended to use software raid?
There seems to be a disconnect there, and I think some answers MAY clear this up a bit.
What makes you think you are using raid?
Do you have a RAID controller for those drives, or had you intended to use software raid?
There seems to be a disconnect there, and I think some answers MAY clear this up a bit.
I requested the server to be set up with raid 0, no controller, software only..So i assumed it had been setup with raid 0.
Yes that would be fine. By the way I do not see any evidence of RAID on your system, all I see is a single drive called "sda" with at least 5 partitions on it.
If you want to create a data directory on sda3, you could run as root:
Code:
mkdir /data
chown bassit:bassit /data
Replacing "bassit" with your username on the machine. That will create a directory called "data" in /, which is located on sda3, and will then change the ownership (both user and group) of that directory to your user, so you can do with it what you like.
Thank you again, this is what i wanted to know.
Raid or no raid is fine with me, i assumed it had been setup with software raid as this is what i requested.
The Linux software raid controller is mdadm. Any resulting arrays would be called /dev/md* (md0, md1, md127, etc). sda is a physical device, could be a hard drive, ssd, hardware raid controller, etc, but definitely not a software raid. Not to mention that a raid 0 array made up of 2x2tb drives would be 4tb, and your sda is only 2tb.
@Bassit You can create directory in root '/' partition as mentioned by suicidaleggroll in post #8. Assuming your username is bassit, for further convenience, you can also do following
Create bookmark of /data in file manager (like nautilus) for easy navigation.
If you use terminal often, then you can do this in your home directory
Code:
$ cd ~
$ mkdir data
$ sudo vim /etc/fstab
/data /home/bassit/data none bind 0 0
$ sudo mount -a
@Bassit You can create directory in root '/' partition as mentioned by suicidaleggroll in post #8. Assuming your username is bassit, for further convenience, you can also do following
Create bookmark of /data in file manager (like nautilus) for easy navigation.
If you use terminal often, then you can do this in your home directory
Code:
$ cd ~
$ mkdir data
$ sudo vim /etc/fstab
/data /home/bassit/data none bind 0 0
$ sudo mount -a
Quote:
Originally Posted by suicidaleggroll
The Linux software raid controller is mdadm. Any resulting arrays would be called /dev/md* (md0, md1, md127, etc). sda is a physical device, could be a hard drive, ssd, hardware raid controller, etc, but definitely not a software raid. Not to mention that a raid 0 array made up of 2x2tb drives would be 4tb, and your sda is only 2tb.
Thank you for this explanation, info such as this helps a complete newbie like myself..
@Bassit You can create directory in root '/' partition as mentioned by suicidaleggroll in post #8. Assuming your username is bassit, for further convenience, you can also do following
Create bookmark of /data in file manager (like nautilus) for easy navigation.
If you use terminal often, then you can do this in your home directory
Code:
$ cd ~
$ mkdir data
$ sudo vim /etc/fstab
/data /home/bassit/data none bind 0 0
$ sudo mount -a
Thank you for the reply.
I currently have xfce so i'm not really having trouble finding my way around now after following suicidaleggroll's post, but i can google your instructions 1 by 1 and learn a little more from it.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.