LinuxQuestions.org
Review your favorite Linux distribution.
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 04-24-2003, 03: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, 03:31 PM   #2
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Virginia, USA
Distribution: Debian 12
Posts: 8,337

Rep: Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548Reputation: 548
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



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

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

All times are GMT -5. The time now is 12:08 AM.

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