[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#119753: marked as done (Resurrecting Lowmem Boot Disks)



Your message dated Thu, 13 Oct 2005 16:20:32 -0400
with message-id <20051013202032.GA29224@kitenet.net>
and subject line boot-floppies end of life
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--------------------------------------
Received: (at submit) by bugs.debian.org; 15 Nov 2001 22:09:15 +0000
>From daniel@citechnologies.com Thu Nov 15 16:09:15 2001
Return-path: <daniel@citechnologies.com>
Received: from femail37.sdc1.sfba.home.com [24.254.60.31] 
	by master.debian.org with esmtp (Exim 3.12 1 (Debian))
	id 164Uh9-0004lW-00; Thu, 15 Nov 2001 16:09:15 -0600
Received: from NODE05A ([24.112.110.27]) by femail37.sdc1.sfba.home.com
          (InterMail vM.4.01.03.20 201-229-121-120-20010223) with SMTP
          id <20011115220909.BBXJ23116.femail37.sdc1.sfba.home.com@NODE05A>
          for <submit@bugs.debian.org>; Thu, 15 Nov 2001 14:09:09 -0800
From: "Daniel F. Dickinson" <daniel@citechnologies.com>
To: <submit@bugs.debian.org>
Subject: Resurrecting Lowmem Boot Disks
Date: Thu, 15 Nov 2001 17:09:08 -0500
Message-ID: <000001c16e22$26944840$6900a8c0@home.home.com>
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3 (Normal)
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0)
Importance: Normal
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2479.0006
Delivered-To: submit@bugs.debian.org

Package: boot-floppies
Version: 2.2.26

I figured out how to revive the low memory boot disk option which only a few
of minor changes to the package.  The first change is to
/usr/src/boot-floppies/utlities/lowmemrc/linuxrc.c and involves a changing
the mounting of the boot floppy and doing a zcat on /root.bin to not
mounting anything and doing a zcat on /dev/fd0 (since the install set is no
longer using a single boot/root disk).

The second change is to rootdisk.sh and involves changing the fstype
variable to minix instead of ext2.

I don't remember if the third change I have is necessary, but I did it while
trying to get the root floppy to work.  That is adding some
display devices in lowmemrd.sh, possibly needed by the kernel.
(/dev/console, /dev/ttyx, /dev/vcsx).

The first patch (for linuxrc.c) contains some additional code which I
borrowed from the same package but in a different dir.  Basically I borrowed
code from fdisk.c that display the list of partitions found by the fdisk
code.  This was helpful while hacking on the package but probably isn't that
useful/needed otherwise.

Here's the linuxrc.c patch:
#######################################################
--- /usr/src/boot-floppies/utilities/lowmemrd/linuxrc.c	Sun Mar 28 10:29:04
1999
+++ /usr/src/boot-floppies-mono/utilities/lowmemrd/linuxrc.c	Tue Aug  7
05:31:48 2001
@@ -25,6 +25,8 @@
 /* functions defined in mkswap.c */
 extern int mkswap_main(const char *device_name, int pages, int do_check);

+int test_fdisk(void);
+
 int zcat(const char *source, const char *target) {
   gzFile *fsrc;
   FILE *ftgt;
@@ -53,7 +55,7 @@
   struct fdisk_disk *disk;
   int i;
   if (NULL == fdisk_disks) {
-    printf(CLEAR
+    printf(CLEAR
 "No hard disk drives could be found. Make sure they are cabled correctly
and
 are turned on before the system is started. You may have to change driver
 settings when you start the system with a command at the \"boot:\" prompt,
@@ -166,7 +168,7 @@
 }

 int init_minix_fn(void){
-  printf(CLEAR "Put the rescue floppy on the first floppy drive."
MSG_ENTER);
+/* printf(CLEAR "Put the rescue floppy on the first floppy drive."
MSG_ENTER);
   read_line();
   if ( mount("/dev/fd0","/mnt","msdos",MS_RDONLY|MS_MGC_VAL,"\0") ) {
     printf("Unable to mount the rescue floppy disk!" MSG_ENTER);
@@ -183,6 +185,15 @@
   }
   umount("/mnt");
   return 0;
+*/
+   printf(CLEAR "Put the root floppy in the first floppy drive."
MSG_ENTER);
+   read_line();
+   if (zcat("/dev/fd0",minixpartition)){
+       printf("Error copying root filesystem!" MSG_ENTER);
+       read_line();
+       return 1;
+   }
+   return 0;
 }

 int config_minix(void) {
@@ -212,7 +223,7 @@
 #endif
   umount("/mnt");

-  mount(0,"/proc","proc",MS_MGC_VAL,"\0");
+  mount(0,"/proc","proc",MS_MGC_VAL,"\0");
   if((filep=fopen("/proc/sys/kernel/real-root-dev","w"))==NULL) {
     printf("Unable to open /proc/sys/kernel/real-root-dev!" MSG_ENTER);
     read_line();
@@ -222,6 +233,7 @@
   fprintf(filep,"%d\n",(int)info.st_rdev);
   fclose(filep);
   umount("/proc");
+  mount(0,"/proc","proc",MS_MGC_VAL,"\0");
   return 0;
 }

@@ -270,8 +282,8 @@
 }

 void print_menu(void) {
-  printf(CLEAR
-"This system has relatively little memory. For a system like this, special
+  printf(CLEAR
+ "This system has relatively little memory. For a system like this, special
 procedures are required, because there is not enough RAM available
 to run the graphical program without the virtual memory provided by the
swap
 partition. Thus, you should:
@@ -298,6 +310,7 @@
   if (minixpartition)
     printf("4. Exit.\n");
   printf("5. Reboot.\n");
+  printf("6. Disk partitioning program test information.\n");
 }

 void post_exit(int stat, void *foo);
@@ -308,6 +321,7 @@
   swappartition=NULL;
   minixpartition=NULL;
   on_exit(post_exit,NULL);
+  mount(0,"/proc","proc",MS_MGC_VAL,"\0");
   while (1) {
     fdisk_reread();
     print_menu();
@@ -331,6 +345,7 @@
 	break;
       case '4': if (minixpartition) return 0; break;
       case '5': reboot_system(); break;
+      case '6': test_fdisk(); break;
     }
   }
 }
@@ -347,4 +362,73 @@
     }
     main();
   }
+}
+
+int test_fdisk() {
+  int i;
+  struct fdisk_disk *d;
+  struct fdisk_partition *p;
+  FILE *f = NULL;
+
+  fdisk_reread();
+
+  d = fdisk_disks;
+
+  while (d) {
+    printf("%s: ", d->name);
+    p = d->partitions;
+    while (p) {
+      printf("%s, ", p->name);
+      p = p->next_by_disk;
+    }
+    printf("\n");
+
+    d = d->next;
+  }
+
+  p = fdisk_partitions;
+  while (p) {
+    printf("%s (%s), ", p->name, fdisk_sysname(p->type));
+    p = p->next;
+  }
+  printf("\n");
+
+  printf("Mounted partitions:");
+  p = mounted_partitions;
+  while (p) {
+    printf("%s (on %s), ", p->name, p->mount_point);
+    p = p->next_in_use;
+  }
+  printf("\n");
+
+  printf("Swap partitions in use:");
+  p = swapon_partitions;
+  while (p) {
+    printf("%s, ", p->name);
+    p = p->next_in_use;
+  }
+  printf("\n");
+
+  for( i = 0; i < FSTYPE_MAX; ++i ) {
+	  printf( "%s fs partitions: ", fstype_name[i] );
+	  p = fdisk_partitions_by_type[i];
+	  while (p) {
+		  printf("%s, ", p->name);
+		  p = p->next_by_type;
+	  }
+	  printf("\n");
+  }
+
+  f = fopen("/proc/partitions", "r");
+  if (f)
+  {
+      fclose(f);
+  }
+  else
+  {
+    printf("Unable to open /proc/partitions");
+  }
+    printf(MSG_ENTER);
+    read_line();
+  return(0);
 }
