ilia_kr Posted March 25, 2006 Report Share Posted March 25, 2006 How can i make Linux to automaticly mount partitions on boot? Quote Link to comment Share on other sites More sharing options...
polemicz Posted March 25, 2006 Report Share Posted March 25, 2006 Just add lines in /etc/fstab Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted March 25, 2006 Author Report Share Posted March 25, 2006 Just add lines in /etc/fstab can you show me an example please? Quote Link to comment Share on other sites More sharing options...
scarecrow Posted March 25, 2006 Report Share Posted March 25, 2006 (edited) Dunno which is the use of seeing other fstab entries, but here's mine: # # /etc/fstab: static file system information # # <file system> <dir> <type> <options> <dump> <pass> none /dev/pts devpts defaults 0 0 none /dev/shm tmpfs defaults 0 0 /dev/dvd /mnt/dvd auto ro,user,noauto,unhide 0 0 /dev/sda3 swap swap defaults 0 0 /dev/sda5 / reiserfs defaults 0 0 /dev/sda1 /boot ext2 defaults 0 1 /dev/sda6 /home reiserfs defaults 0 0 /dev/sda7 /data reiserfs defaults 0 0 /dev/sda8 /vmware reiserfs defaults 0 0 /dev/sdb1 /mnt/files1 reiserfs defaults 0 0 /dev/hdc1 /mnt/captive-new_volume captive-ntfs defaults,noauto,users,uid=scarecrow 0 0 All partitions are mounted on boot, ban the last one ( noauto ), which uses captive-ntfs for read/write abilities on that filesystem. Edited March 25, 2006 by scarecrow Quote Link to comment Share on other sites More sharing options...
ilia_kr Posted April 13, 2006 Author Report Share Posted April 13, 2006 (edited) here is my 'fstab': # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 /dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0 and modified one: # This file is edited by fstab-sync - see 'man fstab-sync' for details LABEL=/ / ext3 defaults 1 1 /dev/devpts /dev/pts devpts gid=5,mode=620 0 0 /dev/shm /dev/shm tmpfs defaults 0 0 /dev/proc /proc proc defaults 0 0 /dev/sys /sys sysfs defaults 0 0 /dev/fd0 /media/floppy auto pamconsole,exec,noauto,managed 0 0 /dev/hdd /media/cdrom auto pamconsole,exec,noauto,managed 0 0 # local partitions: (rw,auto,exec,nouser) /dev/hdc6 /mnt/hdc6 ext2 defaults 0 0 /dev/hdc7 /mnt/hdc7 ext2 defaults 0 0 works well, but still: there is no swap partition there, why? Should i add it? What are the devices listed in first 4 lines? Edited April 13, 2006 by ilia_kr Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.