Page 2 of 2 FirstFirst 12
Results 11 to 20 of 20

Thread: Changing to read/write mode mounting Knoppix

  1. #11
    Senior Member registered user
    Join Date
    Apr 2005
    Location
    italy
    Posts
    245
    Quote Originally Posted by kermitq
    But knoppix adds autmaticaly lines to fstab. The Knoppix CD is add to fstab dynamically. and it is added as read-only (nothing strange if it is CD - but I use Knoppix on USB pendrive). I'm looking for scripts which adds these lines to fstab config file. Maybe in that script I could change mounting to read-write.
    Ah ok, in this case the 'script file' :P is '/etc/init.d/knoppix-autoconfig'.
    You have to look for a bunch of lines that starts with something like '# Starting creating /etc/fstab...' and comment_out/delete them or follow a less_invasive way already suggested by me here.

  2. #12
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    And that it is what I what to know! I will try to mod auto-config when I return home after my job.

    Cheers

  3. #13
    Junior Member registered user
    Join Date
    Apr 2005
    Location
    USA
    Posts
    17

    Re: Changing to read/write mode mounting Knoppix

    Quote Originally Posted by kermitq
    Hi all,

    I use USB Flash Drive for Knoppix ,but it is mounted as read only media So the question is: how to set Knoppix's USB mounting from read-only to read-write. What script does mount Knoppix's media ?

    Cheers!
    You may want to try mount -o remount,rw {device_name} {mount_point}

    Here, {device_name} is the device name for your usb partition as it is booted into (may be /dev/sda1 ?), and {mount_point} is most likely "/cdrom", but I am not 100% sure.

    If things don't work out, please post the listings from "mount" command and "cat /proc/mounts" when booted in.

    Also, please describe how you get it to boot. Are you following the instructions here?

    Please note that I am not a "guru", but know a couple of things here and there.

  4. #14
    Junior Member registered user
    Join Date
    Apr 2005
    Location
    USA
    Posts
    17
    If you want to modify the system file itself so that it always boots RW, I think that the file to look at is "linuxrc" which is found inside the miniroot.

  5. #15
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    Quote Originally Posted by tablet_guy
    If you want to modify the system file itself so that it always boots RW, I think that the file to look at is "linuxrc" which is found inside the miniroot.
    This is correct you are looking for approximately line 487 in linuxrc. If you change from this
    Code:
    mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX=""
    to this
    Code:
    mountit /dev/cloop /KNOPPIX "-o rw" || FOUND_KNOPPIX=""
    you should be on the right track.

  6. #16
    Junior Member registered user
    Join Date
    Apr 2005
    Location
    USA
    Posts
    17
    Quote Originally Posted by firnsy
    Quote Originally Posted by tablet_guy
    If you want to modify the system file itself so that it always boots RW, I think that the file to look at is "linuxrc" which is found inside the miniroot.
    This is correct you are looking for approximately line 487 in linuxrc. If you change from this
    Code:
    mountit /dev/cloop /KNOPPIX "-o ro" || FOUND_KNOPPIX=""
    to this
    Code:
    mountit /dev/cloop /KNOPPIX "-o rw" || FOUND_KNOPPIX=""
    you should be on the right track.
    Actually, I doubt if that'd work. A cloop device is not writable, as of now. The device holding the KNOPPIX root file system image needs to be set "rw".

    The problem is that, it isn't clear exactly how the poster is booting into the USB stick, and what filesystem is on the partition where KNOPPIX root fs is located by the booting process (namely initrd). He/she could also be using Rumbyeke's setup, for all you know.

    Let me assume that his setup is as follows: the USB partition is formatted as some fs other than NTFS, and all the files found on knoppix CD (not just the compress root fs) are found in that partition's root folder.

    Then, I think that the line to modify is line 467, from
    Code:
    if mountit $i /cdrom "-o ro" >/dev/null 2>&1; then
    to
    Code:
    if mountit $i /cdrom "-o rw" >/dev/null 2>&1; then
    Strictly speaking, the script should be modified to adaptively or upon a boot prompt option permit mounting the boot media RW, because, this line would fail for non-RW devices like the cdrom.

    If the posted is still following, let him/her try and make this change and see if it works.

    I will post a followup regarsless, as soon as I am able to do some testing on my own with the latest version of Knoppix (I had played with this on earlier versions).

    thanks.

  7. #17
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    yes ... my bad, to be honest I didn't even look closely at the line, still waking up.

    Quote Originally Posted by tablet_guy
    Strictly speaking, the script should be modified to adaptively or upon a boot prompt option permit mounting the boot media RW
    This would be the elegent solution

    Quote Originally Posted by tablet_guy
    because, this line would fail for non-RW devices like the cdrom.
    It shouldn't fail, mount is smart enough to recognise that the medium is in fact read only and act accordingly by notifying on stderr that it is mounting read only and even returning an successful code 0.

  8. #18
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    the results of linuxrc's customizations:

    after changing one line to:

    Code:
    if mountit $i /cdrom "-o rw" >/dev/null 2>&1; then
    The system boots, but the usb stick is still read-only.

    After changing two lines lines, (following both tablet_guy and firnsy's posts)

    Code:
    mountit /dev/cloop /KNOPPIX "-o rw" || FOUND_KNOPPIX=""
    ...
    
    if mountit $i /cdrom "-o rw" >/dev/null 2>&1; then
    system doesn't boot. Linux boots with error : 'Cant find KNOPPIX filesystem'

    Cheers.

  9. #19
    Member registered user
    Join Date
    Mar 2005
    Posts
    87
    As tablet_guy mentioned, don't do my change as it isn't correct, I was supposed to post the line that tablet_guy mentioned.

    For the reasons you have found out, the following will NOT work

    Code:
    mountit /dev/cloop /KNOPPIX "-o rw" || FOUND_KNOPPIX=""
    What, if any, boot codes are you using in addition to the defaults?

  10. #20
    Junior Member
    Join Date
    Sep 2006
    Posts
    9
    I just start with 'knoppix'

    But I also started only with changes presented by tablet_guy

    Code:
    if mountit $i /cdrom "-o rw" >/dev/null 2>&1; then
    It started but, dev/sda1 (the knoppix disk) was still read only.

Page 2 of 2 FirstFirst 12

Similar Threads

  1. Changing USB install to read-write
    By raesene in forum Hdd Install / Debian / Apt
    Replies: 0
    Last Post: 02-26-2006, 06:01 PM
  2. Help Changing Read/Write for NTFS in Knoppix 3.6
    By Krendall in forum General Support
    Replies: 3
    Last Post: 10-01-2004, 01:37 AM
  3. Accessing NTFS in read-write mode on Knoppix 3.4
    By crveni in forum General Support
    Replies: 4
    Last Post: 06-08-2004, 08:46 AM
  4. Mount NTFS in read/write-mode
    By walterma in forum General Support
    Replies: 5
    Last Post: 04-26-2004, 07:52 AM
  5. can't change read/write mode on HDD
    By Dioran in forum General Support
    Replies: 1
    Last Post: 11-16-2003, 08:21 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  


Acer Predator Helios Neo 16S AI 16

Acer Predator Helios Neo 16S AI 16" i9 275HX 2S RTX 5070 Ti 32GB 1TB SSD Refurb

$1690.40



Dell Latitude 14

Dell Latitude 14" Laptop Computer Intel i5 Up To 32GB RAM 1TB SSD Windows 11 Pro

$316.61



External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac picture

External SSD 1TB 2TB 4TB Portable Hard Drive USB 3.0 Type-C High Speed PC Mac

$19.99



Samsung 2.5

Samsung 2.5" 870 EVO SSD SATA III 250GB 500GB 1TB Internet Solid State Drive Lot

$90.00



SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM picture

SAMSUNG T7 Portable SSD 1TB Indigo Blue USB 3.2 Gen2 External MU-PC1T0H/AM

$159.99



Crucial MX500 1TB 2.5

Crucial MX500 1TB 2.5" SATA III Internal SSD CT1000MX500SSD1

$105.99



Acer Aspire 16 16

Acer Aspire 16 16" Laptop Core Ultra 5 226V S2 16GB RAM 1TB SSD Arc Refurbished

$519.99



Acer Aspire 14

Acer Aspire 14" AI Copilot+PC Laptop Core Ultra 5 226V Gen 4 ARC 16GB 1TB Refurb

$452.53



Western Digital 1TB 3.5

Western Digital 1TB 3.5" SATA III 7200RPM Desktop Hard Drive

$34.99



SanDisk Ultra 3D SSD 1TB, SDSSDH3 2.5

SanDisk Ultra 3D SSD 1TB, SDSSDH3 2.5" SSD Drive SATA III 6GB/S (SDSSDH3-1T02)

$138.56