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 |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
06-21-2005, 06:39 AM
|
#1
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Rep:
|
cannot mount floppy urgent!
i m on chapter 8.4 and while making bootable floppy we are not able to mount floppy
on giving the command
mount /media/floppy
its shows the error
mount : /dev/fd0 is not a block device
how to correct it?????????
please help
|
|
|
06-21-2005, 07:09 AM
|
#2
|
LQ Guru
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870
|
did you format the floppy?? it has to be formatted before you mount it...
|
|
|
06-21-2005, 10:57 PM
|
#3
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Original Poster
Rep:
|
cannot mount even after formatting
it is still giving the same error.it 's saying-:
mount: /dev/fd0 is not a block device.
how to make it a block device.
please help!!!!!!
|
|
|
06-21-2005, 11:23 PM
|
#4
|
LQ Newbie
Registered: Jun 2005
Posts: 11
Rep:
|
Are you trying to mount the floppy before you use the dd command
to put grub files on it? You don't need to mount the floppy to write
to it. Also, you can't mount a floppy unless it has a file system on it.
Have you tried it with a floppy known to have good linux files on it?
You can test that way to see that you don't have problems somewhere
else, like maybe you forgot to compile floppy support into the kernel.
|
|
|
06-21-2005, 11:45 PM
|
#5
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Original Poster
Rep:
|
if i want to change the permissions of /dev/fd0 from
-rw-w--w--
to
brw-w--w--
how do i do it
also i did provide floppy support during kernel compilation.
|
|
|
06-22-2005, 12:54 AM
|
#6
|
LQ Newbie
Registered: Jun 2005
Posts: 11
Rep:
|
If you had used the mknod command to make fd0 it should
have stuck the "b" in there for you. Here's an example:
mknod -m 660 fd0 b 2 0 ; chgrp floppy fd0
That's the command I used to make fd0 on my lfs 5.1
system. I don't know how the latest lfs is doing it.
|
|
|
06-22-2005, 01:11 AM
|
#7
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Original Poster
Rep:
|
can not mount floppy
i have run the above command on root and it created a block fd0 there so i changed the entries in /etc/fstab as follows:
filesystem /fd0
mountpoint /media/floppy
type auto
option noauto,owner,kudzu
dump 0
fsck order 0
so when i tried mounting the floppy as mount /media/floppy i get
mount: wrong fs type, bad option, bad superblock on fd0,
or too many mounted filesystem.
please help!!!
|
|
|
06-22-2005, 02:10 AM
|
#8
|
LQ Newbie
Registered: Jun 2005
Posts: 11
Rep:
|
Do you have a floppy disk in the drive when you
try to mount it? Is it blank or does it have files
on it? It has to have a file system on it in order
for it to mount.
|
|
|
06-22-2005, 02:15 AM
|
#9
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Original Poster
Rep:
|
yes there is a floppy in the floppy drive and it has file system mounted on it.
i formatted the floppy before using it for this purpose.
|
|
|
06-22-2005, 02:27 AM
|
#10
|
LQ Newbie
Registered: Jun 2005
Posts: 11
Rep:
|
I understand your frustration. I spent several hours trying to
get the floppy to work on my own system. I ended up having
to put the mount command in a boot-up script so it would mount
it for me as a user at startup. Here's what my fstab looks like:
/dev/fd0 /media/floppy auto users,exec,rw,sync,noauto 0 0
and to mount it on startup I run "su - terry -c 'mount /media/floppy'
in a boot script. terry is my user name.
I presume you are trying to mount it as root?
If it doesn't mount when you are root then I'm about out of ideas.
|
|
|
06-22-2005, 02:34 AM
|
#11
|
LQ Newbie
Registered: Jun 2005
Posts: 11
Rep:
|
How did you format the floppy? Have you tried doing a
mke2fs /dev/fd0
on the floppy in the drive?
|
|
|
06-22-2005, 03:19 AM
|
#12
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Original Poster
Rep:
|
i think the major problem is that when i do ls -l in /dev directory it shows
-rw-r--r-- 1 root floppy 100818
against fd0.it is not showing it as a block device.
i don't know how to rectify this.
the floppy has been formatted correctly.
|
|
|
06-22-2005, 03:42 AM
|
#13
|
LQ Newbie
Registered: Jun 2005
Posts: 11
Rep:
|
Sorry I can't help you more. I seem to have run out of ideas.
I'm using lfs 5 and I think lfs 6 does the devs differently using
"udevstart" which is not used on lfs5. You might want to go back
to chapter 6.8.2 on populating /dev and see if you forgot something.
|
|
|
06-22-2005, 03:47 AM
|
#14
|
Member
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34
Original Poster
Rep:
|
thanks a lot neways.you'v been very patient.
|
|
|
06-22-2005, 11:21 AM
|
#15
|
Member
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227
Rep:
|
Quote:
so when i tried mounting the floppy as mount /media/floppy i get
mount: wrong fs type, bad option, bad superblock on fd0,
or too many mounted filesystem.
|
Well, that means you're trying to mount it as the wrong filesystem. What did you format it as and what are you trying to mount it as (i.e. what's the line on your fstab for floppy say)?
|
|
|
All times are GMT -5. The time now is 03:49 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|