Welcome to Linux Forums! With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.
Find the answer to your Linux question:
New to Linux Forums? Register here for free!
    Linux Forums > Your Distro > Knoppix Help Forum > mounting writable fat32 partition at startup

Forgot Password?
 Knoppix Help Forum   For all discussions about Knoppix, the Linux "Live CD" that lets you run Linux without needing to install on your hard drive.

Site Navigation
Linux Articles
Linux Forums
Linux Downloads
Linux Hosting
Free Magazines
Job Board
IRC Chat
RSS Feeds


Linux Forum Topics
Linux Forums
Your Distro
Linux Resources
GNU Linux Zone
The Community
Reply
 
Thread Tools Display Modes
Old 05-12-2005   #1 (permalink)
Just Joined!
 
Join Date: May 2005
Posts: 2
mounting writable fat32 partition at startup

I'm running Knoppix 8.3.1 and trying to get my fat32 partition to automatically be mounted read/write on startup.

I start knoppix with the cheat code: knoppix fromhd=/dev/hde1 myconfig=/dev/uba1

/dev/hde1 is mounted as /cdrom and is read only.

I want it to be mounted as /mnt/hde1 and read/write.

I tried changing the fstab file as follows:

.
.
.
/dev/hde1 /mnt/hde1 vfat users,exec,rw,umask=000,uid=knoppix,gid=knoppix 0 0 # I added this line
# Added by KNOPPIX
#/dev/hde1 /mnt/hde1 vfat noauto,users,exec,umask=000,uid=knoppix,gid=knoppi x 0 0 # I commented out this line
.
.
.

I saved my config to my usb jumpdrive /dev/uba1 and rebooted.

This change had no effect, but the fstab file still has my changes. Is Knoppix loading my fstab from config too late to have an effect?

How do I fix this?

Thanks,
Mike
laughingboy is offline  


Reply With Quote
Old 05-12-2005   #2 (permalink)
Linux Engineer
 
Join Date: Apr 2005
Location: Belgium
Posts: 1,429
You can't 'want' it to be mounted as /dev/hde1... Linux assigns a fixed name to the device, you can't choose it yourself. Open a terminal and type 'fdisk -l', than you will see all the existing partitions - amongst which your fat32 drive. Then become root, and type mount -o rw -t vfat (device to be mounted) (mount point).

That should do it. If it is recognized as cdrom, that's bizarre... cd-rom is an iso9660 type, not fat32/vfat.
__________________
** Registered Linux User # 393717 and proud of it ** Check out www.zenwalk.org
** Zenwalk 2.8 - Xfce 4.4 beta 2- 2.6.17.6 kernel = Slack on steroids! **
borromini is offline   Reply With Quote
Old 05-13-2005   #3 (permalink)
Just Joined!
 
Join Date: May 2005
Posts: 2
Quote:
Originally Posted by borromini
You can't 'want' it to be mounted as /dev/hde1... Linux assigns a fixed name to the device, you can't choose it yourself.
I think you misunderstood me. The device name is /dev/hde1, and I want the mount point to be /mnt/hde1. Instead, it is being mounted as /cdrom

Quote:
Originally Posted by borromini
If it is recognized as cdrom, that's bizarre... cd-rom is an iso9660 type, not fat32/vfat.
OK, I did more testing and discovered that /cdrom is being used as the mount point because I'm using the fromhd=/dev/hde1 cheat code.

If I don't use this cheat code and let knoppix load from the CD, then that becomes /cdrom. /dev/hde1 is not mounted at all, but I can do a "mount -a" and then it will be mounted rw.

Using the fromhd cheat code mounts /dev/hde1 as /cdrom. (This must be necessary to load the image, since /cdrom does not appear in the fstab). Doing a "mount -a" at this point fails because the device is already mounted.

Of course, I want to run with the cheat code for performance reasons. Is there any way to do this?
laughingboy is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Free Magazines
Run Your Own Web Server Using Linux & Apache - Free 191 Page Preview
Learn about everything you'll need to build and maintain your Linux servers, and to deploy Web applications to them.
subscribe
Open Source Security Myths Dispelled
Dispel the five major myths surrounding Open Source Security and gain the tools necessary to make a truly informed decision for your IT organization
subscribe
InformationWeek
InformationWeek is the only newsweekly you'll need to stay on top of the latest developments in information technology.
subscribe



All times are GMT. The time now is 06:43 AM.






© 2000 - 2009 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.3.0 RC2