LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 03-24-2017, 01:19 PM   #1
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Rep: Reputation: Disabled
A raid 0 and sda3 question.


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...
 
Old 03-24-2017, 01:50 PM   #2
Keruskerfuerst
Senior Member
 
Registered: Oct 2005
Distribution: SLES 12
Posts: 1,852

Rep: Reputation: 132Reputation: 132
Which distro are you using?

Files, which are stored by the use, are saved to /home.
You can use approx. 90% of free space for storing data.

The read permission is set by the file permissions.
 
Old 03-24-2017, 02:03 PM   #3
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Keruskerfuerst View Post
Which distro are you using?

Files, which are stored by the use, are saved to /home.
You can use approx. 90% of free space for storing data.

The read permission is set by the file permissions.
Thanks for the reply..

Ubuntu 14 lts.

I am using /home at the moment but i would like to be able to use the empty space at sda3, but i have no idea how to access the drive..
 
Old 03-24-2017, 02:13 PM   #4
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
Quote:
Originally Posted by Bassit View Post
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.
 
1 members found this post helpful.
Old 03-24-2017, 02:37 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
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.
 
1 members found this post helpful.
Old 03-24-2017, 03:41 PM   #6
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
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).
Again thanks for the reply..

Filesystem 1M-blocks Used Available Use% Mounted on
udev 12038 1 12038 1% /dev
tmpfs 2410 2 2409 1% /run
/dev/sda3 1967617 7955 1859691 1% /
none 1 0 1 0% /sys/fs/cgroup
none 5 0 5 0% /run/lock
none 12049 20 12029 1% /run/shm
none 100 1 100 1% /run/user
/dev/sda2 190 36 140 21% /boot
/dev/sda5 1785441 1329410 365315 79% /home

As i said i am very new to linux..

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..
 
Old 03-24-2017, 03:44 PM   #7
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mddnix View Post
Create a directory in root and set owner and group to yourself with recursive write permission.
Thank you for the reply..

I have no idea of how to do any of the above, but i could google all of the above steps i suppose..
 
Old 03-24-2017, 04:08 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
Quote:
Originally Posted by Bassit View Post
Again thanks for the reply..

Filesystem 1M-blocks Used Available Use% Mounted on
udev 12038 1 12038 1% /dev
tmpfs 2410 2 2409 1% /run
/dev/sda3 1967617 7955 1859691 1% /
none 1 0 1 0% /sys/fs/cgroup
none 5 0 5 0% /run/lock
none 12049 20 12029 1% /run/shm
none 100 1 100 1% /run/user
/dev/sda2 190 36 140 21% /boot
/dev/sda5 1785441 1329410 365315 79% /home

As i said i am very new to linux..

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.
 
1 members found this post helpful.
Old 03-24-2017, 04:17 PM   #9
wpeckham
Senior Member
 
Registered: Apr 2010
Location: Continental USA
Distribution: Debian, Ubuntu, Fedora, RedHat, DSL, Puppy, CentOS, Knoppix, Mint-DE, Sparky, Vsido, tinycore, Q4OS
Posts: 2,388

Rep: Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961Reputation: 961
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.
 
1 members found this post helpful.
Old 03-24-2017, 04:23 PM   #10
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by wpeckham View Post
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.
 
Old 03-24-2017, 04:26 PM   #11
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by suicidaleggroll View Post
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.
 
Old 03-24-2017, 07:12 PM   #12
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,552

Rep: Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112Reputation: 2112
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.
 
1 members found this post helpful.
Old 03-25-2017, 02:15 AM   #13
mddnix
Member
 
Registered: Mar 2013
Distribution: Redhat, Ubuntu
Posts: 525

Rep: Reputation: 141Reputation: 141
@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
  1. Create bookmark of /data in file manager (like nautilus) for easy navigation.
  2. 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
 
Old 03-28-2017, 07:59 AM   #14
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mddnix View Post
@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
  1. Create bookmark of /data in file manager (like nautilus) for easy navigation.
  2. 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 View Post
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..
 
Old 03-28-2017, 08:05 AM   #15
Bassit
LQ Newbie
 
Registered: Mar 2017
Posts: 16

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by mddnix View Post
@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
  1. Create bookmark of /data in file manager (like nautilus) for easy navigation.
  2. 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.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
/dev/sda3: recovery journal ,/dev/sda3: clean,170684/516096,1197311/2061568 blocks parvaz_hj Linux - General 3 11-02-2013 07:44 PM
cant mount partition sda3 Karottenbaum Linux - Newbie 8 10-09-2011 02:44 PM
Waiting for sda3 to appear ss_zaidi Linux - Newbie 0 04-09-2009 03:03 AM
software raid 10 (yes, another raid question) aunquarra Linux - Server 3 06-15-2007 06:28 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 08:52 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration