VectorLinux

Please login or register.

Login with username, password and session length
Advanced search  

News:

Visit our home page for VL info. For support and documentation, visit the Vector Linux Knowledge Center or search the Knowledge Center and this Forum using the search box above.

Author Topic: Help with script to change drive naming  (Read 1216 times)

Ecocomputing

  • Member
  • *
  • Posts: 4
  • user
    • LinuxEfficiencyScripts
Help with script to change drive naming
« on: November 21, 2015, 05:31:28 am »

I was hoping someone could write the script to automatically update the mount points (for any linux distro, but at least being compatible to slitaz).

See what needs to be done at github.com/linuxscripts/Linuxefficiencyscripts/blob/master/LES_Linuxdirectorytree_changing.sh

There are some articles that give some advice on altering fstab  (ie help.ubuntu.com/community/MoveMountpointHowto ) / mkinitcpio.conf, but it would need to be done automatically, so not requiring any user input.

Any help is appreciated. Will update the github page once I have a working script section.

Brian
Logged

wigums

  • Guest
Re: Help with script to change drive naming
« Reply #1 on: November 21, 2015, 07:42:47 am »

the vector linux project isnt interested
Logged

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3487
Re: Help with script to change drive naming
« Reply #2 on: November 21, 2015, 02:00:24 pm »

Well, at least he took my suggestion of putting this stuff in vcs rather than a huge tarball.  This allowed me to glance over this stuff.  I had no idea it was that bad.  I knew it was bad, but did not imagine it like that.

Looks like this guy has a long way to go.  These scripts are poorly written, assume a bunch of stuff from debian is available and then installs more debian stuff.  Its really an ugly way to royally break a working OS

Ecocomputing

  • Member
  • *
  • Posts: 4
  • user
    • LinuxEfficiencyScripts
Re: Help with script to change drive naming
« Reply #3 on: November 23, 2015, 01:17:41 am »

These scripts are poorly written, assume a bunch of stuff from debian is available and then installs more debian stuff.  Its really an ugly way to royally break a working OS

Exactly what did I do wrong ? And, more importantly, how would you do it ?
Agreeably, I use debian packages, but I did convert it using tazpkg convert, so I'm not sure what the problem is.

For the drive letter renaming, I can only assume there will be other members that don't like the linux drive lettering neither (neither in slitaz nor vector linux), and using symbolic links doesn't break anything. Will work on it myself off course if no one's interested, but it would have sped up a lot with some help.
Logged

retired1af

  • Administrator
  • Vectorian
  • *****
  • Posts: 1467
Re: Help with script to change drive naming
« Reply #4 on: November 23, 2015, 02:37:40 am »

Converting a package does not magically allow it to be installed on another Distro. More often than not, breakage occurs, or more commonly, the package fails to install due to how things are stored or missing dependencies.

And what is it with this "drive lettering" crap?
Logged
ASUS K73 Intel i3 Dual Core 2.3GHz

M0E-lnx

  • Administrator
  • Vectorian
  • *****
  • Posts: 3487
Re: Help with script to change drive naming
« Reply #5 on: November 23, 2015, 04:56:20 am »

Quote

... And, more importantly, how would you do it ?

Thats the thing.   I woulndnt.  If anyone has a problem with the learning curve they face when switching from windows to linux, this does not help at all.  Instead this creates the potential for a complete system break down.  I still fail to see how this speeds anything up or help anyhing.  Everything in an OS installation lives where it does for a reason.  You start moving stuff around and all of the sudden you compilers cant find development libraries, you programs cant find other libraries they depend on, etc.   Ot to mention, if you ever got anything to compile, it woud pick up dependencies that nobody else has, so this is whay i said it the firat time you posted.  This whole idea is asinine.  You done help anybody with this, instead you troll dofferent forums asking others for this.  I can appreciate anyone improving upon anything, but this is not improving.  This is breaking with the hope of inproving based on a principle that is just utterly wrong. 

Like i said before, if you really  do believe the change in system paths can speed anything up, build a linux sustem from scratch and shape it with the paths you want.  Then benchmark it agains whoever you want and prove your point.  Until then, i must also repeat.... Not Interested