cd 6.0.1 mount problem fromhd

View: New views
3 Messages — Rating Filter:   Alert me  

cd 6.0.1 mount problem fromhd

by Bernd Bleßmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi everyone,

I tried to copy the whole CD 6.0.1 to a hard disk partition an use the
fromhd boot option, but it didn't work (it could not mount the given
partition, tried all other ones and dropped me to the debug shell).

I looked into the init in the minitrt an found out, that the "-o"
parameter to the mount command for reiserfs, ext3 and ext2 in trymount()
was missing.

Attached is a patch - I hope it is helpfull.

Thank you and greetings,
   Bernd



--- init.orig 2009-04-09 12:27:39.000000000 +0200
+++ init 2009-04-09 13:02:02.000000000 +0200
@@ -118,9 +118,9 @@
  mount -t vfat -o "$RW",umask=000,shortname=winnt,noatime "$1" "$2" || \
   mount -t iso9660 -o ro "$1" "$2" || \
    ntfs-3g -o "$RW",umask=000,force "$1" "$2" || \
-    mount -t reiserfs "$RW",noatime "$1" "$2" || \
-     mount -t ext3 "$RW",noatime "$1" "$2" || \
-      mount -t ext2 "$RW",noatime "$1" "$2"
+    mount -t reiserfs -o "$RW",noatime "$1" "$2" || \
+     mount -t ext3 -o "$RW",noatime "$1" "$2" || \
+      mount -t ext2 -o "$RW",noatime "$1" "$2"
  return "$?"
 }
 

Re: cd 6.0.1 mount problem fromhd

by Charles Evans-4 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Monday 13 April 2009 06:08:05 pm Bernd Bleßmann wrote:

> Hi everyone,
>
> I tried to copy the whole CD 6.0.1 to a hard disk partition an use the
> fromhd boot option, but it didn't work (it could not mount the given
> partition, tried all other ones and dropped me to the debug shell).
>
> I looked into the init in the minitrt an found out, that the "-o"
> parameter to the mount command for reiserfs, ext3 and ext2 in trymount()
> was missing.
>
> Attached is a patch - I hope it is helpfull.
>
> Thank you and greetings,
>    Bernd

Have you seen a script to unpack and repack the minirt.gz?
I would like to use your patch but I still don't grok the new cpio format.
Thanks
Charles


--
To UNSUBSCRIBE, email to debian-knoppix-request@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...


Re: cd 6.0.1 mount problem fromhd

by Bernd Bleßmann :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Charles Evans schrieb:

> On Monday 13 April 2009 06:08:05 pm Bernd Bleßmann wrote:
>> Hi everyone,
>>
>> I tried to copy the whole CD 6.0.1 to a hard disk partition an use the
>> fromhd boot option, but it didn't work (it could not mount the given
>> partition, tried all other ones and dropped me to the debug shell).
>>
>> I looked into the init in the minitrt an found out, that the "-o"
>> parameter to the mount command for reiserfs, ext3 and ext2 in trymount()
>> was missing.
>>
>> Attached is a patch - I hope it is helpfull.
>>
>> Thank you and greetings,
>>    Bernd
>
> Have you seen a script to unpack and repack the minirt.gz?
> I would like to use your patch but I still don't grok the new cpio format.
> Thanks
> Charles
>
>

Hi Charles,

I use the following steps:
to extract:
  $ gunzip -c /media/sda5/boot/isolinux/minirt.gz > /tmp/minirt
  $ mkdir /tmp/miniroot
  $ cd /tmp/miniroot
  $ cpio -ivmd --no-absolute-filenames -I /tmp/minirt

miniroot fs is now in /tmp/miniroot

to repack:
  $ cd /tmp/miniroot
  $ find . | cpio -o -H newc > /tmp/minirt.new
  $ gzip -9 -c /tmp/minirt.new > /media/sda5/boot/isolinux/minirt.gz


Hope it helps. Greetings,
   Bernd


--
To UNSUBSCRIBE, email to debian-knoppix-request@...
with a subject of "unsubscribe". Trouble? Contact listmaster@...