LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 04-24-2003, 04:02 PM   #1
oswald21
Member
 
Registered: Mar 2003
Posts: 70

Rep: Reputation: 15
Edit cramfs? Read-only? How to make R/W?


I'm playing around with trying to edit the mini-kernel that comes with System Imager. I want to add my own loadable modules and create a bootable CD. And in the process of tracing it thru, I found that I cannot modifiy the little mini-kernel (init ramdisk) after mouting it as a loopback device.

Any ideas on what I can do? It looks like an iso9660 in that it's at 100% use and I cannot get past this. How do I force a cramfs to be read/writeable?


[root@shockme tmp]# df -k .
Filesystem 1K-blocks Used Available Use% Mounted on
/tmp/initrd.img 1188 1188 0 100% /mnt/initrd

[root@shockme my_modules]# ll
total 88
-rw-r--r-- 1 20800 64 88530 Apr 24 15:06 e1000.o
-rw-r----- 1 20800 64 881 Apr 24 15:06 INSMOD_COMMANDS

[root@shockme my_modules]# touch me
touch: creating `me': Permission denied

[root@shockme my_modules]# mount
/tmp/initrd.img on /mnt/initrd type cramfs (rw,loop=/dev/loop2)
 
Old 04-24-2003, 04:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,793

Rep: Reputation: 292Reputation: 292Reputation: 292
I think that you have to mount the mini-kernel twice in effect. The mount command mounts it as a partition. You also have to use the losetup command to set up ("mount") the mini-kernel as a file. Then commands like mkfs access the mini-kernel as a device and commands like touch access the mini-kernel as a file.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to edit/make nameservers to ips? trebbor Linux - Networking 1 06-30-2005 01:10 PM
What do I have to edit to make a module start on boot? WopMaster8 Linux - Wireless Networking 5 05-23-2004 11:25 AM
how do I make a read-only file NOT read-only? robster Linux - General 1 02-17-2004 10:11 PM
any counterpart of mke2fs for cramfs aditya Linux - General 1 09-10-2002 06:02 AM
cramfs: wrong magic --> HELP!!! rschlueter Linux - General 0 03-04-2002 07:47 AM


All times are GMT -5. The time now is 01:18 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration