Show Posts
|
|
Pages: [1] 2
|
|
2
|
Linux Stuff / General Linux questions / 3TB USB drive, only 800GB in size after formatting.
|
on: November 12, 2011, 03:25:06 PM
|
|
I have connected a 2nd USB drive, it's a 3TB drive. After partitioning it and formatting it to ext2, it only shows as being 800GB in size. Any ideas if I am doing something wrong or if this is a bug?
Here are the various outputs I get:
root@sheeva:~# fdisk -l Note: sector size is 4096 (not 512)
Disk /dev/sda: 3000.5 GB, 3000592965632 bytes 255 heads, 63 sectors/track, 45600 cylinders Units = cylinders of 16065 * 4096 = 65802240 bytes Disk identifier: 0x7912ad63
Device Boot Start End Blocks Id System /dev/sda1 1 45600 2930255748 83 Linux
Disk /dev/sdb: 500.1 GB, 500107862016 bytes 255 heads, 63 sectors/track, 60801 cylinders Units = cylinders of 16065 * 512 = 8225280 bytes Disk identifier: 0x44fdfe06
Device Boot Start End Blocks Id System /dev/sdb1 1 60801 488384001 c W95 FAT32 (LBA)
------------------------------------------------------------------------------------------------------------ root@sheeva:/dev/disk/by-id# mkfs.ext2 /dev/sda1 mke2fs 1.41.3 (12-Oct-2008) Filesystem label= OS type: Linux Block size=4096 (log=2) Fragment size=4096 (log=2) 48930816 inodes, 195693025 blocks 9784651 blocks (5.00%) reserved for the super user First data block=0 Maximum filesystem blocks=0 5973 block groups 32768 blocks per group, 32768 fragments per group 8192 inodes per group Superblock backups stored on blocks: 32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208, 4096000, 7962624, 11239424, 20480000, 23887872, 71663616, 78675968, 102400000
Writing inode tables: done Writing superblocks and filesystem accounting information: done
This filesystem will be automatically checked every 20 mounts or 180 days, whichever comes first. Use tune2fs -c or -i to override. root@sheeva:/dev/disk/by-id#
----------------------------------------------------------------------------------------------
root@sheeva:/mnt# df Filesystem 1K-blocks Used Available Use% Mounted on rootfs 519168 253868 265300 49% / tmpfs 257816 0 257816 0% /lib/init/rw varrun 257816 292 257524 1% /var/run varlock 257816 0 257816 0% /var/lock udev 257816 32 257784 1% /dev tmpfs 257816 0 257816 0% /dev/shm tmpfs 257816 21680 236136 9% /var/cache/apt /dev/mmcblk0p1 15306620 1801832 12727244 13% /mnt/sd /dev/sdb1 480719056 388076716 68223140 86% /mnt/share1 /dev/sda1 770488156 159932 731189620 1% /mnt/share2 root@sheeva:/mnt#
---------------------------------------------------------------------------------------------
root@sheeva:/mnt# fdisk /dev/sda1 Note: sector size is 4096 (not 512) Device contains neither a valid DOS partition table, nor Sun, SGI or OSF disklabel Building a new DOS disklabel with disk identifier 0x3053b55f. Changes will remain in memory only, until you decide to write them. After that, of course, the previous content won't be recoverable.
The number of cylinders for this disk is set to 12181. There is nothing wrong with that, but this is larger than 1024, and could in certain setups cause problems with: 1) software that runs at boot time (e.g., old versions of LILO) 2) booting and partitioning software from other OSs (e.g., DOS FDISK, OS/2 FDISK) Warning: invalid flag 0x0000 of partition table 4 will be corrected by w(rite)
Command (m for help): p
Disk /dev/sda1: 801.5 GB, 801558630400 bytes 255 heads, 63 sectors/track, 12181 cylinders Units = cylinders of 16065 * 4096 = 65802240 bytes Disk identifier: 0x3053b55f
Device Boot Start End Blocks Id System
|
|
|
|
|
3
|
General Category / General Discussion / UPS for your plug.
|
on: February 10, 2010, 01:51:16 PM
|
|
I have my plug connected to a brand new APC550VA battery backup UPS (39.95 from BestBuy.com).
According to the specs of the UPS it will last up to 43 minutes when you have a 15" LCD and a Mac Mini running on it.
I was hoping that since my sheevaplug only draws ~5 watts that it would actually last longer.
Alas, not. At the 45 minute mark it proceeded to shut off. APC tech support is of no help at all.
Does anyone else have their plug connected to a UPS and if so, what brand, and have you tested how long it will run without power?
Thanks Kevin
|
|
|
|
|
5
|
General Category / General Discussion / Controlling a business phone system with your plug?
|
on: January 12, 2010, 08:13:05 PM
|
About 5 years ago I did some programming for a company that had an PC with an Intel ISDN phone card in it and the system handled multiple incomming phone lines and had the standard "Press 1 to talk to accounting" "Press 2 to leave a message" etc. The software could detect the phone buttons pressed and record messages etc. So I got thinking, does anyone make a similar device but USB based that you could connect to your plug and have a full blown phone system? I was googleing around and found the Dialogic Diva USB http://www.dialogic.com/products/tdm_boards/diva_client/Diva_ISDN_USB.htm, not sure if it does the same thing. It does come with Linux drivers, has anyone used it or know of something that does what I am asking about?  Thanks Kevin
|
|
|
|
|
10
|
General Category / General Discussion / Re: Introducing wpanel, an interactive shell for your plug in a browser and more...
|
on: January 05, 2010, 10:06:53 AM
|
|
Showing files and showing processes use the same mechanism, they open the directory and scan it for the files. So the only think that I can think of is there is a bug in my directory scanning code. It works for me with the default install so there must be some small difference with what you are running. I will add a bunch of debug prints to the output log file and hopefully together we can track that down. I will have a closer look at the code tonite and see if i can see anything wrong to start and then if not, add more debug code and post a new build.
Thanks! Kevin
|
|
|
|
|
11
|
General Category / General Discussion / Re: Introducing wpanel, an interactive shell for your plug in a browser and more...
|
on: January 04, 2010, 07:03:11 PM
|
|
The login form password is sent in the clear that's why I'd recommend using HTTPS, but once it is authenticated the first time then it saves the crypted version of the password to the cookie for the session. I could base64 encode or do some other type of encryption on it but since it is open-source anyone can see the decode function so anyone who really wants to get your password would be able to unless you used HTTPS.
Kevin
|
|
|
|
|
14
|
General Category / General Discussion / Introducing wpanel, an interactive shell for your plug in a browser and more...
|
on: January 04, 2010, 03:09:38 PM
|
I just posted all the code and some screenshots at : http://code.google.com/p/wpanel/I am familiar with anyterm and ajaxterm but frankly they were too complicated for me to install since I am a linux newbie. I decided to write my own. It is a single executable so installing it is as simple as compiling it and then just copying it into your cgi-bin folder. You can quickly view the various states of your plug by clicking on the various tabs along the top. You can also view the files on your plug as well as edit any text files on your plug right in the browser. There is also an interactive shell so you can run commands on your plug in any browser. Any feedback on it would be greatly appreciated! Thanks Kevin
|
|
|
|
|