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
  •  


New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G picture

New Barebones Supermicro 5019D Server, 4C/8T Xeon D-2123T, 1U Rackmountable, 10G

$449.99



HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD picture

HP Proliant MicroServer Gen 8 2.23GHz Xeon 16GB RAM NO SSD

$249.99



Supermicro 505-2   Server picture

Supermicro 505-2 Server

$280.00



Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter picture

Supermicro E300-12C Mini 1U Barebone X12SCV-LVDS LGA1200 SNK-P0073A4 w/ Adapter

$225.00



Micron 64GB 2Rx4 PC4-3200AA-RB2-14 3200MHz ECC Server RAM MTA36ASF8G72PZ-3G2F1TI picture

Micron 64GB 2Rx4 PC4-3200AA-RB2-14 3200MHz ECC Server RAM MTA36ASF8G72PZ-3G2F1TI

$4799.99



Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3 picture

Supermicro 1027GR-TSF 1U Rackmount Server 2x Xeon 2.3GHz 128GB DDR3

$219.99



Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD picture

Supermicro SuperServer E300-15 - SYS-e300-9C - 16GB RAM 240GB Samsung SSD

$239.00



SuperMicro 4U CSE 847 36 Bay LFF Barebone 2x 1280W w/ 2x Bays 2.5 Rear w/Trays picture

SuperMicro 4U CSE 847 36 Bay LFF Barebone 2x 1280W w/ 2x Bays 2.5 Rear w/Trays

$499.99



Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset picture

Supermicro CSE-937 3U Storage Chassis No CPU No HDD No Ram Tested & Reset

$129.99



Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC picture

Nasuni NF-50 Supermicro Server, Atom CPU C2558, @ 2.40GHz, 8GB RAM-No HDD/OS/AC

$250.00