Re: Subsume boot partition into root partition - how?



Dave Royal wrote:

Rajko M. wrote:
...

To give more detailed instructions, I would need output of command
mount | grep boot
that should show is /boot mounted, and
cat /etc/fstab
to see where is current boot and root partition.

dave@LEN:~> mount | grep boot
/dev/sda5 on /boot type ext2 (rw,acl,user_xattr)

This means:
umount /boot
mount /dev/sda5 /mnt
cp -R /boot/* /boot/

Now you have /boot directory filled with files from /dev/sda5 .
In case of reboot nothing bad can happen, as originals are
still untouched.
Next is to edit /etc/fstab . I turned word wrap off to have
whole lines, not wrapped in a new line.

dave@LEN:~> cat /etc/fstab

Just in case:
cp /etc/fstab /etc/fstab-old

Comment out line with /boot .
I use Midnight Commander http://en.opensuse.org/Midnight_Commander
that has built in editor (key F4).

/dev/disk/by-id/scsi-SATA_HTS541060G9SA00_MPBCL5XGKMLL9T-part6 swap swap defaults 0 0
/dev/disk/by-id/scsi-SATA_HTS541060G9SA00_MPBCL5XGKMLL9T-part3 / ext3 acl,user_xattr 1 1
# /dev/disk/by-id/scsi-SATA_HTS541060G9SA00_MPBCL5XGKMLL9T-part5 /boot ext2 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_HTS541060G9SA00_MPBCL5XGKMLL9T-part7 /home ext3 acl,user_xattr 1 2
/dev/disk/by-id/scsi-SATA_HTS541060G9SA00_MPBCL5XGKMLL9T-part1 /windows/C ntfs-3g users,gid=users,fmask=133,dmask=022,locale=en_GB.UTF-8 0 0
proc /proc proc defaults 0 0
sysfs /sys sysfs noauto 0 0
debugfs /sys/kernel/debug debugfs noauto 0 0
usbfs /proc/bus/usb usbfs noauto 0 0
devpts /dev/pts devpts mode=0620,gid=5 0 0
/dev/sda8 /home/share vfat users,gid=users,umask=0002,utf8=true 0 0

More detailed instructions /would/ be appreciated.

Next is:
cp /boot/grub/menu.lst /boot/grub/menu.lst-old

and run YaST Bootloader to install new version of GRUB that will
point to / (dev/sdb3). Note that /dev/sdb3 is (hd0,2) in grub notation.

When done check /boot/grub/menu.lst is it looking sane.
If not post question.

--
Regards, Rajko
http://en.opensuse.org/Portal needs helpful hands.
.



Relevant Pages

  • Re: Subsume boot partition into root partition - how?
    ... mount | grep boot ... cat /etc/fstab ... More detailed instructions /would/ be appreciated. ...
    (alt.os.linux.suse)
  • RE: Machine not Booting - Continued
    ... mkraid command and the mount command in the script as you suggested (in no ... Otherwise specify the same mkraid and mount command in /etc/rc.local. ... it has no proper file system to mount. ...
    (RedHat)
  • Re: [SLE] Still cannot update beyond original KDE3.3--Exhausted and Depressed
    ... Open Yast, Click on Software, ... to attach the contents of the disks to the existing filesystem. ... mount point is the directory in the filesystem you will attach those ... > Like perhaps give the the exact command and where to ...
    (SuSE)
  • RE: Machine not Booting - Continued
    ... with out the fstab /dev/md0 hashed out. ... have u tried to use the mount ... command to fix bad blocks like you suggested or has this done it already. ... within the Corus group of companies, ...
    (RedHat)
  • RE: Machine not Booting - Continued
    ... The entry in the fstab is now hashed ... command to fix bad blocks like you suggested or has this done it already. ... The error seems like its able to mount the partition but is not able to ... within the Corus group of companies, ...
    (RedHat)