You are not logged in.
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 
Offline
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
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!
Oh man, this is a tough one! Thanks guys for all the help, unfortunately none works 
@ 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
@ jp734
I tried fixing the syntax in fstab as you have suggested, but the boot log remains the same....so frustrating
thank you nonetheless 
Offline
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
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" ?
@ 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 
@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
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
@ 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 
Offline
if you want a confirm of partition try on terminal this command
fdisk -l
Offline
Likely what you thought was hda1 is sda1. 
As gibor says above, that will confirm what the /dev is.
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
[ Generated in 0.017 seconds, 7 queries executed - Memory usage: 1.55 MiB (Peak: 1.77 MiB) ]