logo       


Choosing A Webhost:
A web hosting service is a type of Internet hosting service that allows individuals and organizations to provide their own website accessible via the World Wide Web. Web hosts are companies that provide space on a server they own for use by their clients as well as providing Internet connectivity, typically in a data center. Web hosts can also provide data center space and connectivity to the Internet for servers they do not own to be located in their data center, called colocation. more...

Re: media:/ shows unnecessary media: msg#00062

Subject: Re: media:/ shows unnecessary media
On Saturday 28 May 2005 11:34 am, Giuseppe Bilotta wrote:
> On Sat, 28 May 2005 05:13:54 +0000, Rajeev J Sebastian wrote:
> > I have a question:
> >
> > Is it only me ? or is anyone else having to mount via console ?
> >
> > pmount just isn't working. And there is no bug filed in bugzilla either.
> > This is wierd, no one is reporting the inability to mount hard disks
> > wuthin media:/.
What about the above question ? Are you able to mount via pmount/fstab-sync or 
not ? Does mounting via media:/ work (for partitions not in the fstab file) ?

> >
> > Anyway, after waiting for Kari to respond for 2 days, I have made a
> > simple script to do the renaming of media nodes with the following
> > features:
> >
> > 1) If the partition has a volume label, it sets that as the label in
> > media:/
>
> What happens if two medias have the same volume label?
Yeah that is a problem :) Obviosly, we shouldn't allow that, but I havent 
checked. But I also think

>
> > 2) else if the user has already changed the name to something more
> > appropriate in media:/, it sets that as the label in media :/
>
> Is this necessary? :)
Yep its necessary, otherwise, we might overwrite the label set by the user.

>
> > 3) else, it constructs a string "<OS> <device><partitionNumber>" where
> > <OS> is currently, "Linux", "Windows" and ".Linux Swap", the <device> is
> > A,B,C,D, etc. Volker's suggestion of using "." paid off and swap
> > partitions are hidden.
>
> FWIW, Windows uses the term "Local disk (<drive letter>:)" for
> unlabeled partitions. Something like "<OS> Local Disk
> <device><partition number>" might be nice.
As you said earlier, getting the drive letter is not that simple (since it 
doesnt progress the same way on different machines). So I thought this was an 
alternative.

About names, if you look at the code, you can see that the names can be 
changed easily. In the attached script, I have changed them to (following 
your need):

Device name -> label after rename_hdd.py
/dev/hda1 (ext3) -> Linux Local Disk (A1)
/dev/hda2 (swap) -> .Swap Disk (A2)
/dev/hda3 (fat32) -> Windows Local Disk ( A3)


If someone can give me a printout/screenshot of hal-device-manager showing the 
Advanced properties of a USB stick, I can make sure that such disks are 
labelled accordingly.

>
> I can test it. Would it work with the Live Kubuntu DVD? I haven't
> installed it on my system yet ...
Well, as long as you have the dependencies (python2.4-dbus, python2.4-dcop and 
python2.4) then it should run (you need to modify the /etc/defaults/hal as 
well so that we can retrieve partition type info from HAL).




I think, this is a good start to a kubuntu-specific default automation 
package. Seeing the HAL/DBUS system and its bindings in Python, I think its 
very possible to popup nice dialogs, control centre modules etc when devices 
are loaded. For eg, wouldn't it be nice if the printer driver selection is 
automatically started when a USB printer is started ? For me currently, this 
doesnt occur (atleast for my Canon S200SPx).

perhaps, it is also a start to a kubuntu specific device-manager ?


enjoy :)
Rajeev J Sebastian

Attachment: rename_hdd.py
Description: application/python


Ruby Jobs
Java Jobs
Jobs in California
more...
what
job title, keywords
where
city, state, zip
jobs by job search
<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

Recently Viewed:
db.firebase.por...    text.xml.xalan....    qnx.openqnx.dev...    user-groups.zar...    internationaliz...    kde.devel.konve...    finance.e-gold....    emacs.latex.pre...    gis.therion/200...    web.webmin.gene...    yellowdog.gener...    vserver/2003-08...    redhat.release....    sysutils.tivoli...    xfree86.expert/...    mail.becky.user...    hardware.netapp...    netbsd.ports.xe...    python.distutil...    boot-loaders.gr...    culture.interne...    java.springfram...    activedir/2006-...   
Home | blog view | USPTO Patent Archive | advertise | OSDir is an inevitable website. super tiny logo

Free Magazines

Cisco News
Receive a free quarterly e-newsletter with exclusive articles on how Cisco IT uses its own products and solutions to enable the business.
subscribe

Systems Management News, the newspaper for IT systems administration and data center managers! Each issue of Systems Management News is chock-full of news and analysis to help you understand what's happening in your field.
subscribe

The Enterprise Newsweekly eWeek is the essential technology information source for builders of e-business.
subscribe

Oracle Magazine Oracle Magazine contains technology strategy articles, sample code, tips, Oracle and partner news, how to articles for developers and DBAs, and more. Oracle (NASDAQ: ORCL) is the world's largest enterprise software company.
subscribe

Total Telecom Total Telecom is "The Economist of the communications industry".
subscribe