It is currently Tue May 21, 2013 2:37 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2
Author Message
 Post subject: Re: using sata disk from usb boot
PostPosted: Mon Nov 28, 2011 3:44 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Nov 28, 2011 3:42 pm
Posts: 7

Hi there, I followed this instructions two times with no success.

When I reboot I am back to the internal memory. And the sda1 is mounted. Any ideas?

Code:
root@esclapssen:~# 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                450M  172M  274M  39% /
/dev/sda1             459G  600M  435G   1% /media/disk3part1
root@esclapssen:~# cd /media/disk3part1
root@esclapssen:/media/disk3part1# ls
bin   dev  home  lost+found  mnt  proc  rootfs.tar.gz  selinux  sys  usr
boot  etc  lib   media       opt  root  sbin           srv      tmp  var
root@esclapssen:/media/disk3part1# cd ..
root@esclapssen:/media# ls
disk1part1  disk2part1  disk3part1
root@esclapssen:/media#


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Mon Nov 28, 2011 4:00 pm 
Tonido MVP
Tonido MVP
Joined: Fri Oct 21, 2011 8:20 pm
Posts: 295

esclapes wrote:
Hi there, I followed this instructions two times with no success.

When I reboot I am back to the internal memory. And the sda1 is mounted. Any ideas?

Two thing come to mind:
1. Did you format the SATA drive ext3 using mkfs.ext3 /dev/sda

2. Is the partition layout on your SATA MBR/MS-DOS? The plug won't boot if it is GPT. You can check with parted print


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Mon Nov 28, 2011 4:46 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Nov 28, 2011 3:42 pm
Posts: 7

Uups. It is GPT.

Code:
Model: TOSHIBA MK5076GSX (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


Does it mean I cannot use this drive?


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Mon Nov 28, 2011 5:19 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Nov 28, 2011 3:42 pm
Posts: 7

UrbanVoyeur wrote:
Two thing come to mind:
1. Did you format the SATA drive ext3 using mkfs.ext3 /dev/sda

2. Is the partition layout on your SATA MBR/MS-DOS? The plug won't boot if it is GPT. You can check with parted print

By the way, I did 1 too.


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Mon Nov 28, 2011 5:32 pm 
Tonido MVP
Tonido MVP
Joined: Fri Oct 21, 2011 8:20 pm
Posts: 295

esclapes wrote:
Uups. It is GPT.
Does it mean I cannot use this drive?

You can use it. You just have to change the partition table layout to MBR/MS-DOS.

From the TonidoPlug bash prompt:

1. Un-mount the disk:
Code:
umount /media/disk1part1  (or wherever it's mounted)

2. Wipe out the existing partition:
Code:
parted
(parted) select /dev/sda
(parted) rm 1
(parted) quit

OR using fdisk:
Code:
fdisk /dev/sda
o to remove all partitions
w to commit changes & sync


3. Change the disk label (partition table layout):
Code:
parted
(parted) select /dev/sda
(parted) mklabel msdos
(parted) quit

3. Use fdisk to create a new partition (its a little friendlier than parted)
Code:
fdisk /dev/sda
o to remove any partitions fdisk may think are there.
n to create a new partition
p for primary
1 for first partition
ENTER through the rest of the defaults
w to commit changes & sync

4. Format the new partition:
Code:
mkfs.ext3 /dev/sda

5. reinstall rootfs.

You can do also it from a Windows machine:
Administrative Tools > Computer Management > Storage > Disk Management > Right Click On "Disk X" where X is the number of your drive > Convert to MBR

Edit: I clarified the parted commands. In short hand they can be cryptic and lead to mistakes if pasted literally.


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Thu Dec 15, 2011 6:43 pm 
Rookie Tonidoid
Rookie Tonidoid
Joined: Mon Nov 28, 2011 3:42 pm
Posts: 7

Hi UrbanVoyeur,

Thanks a lot for your help. It was really useful.

I didn't see your reply until very late that night, and didn't come back to say that it worked. Your steps for the whole process where far better than anything I found googling around the hours before I came back here.

Accurate and fast. Congrats.

Cheers,
esclapes


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Thu Dec 15, 2011 8:58 pm 
Tonido MVP
Tonido MVP
Joined: Fri Oct 21, 2011 8:20 pm
Posts: 295

You're welcome!


Offline
 Profile  
 Post subject: Re: using sata disk from usb boot
PostPosted: Mon Sep 10, 2012 5:02 pm 
Super Tonidoid
Super Tonidoid
Joined: Tue Sep 04, 2012 1:58 pm
Posts: 28

I'm having trouble putting files onto my plug. I'm on a Mac and I tried to mount it as a local drive through Finder -> Connect to Server. I logged in and got this file structure (last image - attachments seem to be reversed ...). I tried transferring a 200mb file (my connected HDD is 1tb ext3) but it said I ran out of space - this implies to me that I was connecting to the Plug and not the HDD (even though the plug should have been booted up off the HDD ... ).

I've tried to boot from my SATA 2 disk. If I go to my plug's homepage, I see this (image 2).

If I go to the TonidoPlug settings menu, I see this (first image).

If I go to TonidoShell and run -fdisk L I see this text:
[root@TonidoPlug2 /]#fdisk -l

Disk /dev/sda: 1000.2 GB, 1000204886016 bytes
255 heads, 63 sectors/track, 121601 cylinders
Units = cylinders of 16065 * 512 = 8225280 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk identifier: 0x00000000

Device Boot Start End Blocks Id System
/dev/sda1 1 121602 976762583+ ee GPT



So - my setup appears to not work. I can't set /dev/sda as my User Account Directory - a yellow box appears with no text. Help fixing this is appreciated.


Edit: it *seems* to have been fixed by going in with SSH, and doing -fdisk a /dev/sda1. For whatever reason it decided not to keep the drive as a bootable drive. I am now able to map across to my plug (although it goes incredibly slowly, for some reason, maybe because of the heat the plug is kicking out). Now I've gone back in and checked again the Boot flag has been deleted. It's rather confusing but it seems to be working at least to some degree now.


Attachments:
File comment: User data directory from TonidoPlug settings
Screen Shot 2012-09-10 at 22.48.05.png
Screen Shot 2012-09-10 at 22.48.05.png [ 21.39 KiB | Viewed 421 times ]
File comment: Connect to Server through Mac
Screen Shot 2012-09-10 at 22.45.23.png
Screen Shot 2012-09-10 at 22.45.23.png [ 38.55 KiB | Viewed 421 times ]
Offline
 Profile  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 18 posts ]  Go to page Previous  1, 2

All times are UTC - 6 hours [ DST ]


 Who is online

Users browsing this forum: Bing [Bot], Google [Bot] 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:
Jump to: