Choose style:

Author Topic: locate /var and /tmp on a striped btrfs partition  (Read 198 times)

0 Members and 1 Guest are viewing this topic.

Offline Sprinterdriver

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8-20170527-i386
locate /var and /tmp on a striped btrfs partition
« on: October 10, 2017, 06:53:19 pm »
Hi.

This is the same computer as I had som issues with before: https://forum.peppermintos.com/index.php/topic,6001.0.html
Reason for holding that crappy old computer alive is to test and learn Linux - as it is more fun to run Linux on a physical computer than on a virtual one.

I'm currently just running PM8 in live-cd mode.

So I have a total of 3 harddrives in the computer. 2 of the drives, sdb and sdc is formatted as btrf as striped diske:
Code: [Select]
sudo mkfs.btrfs -f -d raid0 /dev/sdb /dev/sdc

And I did:
Code: [Select]
btrfs device scan

When opening Nemo file manager I can see that in left pane, under Devices - I can see the two drives:
- "2.1 GB volume" (and the eject-media symbol)
- "2.1 GB volume" (without eject-media symbol)
If I right click on one of those and select Properties, the properties window tell me that volume is 2.1 GB while free space = 3.8 GB.


Problem 1
I get error messages when try to create files or folders on the new volume (right pane in Nemo when one of the 2.1 drives is selected at left pane).  I simply has too little understanding about mounting etc. to get this to work. Is there permission problem or is there some other issues or thing I must do to make a usable btrf raid0 partition?
I get "permission denied" error when trying to create new file under the location.

Problem 2
Receipee to make two folders into the raid0 partition and mount the two folders as /var and /tmp. But the first problem must be solved first.

Offline alynur

  • Trusted User
  • Member
  • *****
  • Posts: 414
  • Karma: 11
  • New Forum User
    • View Profile
  • Peppermint version(s): 8
Re: locate /var and /tmp on a striped btrfs partition
« Reply #1 on: October 11, 2017, 03:20:07 pm »
Hi Srinterdriver, I'm pretty sure all Linux, including Peppermint depend on ext4  formatting. Any reason you don't want to format those drives as ext4?

Online murraymint

  • Trusted User
  • Veteran
  • *****
  • Posts: 1343
  • Karma: 238
  • soft boiled with a yolk of gold
    • View Profile
  • Peppermint version(s): 7, 8
Re: locate /var and /tmp on a striped btrfs partition
« Reply #2 on: October 11, 2017, 04:45:18 pm »
Although Peppermint includes btrfs-tools, I've never heard of anyone using it before. Therefore it's basically untested within Peppermint and you're the pioneer finding out how/if it works.

Offline scifidude79

  • Global Moderator
  • Hero
  • *****
  • Posts: 2863
  • Karma: 690
    • View Profile
  • Peppermint version(s): Peppermint 7 & 8 64 bit
Re: locate /var and /tmp on a striped btrfs partition
« Reply #3 on: October 11, 2017, 04:49:11 pm »
Hi Srinterdriver, I'm pretty sure all Linux, including Peppermint depend on ext4  formatting.

Not necessarily, though EXT4 is generally preferred by Ubuntu-based distributions.  However, you can still technically use EXT2 and EXT3, though I don't know why you'd want to when they can't handle files as large as EXT4.  Also, some Linux distributions prefer XFS file systems, and most should also be able to use that system.

For general storage drives, (not system drives) you can even use FAT16, FAT32 and NTFS, if you feel so inclined.

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18029
  • Karma: 2146
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: locate /var and /tmp on a striped btrfs partition
« Reply #4 on: October 11, 2017, 04:51:57 pm »
What happens if you create a mountpoint, then manually mount it
Code: [Select]
sudo mkdir ~/mnt/striped
then
Code: [Select]
sudo mount /dev/sdb /mnt/striped
is it then in the left hand column of the file manager ?

Reference link
https://btrfs.wiki.kernel.org/index.php/Using_Btrfs_with_Multiple_Devices
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec


Offline Sprinterdriver

  • Jr. Member
  • **
  • Posts: 30
  • Karma: 0
  • New Forum User
    • View Profile
  • Peppermint version(s): 8-20170527-i386
Re: locate /var and /tmp on a striped btrfs partition
« Reply #5 on: October 12, 2017, 05:00:04 am »
Thanks for answering.

I tried to run sudo mkdir ~/mnt/striped but I receive:
cannot create directory '/home/peppermint/mnt/striped': No such file or directory.

Guess that is because I still run live-cd session.

btw: I'll be off the computer of interrest for a while, so I will not have access to that for about one week now

Online PCNetSpec

  • Administrator
  • Hero
  • *****
  • Posts: 18029
  • Karma: 2146
  • "-rw-rw-rw-" .. The Number Of The Beast
    • View Profile
    • PCNetSpec
  • Peppermint version(s): Peppermint 8 (64bit)
Re: locate /var and /tmp on a striped btrfs partition
« Reply #6 on: October 12, 2017, 06:02:09 am »
Ooops, my mistake, try:
Code: [Select]
sudo mkdir /mnt/striped
then
Code: [Select]
sudo mount /dev/sdb /mnt/striped
WARNING: You are logged into reality as 'root' .. logging in as 'insane' is the only safe option.

Team Peppermint
PCNetSpec