#######################################################

The rootdisk.sh patch:

#######################################################
--- /usr/src/boot-floppies/rootdisk.sh	Sat Mar 24 21:49:09 2001
+++ /usr/src/boot-floppies-mono/rootdisk.sh	Fri Nov  9 05:17:12 2001
@@ -12,7 +12,8 @@
 export LANG=C

 # configuration
-fstype=ext2
+#fstype=ext2
+fstype=minix
 if [ ${arch} = i386 -o ${arch} = m68k -o ${arch} = arm ]; then
 	# i386 and m68k have a lot of boot devices
 	inodes=900
#######################################################

The lowmemrd.sh patch:

#######################################################

--- /usr/src/boot-floppies/lowmemrd.sh	Sat Nov 13 22:36:30 1999
+++ /usr/src/boot-floppies-mono/lowmemrd.sh	Mon Aug  6 04:12:19 2001
@@ -40,7 +40,18 @@

 mkdir $mnt/dev
 (cd $mnt/dev; /sbin/MAKEDEV fd0 fd1 hda hdb hdc hdd sda sdb sdc sdd)
+mknod $mnt/dev/console c 5 1
+mknod $mnt/dev/tty0 c 4 0
 mknod $mnt/dev/tty1 c 4 1
+mknod $mnt/dev/tty2 c 4 2
+mknod $mnt/dev/vcs0 c 7 0
+mknod $mnt/dev/vcs1 c 7 1
+mknod $mnt/dev/vcsa0 c 7 128
+mknod $mnt/dev/vcsa1 c 7 129
+pushd $mnt/dev
+ln -s vcs0 vcs
+ln -s vcsa0 vcsa
+popd
 mkdir $mnt/proc
 mkdir $mnt/mnt
 chmod 555 $mnt/proc

#################################################################

Hope this helps.

Daniel F. Dickinson
Programmer/Analyst
C & I Technologies Inc.
(519) 763-1183



---------------------------------------
Received: (at 119753-done) by bugs.debian.org; 13 Oct 2005 20:21:07 +0000
>From joey@kitenet.net Thu Oct 13 13:21:07 2005
Return-path: <joey@kitenet.net>
Received: from kitenet.net [64.62.161.42] (postfix)
	by spohr.debian.org with esmtp (Exim 3.36 1 (Debian))
	id 1EQ9ZY-0006Oc-00; Thu, 13 Oct 2005 13:21:04 -0700
Received: from dragon.kitenet.net (97-148-dial.xtn.net [66.118.97.148])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "Joey Hess", Issuer "Joey Hess" (verified OK))
	by kitenet.net (Postfix) with ESMTP id A16A3181A0;
	Thu, 13 Oct 2005 20:20:28 +0000 (GMT)
Received: by dragon.kitenet.net (Postfix, from userid 1000)
	id A53A0BFA45; Thu, 13 Oct 2005 16:20:32 -0400 (EDT)
