Yet Another SATA Drive Boot Problem for TP2

Support for your TonidoPlug
yurim
Rookie Tonidoid
Rookie Tonidoid
Posts: 6
Joined: Mon Oct 03, 2011 1:26 pm

Yet Another SATA Drive Boot Problem for TP2

Postby yurim » Mon Nov 07, 2011 8:04 pm

I've looked through the posts, done the steps, redone again and redone yet again the process to get my TonidoPlug2 to boot from the internal WD 500 GB drive. It just doesn't appear to want to boot from the 500 GB WD SATA II drive. No other known issues.

Not sure that it is related, but the drive no longer mounts to disk1part1, but will mount to disk2part1 or disk4part1 - disk3part1 is assigned to the 1TB USB drive.

As I'd like to use the brand new drive that I purchased just for this purpose, can someone provide some guidance?

orfen
Rookie Tonidoid
Rookie Tonidoid
Posts: 9
Joined: Tue Feb 08, 2011 12:56 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby orfen » Wed Nov 09, 2011 11:30 am

exactly same problem for me. i'am at disk5part1...


i want to boot on my 500Go HDD and followed from another topic :

1. ssh to to plug.
2. stopped samba with /etc/init.d/samba stop
3. located the disk mount point. for me /dev/sda1 at /media/disk2part1
4. unmount disk /media/disk2part1
5. verified disk unmounted and no additional mounts using the mount command.
6. said good to data on disk by reformat command. mkfs.ext3 /dev/sda1
7. remount hard at disk1part1 mount /dev/sda1 /media/disk1part1
8. changed directory to disk root. chdir /media/disk1part1 (I made : cd media/disk1part1)
9. make sure that you are on the disk root and stay there. if you not on the disk root you could brick the Tonido where the following commands. pwd
10. get the new root file system.
wget http://www.tonido.com/downloads/plug2/rootfs.tar.gz
11. Tonido has changed the md5sum for rootfs.tar.gz. mine is:
md5sum rootfs.tar.gz
2f02407d8161acc42ccac0e6815f04c5 rootfs.tar.gz
12. expand the root file system.
tar xvfz rootfs.tar.gz
13. stop startup jobs
initctl emit tstop
14. copy tonido software to hard disk. (deference, recursive, perserve)
cp -dpr /root/app /media/disk1part1/root
15. go back to plug2 root.
cd /root
16. dismount disk
umount /media/disk1part1
17. that it folks
reboot
18. assuming you successful with new boot. check you booted on the disk.
df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 251M 0 251M 0% /lib/init/rw
udev 10M 20K 10M 1% /dev
tmpfs 251M 4.0K 251M 1% /dev/shm
rootfs 459G 5.4G 430G 2% /

and it doesn't work at all. I have the files on the sata drive but it doesn't boot on.

How can i do? Can someone from tonido give help? or someone else ;)
i receive my plug2 at Paris on the 8th november. And hope it will work on sata hdd.


EDIT : here is what i get with Parted, print :

(parted) print
print
Model: WDC WD5000BPVT-00HXZ (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: loop

Number Start End Size File system Flags
1 0.00B 500GB 500GB ext3

isn't there a problem with the partition table? Before i had GPT and it didn't work too.
Which partition table do you have?

yurim
Rookie Tonidoid
Rookie Tonidoid
Posts: 6
Joined: Mon Oct 03, 2011 1:26 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby yurim » Thu Nov 10, 2011 3:03 pm

Looks like we need Tonidoplug Support in on this.

Here is mine:

(parted) print
print
Model: WDC WD5000BEVT-00A0R (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: gpt

Number Start End Size File system Name Flags
1 17.4kB 500GB 500GB ext3 primary

root@TonidoPlug2:/# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 251M 0 251M 0% /lib/init/rw
udev 10M 32K 10M 1% /dev
tmpfs 251M 4.0K 251M 1% /dev/shm
rootfs 450M 205M 240M 47% /
/dev/sdb1 932G 209G 723G 23% /media/disk3part1
/dev/sda1 459G 601M 435G 1% /media/disk4part1

orfen
Rookie Tonidoid
Rookie Tonidoid
Posts: 9
Joined: Tue Feb 08, 2011 12:56 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby orfen » Fri Nov 11, 2011 4:49 pm

i think i did it!!!!!!!! :mrgreen:

root@TonidoPlug2:~# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 251M 0 251M 0% /lib/init/rw
udev 10M 24K 10M 1% /dev
tmpfs 251M 4.0K 251M 1% /dev/shm
rootfs 31G 578M 29G 2% /
/dev/sda2 435G 100M 435G 1% /media/disk3part2

and when i tried to connect ssh, i had to use the nosoup password.

i decide to come here to tell you how i did, and just after i will play with my tonidoplug.

so :
First : i don't really know how i did...
i did connect my hdd to my windows 7, and in the manager i made a 32go fat 32 partition, and another with all that remain. (i convert the table from GPT to the other thing)

did put the hdd in the TP2 and followed the steps in the post before (format in ext3...)
i did the reboot and all was OK!!!

now i have :

Welcome to GNU Parted! Type 'help' to view a list of commands.
(parted) print
print
Model: WDC WD5000BPVT-00HXZ (scsi)
Disk /dev/sda: 500GB
Sector size (logical/physical): 512B/512B
Partition Table: msdos

Number Start End Size Type File system Flags
1 1049kB 33.6GB 33.6GB primary ext3 lba
2 33.6GB 500GB 467GB primary ntfs

yurim
Rookie Tonidoid
Rookie Tonidoid
Posts: 6
Joined: Mon Oct 03, 2011 1:26 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby yurim » Mon Nov 21, 2011 10:36 pm

Thought that I'd close out this thread. First -I'm disappointed that no Tonido/Codelathe help was offered.

Used parted to partition the SATA drive. Set the type of the first partition as msdos. Formatted as ext3 both partitions and followed the instructions for the rootfs tarball. Now TP2 boots off the HDD and the other partition is auto-mounted.

root@TonidoPlug2:~# df -h
Filesystem Size Used Avail Use% Mounted on
tmpfs 251M 0 251M 0% /lib/init/rw
udev 10M 32K 10M 1% /dev
tmpfs 251M 4.0K 251M 1% /dev/shm
rootfs 50G 585M 47G 2% /
/dev/sda2 410G 199M 389G 1% /media/disk6part2
/dev/sdb1 932G 312G 621G 34% /media/disk5part1

User avatar
madhan
Admin Tonidoid
Admin Tonidoid
Posts: 8615
Joined: Tue Dec 30, 2008 12:13 am
Location: Austin, TX, USA
Contact:

Re: Yet Another SATA Drive Boot Problem for TP2

Postby madhan » Tue Nov 22, 2011 12:38 am

First -I'm disappointed that no Tonido/Codelathe help was offered.


Sorry, please understand that we don't officially support USB booting.

yurim
Rookie Tonidoid
Rookie Tonidoid
Posts: 6
Joined: Mon Oct 03, 2011 1:26 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby yurim » Thu Nov 24, 2011 12:09 pm

Understood, wasn't aware. I retract my comment.

As a postscript, I did this same thing on a USB stick that wouldn't allow booting. It worked on it as well. What is really curious is that setting the boot partition to msdos allows it to work. I'm much of a newbie, but it seems odd that a linux system prefers this.

UrbanVoyeur
Tonido MVP
Tonido MVP
Posts: 321
Joined: Fri Oct 21, 2011 8:20 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby UrbanVoyeur » Thu Nov 24, 2011 12:48 pm

yurim wrote:What is really curious is that setting the boot partition to msdos allows it to work. I'm much of a newbie, but it seems odd that a linux system prefers this.

I think a distinction needs to be made between a partition table layout and a partition type.

These days, partitions table layouts mostly come in two flavors: GUID Partition Table (GPT) and Master Boot Record (MBR).

Partition types include many flavors of FAT, NTFS, Linux. This is not the same as the file system type, which describes how the partition is formatted. The file system types include FAT16, FAT32, exFAT, ext3, and ext4, among others.

Hierarchy:
Physical Disk
-- Partition Table Layout
---- Partition Type
------ File System Type

GPT is the the more recent layout , but it is not well supported on the plug.

Debian Squeeze happens to identify an MBR partition table layout as ms-dos. That is not the same as having a DOS partition type on the disk.

Macs, Win 7 and recent Ubunutu's can boot from GPT's. In fact, OSX Leopard and Lion only boot from GPT.

The version of U-boot on the plug 2 is not set up to boot from a GPT partition table. I have also found that the fdisk in Debian Squeeze gets confused by GPT tables and gives back bad info.

If you use fdisk to create a primary partition on your USB drive without any special commands, it will create a linux partition type, regardless of the table layout (GPT or MBR).

http://en.wikipedia.org/wiki/Logical_Disk_Manager
http://en.wikipedia.org/wiki/Master_Boot_Record
http://en.wikipedia.org/wiki/GUID_Partition_Table
http://en.wikipedia.org/wiki/Partition_type
http://en.wikipedia.org/wiki/File_system

Devr
Regular Tonidoid
Regular Tonidoid
Posts: 17
Joined: Sun Nov 20, 2011 8:11 am

Re: Yet Another SATA Drive Boot Problem for TP2

Postby Devr » Thu Nov 24, 2011 8:14 pm

I can boot my TonidoPlug2 fine from Sata. But I can not see any other partition on the drive.

sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] 976773168 512-byte logical blocks: (500 GB/465 GiB)
sd 0:0:0:0: [sda] 0-byte physical blocks
sd 0:0:0:0: [sda] Write Protect is off
sd 0:0:0:0: [sda] Mode Sense: 23 00 10 00
sd 0:0:0:0: [sda] Write cache: enabled, read cache: enabled, supports DPO and FUA
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sda:
sda1 sda2 sda3
sd 0:0:0:0: [sda] Sector size 0 reported, assuming 512.
sd 0:0:0:0: [sda] Attached SCSI disk

Yet:
# ls -l /dev/sd*
ls: cannot access /dev/sd*: No such file or directory

Tuxedo
Tonido Team
Tonido Team
Posts: 1458
Joined: Wed Jan 28, 2009 11:30 pm

Re: Yet Another SATA Drive Boot Problem for TP2

Postby Tuxedo » Sat Nov 26, 2011 11:16 am

Try running the command partprobe and see if it detects the other partitions.
When you boot from SATA drive, though the boot partition is seen as rootfs, still sda should be a valid node.


Return to “TonidoPlug Support”

Who is online

Users browsing this forum: No registered users and 3 guests