LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 502|回复: 1

Problem on creating backup diskette

[复制链接]
发表于 2005-8-4 17:27:23 | 显示全部楼层 |阅读模式
Hi folks,

LFS 6.1
FC3 Host

Now held on Section 8.4. Making the LFS System Bootable
http://www.linuxfromscratch.org/ ... chapter08/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

  1. 1+0 records in
  2. 1+0 records out
复制代码

root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1

  1. 198+1 records in
  2. 198+1 records out
复制代码


In fact it did not copy the necessary files on the floppy

root:/sources# cat /etc/fstab
  1. # Begin /etc/fstab

  2. # file system  mount-point  type   options              dump  fsck
  3. #                                                             order

  4. /dev/hda6      /            ext3   defaults             1     1
  5. /dev/hda3      swap         swap   pri=1                0     0
  6. proc           /proc        proc   defaults             0     0
  7. sysfs          /sys         sysfs  defaults             0     0
  8. devpts         /dev/pts     devpts gid=4,mode=620       0     0
  9. shm            /dev/shm     tmpfs  defaults             0     0
  10. /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/

  1. 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
 楼主| 发表于 2005-8-4 18:00:16 | 显示全部楼层
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

  1. 1+0 records in
  2. 1+0 records out
复制代码

root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1

  1. 198+1 records in
  2. 198+1 records out
复制代码


root:/sources/linux-2.6.11.12# mount /dev/fd0 /mnt/floppy/

  1. mount: you must specify the filesystem type
复制代码

root:/sources/linux-2.6.11.12# mount -t ext3 /dev/fd0 /mnt/floppy/

  1. 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/

  1. total 21
  2. drwxr-xr-x  3 root root  1024 Aug  4 17:49 .
  3. drwxr-xr-x  7 root root  4096 Jun 27 14:19 ..
  4. 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
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表