DebianThis forum is for the discussion of Debian Linux.
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.
I have a NAS (DNS-325) where i installed debian squeeze on via this tutorial.
The funny thing is, i already installed it this way 2 years a go, had to reinstall (becaus i F* up trying stuff ;-) ) Then i got it to work, but dont remember how i solved it. Already spent a lot of hours trying to solve it.
But /etc/mtab shows the second partition of second hard drive /dev/sdb2 as mounted.
Yes, i know, but that line doesnt, give me a mounted device, i need to use the mount command, and when i look ate the /etc/mtab again, it looks like this, check last line.
That's not normal; it should properly save the changes you make to it. However, I'm not sure why it happens.
Silly question: are you sure you're saving the file properly after you edit it? BTW, when you say it's empty, you mean the file is completely blank or only the line for this partition has been removed? And one more thing, could you post your complete fstab file here?
Silly question: are you sure you're saving the file properly after you edit it? BTW, when you say it's empty, you mean the file is completely blank or only the line for this partition has been removed? And one more thing, could you post your complete fstab file here?
When i edit the fstab file, i save it and open it again, to see if it did save, so that one is true, it saves.
Its completely blank. Want to upload the file (fstab) but attachment(site) doesnt let me, but it realy compleetly empty, if i for example put in a compleetly wrong line in the fstab file on purpose, and i type mount -a , i get a error, [mntent]: line 1 in /etc/fstab is bad
So i think fstab is in the right location/ name.
Quote:
Originally Posted by veerain
See this hiero. It means it's already mounted. If you mount again it would show a new line displaying it in last line.
Did you checked for files and directories in /mnt/HD/HD_b2 before trying manual mount?
Yes
Code:
root@dlink:~# cd /mnt/HD/HD_b2
root@dlink:/mnt/HD/HD_b2# ls
root@dlink:/mnt/HD/HD_b2#
Then i do this
Code:
root@dlink:~# mount -t ext3 /dev/sdb2 /mnt/HD/HD_b2
After this i get
Code:
root@dlink:/mnt/HD/HD_b2# ls
Data dir1 Untitled.png dir2 temp dir3 dir4
root@dlink:/mnt/HD/HD_b2#
This is the content of my second drive.
Note: i changed real dir names here to dir1,dir2,dir3,dir4
Wild guess, you may be trying to mount as a user, so you need user permission in the options.
/etc/fstab
/dev/sdb2 /mnt/HD/HD_b2 ext3 rw,user,errors=remount-ro 0 1
Wild guess, you may be trying to mount as a user, so you need user permission in the options.
/etc/fstab
/dev/sdb2 /mnt/HD/HD_b2 ext3 rw,user,errors=remount-ro 0 1
This also didnt work, add your line to fstab, checked if it saved, mount -a, didnt do any thing, also reboot didnt, after reboot fstab was empty again.
Is there a work around that i just use the following mount command at boot? putting it in a script some where?
mount -t ext3 /dev/sdb2 /mnt/HD/HD_b2
because above command works after boot, on the command line, then the partition is mounted
Edit:
I have edit
/boot/linuxrc
i put following line in it
/etc/init.d/mediaservers.sh
in mediaservers.sh i put the following line
su root -c "mount -t ext3 /dev/sdb2 /mnt/HD/HD_b2"
(mediaservers.sh is were i start program's)
now after a reboot the partition is mounted.....
But can i call this a solve? (for this topic) because it solved it for me
When i edit the fstab file, i save it and open it again, to see if it did save, so that one is true, it saves.
Its completely blank. Want to upload the file (fstab) but attachment(site) doesnt let me, but it realy compleetly empty, if i for example put in a compleetly wrong line in the fstab file on purpose, and i type mount -a , i get a error, [mntent]: line 1 in /etc/fstab is bad
So i think fstab is in the right location/ name.
I'm surprised your system even boots with a blank fstab file. Could you post the output of the following command?:
Code:
cat /etc/fstab
Last edited by Hungry ghost; 02-05-2015 at 11:33 AM.
in order to run somthing els then the standaard browser, i installed fun_plug , this comes with a file (fun_plug) that you put on your root of you NAS to started
Fun_plug allows the user to start additional programs and tools on the NAS. A Berlin-based developer named “Fonz” created a package called “ffp” (Fonz fun_plug), which includes the script and some extra software which can be invoked by fun_plug.
After i installed Fonz fun_plug, i used this to install debian, this requered a other fun_plug file on my harddisk. After this i updated it to Debian 7.
I totally forgot about that file (fun_plug), this file is responsible for the problems i had, because it rm fstab, and makes a empty fstab.
Code:
#!/bin/sh
# Root DISK1
export DISK1=/mnt/HD/HD_a2
export DISTDIR=squeeze
cd $DISK1
mount --bind $DISK1 $DISTDIR$DISK1
mount --bind / $DISTDIR/mnt/root
mount --bind /dev $DISTDIR/dev
mount --bind /sys $DISTDIR/sys
#mount --bind /sys/crfs $DISTDIR/sys/crfs
#mount --bind /web $DISTDIR/web
mount --bind /proc $DISTDIR/proc
cp -f /proc/mounts $DISTDIR/etc/mtab
rm -f $DISTDIR/etc/fstab
touch $DISTDIR/etc/fstab
cp -f /etc/resolv.conf $DISTDIR/etc
hostname >$DISTDIR/etc/hostname
cp -f /etc/hosts $DISTDIR/etc
$DISK1/$DISTDIR/boot/chroot $DISK1/$DISTDIR /boot/linuxrc
so problem found.... sorry i am new at this.(yea a newbie)
for
root@dlink:/etc/openvpn#
I am trying to get openvpn to work, so after your question, i run your command, while i was busy with openvpn, thats why you see me in that dir.
Distribution: Debian Testing, Stable, Sid and Manjaro, Mageia 3, LMDE
Posts: 2,628
Rep:
Did you install nas from that site or from the Wheezy repo?
While this "fun_plug" sounds interesting it would be a better policy to just use packages from the Debian repos. This will give you less trouble and allow you to learn in an unbroken system.
On the other hand;
A> it is your box
B> you learn a lot in a broken system and it is more exciting
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.