LinuxQuestions.org
Help answer threads with 0 replies.
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 06-21-2005, 07:39 AM   #1
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Rep: Reputation: 15
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
 
Old 06-21-2005, 08:09 AM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
did you format the floppy?? it has to be formatted before you mount it...
 
Old 06-21-2005, 11:57 PM   #3
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Original Poster
Rep: Reputation: 15
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!!!!!!
 
Old 06-22-2005, 12:23 AM   #4
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
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.
 
Old 06-22-2005, 12:45 AM   #5
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 06-22-2005, 01:54 AM   #6
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
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.
 
Old 06-22-2005, 02:11 AM   #7
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Original Poster
Rep: Reputation: 15
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!!!
 
Old 06-22-2005, 03:10 AM   #8
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
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.
 
Old 06-22-2005, 03:15 AM   #9
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 06-22-2005, 03:27 AM   #10
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
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.
 
Old 06-22-2005, 03:34 AM   #11
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
How did you format the floppy? Have you tried doing a
mke2fs /dev/fd0
on the floppy in the drive?
 
Old 06-22-2005, 04:19 AM   #12
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Original Poster
Rep: Reputation: 15
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.
 
Old 06-22-2005, 04:42 AM   #13
teryc
LQ Newbie
 
Registered: Jun 2005
Posts: 11

Rep: Reputation: 0
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.
 
Old 06-22-2005, 04:47 AM   #14
sharmashikha
Member
 
Registered: Jun 2005
Location: india
Distribution: fedora core2
Posts: 34

Original Poster
Rep: Reputation: 15
thanks a lot neways.you'v been very patient.
 
Old 06-22-2005, 12:21 PM   #15
kjordan
Member
 
Registered: Jul 2004
Distribution: LFS, I felt the itch and scratched it
Posts: 227

Rep: Reputation: 31
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)?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
how to mount a floppy bosewicht Linux - Newbie 4 02-27-2004 03:17 PM
urgent question - mount network drive hamish Linux - Networking 3 10-26-2003 04:24 AM
cannot mount floppy deema Linux - Newbie 4 09-18-2003 11:25 AM
mount floppy cmack Slackware 5 08-06-2003 02:35 AM
Mount/Umount Floppy problem - Urgent! moisvon Linux - Newbie 1 07-10-2003 04:10 PM

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

All times are GMT -5. The time now is 12:59 PM.

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