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 > Knoppix 6.0.1 problem with population of /media directory

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 03-16-2009   #1 (permalink)
Just Joined!
 
Join Date: Mar 2009
Posts: 4
Knoppix 6.0.1 problem with population of /media directory

Hi all,

it seems that, once installed on a USB disk with a permanent data file "/mnt-system/KNOPPIX/knoppix-data.img", Knoppix 6.0.1, quite seldom, fails to populate the /media directory with the proper mount points that have the name of the present partitions (e.g. sda2, sda3...).

I have not yet found what is the startup sequence that fails to work properly once you have a persistent data image and I have come out with a work-around that, launched in the rc.local, finds the local partitions and creates the correct mount points in the "/media" directory and, calling "rebuildfstab", regenerates the /etc/fstab file properly.

The workaround simply scans the output of the "fdisk -l" command for the /dev/ lines and extracts the proper substring used to create the mount point.

Is there anyone that has a more elegant solution?
mbagni is offline  


Reply With Quote
Old 05-04-2009   #2 (permalink)
Just Joined!
 
Join Date: May 2009
Location: Longford, Ireland
Posts: 4
My solution is simpler but experts would say it is not elegant !
Use Leafpad to edit /etc/init.d/knoppix-halt and /etc/init.d/knoppix-reboot.

In each case insert
rm /etc/fstab

above the line that echos "System Shutdown" !!

Regards,
rev_dav
rev_dav 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 10:04 AM.






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

Content Relevant URLs by vBSEO 3.3.0 RC2