LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 12-05-2007, 01:09 PM   #1
poolguy
LQ Newbie
 
Registered: Nov 2007
Posts: 4

Rep: Reputation: 0
Question reset fstab does command or function exist


Is there a utility that can simply rescan all harddrives and partions and add them to fstab. or can you delete everything except root and home, reboot and have new entries had. Ive googled for reset fstab redo fstab restart fstab, nothing everything says go in and change it. does fstab get its entries from when you boot or does it just scan during install then only add to list from there. ok going to try deleting all except root and home. If that doesnt work maybe I ll have to learn to program so that I can write a utilitie that scans at boot.

Correct me if I am wrong or dont know what Iam doing? Most likely because Iam new to linux. Just tried my tux on 3weeks ago.

I ask this because my drives sometimes mount sometimes not.some dont at all and my flash drive is only recognized if I unplug usb 200gb harddrive.

Love Linux you all on this forum are also great, have a wonderful day!
poolguy

ok heres my fstab and thanks for responding

# /dev/hda7, size=, type=131: Journalised FS: ext3 (extended)
/dev/hda7 / ext3 defaults 1 1
none /dev/pts devpts mode=0620 0 0
# /dev/hda8, size=12675222, type=131: Journalised FS: ext3 (extended)
/dev/hda8 /home ext3 defaults 1 2
# fd: H1440
none /home/whisperer/Desktop/floppy supermount dev=/dev/fd0,fs=auto,exec,--,umask=0,user,sync 0 0
# /dev/hda10, size=10136952, type=131: Journalised FS: ext3 (extended)
/dev/hda10 /mnt/hda10 ext3 user,exec,rw,noauto 1 2
# /dev/hda11, size=4369617, type=131: Journalised FS: ext3 (extended)
/dev/hda11 /mnt/hda11 ext3 user,exec,rw,noauto 1 2
# /dev/hda5, size=21045087, type=131: Journalised FS: ext3 (extended)
/dev/hda5 /mnt/hda5 ext3 user,exec,rw,noauto 1 2
# /dev/hda6, size=12321792, type=131: Journalised FS: ext3 (extended)
/dev/hda6 /mnt/hda6 ext3 user,exec,rw,noauto 1 2
# /dev/hda1, size=21976857, type=12: Win98 FAT32, LBA-mapped (primary)
/dev/hda1 /mnt/win_c vfat user,exec,rw,noauto,iocharset=utf8,umask=0 0 0
# /dev/hda12, size=62653437, type=11: FAT32 (extended)
/dev/hda12 /mnt/win_d vfat user,exec,rw,noauto,iocharset=utf8,umask=0 0 0
# /dev/hda13, size=131443767, type=11: FAT32 (extended)
/dev/hda13 /mnt/win_e vfat user,exec,rw,noauto,iocharset=utf8,umask=0 0 0
none /proc proc defaults 0 0
# /dev/hda9, size=6152832, type=130: Linux swap (extended)
/dev/hda9 swap swap defaults 0 0

I ran pclinux 2007 live cd and copied everything except / and /home then deleted everything except root and home in my installed version. works great now, unless I have usb flash drive in. Then nothing matches. Not a big deal since Im now using that flash drive with puppylinux.(Only linux I could find that would boot it with no bios support, believe me I scoward the internet. and couldnt find a how to for newbies on makeing a boot cd with usb support so that I could boot off that flash drive. Im going to try to modify the files so that I can boot other oses because I dont particularily care for puppy) Sorry off topic. anyway

I guess my question should be is there a gui that will modify the fstab so that I can say mount such and such drives at boot always and set this usb 200gb partitions always at these location. So that no matter what I have plugged in at boot they will be mounted where I wanted them and automatically.

oh ya let me find that mtab

/dev/hda7 / ext3 rw 0 0
none /proc proc rw 0 0
none /dev/pts devpts rw,mode=0620 0 0
/dev/hda8 /home ext3 rw 0 0
none /proc/sys/fs/binfmt_misc binfmt_misc rw 0 0
none /sys/fs/fuse/connections fusectl rw 0 0
sunrpc /var/lib/nfs/rpc_pipefs rpc_pipefs rw 0 0
nfsd /proc/fs/nfsd nfsd rw 0 0
/dev/sda1 /pup vfat rw,check=relaxed 0 0
/dev/hda12 /mnt/win_d vfat rw,nosuid,nodev,iocharset=utf8,umask=0,user=whisperer 0 0
/dev/hda1 /mnt/win_c vfat rw,nosuid,nodev,iocharset=utf8,umask=0,user=whisperer 0 0

the 2 things windows has over linux is intuitive structure and use, and DRIVERS.(not yelling just enphisising(ok cant spell)

Linux rocks in my book. Just seriously decided to make it my main os, and os for putters on family network. Got to give linux its dues. When family crashed my winpuke xp puter while I was working out of town I simply had them put in livecd.(hehehe they cant break anything else that way.)

Wondering again I know, just that I have another post about my rtl8101e onboard net card that wont talk to router but connects instantly if I switch cable from router to clearwire modem.

still not on subject. Very sorry, just that I gave myself a crash course in linux over the last three weeks and its the little things like netcard or drives not being mounted that are giveing me problems.

Multi-booting XP,Vista,DSL,Elive,Dreamlinux,Mandriva,Zenwalk,Slackware12,katopix,
but main is PCLinux2007 w/ati drivers installed (Pain),CompizFusion,(luv cool 3d desktop), and KibaDock. Overkill on eye candy Iknow.

motherboard=k9agm2
mem=512
AMD Athlon 64 x2 proc
200GB usb EXt
160gb internal

I would like to set it up so that all vfat and ntfs drives are mounted on boot.
I would also like for the partitions on the external hd to get confused with the flash drive if I have that plugged at boot. I think its called uuid or something.
I would also like for the floppy and dvdrw and all drives to show on desktop or some equivilant link.
Well Im makeing a wish list how do I make it so I dont have to enter the root password every 5 minutes for everything.

I know I have to do a clean install. for the 10th time. But I figure the only way to learn anything about puters is to dive in screwup the whole puter then try to fix it. U end up learning everything u didnt need to know along with everything (hopfully) you needed to know.

If Im a pain just tell me to bugger off. I do really appreciate any help though.

Ya ll have a great Day!

Last edited by poolguy; 12-07-2007 at 09:30 PM. Reason: add info
 
Old 12-05-2007, 02:23 PM   #2
weisso5
Member
 
Registered: Oct 2007
Location: New York City
Distribution: Gentoo, FC
Posts: 133

Rep: Reputation: 16
Hello and welcome. Can you give a bit more information on the Distro you are using and what kind of configuration you are going for/or have. If you are a beginner definitely playing around with the fstab file is not a good idea. With the above requested information i could either help fix you fstab file or at least point you in the right direction.
 
Old 12-05-2007, 02:28 PM   #3
jailbait
LQ Guru
 
Registered: Feb 2003
Location: Blue Ridge Mountain
Distribution: Debian Jessie, Linux Mint 17
Posts: 7,750

Rep: Reputation: 271Reputation: 271Reputation: 271
I think that you should look at the functions of /etc/mtab in addition to looking at /etc/fstab. fstab contains permanent information about how you want various file systems mounted. It is built by the installer and by you changing it manually.

/etc/mtab is a dynamic list of what is currently mounted. At boot your startup scripts will mount whatever /etc/fstab says is to be mounted. These mounts are recorded in mtab.

If you mount a file system manually then the mount command will use any information in /etc/fstab about that file system to help process the mount request. The new mount appears in mtab.

If your system uses autofs then when you plug in a device that /etc/fstab says can be handled by autofs then autofs will mount and umount the device according to the rules laid out in fstab. The device will be added to mtab.

You can display mtab at any time by issuing the mount command with no parmeters.

"I ask this because my drives sometimes mount sometimes not.some dont at all and my flash drive is only recognized if I unplug usb 200gb harddrive."

This sounds like you and autofs disagree on what should be mounted when. You can change fstab to
let autofs handle some devices and let you handle other devices manually.

----------------------
Steve Stites
 
Old 12-05-2007, 06:30 PM   #4
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
All good advice. Please show us your /etc/fstab file contents.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Why crontab command doesnt exist even after installing crontabs-1.10-12.fc6.noarch.rp Niceman2005 Linux - Software 2 07-08-2007 09:24 PM
lsusb, is this command exist ? wahaha Linux - Software 3 03-10-2007 03:58 PM
Fstab - "mount point does not exist" wahming Linux - Newbie 2 02-05-2007 04:34 AM
cyradm command did not exist FC3 kernelvn Fedora 1 08-02-2005 07:50 AM
does modem need a reset command? Geocritter Linux - Hardware 1 07-25-2005 01:42 PM


All times are GMT -5. The time now is 06:15 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration