Discussion:
[Soekris] Net5501 - Debian 4.0 "Etch" - from EIDE to SATA
Diego Pastore
2009-05-19 09:44:50 UTC
Permalink
Hello,

i own a Net5501 board, with EIDE HD mounting kit, an internal 2.5" HD
and Linux Debian 4.0 "etch" installed on.

I plan to buy a SATA HD mount kit and a SATA HD, because EIDE interface
become obsolete, but i need to "DUMP" my Debian install from EIDE to
SATA HD, without need to reinstall.

I plan to power off soekris, detach my EIDE hd, connect it to an
adaptor, dump all my data to new SATA HD, and connect it to my 5501.

But, which modification I have to made to my Debian installation? Below
some (I hope useful) information:

# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/pastrix1-root / ext3
defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
/dev/mapper/pastrix1-home /home ext3 defaults 0 2
/dev/mapper/pastrix1-tmp /tmp ext3 defaults 0 2
/dev/mapper/pastrix1-usr /usr ext3 defaults 0 2
/dev/mapper/pastrix1-var /var ext3 defaults 0 2
/dev/mapper/pastrix1-swap_1 none swap sw
0 0
-----------------------------------------------------------------------------------

Disk /dev/hda: 19457 cylinders, 255 heads, 63 sectors/track
Units = cylinders of 8225280 bytes, blocks of 1024 bytes, counting from 0

Device Boot Start End #cyls #blocks Id System
/dev/hda1 * 0+ 30 31- 248976 83 Linux
/dev/hda2 31 19456 19426 156039345 5 Extended
/dev/hda3 0 - 0 0 0 Empty
/dev/hda4 0 - 0 0 0 Empty
/dev/hda5 31+ 19456 19426- 156039313+ 8e Linux LVM
-----------------------------------------------------------------------------------

Linux pastrix1 2.6.18-6-486 #1 Mon May 4 23:59:22 UTC 2009 i586 GNU/Linux
-----------------------------------------------------------------------------------

Module Size Used by
ipv6 213984 42
tun 10368 1
pc87360 17040 0
hwmon_vid 2816 1 pc87360
i2c_isa 5248 1 pc87360
i2c_core 19472 2 pc87360,i2c_isa
loop 14216 0
evdev 9088 0
geode_rng 2560 0
psmouse 34568 0
serio_raw 6532 0
pcspkr 2816 0
ext3 116488 6
jbd 47272 1 ext3
dm_mirror 18000 0
dm_snapshot 15644 0
dm_mod 48952 15 dm_mirror,dm_snapshot
ide_generic 1536 0 [permanent]
ide_disk 14848 3
generic 4996 0 [permanent]
ehci_hcd 27144 0
ohci_hcd 17540 0
usbcore 109444 3 ehci_hcd,ohci_hcd
amd74xx 13084 0 [permanent]
ide_core 107760 4 ide_generic,ide_disk,generic,amd74xx
via_rhine 21768 0
mii 5376 1 via_rhine
processor 23724 0
-----------------------------------------------------------------------------------

--- Logical volume ---
LV Name /dev/pastrix1/root
VG Name pastrix1
LV UUID JPaAZN-BQix-7S1X-ZQaq-MsyH-CWgj-IaFk3m
LV Write Access read/write
LV Status available
# open 1
LV Size 276,00 MB
Current LE 69
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:0

--- Logical volume ---
LV Name /dev/pastrix1/usr
VG Name pastrix1
LV UUID JnRgE0-6Nnr-KFJb-ifqK-GfMQ-QcEx-i7qInv
LV Write Access read/write
LV Status available
# open 1
LV Size 4,77 GB
Current LE 1221
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:1

--- Logical volume ---
LV Name /dev/pastrix1/var
VG Name pastrix1
LV UUID MNWVtW-6kMG-YXXw-4bSX-o2Em-jf9U-tvV3N7
LV Write Access read/write
LV Status available
# open 1
LV Size 2,86 GB
Current LE 733
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:2

