[SOLVED] after install how to keep file system safe and use another partion for my file system
Linux - NewbieThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
after install how to keep file system safe and use another partion for my file system
i installed wifislax i have made new partion that i want to use for installing apps like google chrome firefox and keep my main root file system safe use it to boot up but after use new partion for adding media and apps i have been reserching for weeks i just cant work it out i have been to my distro forum with no sucksess can someone assist me with my problem pls
would be very gratefull
thanks
my os is
wifislax 4.4 beta 12
kde 4.10.1
Slackware 14.0
3.7.10-wifislax
i686
i have 3 partions:
1)=swap
2)=sda2 ext4 wifislax [installed wifislax here]
3)=sda3 ext4 want this to be my home file system
it was a live cd i installed to hard drive all my setting get saved automaticly no problem there distro was made for only 1 user so ther is no home directory i dont no how to sort this out am a noob to linux so need instructions but i lern fast and i have googled it been been trying for weeks no help at wifislax forum i have been serching high and low
i just fed up with messing up my root file system and haveing to reinstall ther must be a easy solution to this problem?
so if you no pls help a man in need!!
The file /etc/fstab is used to define which partitions get mounted and where their mountpoints are. Commonly, the /home directory is a mountpoint for a partition that is used for user data. Example:
Code:
/dev/sda3 /home ext3 defaults 0 2
There are a few different ways to identify the partition: by block device name, by label, and by UUID.
Make the accordant adjustments to your fstab, and as root, run
Code:
mount -a
It might not hurt to post (in [CODE] [/CODE] tags) a copy of your existing fstab file and someone will be able to suggest appropriate modifications.
You may have to add user directories, and modify the passwd file to point users' $HOMEs to the appropriate places.
/dev/sda1 / auto defaults 1 1
# Do not edit this file as fstab is recreated automatically during every boot.
# Please use /etc/rc.d/rc.local or sysvinit scripts if you want to mount/unmount drive,
# filesystem or network share.
and ther is no home directory in file sysem but ther is a root home so i i problem need to add it but how wifislax was configerd as single user i been told i have tryed adduser and useradd if fails to write a home directory i downloaded kuser it will make new user but wont write home directory no of them worked i was goner add new user as non root but wont work
# Start vboxdrv
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxdrv ]; then
/etc/rc.d/rc.vboxdrv start
fi
# Start vboxballoonctrl-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxballoonctrl-service ]; then
/etc/rc.d/rc.vboxballoonctrl-service start
fi
# Start vboxweb-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxweb-service ]; then
/etc/rc.d/rc.vboxweb-service start
fi
#start clamav antivirus state
if [ -x /etc/rc.d/rc.clamav ]; then
/etc/rc.d/rc.clamav start
fi
if [ -x /etc/rc.d/rc.amavisd-new ]; then
/etc/rc.d/rc.amavisd-new start
fi
# Start vboxautostart-service
# If you do not wish this to be executed here then comment it out,
# and the installer will skip it next time.
if [ -x /etc/rc.d/rc.vboxautostart-service ]; then
/etc/rc.d/rc.vboxautostart-service start
fi
# Actualizar asociacion de archivos y cache de iconos
if [ -x /usr/bin/cacheupdater ]; then
echo "[1;36mUpdating mimetypes & icon caches...[0m"
cacheupdater &> /dev/null &
fi
if [ -x /etc/rc.d/rc.laptop-mode ]; then
/etc/rc.d/rc.laptop-mode start &> /dev/null &
fi
ok thanks for your help so the fstab file what do i have to do paste them 3 lines in in or relpase with them? i am just reading How To Ask Questions The Smart Way lo!! thanks for your help
yer sorry i did look at that and again ? gosh i havent got a scooby doo
sorry
would like to learn but may be bit advanced for me but i been useing linux bout 6 mounths now i like it a lot i been on it every day but computers are hard if you dont no how
not in terminal top of where your posting new reply
Ok back to problem
Code:
sudo mkdir -v /home
Then
Code:
sudo vim /etc/fstab
Code:
/dev/sda1 / auto defaults 1 1
/dev/sda2 /home ext4 defaults 0 0
# Do not edit this file as fstab is recreated automatically during every boot.
# Please use /etc/rc.d/rc.local or sysvinit scripts if you want to mount/unmount drive,
# filesystem or network share.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.