making an alternate root

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

 



SITUATION:

  For certain reasons, I replaced my swap partition hda6 with
  a swapfile.  I then changed the partition type of hda6 to
  Linux instead of 'Linux Swap'.I ran mke2fs on hda6. Now I
  have a 70M filesys.  I revised the /etc/fstab entry for hda6
  to type 'ext2'.  It mounts without any problems.

QUESTIONS (in order of priority):

1)  What is the minimal set of files I need to boot single-user
off hda6 (with 'root=hda6') from the grub command line?

I don't mean grub config files, I mean 'vmlinuz', and what else?

2)  In order to boot off hda6 (I am getting my bootloader
off a floppy) do I have to make hda6 'bootable' in the
partition table?

3)  Will making 'hda6' bootable override or toggle the bootable
status of my original root partition 'hda5' (Both are ext2) ?
I believe the answer to be 'no' but I would like to be sure.

4)  What is the best way to save a partition table beside the
following (from the sfdisk man page):

   -I file
      After destroying your filesystems with an  unfortu­
      nate  sfdisk  command,  you would have been able to
      restore the old situation if only you had preserved
      it using the -O flag.

  No, this hasn't happened to me..
  The above only works when 'sfdisk' is used to make the
changes and I prefer using something less powerful than
'sfdisk'.

5)  Finally consider the following:

$sfdisk --list | grep hda'[25]'
Device    Boot Start     End   #cyls   #blocks   Id  System
/dev/hda2          3    2481    2479  19912567+   5  Extended
/dev/hda5          3+   2472    2470- 19840243+  83  Linux

  Why does hda2 begin 9 cyls later than hda5, overlap almost all
of hda5 and end 9 cyls earlier?
 


__________________________________________________
Do You Yahoo!?
Yahoo! - Official partner of 2002 FIFA World Cup
http://fifaworldcup.yahoo.com
--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux