 |
|
 |
|
Next: [PATCH] x86 uaccess_32.h typo
|
| Author |
Message |
External

Since: Nov 02, 2008 Posts: 81
|
(Msg. 16) Posted: Thu Sep 17, 2009 5:20 pm
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: alt>os>linux>slackware (more info?)
|
|
|
On 17 Sep 2009 21:34:07 GMT, Loki Harfagr <l0k1.DeleteThis@thedarkdesign.free.fr.INVALID> wrote:
>Fri, 18 Sep 2009 04:51:50 +1000, Grant did cat :
>
>> On Thu, 17 Sep 2009 18:07:21 GMT, Mike Jones <Not.DeleteThis@Arizona.Bay> wrote:
>>
>>>Eef just mentioned blkid too, and I should have remembered it from a
>>>while back, on this very NG. %|
>>
>> So for fun, looping:
>>
>> root@deltree:~# for n in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; \
>> do blkid /dev/hda$n | \
>> gawk '{printf"%s",$1;sub(/^.*TYPE=/,"");gsub(/"/,"");print" "$1}'; \
>> done
>> /dev/hda1: reiserfs
>> /dev/hda2: reiserfs
>> /dev/hda3: reiserfs
>> /dev/hda5: reiserfs
>> /dev/hda6: reiserfs
>> /dev/hda7: reiserfs
>> /dev/hda8: swap
>> /dev/hda10: reiserfs
>> /dev/hda11: reiserfs
>> /dev/hda12: reiserfs
>> /dev/hda14: reiserfs
>> /dev/hda15: reiserfs
>>
>> Grant.
>
>playing golf?-) try a par two:
># blkid -s TYPE| gawk '{sub(/TYPE=\"/,"");sub(/\"/,"")}1'
# blkid -s TYPE| gawk '{gsub(/TYPE=|"/,"")}1'
Grant.
--
http://bugsplatter.id.au |
|
| Back to top |
|
 |  |
External

Since: Sep 11, 2009 Posts: 10
|
(Msg. 17) Posted: Thu Sep 17, 2009 5:20 pm
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 17 Sep 2009 21:35:01 +0000, Bit Twister wrote:
> Heheh, wait until you have to do a format/recovery. You get to
> change the UUID in grub/fstab for the newly formatted partition.
>
> I use partition labels myself.
>
> $ grep beta /boot/grub/menu.lst
> title beta
> kernel (hd0,11)/boot/vmlinuz BOOT_IMAGE=beta root=LABEL=beta vga=791
>
> $ grep beta /etc/fstab
> LABEL=beta / ext3 relatime 1 1
<knocking on wood>
Speaking of recoverys, you reminded me that I really need get an external
HDD that is at least 500GB for backups. I used to never back anything
up, but with HDD's becoming ridiculously large these days, potentially
losing up to 500GB would make for very, very, bad day! My primary
computer is a laptop now, otherwise would RAID... |
|
| Back to top |
|
 |  |
External

Since: Dec 18, 2004 Posts: 139
|
(Msg. 18) Posted: Thu Sep 17, 2009 7:20 pm
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 17 Sep 2009 23:45:00 +0200, Helmut Hullen wrote:
> What about LABELs in "/etc/lilo.conf"? My first tries had no success.
Sorry I cannot help, I finally bit the bullet and switched to grub
since all the other Distributions I tried have left lilo behind. |
|
| Back to top |
|
 |  |
External

Since: Sep 18, 2009 Posts: 1
|
(Msg. 19) Posted: Thu Sep 17, 2009 9:20 pm
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 17 Sep 2009 22:58:33 +0000, Bit Twister wrote:
> On 17 Sep 2009 23:45:00 +0200, Helmut Hullen wrote:
>
>> What about LABELs in "/etc/lilo.conf"? My first tries had no success.
>
> Sorry I cannot help, I finally bit the bullet and switched to grub since
> all the other Distributions I tried have left lilo behind.
If your friends jumped off a building, you'd follow them? Are you a
lemming?
I kid... |
|
| Back to top |
|
 |  |
External

Since: Nov 02, 2008 Posts: 27
|
(Msg. 20) Posted: Fri Sep 18, 2009 3:20 am
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Hallo, James,
Du meintest am 18.09.09:
>>> What about LABELs in "/etc/lilo.conf"? My first tries had no
>>> success.
>> Sorry I cannot help, I finally bit the bullet and switched to grub
>> since all the other Distributions I tried have left lilo behind.
> If your friends jumped off a building, you'd follow them? Are you a
> lemming?
That's an excellent advice.
But it doesn't help solving the LABEL problem in "/etc/lilo.conf".
Viele Gruesse
Helmut
"Ubuntu" - an African word, meaning "Slackware is too hard for me". |
|
| Back to top |
|
 |  |
