LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch
User Name
Password
Linux From Scratch This Forum is for the discussion of LFS.
LFS is a project that provides you with the steps necessary to build your own custom Linux system.

Notices


Reply
  Search this Thread
Old 08-04-2005, 04:23 AM   #1
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Rep: Reputation: 56
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
 
Old 08-04-2005, 05:00 AM   #2
satimis
Senior Member
 
Registered: Apr 2003
Posts: 3,695

Original Poster
Rep: Reputation: 56
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

Last edited by satimis; 08-04-2005 at 05:15 AM.
 
Old 08-04-2005, 02:38 PM   #3
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
No, the floppy is empty.

I believe your errors are due to /dev not being filled by not running /sbin/udevstart in your chroot environment.
 
Old 08-06-2005, 11:51 AM   #4
sundialsvcs
LQ Guru
 
Registered: Feb 2004
Location: SE Tennessee, USA
Distribution: Gentoo, LFS
Posts: 10,659
Blog Entries: 4

Rep: Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941Reputation: 3941
Well, I used to have a bucket in my office and I knew exactly how hard to toss a 3-1/2" diskette so that it would wind up in that bucket. And I would open a box of 10 of those disks and routinely find that 4 of them were unusable. So, I would not place much faith in a 3-1/2" diskette. They are not well-made (per contra, the 5-1/4" type were sturdy as sin), and fail without recourse or warning.

What you should plan to do is to, at the very least, put the necessary material onto a recordable CD-ROM. Or perhaps a USB-connected pocket drive (which is what I use). If things go south at the wrong time, what I do is to reboot from a CD, then use the external media to fix whatever went wrong.

While it is "interesting and informative" to build a bootable floppy, and a good learning exercise (and LFS is intended, in part, to be just such an exercise...), I don't think of it as a step you would necessarily do routinely when putting a new system together.

Also... one of the most frequent causes of the necessity to "boot from a floppy" is when the boot-loader does not work. In the LILO days that was a serious problem because, if you forgot to run LILO before typing the shutdown -r command (unfortunately, there is no no_waitaminute command ...) you were hosed. But if you use grub instead, that's no longer an issue. It is well worth the time to learn what grub can do, because you can actually fix boot-problems on the fly. Very handy. If you accidentally glitch grub.conf you can still boot, manually.

Last edited by sundialsvcs; 08-06-2005 at 11:52 AM.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
creating a secure ftp-based backup account? evank Linux - Security 3 11-30-2005 12:44 AM
a round about way of defragging Linux, and at the same time, creating a system backup mrfixit1951 Linux - General 3 11-08-2005 06:29 AM
problem copy files to floppy diskette lucent2003 Linux - General 1 01-15-2005 09:29 AM
Creating backup naren Linux - Software 2 03-20-2004 11:50 AM
Creating backup mail server via Redhat? jwalzer Linux - General 1 05-07-2002 08:21 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Linux From Scratch

All times are GMT -5. The time now is 03:32 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration