|
General Hardware General hardware related questions. |
|
Thread Tools | Display Modes |
|
|||
hard disk: avail 0 capacity 100% is it fine to use it like this?
in my new drive (for wich http://www.daemonforums.org/showthread.php?t=3422) I've made a special partition for a huge file I want to keep by itself and mount ro to avoid stupid mistakes and loose a 100G file with a "rm *" ).
I probably did some miscalculation, and the size is very tight. Windows copied the big file fine, and then complained there was no space left and did not put in there a 3+ M file. I compressed the file, which went down to < 1M and it could be copied. Now I have this with df: Code:
/dev/sd0i 100G 95.1G 0B 100% But is it fine to run a partition full like this or does it need some free space to work properly? (I remember Windows claiming something like 15% free space to do defragmenting, if I'm right you don't need that on unix, but maybe there something I don't know) (oh well, there's a lot I don't know). tks |
|
|||
As we've told you, some space is reserved for the superuser on Unix filesystems.. like EXT2 and FFS.
The Windows ext2 driver you're using obviously assumes the role of the superuser (..root) and has full access to the capacity of the partition. Just because df(1) on OpenBSD claims 0 bytes of available space, doesn't mean the disk is full.. and even if it was full.. nothing is harmed. If you're worried that the file was damaged during the copy, you could painfully attempt to hash the file with MD5 or SHA and compare them.. but it's more likely you're just on mental information overload.. don't worry.. you'll become familiar with it all eventually. |
|
|||
and by the way, the filesystem is really full I don't know how windows put that file in there, but then I removed it because it was broken and in OpenBSD cannot even save an empty vi file. Never mind, I'll keep that small file in another place, don't really want to re-format for a few M difference.
Also, I found out that Windows can mount only the first partition of my usb drive. I've seen on google, it seems to be normal behaviour for windows I had installed fedora on a spare partition in the box some time ago, I tried the usb drive there, and it mounts everything just fine Now, this is a bit off-topic. I'm using filezilla to transfer my files from windows to the new drive (I would have done it attaching the drive to windows, but as I said, it only mounts the first partition). Filezilla is very convenient, but is there a command-line tool to transfer a whole directory? I'v tried ncftp but would not work, maybe the directory is too big? I've seen this script here: http://www.unix.com/shell-programmin...here-last.html |
|
||||
Were you root at the time of your attempt? Note:
Quote:
Quote:
Last edited by jggimi; 16th June 2009 at 01:32 PM. |
|
|||
Quote:
Quote:
Just a few minutes ago I was transferring some more files with filezilla, and at a point the system hanged, and no way to get in even through ssh. Could only switch off the power. I was thinking to let this drive mount automatically at boot time, so I had already all the fstab entries, but then OpenBSD could not run fsck on them, so I was locked out until I commented out the corrisponding fstab entries (changing them to "noauto" would make no difference). I'll mount them manually from now on. This problem I had could not be filesystem-related, could it? Is filezilla so unstable? Well well, this was not the best start for my big drive... |
|
||||
Quote:
Quote:
|
|
|||
You could post the fstab entires here if you need us to review them, as for the crash during a file transfer (ftp or sftp?).. can you reproduce it? terminate X while testing this out.
Serial consoles on macppc are difficult.. but not impossible.. I remember reading about hardware upgrade called gPort/g4Port. They may be harder to acquire these days though. |
|
|||
Quote:
This is my fstab, just in case, as you see, now my big drive is noauto, to avoid automatic fsck on reboot in case of crash. Code:
/dev/wd0a / ffs rw 1 1 /dev/wd0f /home ffs rw,nodev,nosuid,softdep 1 2 /dev/wd0e /tmp ffs rw,nodev,nosuid,softdep 1 2 /dev/wd0g /usr ffs rw,nodev,softdep 1 2 /dev/wd0d /var ffs rw,nodev,nosuid,softdep 1 2 /dev/sd0i /home/myhome/skqs ext2fs ro,nodev,nosuid,noauto 1 2 /dev/sd0j /home/myhome/main ext2fs rw,nodev,nosuid,noauto 1 2 /dev/sd0k /home/myhome/media ext2fs rw,nodev,nosuid,noauto 1 2 /dev/sd1i /home/myhome/mnt msdos rw,nodev,nosuid,noauto 0 0 /dev/cd0a /home/myhome/cdrom cd9660 ro,noauto 0 0 |
|
||||
Quote:
Quote:
Quote:
From your fstab, there is no swap space defined. By default, if the "b" partition of the boot drive is defined as swap in the drive's disklabel, the OS will use that space as swap on boot, automatically, without an fstab entry. But only that boot drive's "b" partition. Other swap space must be defined in the fstab or added manually.In order to get a valid dump for analysis, swap space must be larger than physical memory. If your system runs out of swap space or physical RAM during normal operation, it will prevent new processes from starting, and may cause a hang for any process (userland or kernel) which requests additional memory. This could result in a hung system. The swapctl(8) and swapon(8) commands provide manual control. The top(8), vmstat(8), and systat(8) utilities can give an admin additional insight. Last edited by jggimi; 17th June 2009 at 12:03 PM. |
|
|||
Here is the minfree file (sorry I forgot to mention the name before):
Code:
-rw-r--r-- 1 root wheel 5B Mar 13 2008 minfree Code:
$ swapctl Device 512-blocks Used Avail Capacity Priority swap_device 5243616 0 5243616 0% 0 Code:
/dev/wd0d 2.9G 134M 2.7G 5% /var Quote:
ps: the crash happened late in the afternoon, so it is not likely related to the fsck.ext2 which started before eight in the morning: Code:
Jun 17 16:58:59 mini /bsd: WARNING: / was not properly unmounted Jun 17 16:58:58 mini savecore: no core dump It could have been that electricity has been cut for a while (there's a lot of refurbishing work going around in the building), but then why does the system reboot? Is it a default behaviour in OpenBSD? (It would make sense for a server for sure). Last edited by gosha; 17th June 2009 at 01:39 PM. |
|
||||
No dump was taken, or, there was a failure of a dump to disk when attempted by the kernel.
Your dmesg may have been retained in memory during reboot. If so, examine the output from dmesg(8) it to see if the dmesg contains any indicative kernel messages from the time of the reboot. Quote:
Quote:
|
|
|||
thanks jggimi
I remember that page, that's why I'm not allocating all the space until I'll need it. This is what I have now: Code:
/dev/sd0j 155G 79.2M 147G 0% /home/myhome/main /dev/sd0k 316G 28.1G 272G 9% /home/myhome/media /dev/sd0i 100G 95.1G -3.0M 100% /home/myhome/skqs sd0i was already finished before I went out, so less than 500G were left to be checked. Anyway, now everything seems to be normal. I've found out on Google, that if you put an ext2fs as rw in fstab, OpenBSD will attempt to check it at boot time. So, I will not put those lines in fstab, and maybe I'll put a mount command in rc.local (is it where it sould go to mount them just after booting?) |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Hard disk reliability | ephemera | General Hardware | 32 | 20th April 2010 10:17 AM |
Formatting Hard Disk Drive to UFS in OS X 10.5 | Turquoise88 | Other BSD and UNIX/UNIX-like | 1 | 7th March 2009 09:57 PM |
Hard disk bottle neck | deathsoul | FreeBSD General | 1 | 28th September 2008 10:44 AM |
Copy VCD film to hard disk | mfaridi | FreeBSD General | 4 | 5th June 2008 01:57 PM |
how to mount external hard disk ? | bsdnewbie999 | FreeBSD General | 6 | 27th May 2008 02:37 AM |