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 ...
- 08-04-2005 #1Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
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=1root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1Code:1+0 records in 1+0 records out
In fact it did not copy the necessary files on the floppyCode:198+1 records in 198+1 records out
root:/sources# cat /etc/fstabroot:/sources/linux-2.6.11.12# ls /mnt/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
floppy
I tried to mount the floppy without success
root:/sources/linux-2.6.11.12# mount -t vfat /dev/fd0 /mnt/floppy/Whether I have to format the floppy first with fs=ext3, the file system of LFSCode:mount: /dev/fd0 is not a block device (maybe try `-o loop'?)
# 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
- 08-04-2005 #2Linux Guru
- Join Date
- Sep 2004
- Posts
- 1,546
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=1root:/sources/linux-2.6.11.12# dd if=/boot/grub/stage2 of=/dev/fd0 bs=512 seek=1Code:1+0 records in 1+0 records out
root:/sources/linux-2.6.11.12# mount /dev/fd0 /mnt/floppy/Code:198+1 records in 198+1 records out
root:/sources/linux-2.6.11.12# mount -t ext3 /dev/fd0 /mnt/floppy/Code:mount: you must specify the filesystem type
I was not allowed to mount the floppy here. Why?Code:mount: /dev/fd0 is not a block device (maybe try `-o loop'?)
On another Konsole
[root@localhost ~]# mount /dev/fd0 /mnt/floppy/
[root@localhost ~]# ls -al /mnt/floppy/It seems the backup diskette has been created ??? Am I right ?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
How to test the backup floppy?
B.R.
satimis


Reply With Quote
