SliTaz SliTaz Forum

You are not logged in.

#1 2012-02-19 21:01:49

Guest
Guest

Noticed this in slitaz

Hey noticed if i have a harddrive in computer with windows and logs in to slitaz

tux account it creatos home directory on windows partition, is there anyway around this

couse when moving the usb to other computer (when done a #tazusb writefs gzip) i get

the error "failed to execute command" at login.

Tried to run freshly made usb without harddrive in and did the same thing

then it works, so anywhere i can alter the way it creates files on windows partition

so it does it on live usb system instead even if windows partitions are present?

If its unclear of what im saying in this post please tell me as maybe my english isnt coming out as my mind thinks it comes out wink

SIncerally

Ztealmax "Martin"

#2 2012-02-19 21:32:21

domcox
Administrator
Registered: 2011-03-29
Posts: 104

Re: Noticed this in slitaz

Do you add slitaz home=usb to the boot option?

Is your HD drive using SATA or IDE?

Dom

Offline

#3 2012-02-19 21:35:09

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Noticed this in slitaz

Logons fail when home= partition is formated with NTFS/FAT32/FAT16 microsoft filesystem.

Add another drive or partition to the windows drive and format to a linux filesystem like ext3.

In bootcode home= points to the ext3 partition.

Offline

#4 2012-02-20 06:36:35

domcox
Administrator
Registered: 2011-03-29
Posts: 104

Re: Noticed this in slitaz

I've noticed when I boot with home=usb, and the host computer has a HDD using SATA, /home is mounted on its first partition (/dev/sda1) and not on the USB key (/dev/sdb1).

Offline

#5 2012-02-20 14:48:20

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Noticed this in slitaz

@domcox

Hi dom

home=usb always mounts /dev/sda1

Sata drives connected to sata controller on are always detected before usb drives.

Only if there are no other sata drives in the computer will usb drive grab /dev/sda1

IMO home=usb should be removed as boot option. 

http://hg.slitaz.org/slitaz-boot-scripts/file/6d1034b2830e/etc/init.d/bootopts.sh

# Check for a specified home directory on cmdline (home=*).

139 #

140 if grep -q "home=usb" /proc/cmdline; then

141 DEVICE=sda1

142 mount_home

143 elif grep -q "home=" /proc/cmdline; then

144 DEVICE=[c]cat /proc/cmdline | sed 's/.*home=\([^ ]*\).*/\1/'[/c]

145 mount_home

146 fi

Offline

#6 2012-02-21 05:54:46

Guest
Guest

Re: Noticed this in slitaz

mojo: i was thinking if i have a fat32 formated usb wih slitaz on it

created with http://www.pendrivelinux.com/universal-usb-installer-easy-as-1-2-3/

correct me if im wrong or if it isnt possible but.

if i would like it to boot and use the fat32 formated partition as home directory

is that possible for example usb directory called home/

is there somehow anyway to make slitaz work directly against that home directory

even if there is any other harddrives present?

maybe it works if i write this?

home=/dev/sdb1 (if thats the usb as standard?)

#7 2012-02-21 06:18:46

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Noticed this in slitaz

home=sdb1

But logins will fail with slim login manager/xorg on fat32/ntfs/fat16.

It uses xauth with .Xauthority in the ~/.

Because microsoft file systems permissions differ from linux it can't authenticate and login fails.

Try testing with slitaz 3.0 xvesa flavour,maybe xvesa doesn't use xauth and slim logins will work.

Offline

#8 2012-02-21 15:32:55

Guest
Guest

Re: Noticed this in slitaz

What i did try now is i made 2 partitions on my live usb

1 formated fat32 bootabe slitaz, 1 formated ext2 for home partition

used this command at boot:

#slitaz home=sda2 (sda2 is the second partition formated as ext2)

however still get the same error, did i miss a command at boot?

#9 2012-02-21 15:55:32

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Noticed this in slitaz

If your booting on the same computer as before with a sata hard drive the live usb flash drive is NOT /dev/sda

Remember sata drives connected to sata controllers will always be detected and grab /dev/sda before a usb flash drive.

Boot live usb with bootcode=> slitaz screen=text

Logon as root

fdisk -l

Determine live usb /dev name and that partition 2 was formated to ext2

Set home= to the correct name for live usb flash drive

Offline

#10 2012-02-21 15:59:36

Guest
Guest

Re: Noticed this in slitaz

No SATA drive in computer at all, only USB stick

thats what i did therefor i set it to sda2 that is the ext2 partition.

However, anyway around this and maybe set home partition to ramdisk instead?

so it skips sdaX and only writes in ram? any command for this like #slitaz home=ram

just as a notice ive did a #tazusb writefs gzip with my updated software!

#11 2012-02-21 17:29:29

Guest
Guest

Re: Noticed this in slitaz

or even better for me, is it possible to change name of root account?

#12 2012-02-21 17:35:16

mojo
Administrator
Registered: 2011-03-29
Posts: 2,174

Re: Noticed this in slitaz

Let me guess...

root is the only user that can login because /home is still mounted on fat32 partition smile

Offline

#13 2012-02-21 17:47:30

Guest
Guest

Re: Noticed this in slitaz

so true wink

#14 2012-02-21 18:13:59

Guest
Guest

Re: Noticed this in slitaz

Figured out how to rename root big_smile

#15 2012-02-21 20:46:09

domcox
Administrator
Registered: 2011-03-29
Posts: 104

Re: Noticed this in slitaz

@mojo: I suggests to keep home=usb as an option, but to mount the latest usb drive instead:

etc/init.d/bootopts.sh

[c]# Check for a specified home directory on cmdline (home=*).
#
if grep -q "home=usb" /proc/cmdline; then
  for DEV in /sys/block/sd* ; do
    if readlink $DEV | grep -q usb; then
    DEVICE=/dev/$(basename $DEV)
    fi
  done
  mount_home
elif grep -q "home=" /proc/cmdline; then
  DEVICE=cat /proc/cmdline | sed 's/.*home=\([^ ]*\).*/\1/'
  mount_home
fi[/c]

Offline

#16 2012-02-21 20:59:23

domcox
Administrator
Registered: 2011-03-29
Posts: 104

Re: Noticed this in slitaz

We may even detect unwanted fat32 partitions and skip mount_home:

[c]if blkid | grep $DEVICE | grep -v vfat; then
   mount_home
fi[/c]

Offline

Registered users online in this topic: 0, guests: 1
[Bot] ClaudeBot

Board footer

Powered by FluxBB
Modified by Visman

[ Generated in 0.021 seconds, 7 queries executed - Memory usage: 1.56 MiB (Peak: 1.77 MiB) ]