--- Logical volume ---
LV Name /dev/pastrix1/swap_1
VG Name pastrix1
LV UUID ItI33n-0YC7-HKkQ-o7H6-5F3N-I6VV-XxZfr0
LV Write Access read/write
LV Status available
# open 2
LV Size 1,48 GB
Current LE 379
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:3

--- Logical volume ---
LV Name /dev/pastrix1/tmp
VG Name pastrix1
LV UUID 3BBNsG-Rw42-okPf-XFD9-TJyn-EOGw-FVODAg
LV Write Access read/write
LV Status available
# open 1
LV Size 392,00 MB
Current LE 98
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:4

--- Logical volume ---
LV Name /dev/pastrix1/home
VG Name pastrix1
LV UUID AJmSYW-GsiK-zjmw-ZlD1-Uwu5-X7e9-RBCCSW
LV Write Access read/write
LV Status available
# open 1
LV Size 139,04 GB
Current LE 35595
Segments 1
Allocation inherit
Read ahead sectors 0
Block device 254:5
Nix
2009-05-19 21:38:01 UTC
Permalink
Post by Diego Pastore
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/pastrix1-root / ext3
defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
This becomes /dev/sda1, and you'd better make sure that vgscan runs on
the next boot (which I think happens automatically). As everything else
is using LVM, the vgscan should pick it up.
Post by Diego Pastore
Module Size Used by
ipv6 213984 42
tun 10368 1
pc87360 17040 0
[...]

It looks very like you're using a Debian stock kernel. This should pick
up SATA stuff automatically --- but I'd *really* recommend doing a
dist-upgrade to Debian 5.0 first, as SATA support in 2.6.18 was really
very embryonic (there were a lot of major bugs, all of which have since
been shaken out).

Other than that it should just work.
Diego Pastore
2009-05-28 15:11:24 UTC
Permalink
Hi Nix,

I dist-upgraded to Debian "Lenny" 5.0 and now I've 2.6.26 kernel.

And yes, I use a Debian stock kernel and stock initrd image, but I'd
like to know SATA kernel module name, and if and how I need to "force"
loading SATA kernel module and/or rebuil initrd image in order to have
SATA module loaded.

Thank you very much.

Diego
Post by Nix
Post by Diego Pastore
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/pastrix1-root / ext3
defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
This becomes /dev/sda1, and you'd better make sure that vgscan runs on
the next boot (which I think happens automatically). As everything else
is using LVM, the vgscan should pick it up.
Post by Diego Pastore
Module Size Used by
ipv6 213984 42
tun 10368 1
pc87360 17040 0
[...]
It looks very like you're using a Debian stock kernel. This should pick
up SATA stuff automatically --- but I'd *really* recommend doing a
dist-upgrade to Debian 5.0 first, as SATA support in 2.6.18 was really
very embryonic (there were a lot of major bugs, all of which have since
been shaken out).
Other than that it should just work.
joel jaeggli
2009-05-28 15:29:31 UTC
Permalink
The 5501's sata port isn't on a sata controller. It's a pata sata bridge attached to the parallel ata interface.

Joel
Post by Diego Pastore
Hi Nix,
I dist-upgraded to Debian "Lenny" 5.0 and now I've 2.6.26 kernel.
And yes, I use a Debian stock kernel and stock initrd image, but I'd
like to know SATA kernel module name, and if and how I need to "force"
loading SATA kernel module and/or rebuil initrd image in order to have
SATA module loaded.
Thank you very much.
Diego
Post by Nix
Post by Diego Pastore
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/pastrix1-root / ext3
defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
This becomes /dev/sda1, and you'd better make sure that vgscan runs on
the next boot (which I think happens automatically). As everything else
is using LVM, the vgscan should pick it up.
Post by Diego Pastore
Module Size Used by
ipv6 213984 42
tun 10368 1
pc87360 17040 0
[...]
It looks very like you're using a Debian stock kernel. This should pick
up SATA stuff automatically --- but I'd *really* recommend doing a
dist-upgrade to Debian 5.0 first, as SATA support in 2.6.18 was really
very embryonic (there were a lot of major bugs, all of which have since
been shaken out).
Other than that it should just work.
_______________________________________________
Soekris-tech mailing list
http://lists.soekris.com/mailman/listinfo/soekris-tech
Diego Pastore
2009-05-28 15:41:37 UTC
Permalink
Hi Joel,

