Anagnosh DOS volume label apo linux (Slackware)

costas at freemail.gr costas at freemail.gr
Thu Oct 18 22:38:46 EEST 2007


Kalispera kai sygnomh gia ta greeklish
alla exei pa8ei tarakoulo to setxkbmap kai prepei na xanasteiso kommatia tou X 
kai to erothma pou 8eto edo einai poio epeigon apo thn episkevh tou X :-(

8elo na bro tropo na diavazo to dos volume label mesa apo thn consola tou slackware (12.0, kernel: 2.6.21.5). De me noiazei an to partition exei ginei mount 'h oxi (protimo h me8odos na mhn proypo8etei to mount).

Pros to paron exo kanei thn exhs maimoudia:
exo ftiaxei ena script to opoio pairnei to onoma tou device (px /dev/sda1) ftiaxnei katallhla to mtools.conf kai meta kanei mlabel -s.

Profanos an kai doulevei den einai h "sosth" lysh. Yparxei kapoia "sosth" ?
Me ligo psaximo sto google diavasa gia to hald me kapoies parametrous (an 
8ymamai --no-daemon --verbose) alla epistrefei miso tono plhrofories, apo tis opoies merika grammaria einai to label. To slack bebaia den to exei to hald alla
kai na to eixe (OK, mporo na to katevaso kai na to kano compile) de nomizo oti axizei ton kopo dedomenou oti paragei tosh axrhsth (gia th douleia pou 8elo) plhroforia.

Eyxaristo ek ton proteron
Costas

Episynapto to scriptaki:

#!/usr/bin/bash
mv /etc/mtools.conf /etc/mtools.conf.1
echo drive B: file=\"$1\" > /etc/mtools.conf
mlabel -s B: | cut -c 18-
mv mtools.conf.1 mtools.conf






More information about the Linux-greek-users mailing list