Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people, just like you, are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
Solved

USB mounts squashfs partition, need to make changes to file (write to squashfs)

Posted on 2014-10-04
6
366 Views
Last Modified: 2014-10-04
hi

i have a usb stick that has several partitions on it.

one if them is squashfs.

when i attach the usb stick it gets mounted automatically as /dev/sdc7

now i need to make changes to one of the files in the squasfs partition

how can I do that (as it not possible to directly mount or remount squashfs as rw)

thanks
0
Comment
Question by:netslt
  • 3
  • 3
6 Comments
 
LVL 62

Expert Comment

by:gheist
ID: 40361289
squashfs is read-only by design
you must mount it, then copy everything with permissions to better place
and re-create new squashfs.
0
 

Author Comment

by:netslt
ID: 40361334
i know it is r only, i am looking for a workaround....

so when i copy all the files drom the partition, make changes and create the squashfs again - how do i replace the existing partition with the new squashfs file?

i see no "file" on the stick - so how exactly do i have to proceed?

thanks again
0
 
LVL 62

Expert Comment

by:gheist
ID: 40361354
You need to use "dd" command to transfer squashfs file to (not mounted) disk partition
0
Microsoft Certification Exam 74-409

Veeam® is happy to provide the Microsoft community with a study guide prepared by MVP and MCT, Orin Thomas. This guide will take you through each of the exam objectives, helping you to prepare for and pass the examination.

 

Author Comment

by:netslt
ID: 40361559
can you pls explain more in detail or give me sample for the commands necessary?

thanks
0
 
LVL 62

Accepted Solution

by:
gheist earned 500 total points
ID: 40361574
It is a single command... There is nothing to detail
mkdir whatever
cd whatever
unsquashfs /dev/sdb4
(do your changes)
mksquashfs squash.new .
dd if=squash.new of=/dev/sdb4
0
 

Author Comment

by:netslt
ID: 40361710
I'll try that - thank you very much
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Daily system administration tasks often require administrators to connect remote systems. But allowing these remote systems to accept passwords makes these systems vulnerable to the risk of brute-force password guessing attacks. Furthermore there ar…
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…

861 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question