macsat.com OpenWrt and ASUS WL Forum
December 04, 2008, 02:52:54 AM *
Welcome, Guest. Please login or register.
Did you miss your activation email?
Login with username, password and session length
News: Back to macsat.com
 
   Home   Help Search Login Register  
Pages: [1]   Go Down
  Print  
Author Topic: WL-HDD Hard Drive Space Problem  (Read 4481 times)
0 Members and 1 Guest are viewing this topic.
cmoser
Newbie
*
Offline Offline

Posts: 2


View Profile
« on: September 28, 2005, 11:09:30 AM »

I have a WL-HDD with a 60 GB hard drive, yet only about 62 MB appear to be accessible (see the following):

[cmhome@CMHOME /]$ fdisk -l

Disk /dev/ide/host0/bus0/target0/lun0/disc: 60.0 GB, 60060155904 bytes
255 heads, 63 sectors/track, 7301 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                Device Boot    Start       End    Blocks   Id  System
/dev/ide/host0/bus0/target0/lun0/part1               1        7280    58476568+  83  Linux
/dev/ide/host0/bus0/target0/lun0/part2            7281        7301      168682+  82  Linux swap

[cmhome@CMHOME /]$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 2944      2944         0 100% /
/dev/discs/disc0/part1    62193     57817      1165  98% /opt


[cmhome@CMHOME /]$ free
              total         used         free       shared      buffers
  Mem:        13948        12732         1216            0         1148
 Swap:       168672         1964       166708
Total:       182620        14696       167924

Is there anything that can be done to free up the remaining space? At present I can neither upload files >1 MB nor install larger packages. I use ProFTP as FTP server and I'm a relative newbie to Linux.

Many thanks in advance.

Regards

Carl Moser
Logged
david07
Jr. Member
**
Offline Offline

Posts: 76


View Profile
« Reply #1 on: September 28, 2005, 14:11:53 PM »

Check in /opt/var/log
Logged
cmoser
Newbie
*
Offline Offline

Posts: 2


View Profile
« Reply #2 on: October 04, 2005, 08:49:00 AM »

Thanks. But this doesn't help, unfortunately. All I see in /opt/var/log is smbd.log and thttpd.log and none of these log files gives me a hint to why there is a space restriction.

Regards

Carl
Logged
oriarte
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #3 on: January 16, 2007, 11:48:35 AM »

hi, does anyone have a solution to this? i have a very similar issue with a WL-HDD and a 40GB hdd only showing 9gb.

[admin@mediadrive log]$ fdisk -l

Disk /dev/ide/host0/bus0/target0/lun0/disc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                                Device Boot    Start       End    Blocks   Id  System
/dev/ide/host0/bus0/target0/lun0/part1               1        1217     9775521   83  Linux
/dev/ide/host0/bus0/target0/lun0/part2            1218        1279      498015   82  Linux swap

[admin@mediadrive log]$ df
Filesystem           1k-blocks      Used Available Use% Mounted on
/dev/root                 3008      3008         0 100% /
/dev/discs/disc0/part1   9621848   9621844         0 100% /opt

[admin@mediadrive log]$ free
              total         used         free       shared      buffers
  Mem:        13932        12296         1636            0          920
 Swap:       498004         2896       495108
Total:       511936        15192       496744

cheers
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #4 on: January 16, 2007, 14:14:01 PM »


Sounds quite strange.

did you try to connect the drive to a computer directly and check out what that reports back regarding size?
Logged
oriarte
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #5 on: January 17, 2007, 16:48:55 PM »

not yet (i wasn't aware i could!) i assume i'd need a linux box to read an EXT3 formatted disc? i think i've got a knoppix disk around here somewhere... i'll try it and report back.

oriarte
Logged
oriarte
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #6 on: January 17, 2007, 16:55:00 PM »

ahhh sorry the WL-HDD can't be connected directly to a computer and i don't have a 2.5" hdd adaptor so that isn't an option Sad

any other ideas?
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #7 on: January 18, 2007, 09:05:02 AM »


You could try to check out what the linux kernel reports when it registers the harddrive.

Try RIGHT after boot, to do a :
Code:
logread


If you cant really find what you need to look for, you could:
Code:
logread > /tmp/logfile.log

And then post the contents of the file /tmp/logfile.log here.
Logged
oriarte
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #8 on: January 18, 2007, 11:22:07 AM »

well we have just about reached the limits of my linux knowledge... i'm afraid logread didn't do anything but i did find this.

Jan  1 00:00:02 syslogd started: BusyBox v1.1.3
Jan  1 00:00:02 kernel: Setting the PFC value as 0x15
Jan  1 00:00:02 kernel: Determined physical RAM map:
Jan  1 00:00:02 kernel:  memory: 01000000 @ 00000000 (usable)
Jan  1 00:00:02 kernel: On node 0 totalpages: 4096
Jan  1 00:00:02 kernel: zone(0): 4096 pages.
Jan  1 00:00:02 kernel: zone(1): 0 pages.
Jan  1 00:00:02 kernel: zone(2): 0 pages.
Jan  1 00:00:02 kernel: Kernel command line: root=/dev/mtdblock2 noinitrd init=/linuxrc console=ttyS0,115200
Jan  1 00:00:02 kernel: CPU: BCM4710 rev 0 at 125 MHz
Jan  1 00:00:02 kernel: !unable to setup serial console!
Jan  1 00:00:02 kernel: Calibrating delay loop... 82.94 BogoMIPS
Jan  1 00:00:02 kernel: Memory: 13860k/16384k available (1776k kernel code, 2524k reserved, 248k data, 72k init, 0k highmem)
Jan  1 00:00:02 kernel: Dentry cache hash table entries: 2048 (order: 2, 16384 bytes)
Jan  1 00:00:02 kernel: Inode cache hash table entries: 1024 (order: 1, 8192 bytes)
Jan  1 00:00:02 kernel: Mount-cache hash table entries: 512 (order: 0, 4096 bytes)
Jan  1 00:00:02 kernel: Buffer-cache hash table entries: 1024 (order: 0, 4096 bytes)
Jan  1 00:00:02 kernel: Page-cache hash table entries: 4096 (order: 2, 16384 bytes)
Jan  1 00:00:02 kernel: Checking for 'wait' instruction...  unavailable.
Jan  1 00:00:02 kernel: POSIX conformance testing by UNIFIX
Jan  1 00:00:02 kernel: PCI: Fixing up bus 0
Jan  1 00:00:02 kernel: PCI: Fixing up bridge
Jan  1 00:00:02 kernel: PCI: Fixing up bus 1
Jan  1 00:00:02 kernel: Linux NET4.0 for Linux 2.4
Jan  1 00:00:02 kernel: Based upon Swansea University Computer Society NET3.039
Jan  1 00:00:02 kernel: Initializing RT netlink socket
Jan  1 00:00:02 kernel: Starting kswapd
Jan  1 00:00:02 kernel: Journalled Block Device driver loaded
Jan  1 00:00:02 kernel: devfs: v1.12c (20020818) Richard Gooch (rgooch@atnf.csiro.au)
Jan  1 00:00:02 kernel: devfs: boot_options: 0x1
Jan  1 00:00:02 kernel: NTFS driver v1.1.22 [Flags: R/O]
Jan  1 00:00:02 kernel: pty: 256 Unix98 ptys configured
Jan  1 00:00:02 kernel: Serial driver version 5.05c (2001-07-08) with MANY_PORTS SHARE_IRQ SERIAL_PCI enabled
Jan  1 00:00:02 kernel: HDLC line discipline: version $Revision$, maxframe=4096
Jan  1 00:00:02 kernel: N_HDLC line discipline registered.
Jan  1 00:00:02 kernel: loop: loaded (max 8 devices)
Jan  1 00:00:02 kernel: PPP generic driver version 2.4.2
Jan  1 00:00:02 kernel: PPP Deflate Compression module registered
Jan  1 00:00:02 kernel: PPP BSD Compression module registered
Jan  1 00:00:02 kernel: MPPE/MPPC encryption/compression module registered
Jan  1 00:00:02 kernel:  Amd/Fujitsu Extended Query Table v1.1 at 0x0040
Jan  1 00:00:02 kernel: Physically mapped flash: Swapping erase regions for broken CFI table.
Jan  1 00:00:02 kernel: number of CFI chips: 1
Jan  1 00:00:02 kernel: Flash device: 0x400000 at 0x1fc00000
Jan  1 00:00:02 kernel: Physically mapped flash: squashfs filesystem found at block 945
Jan  1 00:00:02 kernel: Creating 5 MTD partitions on "Physically mapped flash":
Jan  1 00:00:02 kernel: 0x00000000-0x00040000 : "pmon"
Jan  1 00:00:02 kernel: 0x00040000-0x003f0000 : "linux"
Jan  1 00:00:02 kernel: 0x000ec4e4-0x003f0000 : "rootfs"
Jan  1 00:00:02 kernel: 0x003f0000-0x00400000 : "nvram"
Jan  1 00:00:02 kernel: 0x003e0000-0x003f0000 : "flashfs"
Jan  1 00:00:02 kernel: sflash: chipcommon not found
Jan  1 00:00:02 kernel: NET4: Linux TCP/IP 1.0 for NET4.0
Jan  1 00:00:02 kernel: IP Protocols: ICMP, UDP, TCP
Jan  1 00:00:02 kernel: IP: routing cache hash table of 512 buckets, 4Kbytes
Jan  1 00:00:02 kernel: TCP: Hash tables configured (established 1024 bind 2048)
Jan  1 00:00:02 kernel: ip_conntrack version 2.1 (128 buckets, 1024 max) - 344 bytes per conntrack
Jan  1 00:00:02 kernel: ip_conntrack_pptp version 1.9 loaded
Jan  1 00:00:02 kernel: ip_nat_pptp version 1.5 loaded
Jan  1 00:00:02 kernel: ip_tables: (C) 2000-2002 Netfilter core team
Jan  1 00:00:02 kernel: ipt_time loading
Jan  1 00:00:02 kernel: NET4: Unix domain sockets 1.0/SMP for Linux NET4.0.
Jan  1 00:00:02 kernel: IPv6 v0.8 for NET4.0
Jan  1 00:00:02 kernel: IPv6 over IPv4 tunneling driver
Jan  1 00:00:02 kernel: NET4: Ethernet Bridge 008 for NET4.0
Jan  1 00:00:02 kernel: 802.1Q VLAN Support v1.7 Ben Greear <greearb@candelatech.com>
Jan  1 00:00:02 kernel: All bugs added by David S. Miller <davem@redhat.com>
Jan  1 00:00:02 kernel: FAT: bogus logical sector size 5376
Jan  1 00:00:02 kernel: FAT: bogus logical sector size 5376
Jan  1 00:00:02 kernel: NTFS: Unable to set blocksize 512.
Jan  1 00:00:02 kernel: VFS: Mounted root (squashfs filesystem) readonly.
Jan  1 00:00:02 kernel: Mounted devfs on /dev
Jan  1 00:00:02 kernel: Freeing unused kernel memory: 72k freed
Jan  1 00:00:02 kernel: Warning: unable to open an initial console.
Jan  1 00:00:02 kernel: Algorithmics/MIPS FPU Emulator v1.5
Jan  1 00:00:02 kernel: Uniform Multi-Platform E-IDE driver Revision: 6.31
Jan  1 00:00:02 kernel: ide: Assuming 33MHz system bus speed for PIO modes; override with idebus=xx
Jan  1 00:00:02 kernel: PDC20265: IDE controller on PCI bus 01 dev 08
Jan  1 00:00:02 kernel: PCI: Enabling device 01:01.0 (0004 -> 0007)
Jan  1 00:00:02 kernel: PDC20265: chipset revision 2
Jan  1 00:00:02 kernel: PDC20265: not 100% native mode: will probe irqs later
Jan  1 00:00:02 kernel: PDC20265: ROM enabled at 0x000d0000
Jan  1 00:00:02 kernel: PDC20265: (U)DMA Burst Bit DISABLED Primary PCI Mode Secondary PCI Mode.
Jan  1 00:00:02 kernel: PDC20265: FORCING BURST BIT 0x00 -> 0x01 ACTIVE
Jan  1 00:00:02 kernel: MA at 0x0140-0x0147, BIOS settings: hda:DMA, hdb:DMA
Jan  1 00:00:02 kernel:     ide1: BM-DMA at 0x0148-0x014f, BIOS settings: hdc:pio, hdd:DMA
Jan  1 00:00:02 kernel: hda: HTS541040G9AT00, ATA DISK drive
Jan  1 00:00:02 kernel: ide2: ports already in use, skipping probe
Jan  1 00:00:02 kernel: ide3: ports already in use, skipping probe
Jan  1 00:00:02 kernel: ide4: ports already in use, skipping probe
Jan  1 00:00:02 kernel: ide5: ports already in use, skipping probe
Jan  1 00:00:02 kernel: ide0 at 0x100-0x107,0x10a on irq 6
Jan  1 00:00:02 kernel: blk: queue c00222e8, I/O limit 4095Mb (mask 0xffffffff)
Jan  1 00:00:02 kernel: hda: 78140160 sectors (40008 MB) w/7539KiB Cache, CHS=4864/255/63, UDMA(33)
Jan  1 00:00:02 kernel: Partition check:
Jan  1 00:00:02 kernel:  /dev/ide/host0/bus0/target0/lun0: p1 p2
Jan  1 00:00:02 kernel: eth0: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
Jan  1 00:00:02 udhcpc[39]: Lease of 192.168.1.10 obtained, lease time 864000
Jan  1 00:00:02 kernel: eth1: Broadcom BCM47xx 10/100 Mbps Ethernet Controller 3.90.37.0
Jan  1 00:00:02 kernel: PCI: Enabling device 01:02.0 (0004 -> 0006)
Jan  1 00:00:02 kernel: eth2: Broadcom BCM4320 802.11 Wireless Controller 3.90.37.0
Jan  1 00:00:02 kernel: device eth0 entered promiscuous mode
Jan  1 00:00:02 kernel: device eth1 entered promiscuous mode
Jan  1 00:00:02 kernel: device eth2 entered promiscuous mode
Jan  1 00:00:02 kernel: br0: port 3(eth2) entering learning state
Jan  1 00:00:02 kernel: br0: port 2(eth1) entering learning state
Jan  1 00:00:02 kernel: br0: port 1(eth0) entering learning state
Jan  1 00:00:02 kernel: br0: port 3(eth2) entering forwarding state
Jan  1 00:00:02 kernel: br0: topology change detected, propagating
Jan  1 00:00:02 kernel: br0: port 2(eth1) entering forwarding state
Jan  1 00:00:02 kernel: br0: topology change detected, propagating
Jan  1 00:00:02 kernel: br0: port 1(eth0) entering forwarding state
Jan  1 00:00:02 kernel: br0: topology change detected, propagating
Jan  1 00:00:02 kernel: usb.c: registered new driver usbdevfs
Jan  1 00:00:02 kernel: usb.c: registered new driver hub
Jan  1 00:00:03 dhcp client: bound IP : 192.168.1.10 from 192.168.1.1
Jan  1 00:00:03 kernel: usb-ohci.c: USB OHCI at membase 0xb8004000, IRQ 2
Jan  1 00:00:03 kernel: usb-ohci.c: usb-00:04.0, PCI device 14e4:4715
Jan  1 00:00:03 kernel: usb.c: new USB bus registered, assigned bus number 1
Jan  1 00:00:03 kernel: hub.c: USB hub found
Jan  1 00:00:03 kernel: hub.c: 2 ports detected
Jan  1 00:00:03 kernel: usb.c: registered new driver usblp
Jan  1 00:00:03 kernel: printer.c: v0.13: USB Printer Device Class driver
Jan  1 00:00:05 kernel: Linux video capture interface: v1.00
Jan 18 10:05:15 dropbear[82]: Running in background
Jan 18 10:05:15 kernel: kjournald starting.  Commit interval 5 seconds
Jan 18 10:05:15 kernel: EXT3 FS 2.4-0.9.19, 19 August 2002 on ide0(3,1), internal journal
Jan 18 10:05:15 kernel: EXT3-fs: recovery complete.
Jan 18 10:05:15 kernel: EXT3-fs: mounted filesystem with ordered data mode.
Jan 18 10:05:15 kernel: Adding Swap: 498004k swap-space (priority -1)
Jan 18 10:05:16 xinetd[93]: xinetd Version 2.3.14 started with no options compiled in.
Jan 18 10:05:16 xinetd[93]: Started working: 1 available service
Jan 18 10:05:16 thttpd[103]: bind 0.0.0.0 - Address already in use
Jan 18 10:05:20 thttpd[103]: thttpd/2.25b PHP/5.2.0 starting on port 81
Jan 18 10:05:20 thttpd[103]: started as root without requesting chroot(), warning only
Jan 18 10:05:23 ntp client: Synchronizing time with time.nist.gov ...
Jan 18 10:05:25 kernel: VFS: Can't find ext3 filesystem on dev ide0(3,0).
Jan 18 10:05:25 kernel: MSDOS FS: Using codepage 950
Jan 18 10:05:25 kernel: MSDOS FS: IO charset cp950
Jan 18 10:05:25 kernel: FAT: bogus logical sector size 0
Jan 18 10:05:25 kernel: VFS: Can't find a valid FAT filesystem on dev 03:00.
Jan 18 10:05:25 kernel: FAT: freeing iocharset=cp950
Jan 18 10:05:25 kernel: FAT: bogus logical sector size 0
Jan 18 10:05:25 kernel: VFS: Can't find a valid FAT filesystem on dev 03:00.
Jan 18 10:05:25 kernel: VFS: Can't find ext3 filesystem on dev ide0(3,2).[/i]
Jan 18 10:05:25 kernel: MSDOS FS: Using codepage 950
Jan 18 10:05:25 kernel: MSDOS FS: IO charset cp950
Jan 18 10:05:25 kernel: FAT: bogus logical sector size 0
Jan 18 10:05:25 kernel: VFS: Can't find a valid FAT filesystem on dev 03:02.
Jan 18 10:05:25 kernel: FAT: freeing iocharset=cp950
Jan 18 10:05:25 kernel: FAT: bogus logical sector size 0
Jan 18 10:05:25 kernel: VFS: Can't find a valid FAT filesystem on dev 03:02.
Jan 18 10:07:11 dropbear[111]: Child connection from ::ffff:192.168.1.9:2036
Jan 18 10:07:21 dropbear[111]: password auth succeeded for 'admin' from ::ffff:192.168.1.9:2036
Jan 18 10:07:59 dropbear[111]: exit after auth (admin): Exited normally
             
i've highlighted the lines i think are important, the first shows a 40GB hardrive being detected.
second shows 2 partitions being detected (part 1 is a 39.5Gb EXT3 (or should be at least), part 2 is a 500Mb swap)
third shows a 500mb swap being mounted, the lines before this show the EXT3 partition being mounted but give no indication of the size.

The following 2 lines in italics appear to be suggesting that there are additional filesystems on the disc which it can't mount? or am i miss reading the logs?

the only other thing i can think of is the order in which the partitions were created? i think i did things in the following order.

1: create 10Gb partition (part1)
2: create 500mb swap (part2)
3: create remaining space partition (part3)

4: did a load of stuff and decided to scrap it and start again

5: deleted part1 and part3
6: created a new remaining space part1

is this where it went wrong? i would have thought fdisk could figure that one out...

oriarte

Logged
oriarte
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #9 on: January 18, 2007, 12:41:48 PM »


what a pain... it looks like i was right and fdisk doesn't really use the remaining space.

it looks like there are rather a lot of unallocated sectors and the start and end blocks of part1 only go up to the start of the swap space meaning the remaining 30Gb of the disk are unaccessible.

now ideally what i would like is to be able to extend my current partition 1 into this space without trashing all the data currently on it, is that possible with the tools available on the wl-hdd/ipkg system?

otherwise i guess i will just have to create another partition and have 2 samba shares on the network...


[admin@mediadrive root]$ fdisk /dev/discs/disc0/disc

The number of cylinders for this disk is set to 4864.
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)

Command (m for help): v
57593087 unallocated sectors

Command (m for help): p

Disk /dev/discs/disc0/disc: 40.0 GB, 40007761920 bytes
255 heads, 63 sectors/track, 4864 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

                Device Boot    Start       End    Blocks   Id  System
/dev/discs/disc0/part1               1        1217     9775521   83  Linux
/dev/discs/disc0/part2            1218        1279      498015   82  Linux swap

Command (m for help):
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #10 on: January 18, 2007, 14:50:51 PM »


I think the easiest way around is to make a backup of your current data.

Then use fdisk to delete both partiotions.

Do a reboot of the router.

Create the partitions you want using fdisk.

If you need more details, let me know :-)

The linux kernel finds 40gigs, so you should be able to use all 40.
Logged
oriarte
Newbie
*
Offline Offline

Posts: 6


View Profile
« Reply #11 on: January 19, 2007, 11:31:21 AM »

yeah thats what i figured... is there an easy way to backup data on the harddrive? i'm trying to FTP everything in /opt off the device at the moment but it looks like its throwing some errors...

thanks
Logged
macsat
Administrator
Sr. Member
*****
Offline Offline

Posts: 1,104



View Profile
« Reply #12 on: January 19, 2007, 15:38:32 PM »


That would be the way I would choose.

ftp or samba. But ftp should work just fine.

What kind of errors? Which ftp. serveR? Just Stupidftpd (build-in Olegs Firmware) ?

In that case, install vsftpd and try downloading with that instead.

Logged
Pages: [1]   Go Up
  Print  
 
Jump to:  

English Steel 1.6 © Saxon North Technologies
Powered by MySQL Powered by PHP Powered by SMF 1.1.7 | SMF © 2006-2008, Simple Machines LLC
Joomla Bridge by JoomlaHacks.com
Valid XHTML 1.0! Valid CSS!
Page created in 0.143 seconds with 24 queries.