Find the answer to your Linux question:
Results 1 to 2 of 2
Hi folks, LFS 6.1 FC3 Host Now held on Section 8.4. Making the LFS System Bootable http://www.linuxfromscratch.org/lfs/...er08/grub.html creating a GRUB boot floppy diskette as a backup Having a blank vfat ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,790

    Problem on creating backup diskette


    Hi folks,

    LFS 6.1
    FC3 Host

    Now held on Section 8.4. Making the LFS System Bootable
    http://www.linuxfromscratch.org/lfs/...er08/grub.html

    creating a GRUB boot floppy diskette as a backup

    Having a blank vfat floppy on its drive
    root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
    Code:
    1+0 records in
    1+0 records out
    root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
    Code:
    198+1 records in
    198+1 records out
    In fact it did not copy the necessary files on the floppy

    root:/sources# cat /etc/fstab
    Code:
    # Begin /etc/fstab
    
    # file system  mount-point  type   options              dump  fsck
    #                                                             order
    
    /dev/hda6      /            ext3   defaults             1     1
    /dev/hda3      swap         swap   pri=1                0     0
    proc           /proc        proc   defaults             0     0
    sysfs          /sys         sysfs  defaults             0     0
    devpts         /dev/pts     devpts gid=4,mode=620       0     0
    shm            /dev/shm     tmpfs  defaults             0     0
    /dev/fd0       /mnt/floppy  auto   noauto,owner,kudzu   0     0
    root:/sources/linux-2.6.11.12# ls /mnt/
    floppy

    I tried to mount the floppy without success
    root:/sources/linux-2.6.11.12# mount -t vfat /dev/fd0 /mnt/floppy/
    Code:
    mount: /dev/fd0 is not a block device (maybe try `-o loop'?)
    Whether I have to format the floppy first with fs=ext3, the file system of LFS
    # fdformat /dev/fd0
    # mkfs.ext3 /dev/fd0

    Please help. TIA

    Remark: the floppy and its drive were in good condition. I have them tested on the FC3 Host. Files can be copied to the floppy, retrieved thereafter and deleted.

    B.R.
    satimis

  2. #2
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,790
    Hi folks,

    Further to my late posting, performed following steps

    Started anther Konsole;
    # fdformat /dev/fd0
    # mkfs -t ext3 /dev/fd0

    floppy formatted with file system = ext3 created


    Then ran
    root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage1 of=/dev/fd0 bs=512 count=1
    Code:
    1+0 records in
    1+0 records out
    root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1
    Code:
    198+1 records in
    198+1 records out
    root:/sources/linux-2.6.11.12# mount /dev/fd0 /mnt/floppy/
    Code:
    mount: you must specify the filesystem type
    root:/sources/linux-2.6.11.12# mount -t ext3 /dev/fd0 /mnt/floppy/
    Code:
    mount: /dev/fd0 is not a block device (maybe try `-o loop'?)
    I was not allowed to mount the floppy here. Why?


    On another Konsole
    [root@localhost ~]# mount /dev/fd0 /mnt/floppy/
    [root@localhost ~]# ls -al /mnt/floppy/
    Code:
    total 21
    drwxr-xr-x  3 root root  1024 Aug  4 17:49 .
    drwxr-xr-x  7 root root  4096 Jun 27 14:19 ..
    drwx------  2 root root 12288 Aug  4 17:49 lost+found
    It seems the backup diskette has been created ??? Am I right ?

    How to test the backup floppy?

    B.R.
    satimis

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •