LinuxQuestions.org
Support LQ: Use code LQ3 and save $3 on Domain Registration
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 04-07-2013, 08:21 AM   #1
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Rep: Reputation: Disabled
Question 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!!

thanks
 
Old 04-07-2013, 12:08 PM   #2
theNbomr
LQ 5k Club
 
Registered: Aug 2005
Distribution: OpenSuse, Fedora, Redhat, Debian
Posts: 5,396
Blog Entries: 2

Rep: Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908Reputation: 908
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.

--- rod.

Last edited by theNbomr; 04-07-2013 at 12:11 PM.
 
Old 04-07-2013, 03:16 PM   #3
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
thanks here is the fstab:=

/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.

# System mounts:
aufs / aufs defaults 0 0 # AutoUpdate
proc /proc proc defaults 0 0 # AutoUpdate
sysfs /sys sysfs defaults 0 0 # AutoUpdate
devtmpfs /dev devtmpfs defaults 0 0 # AutoUpdate
devpts /dev/pts devpts rw,mode=0620,gid=5 0 0 # AutoUpdate

# Device partitions:
/dev/sda2 /mnt/sda2 ext2 auto,noatime,nodiratime,suid,dev,exec,async 0 0 # Autoupdate
/dev/sdb1 /mnt/sdb1 vfat auto,noatime,nodiratime,suid,dev,exec,async,umask=0,check=s,utf8 0 0 # Autoupdate

# Swap partitions:
/dev/sda3 none swap sw,pri=1 0 0


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

ok thanks
 
Old 04-07-2013, 03:19 PM   #4
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
here is my rc.local file:=
#!/bin/sh

# 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 "Updating mimetypes & icon caches..."
cacheupdater &> /dev/null &
fi

if [ -x /etc/rc.d/rc.laptop-mode ]; then
/etc/rc.d/rc.laptop-mode start &> /dev/null &
fi


thanks
 
Old 04-07-2013, 03:33 PM   #5
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,126
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi

Can you post output of
Code:
sudo blkid
FYI
Can you put the output between code tags
 
Old 04-07-2013, 03:41 PM   #6
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
this sudo blkid

/dev/sda1: LABEL="wifislax-install" UUID="25974d11-0795-4b9a-aa3d-23288e584940" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="home" UUID="b768ba23-93f5-4d1e-af1e-76847169a469" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="f290e777-0283-4c7d-90ec-64d16188bc5e" TYPE="swap"
/dev/sdb1: UUID="B6A8-AB05" TYPE="vfat"
/dev/sdb2: UUID="76e8a482-6686-45da-ae5f-433b55a18b9b" TYPE="swap"


thanks will do next step now
 
Old 04-07-2013, 03:44 PM   #7
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
this is bash version-check.sh
bash, version 4.2.37(2)-release
/bin/sh -> /bin/bash
Binutils: (Linux/GNU Binutils) 2.22.52.0.2.20120424
bison (GNU Bison) 2.5.1
/usr/bin/yacc -> /usr/bin/yacc
bzip2, Version 1.0.6, 6-Sept-2010.
Coreutils: 8.19
diff (GNU diffutils) 3.2
find (GNU findutils) 4.4.2
GNU Awk 3.1.8
/usr/bin/awk -> /bin/gawk-3.1.8
gcc (GCC) 4.7.1
(GNU libc) 2.15
grep (GNU grep) 2.14
gzip 1.5
Linux version 3.7.10-wifislax (root@wifislax) (gcc version 4.7.1 (GCC) ) #1 SMP PREEMPT Mon Mar 25 13:37:42 UTC 2013
m4 (GNU M4) 1.4.16
GNU Make 3.82
GNU patch 2.7
Perl version='5.16.1';
GNU sed version 4.2.1
tar (GNU tar) 1.26
version-check.sh: line 33: makeinfo: command not found
Texinfo:
xz (XZ Utils) 5.0.4
gcc compilation OK

thanks
 
Old 04-07-2013, 03:53 PM   #8
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,126
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Hi

Ok /dev/sda2 is the partition that is to be used as home
Code:
/dev/sda1: LABEL="wifislax-install" UUID="25974d11-0795-4b9a-aa3d-23288e584940" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda2: LABEL="home" UUID="b768ba23-93f5-4d1e-af1e-76847169a469" SEC_TYPE="ext2" TYPE="ext3"
/dev/sda3: UUID="f290e777-0283-4c7d-90ec-64d16188bc5e" TYPE="swap"
By the way you dont need that script thats for something else

have a look here
http://embraceubuntu.com/2006/01/29/...own-partition/

USE CODE TAGS PLZZ

tHIS IS WHY YOUR USER WONT WORK AS WELL

Last edited by spiky0011; 04-07-2013 at 03:55 PM.
 
Old 04-07-2013, 04:02 PM   #9
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,126
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
What is the output of
Code:
sudo ls -al /home
 
Old 04-07-2013, 04:04 PM   #10
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
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

ps what are code tags?
 
Old 04-07-2013, 04:09 PM   #11
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
sorry here is sudo ls -al /home

ls: cannot access /home: No such file or directory

thanks
 
Old 04-07-2013, 04:13 PM   #12
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,126
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
Ok code tags, if you click on the # sign it will put CODE]your msg[/CODE] on your reply type or paste what ever between them'

Read that link I posted

OK
Code:
ls /
Thats ls small "L"
 
Old 04-07-2013, 04:17 PM   #13
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
here it is ls
ls /
bin/ include/ media/ root/ srv/ var/
boot/ kdeadmin-kuser-4.10.2-1-i686.pkg/ mnt/ run/ sys/
dev/ lib/ opt/ sbin/ tmp/
etc/ lost+found/ proc/ share/ usr/

click were in termial sorry
 
Old 04-07-2013, 04:27 PM   #14
highrolla
Member
 
Registered: Apr 2013
Posts: 37

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-07-2013, 04:28 PM   #15
spiky0011
Senior Member
 
Registered: Jan 2011
Location: PLANET-SPIKE
Distribution: /LFS/Centos6.3/Debian
Posts: 2,126
Blog Entries: 1

Rep: Reputation: 316Reputation: 316Reputation: 316Reputation: 316
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.
To save file in vim press ESC then :wq

Last edited by spiky0011; 04-07-2013 at 04:29 PM.
 
  


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
Saving file data using Python in an embedded system in an safe and fast way Fabio Paolini Programming 7 04-24-2011 12:07 PM
[SOLVED] Automating USB drive configuration of partion table, partition and file system nicklli Linux - General 9 01-28-2011 10:40 AM
fat32 file system 100% safe with linux? vlatko Linux - Newbie 4 06-26-2006 02:14 AM
fail-safe update prog, how much is the file system a problem? Thinking Programming 4 02-24-2006 06:18 AM


All times are GMT -5. The time now is 02:52 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