External

Since: Jul 06, 2006 Posts: 35
|
(Msg. 21) Posted: Fri Sep 18, 2009 3:20 am
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On Thu, 17 Sep 2009 12:33:38 -0700
Keith Keller <kkeller-usenet.RemoveThis@wombat.san-francisco.ca.us> wrote:
> On 2009-09-17, Mikhail Zotov <invalid_muxaul.RemoveThis@lenta.ru> wrote:
> >
> > A great way! It seems it doesn't work with JFS though:
....
> Oh, that's too bad! Does using blkid work? I'd test it, except for not
> having a JFS filesystem here.
Yes!
# blkid /dev/hda3
/dev/hda3: UUID="7557e195-96e6-47ec-b0ea-1aaa28edc03b" TYPE="jfs"
Thanks a lot for revealing new knowledge!
--
Regards,
Mikhail |
|
| Back to top |
|
 |  |
External

Since: Nov 19, 2008 Posts: 37
|
(Msg. 22) Posted: Fri Sep 18, 2009 5:20 am
Post subject: c.l.a. annex, was: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
Fri, 18 Sep 2009 07:58:07 +1000, Grant did cat :
> On 17 Sep 2009 21:34:07 GMT, Loki Harfagr
> <l0k1 RemoveThis @thedarkdesign.free.fr.INVALID> wrote:
>
>>Fri, 18 Sep 2009 04:51:50 +1000, Grant did cat :
>>
>>> On Thu, 17 Sep 2009 18:07:21 GMT, Mike Jones <Not RemoveThis @Arizona.Bay> wrote:
>>>
>>>>Eef just mentioned blkid too, and I should have remembered it from a
>>>>while back, on this very NG. %|
>>>
>>> So for fun, looping:
>>>
>>> root@deltree:~# for n in 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16; \
>>> do blkid /dev/hda$n | \
>>> gawk '{printf"%s",$1;sub(/^.*TYPE=/,"");gsub(/"/,"");print" "$1}'; \
>>> done
>>> /dev/hda1: reiserfs
>>> /dev/hda2: reiserfs
>>> /dev/hda3: reiserfs
>>> /dev/hda5: reiserfs
>>> /dev/hda6: reiserfs
>>> /dev/hda7: reiserfs
>>> /dev/hda8: swap
>>> /dev/hda10: reiserfs
>>> /dev/hda11: reiserfs
>>> /dev/hda12: reiserfs
>>> /dev/hda14: reiserfs
>>> /dev/hda15: reiserfs
>>>
>>> Grant.
>>
>>playing golf?-) try a par two:
>># blkid -s TYPE| gawk '{sub(/TYPE=\"/,"");sub(/\"/,"")}1'
>
> # blkid -s TYPE| gawk '{gsub(/TYPE=|"/,"")}1'
>
> Grant.
Brilliant!
I kneel down before you my thaine
(And I feel stupid I hadn't used a regexp in a regexp emplacement ;D)
just for fun, here's another golf girl:
# blkid -s TYPE| gawk '$2="";$1=$1' FS='[ "]'
but if you find another short one I guess you'd better fu2 c.l.a.  |
|
| Back to top |
|
 |  |
External

Since: Jun 11, 2004 Posts: 114
|
(Msg. 23) Posted: Fri Sep 18, 2009 7:35 am
Post subject: Re: Probing unmounted partitions [Login to view extended thread Info.] Archived from groups: per prev. post (more info?)
|
|
|
On 2009-09-18, Mikhail Zotov <invalid_muxaul.RemoveThis@lenta.ru> wrote:
> On Thu, 17 Sep 2009 12:33:38 -0700
> Keith Keller <kkeller-usenet.RemoveThis@wombat.san-francisco.ca.us> wrote:
> ...
>> Oh, that's too bad! Does using blkid work? I'd test it, except for not
>> having a JFS filesystem here.
>
> Yes!
>
> # blkid /dev/hda3
> /dev/hda3: UUID="7557e195-96e6-47ec-b0ea-1aaa28edc03b" TYPE="jfs"
>
> Thanks a lot for revealing new knowledge!
Well, I can't take any credit, Eef was the one who mentioned blkid.
This has been a most excellent thread, though!
--keith
--
kkeller-usenet.RemoveThis@wombat.san-francisco.ca.us
(try just my userid to email me)
AOLSFAQ=http://www.therockgarden.ca/aolsfaq.txt
see X- headers for PGP signature information |
|
| Back to top |
|
 |  |
|
You can post new topics in this forum You can reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|
 |
|
|