The Official *nix Thread
- wanye
- Baaaaaa!

- Posts: 3047
- Joined: Tue Sep 07, 2004 12:46 pm 0
- PSN: wanye_m
- Location: nottingham
- Contact:
Re: The Official *nix Thread
yeah, got great reviews, and theres tons of support/hacks available for it. only problem is i need to wait till next week for it as i'm too tight to pay for faster delivery...
(also got raped for a 1gb ddr sodimm as my laptop doesnt like ddr2 apparently. gah!)
(also got raped for a 1gb ddr sodimm as my laptop doesnt like ddr2 apparently. gah!)
- RageMatrix
- Baaaaaaa!

- Posts: 5515
- Joined: Fri May 10, 2002 12:52 pm 0
- XBL Gamertag: Jon256
- Location: East Sussex
Re: The Official *nix Thread
In case anyone wants to do something similar...RageMatrix wrote:Backups.
I've got our shiny new Samba server (well, not really shiny or new - I built it out of bits from our storeroom and threw in a 500GB drive). Anyway....I need to backup the Samba share to an external drive once a month. This bit is easy. The hard bit is that the boss wants incremental daily backups of files that have changed in this directory tree to be copied to a daily sub-directory named with todays date on the external drive.
Can I use rdiff-backup for this? Or something else? Or some sort of scripting? The directory struture is rather complex.
Code: Select all
#!/bin/sh
DAY=`date +%F`
BACKUP_TARGET=/media/LaCie/BACKUP
find /home/sambashare/ -type f -mtime -1 -print > ~/FILE-LIST.tmp
mkdir ${BACKUP_TARGET}/backup-${DAY}
for filename in $(cat ~/FILE-LIST.tmp)
do
DIRECTORY=${filename%/*}
mkdir -p ${BACKUP_TARGET}/backup-${DAY}${DIRECTORY}
cp -a "$filename" ${BACKUP_TARGET}/backup-${DAY}${DIRECTORY}/
done
mv ~/FILE-LIST.tmp ${BACKUP_TARGET}/backup-$backup${DAY}/FILE-LIST.tmp
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
Re: The Official *nix Thread
I bought one of these and I'm having problems - I'm hoping someone else here has a good suggestion.wanye wrote:if anyone is looking for a cheap media server/NAS, then ebuyer are doing 320gb buffalo linkstations for £50
http://www.ebuyer.com/product/139061
you can drop in a larger sata drive (or plug in a usb external drive) and flash it with linux, so you can run twonky/slimserver/mediatomb/torrent client/etc and free up your pc for more fun things
When I connect it to my network, the other machines on the network can't get a network connection at all. I'd expected to connect it, boot up, and have the LinkStation pick up a DHCP address which I could then hunt down. Instead when it's plugged in my other machines refuse to talk to the network at all - even if they've already got an address from DHCP or statically assigned. If I unplug the LinkStation everything's back to normal.
When it's plugged in I can't get to anything. I can't ping boxes that are normally pingable, I can't get to my routers config screen, I can't get a new DHCP lease and I certainly can't connect to the internet. As soon as I remove the connection everything's back again. I've tried a different ethernet cable, but that had no effect.
I'm running a Linux-only house here, so although I looked at the manual, the supplied Windows software won't help me. I suspect that this isn't a Linux-specific issue though. And if it is Linux-specific... well, just try Googling for "LinkStation Linux" or some similar combination, and all you get are links about alternative firmwares.
So, anyone got any thoughts or suggestions?
Re: The Official *nix Thread
Yikes that sounds a bit mad. I ran the software in an XP VMware image I have, and when it connected it appeared the LinkStation had taken an IP address and it's network settings from my DHCP server as you'd expect. I don't know if the software did anything under the covers to make this happen though. Clutching at straws, have you tried connecting the LinkStation to a different port on your switch/hub or even into a different switch/hub ?xav wrote:I bought one of these and I'm having problems - I'm hoping someone else here has a good suggestion.wanye wrote:if anyone is looking for a cheap media server/NAS, then ebuyer are doing 320gb buffalo linkstations for £50
http://www.ebuyer.com/product/139061
you can drop in a larger sata drive (or plug in a usb external drive) and flash it with linux, so you can run twonky/slimserver/mediatomb/torrent client/etc and free up your pc for more fun things
When I connect it to my network, the other machines on the network can't get a network connection at all. I'd expected to connect it, boot up, and have the LinkStation pick up a DHCP address which I could then hunt down. Instead when it's plugged in my other machines refuse to talk to the network at all - even if they've already got an address from DHCP or statically assigned. If I unplug the LinkStation everything's back to normal.
When it's plugged in I can't get to anything. I can't ping boxes that are normally pingable, I can't get to my routers config screen, I can't get a new DHCP lease and I certainly can't connect to the internet. As soon as I remove the connection everything's back again. I've tried a different ethernet cable, but that had no effect.
I'm running a Linux-only house here, so although I looked at the manual, the supplied Windows software won't help me. I suspect that this isn't a Linux-specific issue though. And if it is Linux-specific... well, just try Googling for "LinkStation Linux" or some similar combination, and all you get are links about alternative firmwares.
So, anyone got any thoughts or suggestions?
Tried sniffing the network to see what's going on (or not as the case may be) ?
Re: The Official *nix Thread
Progress of sorts. I tried it on a different port and a different switch, still with the same problems. It's worth noting that the second switch is plugged into the first - so either way the packets end up passing through the first one.t0ne wrote:Yikes that sounds a bit mad. I ran the software in an XP VMware image I have, and when it connected it appeared the LinkStation had taken an IP address and it's network settings from my DHCP server as you'd expect. I don't know if the software did anything under the covers to make this happen though. Clutching at straws, have you tried connecting the LinkStation to a different port on your switch/hub or even into a different switch/hub ?
Tried sniffing the network to see what's going on (or not as the case may be) ?
Finally I plugged it directly into a port on my router (the stock one supplied by Be), and after restarting the LinkStation I could see it in the router's config screen, identify what DHCP address it had been given, and connect to its web interface.
So it looks like the problem might be that it doesn't like my switch for some reason. Given that I've plugged all manner of other machines into this switch with no problems, I'm not overly impressed. I can leave it plugged into the router for now, but whereas I wasn't interested in replacing the stock firmware before, now it's looking like a more interesting proposition.
- Dungeon-Dave
- Baaaaaa!

- Posts: 3925
- Joined: Thu Aug 04, 2005 12:01 pm 0
- Location: UK
- Contact:
Re: The Official *nix Thread
My last laptop had an onboard 10/100 RealTek NIC and worked fine when connected to my cheapo switch at home but had issues at work, where all switches and hubs are Netgear. I eventually worked out that it'd negotiate a 100M connection easily, but the further away from the switches, the more unstable the connection would be. Forcing it to 10M meant a stable connection no matter how far from any switch/hub I was.xav wrote:So it looks like the problem might be that it doesn't like my switch for some reason. Given that I've plugged all manner of other machines into this switch with no problems, I'm not overly impressed.
I've since heard that certain makes of kit don't play nicely with each other, but not sure of what combinations do/don't work; the RealTek is the only card that has given me issues, and I've heard people both praise (works under any OS out of the box) and curse them (cheap shit) in equal measures. I know server-grade PCI Intel NICs were added to our servers rather than use the onboard NICs, but don't know if the onboard ones clash with our Netgear switchen.
Do you know what make/model is in the NAS?
Re: The Official *nix Thread
I had problems with a nice Cisco switch I had acquired and one type of ethernet-over-the-mains adapters I had. The high-speed adapters were fine, but the cheaper low-speed ones would cause the switch to detect errors after a couple of hours and it would disable the port. Drove me mad until I thought to connect the management console to the switch and have a look at what was going on. Both types of adapters were by the same manufacturer and both types worked fine with my cheapo Netgear switches. In fact they worked fine even if they were connected to the Cisco switch via a Netgear switch, problems only occurred when they were connected directly.
- wanye
- Baaaaaa!

- Posts: 3047
- Joined: Tue Sep 07, 2004 12:46 pm 0
- PSN: wanye_m
- Location: nottingham
- Contact:
Re: The Official *nix Thread
give the "steviewonder" firmware a try. its a recent stock buffalo firmware (translated japanese version IIRC) but with some of the features of the new/improved linkstations (ie torrent and twonky modules installed)xav wrote:whereas I wasn't interested in replacing the stock firmware before, now it's looking like a more interesting proposition.
http://methanoid.blogspot.com/2009/02/l ... ation.html
the latest version can be found here: http://www.mediafire.com/?dwl4o2rmljw
- RageMatrix
- Baaaaaaa!

- Posts: 5515
- Joined: Fri May 10, 2002 12:52 pm 0
- XBL Gamertag: Jon256
- Location: East Sussex
Re: The Official *nix Thread
Finally got around to installing a new secondary 500GB hard drive in my Linux server. I can't get it to mount via /etc/fstab, though. Here is what I did: -
1. Install physical drive (obv.)
2. Run fdisk /dev/sdb and create a new primary partition (options n, p, 1 respectively)
3. I can see the partition in fdisk by using the command p.
4. Exit fdisk and format as ext3 using mkfs -t ext2 -j /dev/sdb1
5. Add entry into /etc/fstab:- /dev/sdb1 /mnt/sdb1 ext3 default 2 1
6. mkdir /mnt/sdb1
When I run "mount /mnt/sdb1" I get error: -
But when I mount it manually it works: -
What am I doing wrong here? Using mount simply gets all it's information from the fstab entry, so something is wrong there, but as far as I know, I've formatted it with the correct filesystem type of ext3.
1. Install physical drive (obv.)
2. Run fdisk /dev/sdb and create a new primary partition (options n, p, 1 respectively)
3. I can see the partition in fdisk by using the command p.
4. Exit fdisk and format as ext3 using mkfs -t ext2 -j /dev/sdb1
5. Add entry into /etc/fstab:- /dev/sdb1 /mnt/sdb1 ext3 default 2 1
6. mkdir /mnt/sdb1
When I run "mount /mnt/sdb1" I get error: -
Code: Select all
[root@localhost mnt]# mount /mnt/sdb1
mount: wrong fs type, bad option, bad superblock on /dev/sdb1,
missing codepage or helper program, or other error
In some cases useful info is found in syslog - try
dmesg | tail or so
[root@localhost mnt]#
Code: Select all
[root@localhost mnt]# mount -t ext3 /dev/sdb1 /mnt/sdb1
[root@localhost mnt]# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/mapper/VolGroup01-LogVol00
110G 90G 15G 87% /
/dev/sda1 190M 22M 159M 12% /boot
tmpfs 124M 0 124M 0% /dev/shm
/dev/sdb1 459G 199M 435G 1% /mnt/sdb1
[root@localhost mnt]# umount /mnt/sdb1/
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
- disciple
- Sheepie Whore

- Posts: 13941
- Joined: Mon Oct 27, 2003 11:33 pm 0
- XBL Gamertag: LiberMentis
- PSN: Prime_Heretic
- Location: Greenfield
- Contact:
Re: The Official *nix Thread
defaultsRageMatrix wrote: 5. Add entry into /etc/fstab:- /dev/sdb1 /mnt/sdb1 ext3 default 2 1
PS4 : Prime_Heretic
Steam: bitstorm
Elite Dangerous: Cmdr Britain
Steam: bitstorm
Elite Dangerous: Cmdr Britain
- RageMatrix
- Baaaaaaa!

- Posts: 5515
- Joined: Fri May 10, 2002 12:52 pm 0
- XBL Gamertag: Jon256
- Location: East Sussex
Re: The Official *nix Thread
Doh!disciple wrote:defaultsRageMatrix wrote: 5. Add entry into /etc/fstab:- /dev/sdb1 /mnt/sdb1 ext3 default 2 1
...thanks
XBox Gamertag: Jon256
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
Wii Code: 4849 1090 9042 6725
"Wrapped in metal, wrapped in ivy"
The Official UNIX/Linux Thread
- stealthbanana
- Baaaaaa!

- Posts: 2805
- Joined: Wed Nov 09, 2005 11:59 pm 0
- Location: Over Here.
Re: The Official *nix Thread
Talking of fstab, I was not a fan of using UUID in fstab when ubuntu switched over, now having used it, I think it is a great idea if you always want a certain hotplug drive mounted at a certain place, also great with hotpluggable stuff as grub uses it.
Anyway. Just out of interest, when people get a new install, what are the packages that you immediately install and wish that your distro of choice would save you the bother and have them as standard?
Me, I install midnight commander, and as I use ubuntu, I get rid of nano as mc defaults to nano if it is installed on ubuntu rather than the oh so simple an perfectly adequate built in editor. Oh and htop, like top but better. sl is another, stands for steam locomotive. If you mistype ls as sl you get an ascii steam locomotive across your screen.
Any others?
Anyway. Just out of interest, when people get a new install, what are the packages that you immediately install and wish that your distro of choice would save you the bother and have them as standard?
Me, I install midnight commander, and as I use ubuntu, I get rid of nano as mc defaults to nano if it is installed on ubuntu rather than the oh so simple an perfectly adequate built in editor. Oh and htop, like top but better. sl is another, stands for steam locomotive. If you mistype ls as sl you get an ascii steam locomotive across your screen.
Any others?
Not long now before lollipop men are called Darren
- JQW
- Baaaaa!

- Posts: 1186
- Joined: Thu Feb 22, 2007 12:23 pm 0
- Location: Ripon, where nothing ever happens.
Re: The Official *nix Thread
I wish UUID's existed some years ago, they would have saved me some terrible grief when some device nodes changed after a kernel upgrade.stealthbanana wrote:Talking of fstab, I was not a fan of using UUID in fstab when ubuntu switched over, now having used it, I think it is a great idea if you always want a certain hotplug drive mounted at a certain place, also great with hotpluggable stuff as grub uses it.
Re: The Official *nix Thread
Unfortunately, however, they do cause problems if you are in the habit of doing an occasional "dd" of one drive in a machine to another drive in the same machine. I do this from time to time on a couple of servers I look after, simply so that if the main drive dies when I'm not there, they can swap the drive cables and be up and running in a few minutes.stealthbanana wrote:Talking of fstab, I was not a fan of using UUID in fstab when ubuntu switched over, now having used it, I think it is a great idea if you always want a certain hotplug drive mounted at a certain place, also great with hotpluggable stuff as grub uses it.
Unfortunately if you "dd" one drive to the other, the UUID gets copied as well and it's a bit of a lottery which drive the machine will boot from - as I found out when I spent ages doing updates culminating in a reboot, then happily proceeded to work on the rebooted machine for a while before realising that it still wanted the same updates to be done, because it had booted from the other drive.
Not a lot really. I usually go with Ubuntu these days, for which the big omission (understandably) is openssh-server. I usually stick htop and build-essential on there too. For a desktop machine I install ubuntu-restricted-extras as a quick and easy way to get most of the main codecs and plugins that otherwise can be a pain to install. For my own machines I stick inkscape on, and scribus if and when I need to do some DTP work.stealthbanana wrote:Anyway. Just out of interest, when people get a new install, what are the packages that you immediately install and wish that your distro of choice would save you the bother and have them as standard?
I used to put Amarok on for anyone who wants more than a simple audio player, but I don't like the UI changes with version 2, and they've removed 1.4 from the Ubuntu repositories. I've looked at numerous alternatives, but I've yet to find anything that works well for me. I'm currently making do with Songbird as it does have some rather nice plug-ins, but I'm not a fan of the iTunes-style interface for getting at my music.
- stealthbanana
- Baaaaaa!

- Posts: 2805
- Joined: Wed Nov 09, 2005 11:59 pm 0
- Location: Over Here.
Re: The Official *nix Thread
Same here, not just the UI, but almost all the functionality I liked has gone. Seems to be the new KDE paradigm. Make it look nice but remove all the features people used. I have kinda switched to Exaile which does most the stuff I want.xav wrote:
I used to put Amarok on for anyone who wants more than a simple audio player, but I don't like the UI changes with version 2, and they've removed 1.4 from the Ubuntu repositories. I've looked at numerous alternatives, but I've yet to find anything that works well for me. I'm currently making do with Songbird as it does have some rather nice plug-ins, but I'm not a fan of the iTunes-style interface for getting at my music.
Not long now before lollipop men are called Darren
