LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-08-2021, 01:31 PM   #1
jan128
Member
 
Registered: Nov 2020
Posts: 201

Rep: Reputation: Disabled
Copy folder to RAID5 - unknown size with errors


SOLVED

Last edited by jan128; 02-08-2021 at 07:03 PM.
 
Old 02-08-2021, 01:54 PM   #2
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
You cannot put a directory directly to a device or partition. If this write succeeds then your filesystem in that partition will be severely damaged and if you attempt it to a device then the partition table also will be destroyed.

Last edited by Emerson; 02-08-2021 at 01:55 PM.
 
Old 02-08-2021, 02:41 PM   #3
jan128
Member
 
Registered: Nov 2020
Posts: 201

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by Emerson View Post
You cannot put a directory directly to a device or partition. If this write succeeds then your filesystem in that partition will be severely damaged and if you attempt it to a device then the partition table also will be destroyed.
Really ?
If I have correct permission I can copy entire folder from one partition to another using GUI.

The problem is Ubuntu "file manager" won't let me if I do not have proper permission, hence I have to use sudo / CLI and obviously not doing it right.

Let me rephase - how do I copy existing folder , not a whole partition, to RADI enabled partition?
 
Old 02-08-2021, 04:46 PM   #4
Emerson
LQ Sage
 
Registered: Nov 2004
Location: Saint Amant, Acadiana
Distribution: Gentoo ~amd64
Posts: 7,661

Rep: Reputation: Disabled
Quote:
Let me rephase - how do I copy existing folder , not a whole partition, to RADI enabled partition?
You don't do that!
When you are attempting such an operation, you should familiarize yourself with structure and terms. There is a drive (block device), then it may have partitions on it, and for partitions to be useful they must contain filesystems. To access this filesystem for writing files it must be mounted. Your command has partition as target, it would make only sense if you had an image of partition, like a backup image. Same for whole drives, if you had an image of a drive then you could write it to a block device.
 
Old 02-08-2021, 07:55 PM   #5
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Let me try to make sense of what has been said.

Physical drives are devices.
On the device you can create one or more partitions
In the partition you can create (by formatting) a file system.

Once the file system has been created it may then be made accessible by mounting it to a folder (AKA mount point) on the system directory tree.

After the file system is mounted it may be accessed to read and write data to it.

That is the whole sequence to making a device capable to read and write files to it from an operating system

Now, a RAID device is treated exactly the same as a single physical disk. It is created from multiple individual devices and is then seen by the system as a single device. You have to create partitions, format file systems, and mount the file system before you can read or write data to it.

dd or ddrescue can be used to access the raw device but that is not the same as reading and writing file data.
 
Old 02-08-2021, 08:12 PM   #6
computersavvy
Senior Member
 
Registered: Aug 2016
Posts: 3,345

Rep: Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484Reputation: 1484
Quote:
Originally Posted by jan128 View Post
Really ?
If I have correct permission I can copy entire folder from one partition to another using GUI.

The problem is Ubuntu "file manager" won't let me if I do not have proper permission, hence I have to use sudo / CLI and obviously not doing it right.

Let me rephase - how do I copy existing folder , not a whole partition, to RADI enabled partition?
A "RAID enabled partition" is not understood the same as a "RAID partition" although your meaning may be the same. I would understand a "RAID partition" to mean a partition on a raid device. If I have a raid device that has been partitioned already then I treat it the same as a partition on any disk.

A partition on the raid device has to be formatted as a file system and mounted. Then with the correct permissions you could use the gui to copy or move the folder to that new location.

I think one of your problems is not recognizing how or where to mount new file systems, and how to set the desired permissions & ownership of that new file system so your user can properly access it.

Once again I will point you to several basic tutorials that will help you learn all that.
Simply do a quick online search for "learning linux for free" or "learning linux online" and many different learning tools will pop up. Please spend a little time studying to help yourself in handling a linux computer better.
 
  


Reply

Tags
ddrescue, raid5



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
grub rescue> errors unknown filesystem, unknown commands, no live boot lazymonk Linux - Software 14 04-19-2016 01:51 AM
[SOLVED] btrfs RAID5 vs MD RAID5 + LVM eRJe Linux - General 4 01-20-2014 05:54 PM
Recreate a Raid5 MD0 into a Raid5 MD3 CADIT Linux - Server 2 01-11-2010 04:46 AM
Multi Layer RAID50 fail (Intel SRCS14L RAID5 + 3ware 9550SX-4LP RAID5)+Linux RAID 0 BaronVonChickenPants Linux - Server 4 09-27-2009 04:06 AM
Errors, Errors, and more Errors (KDE 3.4.x GUI Errors) Dralnu Linux - Software 2 05-13-2006 08:30 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:40 PM.

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
Open Source Consulting | Domain Registration