[RESOLVED] What did I do to my drive configuration?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[RESOLVED] What did I do to my drive configuration?

Postby Socaltom » Fri Apr 15, 2011 8:39 pm

OK, Arch Linux ARM is installed and working perfectly on a Pink Pogoplug using the USB method
I am also running Samba and pyTivo.
I originally hooked up an 80gig USB drive for data ( was NTFS format)
After packing a bunch of videos on it, I decided to switch everything to a 160g drive ( don't we all have a bunch of old drives sitting around?)
Now that I've got the linux bug, I used cfdisk to partion the new drive, and I formated it to ext2 as HD-SDC1
and all went fine. I transferred my data from the 80g drive to the 160g and reconfigured Samba and pyTivo to see the new drive.
Then i removed the old drive, and that when strange things started happening.
The 80g drive was named Netdrive1
the 160g drive was named backup
now the 160g is HD-SDA1 and the 80 is HD-SDC1 ( named by the OS not by me), but backup and Netdrive both appear if I do a "dir" command, but they are both empty.
How do I rename the new drive? and how do I get rid of the old names?
I've done some searching, but I'm not having much luck.
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: What did I do to my drive configuration?

Postby pepedog » Fri Apr 15, 2011 9:13 pm

If the /media/whatever folders are empty, delete them with rm, they are remnants.

To name a drive-
tune2fs -L "drive-name" /dev/sda1
The boot partition doesn't get reflected in /media because it's just plain old /
pepedog
Developer
 
Posts: 2431
Joined: Mon Jun 07, 2010 3:30 pm
Location: London UK

Re: What did I do to my drive configuration?

Postby Socaltom » Fri Apr 15, 2011 9:53 pm

this is what I got when I tried rm
[root@Arch Linux ARM install media]# rm backup
rm: cannot remove `backup': Is a directory

and when I did the tune2fs I got the same names

[root@Arch Linux ARM install media]# tune2fs -L "drive1" /dev/sda1
tune2fs 1.41.14 (22-Dec-2010)
[root@Arch Linux ARM install media]# tune2fs -L "drive2" /dev/sdc1
tune2fs 1.41.14 (22-Dec-2010)
[root@Arch Linux ARM install media]# dir
backup hd-sda1 hd-sdc1 Netdrive1 PQSERVICE
[root@Arch Linux ARM install media]#
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: What did I do to my drive configuration?

Postby WarheadsSE » Fri Apr 15, 2011 9:59 pm

umount /dev/sda1
umount /dev/sdc1
tune2fs -L "drive1" /dev/sda1
tune2fs -L "drive2" /dev/sdc1
rm -r backup
mount /dev/sda1
mount /dev/sdc1
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm

Re: What did I do to my drive configuration?

Postby Socaltom » Fri Apr 15, 2011 10:21 pm

[root@Arch Linux ARM install pyTivo]# umount /dev/sda1
umount: /dev/sda1: not mounted
[root@Arch Linux ARM install pyTivo]# tune2fs -L "drive1" /dev/sda1
tune2fs 1.41.14 (22-Dec-2010)
ext2fs_check_if_mount: Input/output error while determining whether /dev/sda1 is mounted.



[root@Arch Linux ARM install media]# mount /dev/sdc1
mount: can't find /dev/sdc1 in /etc/fstab or /etc/mtab

These drives don't appear to be listed in fstab. How do I add them?
Thanks
Tom
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side

Re: What did I do to my drive configuration?

Postby kmihelich » Sat Apr 16, 2011 12:52 am

Unplug the drives, both of them.

Insert one, run this command: dmesg | tail
You will see the kernel spit out which device the drive got. sdb, sdc, etc. You should also see a listing of partitions such as sdb1 sdb2, or if there is just the one partition, just sdb1.

Type 'mount' and verify that the partition (we'll assume /dev/sdb1) isn't mounted. If it is, type 'umount /dev/sdb1' and then re-run 'mount' to be sure it's gone.

Then do 'tune2fs -L "YourNewLabel" /dev/sdb1' to assign a label to that partition. This is how the udev script will automount the drive under /media from now on. Unplug the drive, give it a couple seconds, plug it back in and check under /media. It should be there.

Repeat again starting with the next drive, following the same sequence. Replace /dev/sdb1 in commands with the actual partition name you are getting from dmesg.
Arch Linux ARM exists and continues to grow through community support, please donate today!
kmihelich
Developer
 
Posts: 1133
Joined: Tue Jul 20, 2010 6:55 am
Location: aka leming #archlinuxarm

Re: What did I do to my drive configuration?

Postby Socaltom » Tue Apr 26, 2011 5:08 pm

I've got it all working now. Somewhere along the way, I made my USBstick unbootable, so I just reinstalled on my extra hard drive and now I have an 80G root drive and a 160G drive1. I'm using the home drives on the root drive and I have my videos on the 160G drive.
I suspect that part of my problem was that one of the drives is USB powered and has 2 usb connectors.
used to be owned by me
Pink Pogo V2, Black Pogo V3, Zyxel NAS 325 v1,
used to be Adminstrator for
Goflex net, Black V3, Black V2
Now I have a couple of raspberry pi ( 3+ and 4)
Socaltom
 
Posts: 571
Joined: Thu Apr 07, 2011 2:21 pm
Location: The left side


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 9 guests