another question: I already have a pata hdd mounting kit, can I only buy
standard sata data and power cable rather than sata mounting kit?

sata mounting kit is cheap, but shipping to Italy are very expensive,
four/five times as kit cost!

Diego
Post by joel jaeggli
The 5501's sata port isn't on a sata controller. It's a pata sata bridge attached to the parallel ata interface.
Joel
Post by Diego Pastore
Hi Nix,
I dist-upgraded to Debian "Lenny" 5.0 and now I've 2.6.26 kernel.
And yes, I use a Debian stock kernel and stock initrd image, but I'd
like to know SATA kernel module name, and if and how I need to "force"
loading SATA kernel module and/or rebuil initrd image in order to have
SATA module loaded.
Thank you very much.
Diego
Post by Nix
Post by Diego Pastore
# /etc/fstab: static file system information.
#
# <file system> <mount point> <type> <options> <dump> <pass>
proc /proc proc defaults 0 0
/dev/mapper/pastrix1-root / ext3
defaults,errors=remount-ro 0 1
/dev/hda1 /boot ext3 defaults 0 2
This becomes /dev/sda1, and you'd better make sure that vgscan runs on
the next boot (which I think happens automatically). As everything else
is using LVM, the vgscan should pick it up.
Post by Diego Pastore
Module Size Used by
ipv6 213984 42
tun 10368 1
pc87360 17040 0
[...]
It looks very like you're using a Debian stock kernel. This should pick
up SATA stuff automatically --- but I'd *really* recommend doing a
dist-upgrade to Debian 5.0 first, as SATA support in 2.6.18 was really
very embryonic (there were a lot of major bugs, all of which have since
been shaken out).
Other than that it should just work.
_______________________________________________
Soekris-tech mailing list
http://lists.soekris.com/mailman/listinfo/soekris-tech
Nix
2009-05-28 21:21:31 UTC
Permalink
Post by Diego Pastore
Hi Joel,
another question: I already have a pata hdd mounting kit, can I only buy standard sata data and power cable rather than sata
mounting kit?
sata mounting kit is cheap, but shipping to Italy are very expensive, four/five times as kit cost!
Does nowhere in Italy sell the things? That seems very strange (surely
shipping from, say, southern Germany isn't all that expensive).
Wim Vandeputte Mailing list only
2009-05-29 08:41:07 UTC
Permalink
Post by Diego Pastore
another question: I already have a pata hdd mounting kit, can I only buy
standard sata data and power cable rather than sata mounting kit?
The metal bracket and spacers in both the SATA and PATA kit are the same,
you just need the right cables.

Loading Image....html
Loading Image....html

First of all, you need a right angle SATA data cable and short SATA power
cable, like:

Loading Image....html

As you can see it's a tight fit

And don't get one with the angle in the 'wrong' direction:

Loading Image....html

If you can't find a SATA data cable with a right angle connector, you can
take a straight one and cut of the excess plastic and fold the connector:

Loading Image....html

Not very clean but it works just fine.

The SATA power cable is the most difficult to find (I have not found it
in the wild), but you can chain together 2 other comon cables to make one:

Loading Image....html
Loading Image....html
Loading Image....html

Good luck in trying to fit that into a regular case though ;-)

For test setups it's OK and it also allows you to power extra devices like
a Digium VOIP card for example
Post by Diego Pastore
sata mounting kit is cheap, but shipping to Italy are very expensive,
four/five times as kit cost!
Just ask for regular mail shipping, it's only EUR 5

Wim.

Loading...