Date: Thu, 13 Oct 2005 16:20:32 -0400
From: Joey Hess <joey@kitenet.net>
To: 225693-done@bugs.debian.org, 225704-done@bugs.debian.org,
	144067-done@bugs.debian.org, 148785-done@bugs.debian.org,
	152152-done@bugs.debian.org, 156334-done@bugs.debian.org,
	156704-done@bugs.debian.org, 158426-done@bugs.debian.org,
	160532-done@bugs.debian.org, 161998-done@bugs.debian.org,
	161999-done@bugs.debian.org, 163735-done@bugs.debian.org,
	192792-done@bugs.debian.org, 192797-done@bugs.debian.org,
	218360-done@bugs.debian.org, 241932-done@bugs.debian.org,
	131709-done@bugs.debian.org, 131967-done@bugs.debian.org,
	143620-done@bugs.debian.org, 96946-done@bugs.debian.org,
	122738-done@bugs.debian.org, 122769-done@bugs.debian.org,
	125895-done@bugs.debian.org, 126030-done@bugs.debian.org,
	134970-done@bugs.debian.org, 136073-done@bugs.debian.org,
	138282-done@bugs.debian.org, 141166-done@bugs.debian.org,
	143404-done@bugs.debian.org, 144099-done@bugs.debian.org,
	144245-done@bugs.debian.org, 144452-done@bugs.debian.org,
	146132-done@bugs.debian.org, 146700-done@bugs.debian.org,
	147122-done@bugs.debian.org, 147232-done@bugs.debian.org,
	148962-done@bugs.debian.org, 149118-done@bugs.debian.org,
	150333-done@bugs.debian.org, 150779-done@bugs.debian.org,
	150790-done@bugs.debian.org, 150791-done@bugs.debian.org,
	152863-done@bugs.debian.org, 153296-done@bugs.debian.org,
	153861-done@bugs.debian.org, 154064-done@bugs.debian.org,
	154284-done@bugs.debian.org, 155089-done@bugs.debian.org,
	155379-done@bugs.debian.org, 155745-done@bugs.debian.org,
	156015-done@bugs.debian.org, 156726-done@bugs.debian.org,
	156748-done@bugs.debian.org, 157431-done@bugs.debian.org,
	157815-done@bugs.debian.org, 158947-done@bugs.debian.org,
	160223-done@bugs.debian.org, 160621-done@bugs.debian.org,
	161074-done@bugs.debian.org, 161284-done@bugs.debian.org,
	162387-done@bugs.debian.org, 163086-done@bugs.debian.org,
	164007-done@bugs.debian.org, 164845-done@bugs.debian.org,
	165345-done@bugs.debian.org, 170888-done@bugs.debian.org,
	170904-done@bugs.debian.org, 170905-done@bugs.debian.org,
	171027-done@bugs.debian.org, 173047-done@bugs.debian.org,
	173899-done@bugs.debian.org, 174754-done@bugs.debian.org,
	178832-done@bugs.debian.org, 180334-done@bugs.debian.org,
	181119-done@bugs.debian.org, 181739-done@bugs.debian.org,
	183811-done@bugs.debian.org, 184147-done@bugs.debian.org,
	185111-done@bugs.debian.org, 185420-done@bugs.debian.org,
	185610-done@bugs.debian.org, 186594-done@bugs.debian.org,
	187486-done@bugs.debian.org, 187654-done@bugs.debian.org,
	190358-done@bugs.debian.org, 192356-done@bugs.debian.org,
	193029-done@bugs.debian.org, 194839-done@bugs.debian.org,
	195251-done@bugs.debian.org, 195955-done@bugs.debian.org,
	198864-done@bugs.debian.org, 205519-done@bugs.debian.org,
	206056-done@bugs.debian.org, 208253-done@bugs.debian.org,
	210825-done@bugs.debian.org, 210904-done@bugs.debian.org,
	218514-done@bugs.debian.org, 223975-done@bugs.debian.org,
	224469-done@bugs.debian.org, 224936-done@bugs.debian.org,
	228848-done@bugs.debian.org, 231829-done@bugs.debian.org,
	231896-done@bugs.debian.org, 237182-done@bugs.debian.org,
	240201-done@bugs.debian.org, 245768-done@bugs.debian.org,
	250735-done@bugs.debian.org, 255739-done@bugs.debian.org,
	257451-done@bugs.debian.org, 261887-done@bugs.debian.org,
	268103-done@bugs.debian.org, 268790-done@bugs.debian.org,
	290239-done@bugs.debian.org, 304779-done@bugs.debian.org,
	304780-done@bugs.debian.org, 304782-done@bugs.debian.org,
	304783-done@bugs.debian.org, 304784-done@bugs.debian.org,
	319391-done@bugs.debian.org, 110717-done@bugs.debian.org,
	117319-done@bugs.debian.org, 129479-done@bugs.debian.org,
	140305-done@bugs.debian.org, 145120-done@bugs.debian.org,
	159887-done@bugs.debian.org, 163737-done@bugs.debian.org,
	164460-done@bugs.debian.org, 164461-done@bugs.debian.org,
	170764-done@bugs.debian.org, 174050-done@bugs.debian.org,
	116583-done@bugs.debian.org, 137717-done@bugs.debian.org,
	167240-done@bugs.debian.org, 313677-done@bugs.debian.org,
	126370-done@bugs.debian.org, 127535-done@bugs.debian.org,
	138467-done@bugs.debian.org, 142359-done@bugs.debian.org,
	146713-done@bugs.debian.org, 156882-done@bugs.debian.org,
	165156-done@bugs.debian.org, 131553-done@bugs.debian.org,
	149275-done@bugs.debian.org, 113785-done@bugs.debian.org,
	127677-done@bugs.debian.org, 154137-done@bugs.debian.org,
	163386-done@bugs.debian.org, 57368-done@bugs.debian.org,
	70639-done@bugs.debian.org, 136312-done@bugs.debian.org,
	64571-done@bugs.debian.org, 69157-done@bugs.debian.org,
	70944-done@bugs.debian.org, 82637-done@bugs.debian.org,
	119753-done@bugs.debian.org, 127520-done@bugs.debian.org,
	130893-done@bugs.debian.org, 140215-done@bugs.debian.org,
	142669-done@bugs.debian.org, 143596-done@bugs.debian.org,
	158422-done@bugs.debian.org, 165552-done@bugs.debian.org,
	175686-done@bugs.debian.org, 175687-done@bugs.debian.org,
	176881-done@bugs.debian.org, 190178-done@bugs.debian.org,
	3905-done@bugs.debian.org, 19846-done@bugs.debian.org,
	27004-done@bugs.debian.org, 29277-done@bugs.debian.org,
	36071-done@bugs.debian.org, 48778-done@bugs.debian.org,
	53940-done@bugs.debian.org, 59181-done@bugs.debian.org,
	61065-done@bugs.debian.org, 64428-done@bugs.debian.org,
	64430-done@bugs.debian.org, 64432-done@bugs.debian.org,
	64569-done@bugs.debian.org, 64570-done@bugs.debian.org,
	69150-done@bugs.debian.org, 69151-done@bugs.debian.org,
	69153-done@bugs.debian.org, 74081-done@bugs.debian.org,
	122741-done@bugs.debian.org, 127537-done@bugs.debian.org,
	246443-done@bugs.debian.org, 144680-done@bugs.debian.org,
	153854-done@bugs.debian.org, 156308-done@bugs.debian.org,
	156710-done@bugs.debian.org, 120950-done@bugs.debian.org
