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
  •  


Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS picture

Lenovo ThinkStation P520c Intel Xeon W-2133 6-Core 3.60GHz -NO RAM/ HDD/ GPU/ OS

$127.54



Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor   picture

Intel Xeon Phi 5110P 60-Core 1.053GHz Coprocessor

$50.00



Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram  2x 550W PSU No HDD picture

Dell EMC PowerEdge R440 Xeon silver 4215 2.5GHz 16 GB ram 2x 550W PSU No HDD

$275.00



Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS picture

Dell Precision Tower 7810 Xeon E5-2630 v3 @ 2.40GHz , 32GB Ram, NO HDD, NO OS

$239.99



Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS picture

Dell Precision T5820 Workstation 3.70GHz W-2135 No RAM/ GPU/ HDD/ OS

$179.98



Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS picture

Intel Xeon E5-2699 V4 2.20GHz 55M 22-CORES LGA2011-3 Server Processor 145W SR2JS

$84.49



Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU picture

Intel Xeon E5-2680 V2 2.8GHz 10-Core 25MB 8GT/s SR1A6 LGA2011 B Grade Server CPU

$7.95



Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km picture

Intel Xeon E5-2690 v4 SR2N2 14 Core 2.6GHz 35MB LGA2011-3 CPU *km

$15.99



Dell PowerEdge R420 Server 2x Xeon E5-2440 v2 1.90GHz, 16GB , 8 Caddies NO HHD picture

Dell PowerEdge R420 Server 2x Xeon E5-2440 v2 1.90GHz, 16GB , 8 Caddies NO HHD

$199.99



For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX picture

For Parts - Lenovo ThinkServer TS460 Part Number: 70TT-0020UX

$149.99