Why is mount mounting the directory to /dev/loop0 instead of the device? Can’t write all my files to the directory as a result (since it’s too small)

I want to write about 38 MB of files to a partition that is 100 MB large. However, when I mount that partition to the directory, it mounts to /dev/loop0 instead of /dev/sdc1 (in my example). This seems to be a problem as the mv command won’t let me write all 38 MB of files…

Details

What is a convenient way to run long list of commands, and show a message if something goes wrong?

Most linux guides consist of pages like “you need to run command_1, then command_2, then command_3” etc. Since I don’t want to waste my time running all of them manually, I’d rather create a script command_1; command_2; command_3; and run it once. But, more often then not, some commands will fail, and I will have…

Details

As a best practice, where should API calls take place in React?

Good day, I am using react-redux and redux-thunk. The sample code below. projects.jsx const fetch = async () => { const { data: projects } = await getProjects() dispatch(storeProjects(projects)) } const projects = useSelector(state => state.projects) console.log(projects) /actions/projects.js export const storeProjects = (projects) => { return { type: ‘STORE_PROJECTS’, projects } } /reducers/index.js const projects…

Details