Solved

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

Posted on 2014-10-04
6
355 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 61

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 61

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 61

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

Complete VMware vSphere® ESX(i) & Hyper-V Backup

Capture your entire system, including the host, with patented disk imaging integrated with VMware VADP / Microsoft VSS and RCT. RTOs is as low as 15 seconds with Acronis Active Restore™. You can enjoy unlimited P2V/V2V migrations from any source (even from a different hypervisor)

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Guacamole and browser performance 1 65
AWS CLI - Issue with name display 2 51
Exchange 2010 unable to mount DB due to corruption 11 71
Coding C# in Linux 8 39
I am a long time windows user and for me it is normal to have spaces in directory and file names. Changing to Linux I found myself frustrated when I moved my windows data over to my new Linux computer. The problem occurs when at the command line.…
If you have a server on collocation with the super-fast CPU, that doesn't mean that you get it running at full power. Here is a preamble. When doing inventory of Linux servers, that I'm administering, I've found that some of them are running on l…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

863 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now