Subject: boot-floppies end of life
Message-ID: <20051013202032.GA29224@kitenet.net>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="SUOF0GtieIMvvwua"
Content-Disposition: inline
User-Agent: Mutt/1.5.10i
Delivered-To: 119753-done@bugs.debian.org
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-3.0 required=4.0 tests=BAYES_00 autolearn=no 
	version=2.60-bugs.debian.org_2005_01_02
X-CrossAssassin-Score: 5


--SUOF0GtieIMvvwua
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


I'm closing all bug reports filed on the boot-floppies since this
codebase has reached its end of life. boot-floppies is only in Debian
oldstable now (and temporarily in unstable because of bug #224469).

The new installer for sarge and beyond is of course, the
debian-installer. It solves a great many issues present in the
boot-floppies.

If you believe that your boot-floppies bug is still present in
debian-installer somehow, then please reopen the bug report and reassign
it there, or perhaps better, file a new bug report.

--=20
see shy jo

--SUOF0GtieIMvvwua
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (GNU/Linux)

iD8DBQFDTsGQd8HHehbQuO8RAil3AKDfnY3wfJDkdHVbEnAoKeMupY8gTwCdEtIC
8hTPtIXG5jAc08y2yXWFJAg=
=+IWd
-----END PGP SIGNATURE-----

--SUOF0GtieIMvvwua--



Reply to: