View previous topic :: View next topic |
Author |
Message |
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 5:31 pm Post subject: can't access my cdrom and floppy after install. |
|
|
can't access my cdrom and floppy after install.
i'm logged as user that belong to cdrom and floppy groups. |
|
Back to top |
|
|
Scratalacha Tux's lil' helper
Joined: 24 Feb 2004 Posts: 127
|
Posted: Fri Jul 22, 2005 5:40 pm Post subject: |
|
|
Could you possibly paste your /etc/fstab? Maybe some error messages? _________________ Anime ate my computer |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Jul 22, 2005 5:54 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:00 pm Post subject: |
|
|
/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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:01 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Jul 22, 2005 6:07 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:14 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Jul 22, 2005 6:30 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:33 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:40 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Jul 22, 2005 6:48 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:52 pm Post subject: |
|
|
NeddySeagoon wrote: | Watch this space. |
i don't get you... |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Jul 22, 2005 6:54 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Fri Jul 22, 2005 6:55 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Fri Jul 22, 2005 7:51 pm Post subject: |
|
|
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 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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Sat Jul 23, 2005 9:16 am Post subject: |
|
|
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 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
can you explain me what's the difference between <*> and <M> please? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Sat Jul 23, 2005 9:39 am Post subject: |
|
|
romalong,
The kernel comes in parts, when you do 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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Sat Jul 23, 2005 11:34 am Post subject: |
|
|
now i understand, thank you!
but, if i've selected both <*> and <M>, what should i do then? |
|
Back to top |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Sat Jul 23, 2005 12:06 pm Post subject: |
|
|
anyway, it doesn't work yet...
floppy folder appeared locked to me owned by root. |
|
Back to top |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Sat Jul 23, 2005 12:19 pm Post subject: |
|
|
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:
am i right? |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Sat Jul 23, 2005 12:47 pm Post subject: |
|
|
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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Sat Jul 23, 2005 6:42 pm Post subject: |
|
|
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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Sat Jul 23, 2005 7:54 pm Post subject: |
|
|
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 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 |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54423 Location: 56N 3W
|
Posted: Sun Jul 24, 2005 12:15 am Post subject: |
|
|
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 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 |
|
|
romalong Guru
Joined: 08 Jun 2005 Posts: 488 Location: Kiev
|
Posted: Sun Jul 24, 2005 4:20 pm Post subject: |
|
|
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 to load it or add floppy to /etc/modules.autoload.d/kernel-2.6 |
do i have to mount it manually? |
|
Back to top |
|
|
|