Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
can't access my cdrom and floppy after install.
View unanswered posts
View posts from last 24 hours

Goto page 1, 2  Next  
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo
View previous topic :: View next topic  
Author Message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 5:31 pm    Post subject: can't access my cdrom and floppy after install. Reply with quote

can't access my cdrom and floppy after install.
i'm logged as user that belong to cdrom and floppy groups.
Back to top
View user's profile Send private message
Scratalacha
Tux's lil' helper
Tux's lil' helper


Joined: 24 Feb 2004
Posts: 127

PostPosted: Fri Jul 22, 2005 5:40 pm    Post subject: Reply with quote

Could you possibly paste your /etc/fstab? Maybe some error messages?
_________________
Anime ate my computer
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Fri Jul 22, 2005 5:54 pm    Post subject: Reply with quote

romalong,

First, you need to mount your CD or floppy. Only root can do that unless you have the option user in /etc/fstab.

You also need the iso9660 filesystems and its extensions available to the kerne for CDROM (UDF is useful if its actually a DVD and/or a writer.

For floppy, you need VFAT and friends, for normal DOS format floppies. If you are not in the USA be careful that your actually build under NLS, the code page you have selected as the default for VFAT.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:00 pm    Post subject: Reply with quote

/dev/sda1 /boot ext2 defaults,noatime 1 2
/dev/sda2 none swap sw 0 0
/dev/sda3 / ext3 noatime 0 1
/dev/sdb3 /home ext3 noatime,nodev,nosuid 0 0

/dev/sdb1 /home/win/c ntfs noauto,users,umask=000 0 0
/dev/sdb5 /home/win/d ntfs noauto,users,umask=000 0 0

none /proc proc defaults 0 0
none /dev/shm tmpfs nodev,nosuid,noexec 0 0

/dev/cdroms/cdrom0 /mnt/cdrom auto noauto,user 0 0
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:01 pm    Post subject: Reply with quote

NeddySeagoon wrote:
If you are not in the USA be careful that your actually build under NLS, the code page you have selected as the default for VFAT.

what's the difference where i am?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Fri Jul 22, 2005 6:07 pm    Post subject: Reply with quote

romalong,

I don't know what codepage you would choose in Kiev.

The point is that whatever you have selected to use as defualts for VFAT under the options
Code:
Default codepage for FAT
Default iocharset for FAT

must also be selected to be compiled under
Code:
Native Language Support
or mount will fail with a non relevant error message.

The defaults are for American English (if there is such a thing)
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:14 pm    Post subject: Reply with quote

NeddySeagoon wrote:
romalong,

I don't know what codepage you would choose in Kiev.

The point is that whatever you have selected to use as defualts for VFAT under the options
Code:
Default codepage for FAT
Default iocharset for FAT

must also be selected to be compiled under
Code:
Native Language Support
or mount will fail with a non relevant error message.

The defaults are for American English (if there is such a thing)


let's use a default one. could you show me an example please?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Fri Jul 22, 2005 6:30 pm    Post subject: Reply with quote

romalong,
Here you are:-
Navigate to
Code:
Device Drivers
File systems
CD-ROM/DVD Filesystems

and choose
Code:
ISO 9660 CDROM file system support
Microsoft Joliet CDROM extensions
UDF file system support

DOS/FAT/NT Filesystems
MSDOS fs support
VFAT (Windows-95) fs support
Default codepage for FAT (I Use 437)
Default iocharset for FAT ( I use iso8859-1)

Base native language support
Codepage 437 (United States, Canada)
NLS ISO 8859-1 (Latin 1; Western European Languages)


The Defaults selected under VFAT, are what the VFAT filesystem will try to use.
The Selections under Base native language support determine whats actually available.
If the defualt is not available, mount will fail unless you pass it an option to tell it what to use.

In your fstab you don't have a line for your floppy either. Its not essential. I have
Code:
 /dev/fd0                /mnt/floppy     vfat            noauto,rw,users         0 0

_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:33 pm    Post subject: Reply with quote

NeddySeagoon wrote:
romalong,
Here you are:-
Navigate to
Code:
Device Drivers
File systems
CD-ROM/DVD Filesystems

and choose
Code:
ISO 9660 CDROM file system support
Microsoft Joliet CDROM extensions
UDF file system support

DOS/FAT/NT Filesystems
MSDOS fs support
VFAT (Windows-95) fs support
Default codepage for FAT (I Use 437)
Default iocharset for FAT ( I use iso8859-1)

Base native language support
Codepage 437 (United States, Canada)
NLS ISO 8859-1 (Latin 1; Western European Languages)


The Defaults selected under VFAT, are what the VFAT filesystem will try to use.
The Selections under Base native language support determine whats actually available.
If the defualt is not available, mount will fail unless you pass it an option to tell it what to use.

In your fstab you don't have a line for your floppy either. Its not essential. I have
Code:
 /dev/fd0                /mnt/floppy     vfat            noauto,rw,users         0 0


it should be:
Code:

File systems
CD-ROM/DVD Filesystems
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:40 pm    Post subject: Reply with quote

i've followed your tips, but:

Code:

base ~ # mount /dev/fd0 /mnt/floppy
mount: /dev/fd0 is not a valid block device
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Fri Jul 22, 2005 6:48 pm    Post subject: Reply with quote

romalong,

Well, that shows how often I use floppies these days.

Watch this space.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:52 pm    Post subject: Reply with quote

NeddySeagoon wrote:
Watch this space.

i don't get you...
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Fri Jul 22, 2005 6:54 pm    Post subject: Reply with quote

romalong,

Sorry. Its slang. It fails for me with the error
Code:
mount: special device /dev/fd0 does not exist

It means I will investigate further and post again.

========== edit ===============

My udev rules should create a /dev/fd0 but don't - this is not going to be quick
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.


Last edited by NeddySeagoon on Fri Jul 22, 2005 6:58 pm; edited 1 time in total
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Fri Jul 22, 2005 6:55 pm    Post subject: Reply with quote

NeddySeagoon wrote:
romalong,

Sorry. Its slang. It fails for me with the error
Code:
mount: special device /dev/fd0 does not exist

It means I will investigate further and post again.


u r very kind!
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Fri Jul 22, 2005 7:51 pm    Post subject: Reply with quote

romalong,

It works. I had forgotten that I had configured my floppy module as a module and not set it up to auto load.
In make menuconfig its at
Code:
Device Drivers
-> Block devices
   -> Normal floppy disk supporr

With it built as a module (like sound), you can
Code:
modprobe floppy
then mount will work.

You also need to add yourself to the floppy group or you will get permission denied errors.
Log out and back in for it to take effect
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Sat Jul 23, 2005 9:16 am    Post subject: Reply with quote

NeddySeagoon wrote:
romalong,

It works. I had forgotten that I had configured my floppy module as a module and not set it up to auto load.
In make menuconfig its at
Code:
Device Drivers
-> Block devices
   -> Normal floppy disk supporr

With it built as a module (like sound), you can
Code:
modprobe floppy
then mount will work.

You also need to add yourself to the floppy group or you will get permission denied errors.
Log out and back in for it to take effect


should it be
Code:

<M> Normal floppy disk support


where can i find
Code:
modprobe floppy


can you explain me what's the difference between <*> and <M> please?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Sat Jul 23, 2005 9:39 am    Post subject: Reply with quote

romalong,

The kernel comes in parts, when you do
Code:
make menuconfig
you are specifying which parts you want to use and how they should be assembled.

Code:
[*] means put this part in the kernel file that is copied to /boot
[M] means put this part in /lib/modules/'uname -r'/...
[ ] means leave this out altogether


When you change a setting to [*], you need to rebuild your entire kernel, install it, then reboot for the setting to take effect.
When you change a setting from [ ] to [M], then
Code:
make modules
male modules_install
compiles the new module and puts it in the proper place in /lib/modules/'uname -r'/... so that modproble can find it. No reboot required.
You can also add the module name to /etc/modules.autoload.d/kernel-2.6 so that the module is automatically loaded.

You should be able to answer your own question now. I use a module [M] because I rarely use the floppy.
I also use modules for new things I'm trying - it saves reboots.
You can use [M] now and change it to [*] when you upgrade the kernel. You have to change the content of /boot then anyway.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Sat Jul 23, 2005 11:34 am    Post subject: Reply with quote

now i understand, thank you!

but, if i've selected both <*> and <M>, what should i do then?
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Sat Jul 23, 2005 12:06 pm    Post subject: Reply with quote

anyway, it doesn't work yet...
floppy folder appeared locked to me owned by root.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Sat Jul 23, 2005 12:19 pm    Post subject: Reply with quote

don't get me wrong...
when i enable modules, i need to do:

Code:
# make modules
# male modules_install


and when i use <*>, i have to use:

Code:
# make


am i right?
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Sat Jul 23, 2005 12:47 pm    Post subject: Reply with quote

romalong,

If you have changed even one selection from [ ] or [M] to [*] you must rebuild and reinstall the entire kernel.
There is one small exception which is not easy to spot in make menuconfig (it stands out well in make xconfig)
in the case of a few items, they have sub items which can only be [*] or [ ]. However, they follow the parent item.

An example will help. Look at
Code:
Bt87x Audio Capture
in Sound -> Advanced Linux Sound Architecture
-> PCI devices.
When Bt87x Audio Capture is selected as either {M] or [*] the item Bt87x Audio overclocking is shown. Bt87x Audio overclocking can only be [*] or [ ] but it is an optional part of the Bt87x Audio Capture module and its the selection against Bt87x Audio Capture that determines if the optional part is [M] or [*]

In make xconfig (which requires X), these things are indented to make it clearer.
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Sat Jul 23, 2005 6:42 pm    Post subject: Reply with quote

i've removed noauto option from fstab on cdrom and floppy.
so now cdrom works well, but floppy doesn't.
also there's error during bootup, it says that some partitions are not mounted.
obviously, it's my floppy.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Sat Jul 23, 2005 7:54 pm    Post subject: Reply with quote

romalong,

The floppy should be noauto because it may not have a disk in at boot time.
If you made the floppy kernel module as module, you need to do
Code:
modprobe floppy
to load it or add floppy to /etc/modules.autoload.d/kernel-2.6
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
NeddySeagoon
Administrator
Administrator


Joined: 05 Jul 2003
Posts: 54423
Location: 56N 3W

PostPosted: Sun Jul 24, 2005 12:15 am    Post subject: Reply with quote

romalong,

The floppy should be noauto because it may not have a disk in at boot time.
If you made the floppy kernel module as module, you need to do
Code:
modprobe floppy
to load it or add floppy to /etc/modules.autoload.d/kernel-2.6
_________________
Regards,

NeddySeagoon

Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail.
Back to top
View user's profile Send private message
romalong
Guru
Guru


Joined: 08 Jun 2005
Posts: 488
Location: Kiev

PostPosted: Sun Jul 24, 2005 4:20 pm    Post subject: Reply with quote

NeddySeagoon wrote:
romalong,

The floppy should be noauto because it may not have a disk in at boot time.
If you made the floppy kernel module as module, you need to do
Code:
modprobe floppy
to load it or add floppy to /etc/modules.autoload.d/kernel-2.6


do i have to mount it manually?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Other Things Gentoo All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum