Buffalo NAS-Central Forums

Welcome to the Linkstation Wiki community
It is currently Sat Nov 18, 2017 5:43 am

All times are UTC+01:00




Post new topic  Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sun Jun 28, 2009 11:28 pm 
Offline
Newbie

Joined: Sun Feb 22, 2009 10:33 pm
Posts: 16
I'm following the guide in the wiki with the benefit of a serial cable
http://buffalo.nas-central.org/wiki/Armel_Debian_for_the_Kurobox_Pro_-_Manual_install
No problems getting Lenny on. Everything seems to work fine. Set up samba for my 1TB drive.
I am only getting 10 GB of usable drive space. As if it's using the primary partition #2 and not the extended partition.

I'm guessing this is a simple fix that I'm unaware of. Or did does the wiki not mount the correct partition?


This is what my disk partition table looks like

Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          13      104391  83 Linux
/dev/sda2              14        1230     9775552+ 83 Linux
/dev/sda4            1231      121601   966880057+  5 Extended
/dev/sda5            1231        1293      506016  82 Linux swap
/dev/sda6            1294      121601   966373978+ 83 Linux


Top
   
PostPosted: Mon Jun 29, 2009 1:21 am 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
I don't understand why you need to create the extended partition sda4 and create the swap and your big partition (sda6) on it instead of just creating swap on sda3 and putting your big partition on sda4?
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          13      104391  83 Linux
/dev/sda2              14        1230     9775552+ 83 Linux
/dev/sda3            1231        1293      506016  82 Linux swap
/dev/sda4            1294      121601   966373978+ 83 Linux

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
PostPosted: Mon Jun 29, 2009 2:21 am 
Offline
Newbie

Joined: Sun Feb 22, 2009 10:33 pm
Posts: 16
Quote:
I don't understand why you need to create the extended partition sda4 and create the swap and your big partition (sda6) on it instead of just creating swap on sda3 and putting your big partition on sda4?

Neither do I, but this is what's on the wiki.


Top
   
PostPosted: Mon Jun 29, 2009 10:46 pm 
Offline
Newbie

Joined: Sun Feb 22, 2009 10:33 pm
Posts: 16
sorry to keep bugging. still having trouble using the full drive. I can't get use of /dev/sda4.
Here's my partition table
Code:
Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes

   Device Boot      Start         End      Blocks  Id System
/dev/sda1               1          13      104391  83 Linux
/dev/sda2              14        1230     9775552+ 83 Linux
/dev/sda3            1231        1293      506047+ 82 Linux swap
/dev/sda4            1294      121601   966374010  83 Linux

mount drives (am I going wrong here?)
Code:
mount /dev/sda1 /mnt/sda1
mount /dev/sda2 /mnt/sda2

untar to /mnt/sda2 (or /dev/sda2)
Code:
cd /mnt/sda2
tar -xvzf armel-lenny*.tgz

Copy the uImage to /mnt/sda1 (or /dev/sda1)
Code:
cp /mnt/sda2/boot/* /mnt/sda1

Code:
reboot

Interupt boot via serial port
Code:
Marvel>>setenv bootargs console=ttyS0,115200 root=/dev/sda2 rw ;
Marvel>>setenv bootcmd 'ide reset; ext2load ide 0:1 0x00100000 /uImage; bootm 0x00100000'
Marvel>>saveenv
Marvel>>boot

When I log in via SSh i get the following (I'm only showing the 10GB disk partition):
Code:
#df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              9621880    388828   8744276   5% /
tmpfs                    62616         0     62616   0% /lib/init/rw
udev                     10240        60     10180   1% /dev
tmpfs                    62616         0     62616   0% /dev/shm
shm                      62616         0     62616   0% /dev/shm

Do I simply need to edit /etc/fstab accordingly or did I mount something incorrectly or do I need to umount something?
Here's my fstab
Code:
# UNCONFIGURED FSTAB FOR BASE SYSTEM
# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
/dev/sda1               /boot           ext2            noauto,noatime          1 2
/dev/sda2               /               ext3            noatime                 0 1
/dev/sda5               none            swap            sw                      0 0
proc                    /proc           proc            defaults                0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0


Top
   
PostPosted: Tue Jun 30, 2009 2:25 am 
Offline
Site Admin
User avatar

Joined: Tue Mar 21, 2006 9:11 pm
Posts: 658
Yup, edit /etc/fstab. Change sda5 to sda3 (swap) and add sda4

_________________
My completely scratch built 832 push-pull tube amplifier with Padauk frame. It matches my custom mini-ITX machine.


Top
   
PostPosted: Tue Jun 30, 2009 2:38 am 
Offline
Newbie

Joined: Sun Feb 22, 2009 10:33 pm
Posts: 16
that seemed to have done it.
editing fstab
Code:
LS-GL:~# vi /etc/fstab
# UNCONFIGURED FSTAB FOR BASE SYSTEM
# <fs>                  <mountpoint>    <type>          <opts>                  <dump/pass>
/dev/sda1               /boot           ext2            noauto,noatime          1 2
/dev/sda2               /               ext3            noatime                 0 1
/dev/sda3               none            swap            sw                      0 0
/dev/sda4               /mnt            ext3            defaults,noatime        1 2
proc                    /proc           proc            defaults                0 0
shm                     /dev/shm        tmpfs           nodev,nosuid,noexec     0 0

here it is (/dev/sda4)
Code:
LS-GL:~# df
Filesystem           1K-blocks      Used Available Use% Mounted on
/dev/sda2              9621880    388876   8744228   5% /
tmpfs                    62616         0     62616   0% /lib/init/rw
udev                     10240        60     10180   1% /dev
tmpfs                    62616         0     62616   0% /dev/shm
/dev/sda4            951210636    131228 902760708   1% /mnt
shm                      62616         0     62616   0% /dev/shm

Thanks a bunch.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 6 posts ] 

All times are UTC+01:00


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Limited