SliTaz SliTaz Forum

You are not logged in.

#1 2013-05-21 16:17:27

shintsan88
Member
Registered: 2012-12-04
Posts: 17

How To Automount Local Disk at Boot In Slitaz 4?

Ive installed slitaz 4 to a separate partition in the same hdd as Windows XP (dual-boot setup, WinXP is in hda1, 35gb ntfs, and Slitaz 4 is in hda2, 4gb ext3 - as gparted would show).

I want Slitaz to mount at boot time my ntfs partition. I tried to adapt the solution for automounting usb key at boot found in this post:

http://vanilla.slitaz.org/index.php?p=/discussion/1597/want-to-mount-at-boot-/p1

I tried to edit the /etc/fstab by placing an entry for my hda1 (because it does not exist):

#/dev/disk/by-uuid/4AOC26010C25E921   /media/disk    ntfs    defaults    0  0

where "4AOC26010C25E921" is the uuid of my /dev/hda1 revealed through blkid command.

Thinking this was enough, I rebooted, but in the boot log it says

mount: mounting /dev/disk/by-uuid/4AOC26010C25E921 on /media/disk failed: no such file or directory

I also tried to edit the /etc/init.d/local.sh first, putting in

mount -t ntfs /dev/disk/by-uuid/4AOC26010C25E921 /media/disk

but it did not work.

I removed the entry in local.sh and placed it instead in /etc/init.d/rcS, but still same boot log result after reboot.

Please help. Is there a mistake in my syntax? See im just a noob with no formal linux education, just knows how to read and follow instructions. thanks very much smile

Offline

#2 2013-05-21 18:56:45

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: How To Automount Local Disk at Boot In Slitaz 4?

Another simple way... On terminal try this command

echo root | su -c “mount /dev/hda1 /media/disk” &

or change your preferred command-line from quoted string.

If work put this line from /home/tux/.config/openbox/autostart.sh

Offline

#3 2013-05-21 21:52:24

Guest
Guest

Re: How To Automount Local Disk at Boot In Slitaz 4?

shintsan88 - I think there is an error on your entery. Here is a sample of mine:

  "UUID=cc8fbabb-0f59-46b3-bd8c-ab3ba840e0e5 /               ext2    errors=remount-ro 0       1"

try the following format and just change the UUID and mount point. Yours should be like this:

  "UUID=4AOC26010C25E921 /media/disk  ntfs defaults 0 0"

good luck!

#4 2013-05-22 00:12:23

shintsan88
Member
Registered: 2012-12-04
Posts: 17

Re: How To Automount Local Disk at Boot In Slitaz 4?

Oh man, this is a tough one! Thanks guys for all the help, unfortunately none works sad

@ mojo, gibor

I did a little reading on how to use the 'mount' command properly. So as a trial             Ive created a folder "Windows" in my home directory with user shintsan88 and just to test on a terminal,

echo root

su -c "mount /dev/hda1 /media/disk" &

right-clicking the '35gb volume', remains unmounted

then I tried

su -c "mount dev/hda1 /home/shintsan88/Windows" &                                                   

still nothing when I open /home/shintsan88/Windows. so I just tried straightforwardly,

mount dev/hda1 /home/shintsan88/Windows

the return was " mounting ..........failed. No such file or directory "

I dont understand...the folder Windows is right there. Am I missing something here?

Offline

#5 2013-05-22 00:14:50

shintsan88
Member
Registered: 2012-12-04
Posts: 17

Re: How To Automount Local Disk at Boot In Slitaz 4?

@ jp734

I tried fixing the syntax in fstab as you have suggested, but the boot log remains the same....so frustrating sad

thank you nonetheless smile

Offline

#6 2013-05-22 02:44:10

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: How To Automount Local Disk at Boot In Slitaz 4?

You error is in syntax of dev, less slash, try on terminal as root this command

mount /dev/hda1 /home/shintsan88/Windows

if work the complete string for autostart.sh is

echo | root su -c “mount /dev/hda1 /home/shintsan88/Windows” &

copy and paste or warnig at space and caps from word!!!

Offline

#7 2013-05-22 13:27:23

Guest
Guest

Re: How To Automount Local Disk at Boot In Slitaz 4?

Just curious. After re-reading your post, you said it gave you an error that says:

"/media/disk: No such file or directoy"

Did you create the folder "/media/disk" ?

#8 2013-05-23 12:50:59

shintsan88
Member
Registered: 2012-12-04
Posts: 17

Re: How To Automount Local Disk at Boot In Slitaz 4?

@ gibor

thanks again friend, I got the syntax now right just as you have advised, but in terminal, as root, I type

mount /dev/hda1 /home/shintsan88/Windows

the return is simply "mounting  ..... failed: Invalid Argument"

I dont know if something got broken in my Slitaz install or what sad

@jp734

i did try creating the folder /media/disk but when I try to mount the ntfs partition (/dev/hda1)by simply clicking the '3gb volume' in file manager, it gets mounted to a new folder, /media/disk-1

how about autofs? how do you use that in Slitaz?

ill tinker with pysdm later see if that works.

for now I'll just have to mount the ntfs volume first before i could play my ogg music files in DeadBeef.

Offline

#9 2013-05-23 13:39:57

Guest
Guest

Re: How To Automount Local Disk at Boot In Slitaz 4?

As the root user, in a terminal, try:  mount -t ntfs /dev/hda1 /mnt

If that works, put this into your fstab.

/dev/hda1 /mnt ntfs defaults 0 0

#10 2013-05-23 15:46:16

shintsan88
Member
Registered: 2012-12-04
Posts: 17

Re: How To Automount Local Disk at Boot In Slitaz 4?

@ fatmac

thank you friend, I tried it. the return now is

mount: mounting......failed: no such device

I tried also using the device's uuid,

mount -t ntfs UUID=4AOC26010C25E921 /mnt  and

mount -t ntfs /dev/disk/by-uuid/4AOC26010C25E921 /mnt

but the return is the same.

in gparted it is correctly identified as 35gb ntfs, /dev/hda1

pretty weird sad

Offline

#11 2013-05-23 16:30:18

gibor
Moderator
Registered: 2011-04-30
Posts: 1,067

Re: How To Automount Local Disk at Boot In Slitaz 4?

if you want a confirm of partition try on terminal this command

fdisk -l

Offline

#12 2013-05-23 19:25:35

Guest
Guest

Re: How To Automount Local Disk at Boot In Slitaz 4?

Likely what you thought was hda1 is sda1. smile

As gibor says above, that will confirm what the /dev is.

#13 2013-05-25 14:12:35

Guest
Guest

Re: How To Automount Local Disk at Boot In Slitaz 4?

Evidently SliTaz uses ntfs-3g not ntfs.

It has been on here before take a look here :-

http://forum.slitaz.org/topic/mount-command-returns-no-such-device#post-21282

HTH

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

Board footer

Powered by FluxBB
Modified by Visman

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