Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
I wrote a fstab generator.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks
View previous topic :: View next topic  
Author Message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Sat Sep 28, 2002 12:14 pm    Post subject: I wrote a fstab generator. Reply with quote

Hi all happy penguinlovers.

I wrote, (just for fun) a fstab generator in c.
It depends on parted to detect and configure drives,
cdroms....


I just tired to rewrite fstab everytime a switched harddrives, och added a new cddrive.
It is realy beta. And without any license yet.

Please get it from my machine at
http://powerj.dyndns.org/index.php?page=projects
I realy want your feedback!
Sorry for my realy bad english.


Last edited by JimmyW on Tue Sep 23, 2003 1:04 am; edited 1 time in total
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Sat Sep 28, 2002 1:00 pm    Post subject: Reply with quote

New version amnt2.tar.gz <-- Get it
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Sat Sep 28, 2002 1:57 pm    Post subject: Reply with quote

Sorry, i want your feedback, not any harddrive backups....
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sat Sep 28, 2002 6:28 pm    Post subject: Reply with quote

My first comment woud be to ask if you could post the code in a code block:
Code:
#!/bin/bash
# This is my program
... code is here ...

_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
proxy
Apprentice
Apprentice


Joined: 20 Apr 2002
Posts: 260
Location: Chantilly, VA

PostPosted: Sat Sep 28, 2002 7:20 pm    Post subject: Reply with quote

why they heck does this require gnu parted....

the way i would do it is this:

cat /proc/partitions

iterate through all of them (skipping ones with minor number 0) and asking where it should be mounted. you can also probably find out the partition type with the proc filesystem as well...just dont remember off hand from where...

proxy
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Sun Sep 29, 2002 8:27 am    Post subject: Reply with quote

Oops

Last edited by JimmyW on Sun Sep 29, 2002 8:29 am; edited 1 time in total
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Sun Sep 29, 2002 8:27 am    Post subject: Why? Reply with quote

Becus i think my c-code is about 450 lines.
Feels unnesesary.

kanuslupus wrote:
My first comment woud be to ask if you could post the code in a code block:
Code:
#!/bin/bash
# This is my program
... code is here ...


Last edited by JimmyW on Sun Sep 29, 2002 3:28 pm; edited 1 time in total
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Sun Sep 29, 2002 8:41 am    Post subject: Why i use libparted Reply with quote

i easy used libparted to detect what filesystem every partition used, or if it is a swap. /proc wont give it too me before i mount.

cat /proc/partitions did also detect extended paririons and tryed to mount it, trust me. I didn´t try to do some extra work.

Sorry you didn´t like it.

regards

proxy wrote:
why they heck does this require gnu parted....

the way i would do it is this:

cat /proc/partitions

iterate through all of them (skipping ones with minor number 0) and asking where it should be mounted. you can also probably find out the partition type with the proc filesystem as well...just dont remember off hand from where...

proxy
Back to top
View user's profile Send private message
pjp
Administrator
Administrator


Joined: 16 Apr 2002
Posts: 20067

PostPosted: Sun Sep 29, 2002 12:46 pm    Post subject: Re: Why? Reply with quote

JimmyW wrote:
Becus i think my c-code is about 200 lines.
Feels unnesesary.
Ah, OK. Didn't realize it was in C.
_________________
Quis separabit? Quo animo?
Back to top
View user's profile Send private message
locke2053
n00b
n00b


Joined: 29 May 2003
Posts: 58
Location: Ohio State University

PostPosted: Mon Sep 22, 2003 9:07 pm    Post subject: Reply with quote

I think it is a really good program. Keep writing free software, and ignore the dumb anonymous critics.
Back to top
View user's profile Send private message
JimmyW
Tux's lil' helper
Tux's lil' helper


Joined: 28 Sep 2002
Posts: 119
Location: Sweden

PostPosted: Tue Sep 23, 2003 1:11 am    Post subject: Reply with quote

locke2053 wrote:
I think it is a really good program. Keep writing free software, and ignore the dumb anonymous critics.

Thanks. I put out my latest version, youst for you.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Documentation, Tips & Tricks All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum